Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5467

Last change on this file since 5467 was 5467, checked in by bensch, 19 years ago

orxonox/trunk: convenience flags for tardis-environment

  • Property svn:executable set to *
File size: 372.6 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.3.1_alpha.
4#
5# Report bugs to <orxonox-dev at 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.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 mkdir_p AWK SET_MAKE am__leading_dot 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 RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE 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.3.1_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
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
873  --enable-profile        builds orxonox with profiling support
874  --enable-efence         builds orxonox with efence support
875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
877
878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
883  --with-sub-projects     also builds the subProjects while make from srcdir
884  --with-tardis           sets all the necesary environment flags for
885                          linux-TARDIS boxes at the ETH Zurich
886
887Some influential environment variables:
888  CXX         C++ compiler command
889  CXXFLAGS    C++ compiler flags
890  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
891              nonstandard directory <lib dir>
892  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
893              headers in a nonstandard directory <include dir>
894  CC          C compiler command
895  CFLAGS      C compiler flags
896  CPP         C preprocessor
897
898Use these variables to override the choices made by `configure' or to help
899it to find libraries and programs with nonstandard names/locations.
900
901Report bugs to <orxonox-dev at mail.datacore.ch>.
902_ACEOF
903fi
904
905if test "$ac_init_help" = "recursive"; then
906  # If there are subdirs, report their specific --help.
907  ac_popdir=`pwd`
908  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909    test -d $ac_dir || continue
910    ac_builddir=.
911
912if test "$ac_dir" != .; then
913  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914  # A "../" for each directory in $ac_dir_suffix.
915  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916else
917  ac_dir_suffix= ac_top_builddir=
918fi
919
920case $srcdir in
921  .)  # No --srcdir option.  We are building in place.
922    ac_srcdir=.
923    if test -z "$ac_top_builddir"; then
924       ac_top_srcdir=.
925    else
926       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927    fi ;;
928  [\\/]* | ?:[\\/]* )  # Absolute path.
929    ac_srcdir=$srcdir$ac_dir_suffix;
930    ac_top_srcdir=$srcdir ;;
931  *) # Relative path.
932    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933    ac_top_srcdir=$ac_top_builddir$srcdir ;;
934esac
935
936# Do not use `cd foo && pwd` to compute absolute paths, because
937# the directories may not exist.
938case `pwd` in
939.) ac_abs_builddir="$ac_dir";;
940*)
941  case "$ac_dir" in
942  .) ac_abs_builddir=`pwd`;;
943  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
944  *) ac_abs_builddir=`pwd`/"$ac_dir";;
945  esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_top_builddir=${ac_top_builddir}.;;
949*)
950  case ${ac_top_builddir}. in
951  .) ac_abs_top_builddir=$ac_abs_builddir;;
952  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
953  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_srcdir=$ac_srcdir;;
958*)
959  case $ac_srcdir in
960  .) ac_abs_srcdir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
962  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963  esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_top_srcdir=$ac_top_srcdir;;
967*)
968  case $ac_top_srcdir in
969  .) ac_abs_top_srcdir=$ac_abs_builddir;;
970  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
971  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
972  esac;;
973esac
974
975    cd $ac_dir
976    # Check for guested configure; otherwise get Cygnus style configure.
977    if test -f $ac_srcdir/configure.gnu; then
978      echo
979      $SHELL $ac_srcdir/configure.gnu  --help=recursive
980    elif test -f $ac_srcdir/configure; then
981      echo
982      $SHELL $ac_srcdir/configure  --help=recursive
983    elif test -f $ac_srcdir/configure.ac ||
984           test -f $ac_srcdir/configure.in; then
985      echo
986      $ac_configure --help
987    else
988      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989    fi
990    cd $ac_popdir
991  done
992fi
993
994test -n "$ac_init_help" && exit 0
995if $ac_init_version; then
996  cat <<\_ACEOF
997orxonox configure 0.3.1_alpha
998generated by GNU Autoconf 2.59
999
1000Copyright (C) 2003 Free Software Foundation, Inc.
1001This configure script is free software; the Free Software Foundation
1002gives unlimited permission to copy, distribute and modify it.
1003_ACEOF
1004  exit 0
1005fi
1006exec 5>config.log
1007cat >&5 <<_ACEOF
1008This file contains any messages produced by compilers while
1009running configure, to aid debugging if configure makes a mistake.
1010
1011It was created by orxonox $as_me 0.3.1_alpha, which was
1012generated by GNU Autoconf 2.59.  Invocation command line was
1013
1014  $ $0 $@
1015
1016_ACEOF
1017{
1018cat <<_ASUNAME
1019## --------- ##
1020## Platform. ##
1021## --------- ##
1022
1023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1024uname -m = `(uname -m) 2>/dev/null || echo unknown`
1025uname -r = `(uname -r) 2>/dev/null || echo unknown`
1026uname -s = `(uname -s) 2>/dev/null || echo unknown`
1027uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028
1029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1030/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1031
1032/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1033/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1035hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1036/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1037/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1038/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1039
1040_ASUNAME
1041
1042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043for as_dir in $PATH
1044do
1045  IFS=$as_save_IFS
1046  test -z "$as_dir" && as_dir=.
1047  echo "PATH: $as_dir"
1048done
1049
1050} >&5
1051
1052cat >&5 <<_ACEOF
1053
1054
1055## ----------- ##
1056## Core tests. ##
1057## ----------- ##
1058
1059_ACEOF
1060
1061
1062# Keep a trace of the command line.
1063# Strip out --no-create and --no-recursion so they do not pile up.
1064# Strip out --silent because we don't want to record it for future runs.
1065# Also quote any args containing shell meta-characters.
1066# Make two passes to allow for proper duplicate-argument suppression.
1067ac_configure_args=
1068ac_configure_args0=
1069ac_configure_args1=
1070ac_sep=
1071ac_must_keep_next=false
1072for ac_pass in 1 2
1073do
1074  for ac_arg
1075  do
1076    case $ac_arg in
1077    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1078    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079    | -silent | --silent | --silen | --sile | --sil)
1080      continue ;;
1081    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1082      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1083    esac
1084    case $ac_pass in
1085    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086    2)
1087      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1088      if test $ac_must_keep_next = true; then
1089        ac_must_keep_next=false # Got value, back to normal.
1090      else
1091        case $ac_arg in
1092          *=* | --config-cache | -C | -disable-* | --disable-* \
1093          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1094          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1095          | -with-* | --with-* | -without-* | --without-* | --x)
1096            case "$ac_configure_args0 " in
1097              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1098            esac
1099            ;;
1100          -* ) ac_must_keep_next=true ;;
1101        esac
1102      fi
1103      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1104      # Get rid of the leading space.
1105      ac_sep=" "
1106      ;;
1107    esac
1108  done
1109done
1110$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1111$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112
1113# When interrupted or exit'd, cleanup temporary files, and complete
1114# config.log.  We remove comments because anyway the quotes in there
1115# would cause problems or look ugly.
1116# WARNING: Be sure not to use single quotes in there, as some shells,
1117# such as our DU 5.0 friend, will then `close' the trap.
1118trap 'exit_status=$?
1119  # Save into config.log some information that might help in debugging.
1120  {
1121    echo
1122
1123    cat <<\_ASBOX
1124## ---------------- ##
1125## Cache variables. ##
1126## ---------------- ##
1127_ASBOX
1128    echo
1129    # The following way of writing the cache mishandles newlines in values,
1130{
1131  (set) 2>&1 |
1132    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1133    *ac_space=\ *)
1134      sed -n \
1135        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1136          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137      ;;
1138    *)
1139      sed -n \
1140        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141      ;;
1142    esac;
1143}
1144    echo
1145
1146    cat <<\_ASBOX
1147## ----------------- ##
1148## Output variables. ##
1149## ----------------- ##
1150_ASBOX
1151    echo
1152    for ac_var in $ac_subst_vars
1153    do
1154      eval ac_val=$`echo $ac_var`
1155      echo "$ac_var='"'"'$ac_val'"'"'"
1156    done | sort
1157    echo
1158
1159    if test -n "$ac_subst_files"; then
1160      cat <<\_ASBOX
1161## ------------- ##
1162## Output files. ##
1163## ------------- ##
1164_ASBOX
1165      echo
1166      for ac_var in $ac_subst_files
1167      do
1168        eval ac_val=$`echo $ac_var`
1169        echo "$ac_var='"'"'$ac_val'"'"'"
1170      done | sort
1171      echo
1172    fi
1173
1174    if test -s confdefs.h; then
1175      cat <<\_ASBOX
1176## ----------- ##
1177## confdefs.h. ##
1178## ----------- ##
1179_ASBOX
1180      echo
1181      sed "/^$/d" confdefs.h | sort
1182      echo
1183    fi
1184    test "$ac_signal" != 0 &&
1185      echo "$as_me: caught signal $ac_signal"
1186    echo "$as_me: exit $exit_status"
1187  } >&5
1188  rm -f core *.core &&
1189  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1190    exit $exit_status
1191     ' 0
1192for ac_signal in 1 2 13 15; do
1193  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194done
1195ac_signal=0
1196
1197# confdefs.h avoids OS command line length limits that DEFS can exceed.
1198rm -rf conftest* confdefs.h
1199# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1200echo >confdefs.h
1201
1202# Predefined preprocessor variables.
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_NAME "$PACKAGE_NAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_VERSION "$PACKAGE_VERSION"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_STRING "$PACKAGE_STRING"
1221_ACEOF
1222
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226_ACEOF
1227
1228
1229# Let the site file select an alternate cache file if it wants to.
1230# Prefer explicitly selected file to automatically selected ones.
1231if test -z "$CONFIG_SITE"; then
1232  if test "x$prefix" != xNONE; then
1233    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234  else
1235    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1236  fi
1237fi
1238for ac_site_file in $CONFIG_SITE; do
1239  if test -r "$ac_site_file"; then
1240    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1241echo "$as_me: loading site script $ac_site_file" >&6;}
1242    sed 's/^/| /' "$ac_site_file" >&5
1243    . "$ac_site_file"
1244  fi
1245done
1246
1247if test -r "$cache_file"; then
1248  # Some versions of bash will fail to source /dev/null (special
1249  # files actually), so we avoid doing that.
1250  if test -f "$cache_file"; then
1251    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1252echo "$as_me: loading cache $cache_file" >&6;}
1253    case $cache_file in
1254      [\\/]* | ?:[\\/]* ) . $cache_file;;
1255      *)                      . ./$cache_file;;
1256    esac
1257  fi
1258else
1259  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1260echo "$as_me: creating cache $cache_file" >&6;}
1261  >$cache_file
1262fi
1263
1264# Check that the precious variables saved in the cache have kept the same
1265# value.
1266ac_cache_corrupted=false
1267for ac_var in `(set) 2>&1 |
1268               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1269  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1270  eval ac_new_set=\$ac_env_${ac_var}_set
1271  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1272  eval ac_new_val="\$ac_env_${ac_var}_value"
1273  case $ac_old_set,$ac_new_set in
1274    set,)
1275      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1277      ac_cache_corrupted=: ;;
1278    ,set)
1279      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1280echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1281      ac_cache_corrupted=: ;;
1282    ,);;
1283    *)
1284      if test "x$ac_old_val" != "x$ac_new_val"; then
1285        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1286echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1287        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1288echo "$as_me:   former value:  $ac_old_val" >&2;}
1289        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1290echo "$as_me:   current value: $ac_new_val" >&2;}
1291        ac_cache_corrupted=:
1292      fi;;
1293  esac
1294  # Pass precious variables to config.status.
1295  if test "$ac_new_set" = set; then
1296    case $ac_new_val in
1297    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1299    *) ac_arg=$ac_var=$ac_new_val ;;
1300    esac
1301    case " $ac_configure_args " in
1302      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1303      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304    esac
1305  fi
1306done
1307if $ac_cache_corrupted; then
1308  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1309echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1310  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1311echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1312   { (exit 1); exit 1; }; }
1313fi
1314
1315ac_ext=c
1316ac_cpp='$CPP $CPPFLAGS'
1317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319ac_compiler_gnu=$ac_cv_c_compiler_gnu
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348## Detect the canonical host and target build environment.
1349ac_aux_dir=
1350for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351  if test -f $ac_dir/install-sh; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/install-sh -c"
1354    break
1355  elif test -f $ac_dir/install.sh; then
1356    ac_aux_dir=$ac_dir
1357    ac_install_sh="$ac_aux_dir/install.sh -c"
1358    break
1359  elif test -f $ac_dir/shtool; then
1360    ac_aux_dir=$ac_dir
1361    ac_install_sh="$ac_aux_dir/shtool install -c"
1362    break
1363  fi
1364done
1365if test -z "$ac_aux_dir"; then
1366  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368   { (exit 1); exit 1; }; }
1369fi
1370ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373
1374# Make sure we can run config.sub.
1375$ac_config_sub sun4 >/dev/null 2>&1 ||
1376  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1377echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1378   { (exit 1); exit 1; }; }
1379
1380echo "$as_me:$LINENO: checking build system type" >&5
1381echo $ECHO_N "checking build system type... $ECHO_C" >&6
1382if test "${ac_cv_build+set}" = set; then
1383  echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385  ac_cv_build_alias=$build_alias
1386test -z "$ac_cv_build_alias" &&
1387  ac_cv_build_alias=`$ac_config_guess`
1388test -z "$ac_cv_build_alias" &&
1389  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1390echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1391   { (exit 1); exit 1; }; }
1392ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1393  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1394echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1395   { (exit 1); exit 1; }; }
1396
1397fi
1398echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1399echo "${ECHO_T}$ac_cv_build" >&6
1400build=$ac_cv_build
1401build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406echo "$as_me:$LINENO: checking host system type" >&5
1407echo $ECHO_N "checking host system type... $ECHO_C" >&6
1408if test "${ac_cv_host+set}" = set; then
1409  echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411  ac_cv_host_alias=$host_alias
1412test -z "$ac_cv_host_alias" &&
1413  ac_cv_host_alias=$ac_cv_build_alias
1414ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1415  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1417   { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1421echo "${ECHO_T}$ac_cv_host" >&6
1422host=$ac_cv_host
1423host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428echo "$as_me:$LINENO: checking target system type" >&5
1429echo $ECHO_N "checking target system type... $ECHO_C" >&6
1430if test "${ac_cv_target+set}" = set; then
1431  echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433  ac_cv_target_alias=$target_alias
1434test "x$ac_cv_target_alias" = "x" &&
1435  ac_cv_target_alias=$ac_cv_host_alias
1436ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1437  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1438echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1439   { (exit 1); exit 1; }; }
1440
1441fi
1442echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1443echo "${ECHO_T}$ac_cv_target" >&6
1444target=$ac_cv_target
1445target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450# The aliases save the names the user supplied, while $host etc.
1451# will get canonicalized.
1452test -n "$target_alias" &&
1453  test "$program_prefix$program_suffix$program_transform_name" = \
1454    NONENONEs,x,x, &&
1455  program_prefix=${target_alias}-
1456
1457am__api_version="1.8"
1458# Find a good install program.  We prefer a C program (faster),
1459# so one script is as good as another.  But avoid the broken or
1460# incompatible versions:
1461# SysV /etc/install, /usr/sbin/install
1462# SunOS /usr/etc/install
1463# IRIX /sbin/install
1464# AIX /bin/install
1465# AmigaOS /C/install, which installs bootblocks on floppy discs
1466# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1467# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1468# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1469# OS/2's system install, which has a completely different semantic
1470# ./install, which can be erroneously created by make from ./install.sh.
1471echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1472echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1473if test -z "$INSTALL"; then
1474if test "${ac_cv_path_install+set}" = set; then
1475  echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478for as_dir in $PATH
1479do
1480  IFS=$as_save_IFS
1481  test -z "$as_dir" && as_dir=.
1482  # Account for people who put trailing slashes in PATH elements.
1483case $as_dir/ in
1484  ./ | .// | /cC/* | \
1485  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1486  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1487  /usr/ucb/* ) ;;
1488  *)
1489    # OSF1 and SCO ODT 3.0 have their own names for install.
1490    # Don't use installbsd from OSF since it installs stuff as root
1491    # by default.
1492    for ac_prog in ginstall scoinst install; do
1493      for ac_exec_ext in '' $ac_executable_extensions; do
1494        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1495          if test $ac_prog = install &&
1496            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497            # AIX install.  It has an incompatible calling convention.
1498            :
1499          elif test $ac_prog = install &&
1500            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1501            # program-specific install script used by HP pwplus--don't use.
1502            :
1503          else
1504            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1505            break 3
1506          fi
1507        fi
1508      done
1509    done
1510    ;;
1511esac
1512done
1513
1514
1515fi
1516  if test "${ac_cv_path_install+set}" = set; then
1517    INSTALL=$ac_cv_path_install
1518  else
1519    # As a last resort, use the slow shell script.  We don't cache a
1520    # path for INSTALL within a source directory, because that will
1521    # break other packages using the cache if that directory is
1522    # removed, or if the path is relative.
1523    INSTALL=$ac_install_sh
1524  fi
1525fi
1526echo "$as_me:$LINENO: result: $INSTALL" >&5
1527echo "${ECHO_T}$INSTALL" >&6
1528
1529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1530# It thinks the first close brace ends the variable substitution.
1531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1532
1533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1534
1535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1536
1537echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1538echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1539# Just in case
1540sleep 1
1541echo timestamp > conftest.file
1542# Do `set' in a subshell so we don't clobber the current shell's
1543# arguments.  Must try -L first in case configure is actually a
1544# symlink; some systems play weird games with the mod time of symlinks
1545# (eg FreeBSD returns the mod time of the symlink's containing
1546# directory).
1547if (
1548   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1549   if test "$*" = "X"; then
1550      # -L didn't work.
1551      set X `ls -t $srcdir/configure conftest.file`
1552   fi
1553   rm -f conftest.file
1554   if test "$*" != "X $srcdir/configure conftest.file" \
1555      && test "$*" != "X conftest.file $srcdir/configure"; then
1556
1557      # If neither matched, then we have a broken ls.  This can happen
1558      # if, for instance, CONFIG_SHELL is bash and it inherits a
1559      # broken ls alias from the environment.  This has actually
1560      # happened.  Such a system could not be considered "sane".
1561      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&5
1563echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1564alias in your environment" >&2;}
1565   { (exit 1); exit 1; }; }
1566   fi
1567
1568   test "$2" = conftest.file
1569   )
1570then
1571   # Ok.
1572   :
1573else
1574   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1575Check your system clock" >&5
1576echo "$as_me: error: newly created file is older than distributed files!
1577Check your system clock" >&2;}
1578   { (exit 1); exit 1; }; }
1579fi
1580echo "$as_me:$LINENO: result: yes" >&5
1581echo "${ECHO_T}yes" >&6
1582test "$program_prefix" != NONE &&
1583  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1584# Use a double $ so make ignores it.
1585test "$program_suffix" != NONE &&
1586  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1587# Double any \ or $.  echo might interpret backslashes.
1588# By default was `s,x,x', remove it if useless.
1589cat <<\_ACEOF >conftest.sed
1590s/[\\$]/&&/g;s/;s,x,x,$//
1591_ACEOF
1592program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1593rm conftest.sed
1594
1595# expand $ac_aux_dir to an absolute path
1596am_aux_dir=`cd $ac_aux_dir && pwd`
1597
1598test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1599# Use eval to expand $SHELL
1600if eval "$MISSING --run true"; then
1601  am_missing_run="$MISSING --run "
1602else
1603  am_missing_run=
1604  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1605echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1606fi
1607
1608if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1609  # Keeping the `.' argument allows $(mkdir_p) to be used without
1610  # argument.  Indeed, we sometimes output rules like
1611  #   $(mkdir_p) $(somedir)
1612  # where $(somedir) is conditionally defined.
1613  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1614  # expensive solution, as it forces Make to start a sub-shell.)
1615  mkdir_p='mkdir -p -- .'
1616else
1617  # On NextStep and OpenStep, the `mkdir' command does not
1618  # recognize any option.  It will interpret all options as
1619  # directories to create, and then abort because `.' already
1620  # exists.
1621  for d in ./-p ./--version;
1622  do
1623    test -d $d && rmdir $d
1624  done
1625  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1626  if test -f "$ac_aux_dir/mkinstalldirs"; then
1627    mkdir_p='$(mkinstalldirs)'
1628  else
1629    mkdir_p='$(install_sh) -d'
1630  fi
1631fi
1632
1633for ac_prog in gawk mawk nawk awk
1634do
1635  # Extract the first word of "$ac_prog", so it can be a program name with args.
1636set dummy $ac_prog; ac_word=$2
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639if test "${ac_cv_prog_AWK+set}" = set; then
1640  echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642  if test -n "$AWK"; then
1643  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648  IFS=$as_save_IFS
1649  test -z "$as_dir" && as_dir=.
1650  for ac_exec_ext in '' $ac_executable_extensions; do
1651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652    ac_cv_prog_AWK="$ac_prog"
1653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654    break 2
1655  fi
1656done
1657done
1658
1659fi
1660fi
1661AWK=$ac_cv_prog_AWK
1662if test -n "$AWK"; then
1663  echo "$as_me:$LINENO: result: $AWK" >&5
1664echo "${ECHO_T}$AWK" >&6
1665else
1666  echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
1668fi
1669
1670  test -n "$AWK" && break
1671done
1672
1673echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1674echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1675set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1676if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1677  echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679  cat >conftest.make <<\_ACEOF
1680all:
1681        @echo 'ac_maketemp="$(MAKE)"'
1682_ACEOF
1683# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1684eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1685if test -n "$ac_maketemp"; then
1686  eval ac_cv_prog_make_${ac_make}_set=yes
1687else
1688  eval ac_cv_prog_make_${ac_make}_set=no
1689fi
1690rm -f conftest.make
1691fi
1692if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1693  echo "$as_me:$LINENO: result: yes" >&5
1694echo "${ECHO_T}yes" >&6
1695  SET_MAKE=
1696else
1697  echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699  SET_MAKE="MAKE=${MAKE-make}"
1700fi
1701
1702rm -rf .tst 2>/dev/null
1703mkdir .tst 2>/dev/null
1704if test -d .tst; then
1705  am__leading_dot=.
1706else
1707  am__leading_dot=_
1708fi
1709rmdir .tst 2>/dev/null
1710
1711# test to see if srcdir already configured
1712if test "`cd $srcdir && pwd`" != "`pwd`" &&
1713   test -f $srcdir/config.status; then
1714  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1715echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1716   { (exit 1); exit 1; }; }
1717fi
1718
1719# test whether we have cygpath
1720if test -z "$CYGPATH_W"; then
1721  if (cygpath --version) >/dev/null 2>/dev/null; then
1722    CYGPATH_W='cygpath -w'
1723  else
1724    CYGPATH_W=echo
1725  fi
1726fi
1727
1728
1729# Define the identity of the package.
1730 PACKAGE='orxonox'
1731 VERSION='0.3.1_alpha'
1732
1733
1734cat >>confdefs.h <<_ACEOF
1735#define PACKAGE "$PACKAGE"
1736_ACEOF
1737
1738
1739cat >>confdefs.h <<_ACEOF
1740#define VERSION "$VERSION"
1741_ACEOF
1742
1743# Some tools Automake needs.
1744
1745ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1746
1747
1748AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1749
1750
1751AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1752
1753
1754AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1755
1756
1757MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1758
1759
1760AMTAR=${AMTAR-"${am_missing_run}tar"}
1761
1762install_sh=${install_sh-"$am_aux_dir/install-sh"}
1763
1764# Installed binaries are usually stripped using `strip' when the user
1765# run `make install-strip'.  However `strip' might not be the right
1766# tool to use in cross-compilation environments, therefore Automake
1767# will honor the `STRIP' environment variable to overrule this program.
1768if test "$cross_compiling" != no; then
1769  if test -n "$ac_tool_prefix"; then
1770  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1771set dummy ${ac_tool_prefix}strip; ac_word=$2
1772echo "$as_me:$LINENO: checking for $ac_word" >&5
1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774if test "${ac_cv_prog_STRIP+set}" = set; then
1775  echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777  if test -n "$STRIP"; then
1778  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1779else
1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783  IFS=$as_save_IFS
1784  test -z "$as_dir" && as_dir=.
1785  for ac_exec_ext in '' $ac_executable_extensions; do
1786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789    break 2
1790  fi
1791done
1792done
1793
1794fi
1795fi
1796STRIP=$ac_cv_prog_STRIP
1797if test -n "$STRIP"; then
1798  echo "$as_me:$LINENO: result: $STRIP" >&5
1799echo "${ECHO_T}$STRIP" >&6
1800else
1801  echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
1803fi
1804
1805fi
1806if test -z "$ac_cv_prog_STRIP"; then
1807  ac_ct_STRIP=$STRIP
1808  # Extract the first word of "strip", so it can be a program name with args.
1809set dummy strip; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1813  echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815  if test -n "$ac_ct_STRIP"; then
1816  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821  IFS=$as_save_IFS
1822  test -z "$as_dir" && as_dir=.
1823  for ac_exec_ext in '' $ac_executable_extensions; do
1824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825    ac_cv_prog_ac_ct_STRIP="strip"
1826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827    break 2
1828  fi
1829done
1830done
1831
1832  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1833fi
1834fi
1835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1836if test -n "$ac_ct_STRIP"; then
1837  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1838echo "${ECHO_T}$ac_ct_STRIP" >&6
1839else
1840  echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842fi
1843
1844  STRIP=$ac_ct_STRIP
1845else
1846  STRIP="$ac_cv_prog_STRIP"
1847fi
1848
1849fi
1850INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1851
1852# We need awk for the "check" target.  The system "awk" is bad on
1853# some platforms.
1854
1855
1856
1857
1858
1859          ac_config_headers="$ac_config_headers config.h"
1860
1861
1862#########################
1863## Checks for programs ##
1864#########################
1865ac_ext=cc
1866ac_cpp='$CXXCPP $CPPFLAGS'
1867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1870if test -n "$ac_tool_prefix"; then
1871  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1872  do
1873    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1874set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_CXX+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  if test -n "$CXX"; then
1881  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886  IFS=$as_save_IFS
1887  test -z "$as_dir" && as_dir=.
1888  for ac_exec_ext in '' $ac_executable_extensions; do
1889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892    break 2
1893  fi
1894done
1895done
1896
1897fi
1898fi
1899CXX=$ac_cv_prog_CXX
1900if test -n "$CXX"; then
1901  echo "$as_me:$LINENO: result: $CXX" >&5
1902echo "${ECHO_T}$CXX" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908    test -n "$CXX" && break
1909  done
1910fi
1911if test -z "$CXX"; then
1912  ac_ct_CXX=$CXX
1913  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1914do
1915  # Extract the first word of "$ac_prog", so it can be a program name with args.
1916set dummy $ac_prog; ac_word=$2
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1920  echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922  if test -n "$ac_ct_CXX"; then
1923  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928  IFS=$as_save_IFS
1929  test -z "$as_dir" && as_dir=.
1930  for ac_exec_ext in '' $ac_executable_extensions; do
1931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932    ac_cv_prog_ac_ct_CXX="$ac_prog"
1933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934    break 2
1935  fi
1936done
1937done
1938
1939fi
1940fi
1941ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1942if test -n "$ac_ct_CXX"; then
1943  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1944echo "${ECHO_T}$ac_ct_CXX" >&6
1945else
1946  echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950  test -n "$ac_ct_CXX" && break
1951done
1952test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1953
1954  CXX=$ac_ct_CXX
1955fi
1956
1957
1958# Provide some information about the compiler.
1959echo "$as_me:$LINENO:" \
1960     "checking for C++ compiler version" >&5
1961ac_compiler=`set X $ac_compile; echo $2`
1962{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1963  (eval $ac_compiler --version </dev/null >&5) 2>&5
1964  ac_status=$?
1965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966  (exit $ac_status); }
1967{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1968  (eval $ac_compiler -v </dev/null >&5) 2>&5
1969  ac_status=$?
1970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971  (exit $ac_status); }
1972{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1973  (eval $ac_compiler -V </dev/null >&5) 2>&5
1974  ac_status=$?
1975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976  (exit $ac_status); }
1977
1978cat >conftest.$ac_ext <<_ACEOF
1979/* confdefs.h.  */
1980_ACEOF
1981cat confdefs.h >>conftest.$ac_ext
1982cat >>conftest.$ac_ext <<_ACEOF
1983/* end confdefs.h.  */
1984
1985int
1986main ()
1987{
1988
1989  ;
1990  return 0;
1991}
1992_ACEOF
1993ac_clean_files_save=$ac_clean_files
1994ac_clean_files="$ac_clean_files a.out a.exe b.out"
1995# Try to create an executable without -o first, disregard a.out.
1996# It will help us diagnose broken compilers, and finding out an intuition
1997# of exeext.
1998echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1999echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2000ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2001if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2002  (eval $ac_link_default) 2>&5
2003  ac_status=$?
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); }; then
2006  # Find the output, starting from the most likely.  This scheme is
2007# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2008# resort.
2009
2010# Be careful to initialize this variable, since it used to be cached.
2011# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2012ac_cv_exeext=
2013# b.out is created by i960 compilers.
2014for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2015do
2016  test -f "$ac_file" || continue
2017  case $ac_file in
2018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2019        ;;
2020    conftest.$ac_ext )
2021        # This is the source file.
2022        ;;
2023    [ab].out )
2024        # We found the default executable, but exeext='' is most
2025        # certainly right.
2026        break;;
2027    *.* )
2028        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2029        # FIXME: I believe we export ac_cv_exeext for Libtool,
2030        # but it would be cool to find out if it's true.  Does anybody
2031        # maintain Libtool? --akim.
2032        export ac_cv_exeext
2033        break;;
2034    * )
2035        break;;
2036  esac
2037done
2038else
2039  echo "$as_me: failed program was:" >&5
2040sed 's/^/| /' conftest.$ac_ext >&5
2041
2042{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&5
2044echo "$as_me: error: C++ compiler cannot create executables
2045See \`config.log' for more details." >&2;}
2046   { (exit 77); exit 77; }; }
2047fi
2048
2049ac_exeext=$ac_cv_exeext
2050echo "$as_me:$LINENO: result: $ac_file" >&5
2051echo "${ECHO_T}$ac_file" >&6
2052
2053# Check the compiler produces executables we can run.  If not, either
2054# the compiler is broken, or we cross compile.
2055echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2056echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2057# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2058# If not cross compiling, check that we can run a simple program.
2059if test "$cross_compiling" != yes; then
2060  if { ac_try='./$ac_file'
2061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062  (eval $ac_try) 2>&5
2063  ac_status=$?
2064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065  (exit $ac_status); }; }; then
2066    cross_compiling=no
2067  else
2068    if test "$cross_compiling" = maybe; then
2069        cross_compiling=yes
2070    else
2071        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2072If you meant to cross compile, use \`--host'.
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: cannot run C++ compiled programs.
2075If you meant to cross compile, use \`--host'.
2076See \`config.log' for more details." >&2;}
2077   { (exit 1); exit 1; }; }
2078    fi
2079  fi
2080fi
2081echo "$as_me:$LINENO: result: yes" >&5
2082echo "${ECHO_T}yes" >&6
2083
2084rm -f a.out a.exe conftest$ac_cv_exeext b.out
2085ac_clean_files=$ac_clean_files_save
2086# Check the compiler produces executables we can run.  If not, either
2087# the compiler is broken, or we cross compile.
2088echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2089echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2090echo "$as_me:$LINENO: result: $cross_compiling" >&5
2091echo "${ECHO_T}$cross_compiling" >&6
2092
2093echo "$as_me:$LINENO: checking for suffix of executables" >&5
2094echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2096  (eval $ac_link) 2>&5
2097  ac_status=$?
2098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099  (exit $ac_status); }; then
2100  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2101# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2102# work properly (i.e., refer to `conftest.exe'), while it won't with
2103# `rm'.
2104for ac_file in conftest.exe conftest conftest.*; do
2105  test -f "$ac_file" || continue
2106  case $ac_file in
2107    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2108    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109          export ac_cv_exeext
2110          break;;
2111    * ) break;;
2112  esac
2113done
2114else
2115  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&5
2117echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2118See \`config.log' for more details." >&2;}
2119   { (exit 1); exit 1; }; }
2120fi
2121
2122rm -f conftest$ac_cv_exeext
2123echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2124echo "${ECHO_T}$ac_cv_exeext" >&6
2125
2126rm -f conftest.$ac_ext
2127EXEEXT=$ac_cv_exeext
2128ac_exeext=$EXEEXT
2129echo "$as_me:$LINENO: checking for suffix of object files" >&5
2130echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2131if test "${ac_cv_objext+set}" = set; then
2132  echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134  cat >conftest.$ac_ext <<_ACEOF
2135/* confdefs.h.  */
2136_ACEOF
2137cat confdefs.h >>conftest.$ac_ext
2138cat >>conftest.$ac_ext <<_ACEOF
2139/* end confdefs.h.  */
2140
2141int
2142main ()
2143{
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149rm -f conftest.o conftest.obj
2150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151  (eval $ac_compile) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }; then
2155  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2156  case $ac_file in
2157    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2158    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2159       break;;
2160  esac
2161done
2162else
2163  echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
2165
2166{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&5
2168echo "$as_me: error: cannot compute suffix of object files: cannot compile
2169See \`config.log' for more details." >&2;}
2170   { (exit 1); exit 1; }; }
2171fi
2172
2173rm -f conftest.$ac_cv_objext conftest.$ac_ext
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2176echo "${ECHO_T}$ac_cv_objext" >&6
2177OBJEXT=$ac_cv_objext
2178ac_objext=$OBJEXT
2179echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2180echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2181if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2182  echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184  cat >conftest.$ac_ext <<_ACEOF
2185/* confdefs.h.  */
2186_ACEOF
2187cat confdefs.h >>conftest.$ac_ext
2188cat >>conftest.$ac_ext <<_ACEOF
2189/* end confdefs.h.  */
2190
2191int
2192main ()
2193{
2194#ifndef __GNUC__
2195       choke me
2196#endif
2197
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204  (eval $ac_compile) 2>conftest.er1
2205  ac_status=$?
2206  grep -v '^ *+' conftest.er1 >conftest.err
2207  rm -f conftest.er1
2208  cat conftest.err >&5
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); } &&
2211         { ac_try='test -z "$ac_cxx_werror_flag"
2212                         || test ! -s conftest.err'
2213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214  (eval $ac_try) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; } &&
2218         { ac_try='test -s conftest.$ac_objext'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; }; then
2224  ac_compiler_gnu=yes
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229ac_compiler_gnu=no
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2233
2234fi
2235echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2236echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2237GXX=`test $ac_compiler_gnu = yes && echo yes`
2238ac_test_CXXFLAGS=${CXXFLAGS+set}
2239ac_save_CXXFLAGS=$CXXFLAGS
2240CXXFLAGS="-g"
2241echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2242echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2243if test "${ac_cv_prog_cxx_g+set}" = set; then
2244  echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246  cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h.  */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h.  */
2252
2253int
2254main ()
2255{
2256
2257  ;
2258  return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263  (eval $ac_compile) 2>conftest.er1
2264  ac_status=$?
2265  grep -v '^ *+' conftest.er1 >conftest.err
2266  rm -f conftest.er1
2267  cat conftest.err >&5
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); } &&
2270         { ac_try='test -z "$ac_cxx_werror_flag"
2271                         || test ! -s conftest.err'
2272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273  (eval $ac_try) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; } &&
2277         { ac_try='test -s conftest.$ac_objext'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; }; then
2283  ac_cv_prog_cxx_g=yes
2284else
2285  echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288ac_cv_prog_cxx_g=no
2289fi
2290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291fi
2292echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2293echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2294if test "$ac_test_CXXFLAGS" = set; then
2295  CXXFLAGS=$ac_save_CXXFLAGS
2296elif test $ac_cv_prog_cxx_g = yes; then
2297  if test "$GXX" = yes; then
2298    CXXFLAGS="-g -O2"
2299  else
2300    CXXFLAGS="-g"
2301  fi
2302else
2303  if test "$GXX" = yes; then
2304    CXXFLAGS="-O2"
2305  else
2306    CXXFLAGS=
2307  fi
2308fi
2309for ac_declaration in \
2310   '' \
2311   'extern "C" void std::exit (int) throw (); using std::exit;' \
2312   'extern "C" void std::exit (int); using std::exit;' \
2313   'extern "C" void exit (int) throw ();' \
2314   'extern "C" void exit (int);' \
2315   'void exit (int);'
2316do
2317  cat >conftest.$ac_ext <<_ACEOF
2318/* confdefs.h.  */
2319_ACEOF
2320cat confdefs.h >>conftest.$ac_ext
2321cat >>conftest.$ac_ext <<_ACEOF
2322/* end confdefs.h.  */
2323$ac_declaration
2324#include <stdlib.h>
2325int
2326main ()
2327{
2328exit (42);
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333rm -f conftest.$ac_objext
2334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335  (eval $ac_compile) 2>conftest.er1
2336  ac_status=$?
2337  grep -v '^ *+' conftest.er1 >conftest.err
2338  rm -f conftest.er1
2339  cat conftest.err >&5
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); } &&
2342         { ac_try='test -z "$ac_cxx_werror_flag"
2343                         || test ! -s conftest.err'
2344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345  (eval $ac_try) 2>&5
2346  ac_status=$?
2347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348  (exit $ac_status); }; } &&
2349         { ac_try='test -s conftest.$ac_objext'
2350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351  (eval $ac_try) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; }; then
2355  :
2356else
2357  echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360continue
2361fi
2362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2363  cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h.  */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h.  */
2369$ac_declaration
2370int
2371main ()
2372{
2373exit (42);
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380  (eval $ac_compile) 2>conftest.er1
2381  ac_status=$?
2382  grep -v '^ *+' conftest.er1 >conftest.err
2383  rm -f conftest.er1
2384  cat conftest.err >&5
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); } &&
2387         { ac_try='test -z "$ac_cxx_werror_flag"
2388                         || test ! -s conftest.err'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; } &&
2394         { ac_try='test -s conftest.$ac_objext'
2395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396  (eval $ac_try) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; }; then
2400  break
2401else
2402  echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405fi
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407done
2408rm -f conftest*
2409if test -n "$ac_declaration"; then
2410  echo '#ifdef __cplusplus' >>confdefs.h
2411  echo $ac_declaration      >>confdefs.h
2412  echo '#endif'             >>confdefs.h
2413fi
2414
2415ac_ext=c
2416ac_cpp='$CPP $CPPFLAGS'
2417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420DEPDIR="${am__leading_dot}deps"
2421
2422          ac_config_commands="$ac_config_commands depfiles"
2423
2424
2425am_make=${MAKE-make}
2426cat > confinc << 'END'
2427am__doit:
2428        @echo done
2429.PHONY: am__doit
2430END
2431# If we don't find an include directive, just comment out the code.
2432echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2433echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2434am__include="#"
2435am__quote=
2436_am_result=none
2437# First try GNU make style include.
2438echo "include confinc" > confmf
2439# We grep out `Entering directory' and `Leaving directory'
2440# messages which can occur if `w' ends up in MAKEFLAGS.
2441# In particular we don't look at `^make:' because GNU make might
2442# be invoked under some other name (usually "gmake"), in which
2443# case it prints its new name instead of `make'.
2444if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2445   am__include=include
2446   am__quote=
2447   _am_result=GNU
2448fi
2449# Now try BSD make style include.
2450if test "$am__include" = "#"; then
2451   echo '.include "confinc"' > confmf
2452   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2453      am__include=.include
2454      am__quote="\""
2455      _am_result=BSD
2456   fi
2457fi
2458
2459
2460echo "$as_me:$LINENO: result: $_am_result" >&5
2461echo "${ECHO_T}$_am_result" >&6
2462rm -f confinc confmf
2463
2464# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2465if test "${enable_dependency_tracking+set}" = set; then
2466  enableval="$enable_dependency_tracking"
2467
2468fi;
2469if test "x$enable_dependency_tracking" != xno; then
2470  am_depcomp="$ac_aux_dir/depcomp"
2471  AMDEPBACKSLASH='\'
2472fi
2473
2474
2475if test "x$enable_dependency_tracking" != xno; then
2476  AMDEP_TRUE=
2477  AMDEP_FALSE='#'
2478else
2479  AMDEP_TRUE='#'
2480  AMDEP_FALSE=
2481fi
2482
2483
2484
2485
2486depcc="$CXX"  am_compiler_list=
2487
2488echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2489echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2490if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2494  # We make a subdir and do the tests there.  Otherwise we can end up
2495  # making bogus files that we don't know about and never remove.  For
2496  # instance it was reported that on HP-UX the gcc test will end up
2497  # making a dummy file named `D' -- because `-MD' means `put the output
2498  # in D'.
2499  mkdir conftest.dir
2500  # Copy depcomp to subdir because otherwise we won't find it if we're
2501  # using a relative directory.
2502  cp "$am_depcomp" conftest.dir
2503  cd conftest.dir
2504  # We will build objects and dependencies in a subdirectory because
2505  # it helps to detect inapplicable dependency modes.  For instance
2506  # both Tru64's cc and ICC support -MD to output dependencies as a
2507  # side effect of compilation, but ICC will put the dependencies in
2508  # the current directory while Tru64 will put them in the object
2509  # directory.
2510  mkdir sub
2511
2512  am_cv_CXX_dependencies_compiler_type=none
2513  if test "$am_compiler_list" = ""; then
2514     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2515  fi
2516  for depmode in $am_compiler_list; do
2517    # Setup a source with many dependencies, because some compilers
2518    # like to wrap large dependency lists on column 80 (with \), and
2519    # we should not choose a depcomp mode which is confused by this.
2520    #
2521    # We need to recreate these files for each test, as the compiler may
2522    # overwrite some of them when testing with obscure command lines.
2523    # This happens at least with the AIX C compiler.
2524    : > sub/conftest.c
2525    for i in 1 2 3 4 5 6; do
2526      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2527      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2528      # Solaris 8's {/usr,}/bin/sh.
2529      touch sub/conftst$i.h
2530    done
2531    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2532
2533    case $depmode in
2534    nosideeffect)
2535      # after this tag, mechanisms are not by side-effect, so they'll
2536      # only be used when explicitly requested
2537      if test "x$enable_dependency_tracking" = xyes; then
2538        continue
2539      else
2540        break
2541      fi
2542      ;;
2543    none) break ;;
2544    esac
2545    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2546    # mode.  It turns out that the SunPro C++ compiler does not properly
2547    # handle `-M -o', and we need to detect this.
2548    if depmode=$depmode \
2549       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2550       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2551       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2552         >/dev/null 2>conftest.err &&
2553       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2554       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2555       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2556      # icc doesn't choke on unknown options, it will just issue warnings
2557      # or remarks (even with -Werror).  So we grep stderr for any message
2558      # that says an option was ignored or not supported.
2559      # When given -MP, icc 7.0 and 7.1 complain thusly:
2560      #   icc: Command line warning: ignoring option '-M'; no argument required
2561      # The diagnosis changed in icc 8.0:
2562      #   icc: Command line remark: option '-MP' not supported
2563      if (grep 'ignoring option' conftest.err ||
2564          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2565        am_cv_CXX_dependencies_compiler_type=$depmode
2566        break
2567      fi
2568    fi
2569  done
2570
2571  cd ..
2572  rm -rf conftest.dir
2573else
2574  am_cv_CXX_dependencies_compiler_type=none
2575fi
2576
2577fi
2578echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2579echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2580CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2581
2582
2583
2584if
2585  test "x$enable_dependency_tracking" != xno \
2586  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2587  am__fastdepCXX_TRUE=
2588  am__fastdepCXX_FALSE='#'
2589else
2590  am__fastdepCXX_TRUE='#'
2591  am__fastdepCXX_FALSE=
2592fi
2593
2594
2595if test -n "$ac_tool_prefix"; then
2596  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2597set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2598echo "$as_me:$LINENO: checking for $ac_word" >&5
2599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600if test "${ac_cv_prog_RANLIB+set}" = set; then
2601  echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603  if test -n "$RANLIB"; then
2604  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  test -z "$as_dir" && as_dir=.
2611  for ac_exec_ext in '' $ac_executable_extensions; do
2612  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615    break 2
2616  fi
2617done
2618done
2619
2620fi
2621fi
2622RANLIB=$ac_cv_prog_RANLIB
2623if test -n "$RANLIB"; then
2624  echo "$as_me:$LINENO: result: $RANLIB" >&5
2625echo "${ECHO_T}$RANLIB" >&6
2626else
2627  echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6
2629fi
2630
2631fi
2632if test -z "$ac_cv_prog_RANLIB"; then
2633  ac_ct_RANLIB=$RANLIB
2634  # Extract the first word of "ranlib", so it can be a program name with args.
2635set dummy ranlib; ac_word=$2
2636echo "$as_me:$LINENO: checking for $ac_word" >&5
2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2639  echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641  if test -n "$ac_ct_RANLIB"; then
2642  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2643else
2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647  IFS=$as_save_IFS
2648  test -z "$as_dir" && as_dir=.
2649  for ac_exec_ext in '' $ac_executable_extensions; do
2650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651    ac_cv_prog_ac_ct_RANLIB="ranlib"
2652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653    break 2
2654  fi
2655done
2656done
2657
2658  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2659fi
2660fi
2661ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2662if test -n "$ac_ct_RANLIB"; then
2663  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2664echo "${ECHO_T}$ac_ct_RANLIB" >&6
2665else
2666  echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6
2668fi
2669
2670  RANLIB=$ac_ct_RANLIB
2671else
2672  RANLIB="$ac_cv_prog_RANLIB"
2673fi
2674
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680if test -n "$ac_tool_prefix"; then
2681  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2682set dummy ${ac_tool_prefix}gcc; ac_word=$2
2683echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685if test "${ac_cv_prog_CC+set}" = set; then
2686  echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688  if test -n "$CC"; then
2689  ac_cv_prog_CC="$CC" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694  IFS=$as_save_IFS
2695  test -z "$as_dir" && as_dir=.
2696  for ac_exec_ext in '' $ac_executable_extensions; do
2697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700    break 2
2701  fi
2702done
2703done
2704
2705fi
2706fi
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709  echo "$as_me:$LINENO: result: $CC" >&5
2710echo "${ECHO_T}$CC" >&6
2711else
2712  echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
2714fi
2715
2716fi
2717if test -z "$ac_cv_prog_CC"; then
2718  ac_ct_CC=$CC
2719  # Extract the first word of "gcc", so it can be a program name with args.
2720set dummy gcc; ac_word=$2
2721echo "$as_me:$LINENO: checking for $ac_word" >&5
2722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2724  echo $ECHO_N "(cached) $ECHO_C" >&6
2725else
2726  if test -n "$ac_ct_CC"; then
2727  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734  for ac_exec_ext in '' $ac_executable_extensions; do
2735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736    ac_cv_prog_ac_ct_CC="gcc"
2737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741done
2742
2743fi
2744fi
2745ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746if test -n "$ac_ct_CC"; then
2747  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2748echo "${ECHO_T}$ac_ct_CC" >&6
2749else
2750  echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
2752fi
2753
2754  CC=$ac_ct_CC
2755else
2756  CC="$ac_cv_prog_CC"
2757fi
2758
2759if test -z "$CC"; then
2760  if test -n "$ac_tool_prefix"; then
2761  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2762set dummy ${ac_tool_prefix}cc; ac_word=$2
2763echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2765if test "${ac_cv_prog_CC+set}" = set; then
2766  echo $ECHO_N "(cached) $ECHO_C" >&6
2767else
2768  if test -n "$CC"; then
2769  ac_cv_prog_CC="$CC" # Let the user override the test.
2770else
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774  IFS=$as_save_IFS
2775  test -z "$as_dir" && as_dir=.
2776  for ac_exec_ext in '' $ac_executable_extensions; do
2777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778    ac_cv_prog_CC="${ac_tool_prefix}cc"
2779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780    break 2
2781  fi
2782done
2783done
2784
2785fi
2786fi
2787CC=$ac_cv_prog_CC
2788if test -n "$CC"; then
2789  echo "$as_me:$LINENO: result: $CC" >&5
2790echo "${ECHO_T}$CC" >&6
2791else
2792  echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
2794fi
2795
2796fi
2797if test -z "$ac_cv_prog_CC"; then
2798  ac_ct_CC=$CC
2799  # Extract the first word of "cc", so it can be a program name with args.
2800set dummy cc; ac_word=$2
2801echo "$as_me:$LINENO: checking for $ac_word" >&5
2802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2804  echo $ECHO_N "(cached) $ECHO_C" >&6
2805else
2806  if test -n "$ac_ct_CC"; then
2807  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  test -z "$as_dir" && as_dir=.
2814  for ac_exec_ext in '' $ac_executable_extensions; do
2815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816    ac_cv_prog_ac_ct_CC="cc"
2817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818    break 2
2819  fi
2820done
2821done
2822
2823fi
2824fi
2825ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826if test -n "$ac_ct_CC"; then
2827  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2828echo "${ECHO_T}$ac_ct_CC" >&6
2829else
2830  echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
2832fi
2833
2834  CC=$ac_ct_CC
2835else
2836  CC="$ac_cv_prog_CC"
2837fi
2838
2839fi
2840if test -z "$CC"; then
2841  # Extract the first word of "cc", so it can be a program name with args.
2842set dummy cc; ac_word=$2
2843echo "$as_me:$LINENO: checking for $ac_word" >&5
2844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2845if test "${ac_cv_prog_CC+set}" = set; then
2846  echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848  if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851  ac_prog_rejected=no
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857  for ac_exec_ext in '' $ac_executable_extensions; do
2858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860       ac_prog_rejected=yes
2861       continue
2862     fi
2863    ac_cv_prog_CC="cc"
2864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865    break 2
2866  fi
2867done
2868done
2869
2870if test $ac_prog_rejected = yes; then
2871  # We found a bogon in the path, so make sure we never use it.
2872  set dummy $ac_cv_prog_CC
2873  shift
2874  if test $# != 0; then
2875    # We chose a different compiler from the bogus one.
2876    # However, it has the same basename, so the bogon will be chosen
2877    # first if we set CC to just the basename; use the full file name.
2878    shift
2879    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2880  fi
2881fi
2882fi
2883fi
2884CC=$ac_cv_prog_CC
2885if test -n "$CC"; then
2886  echo "$as_me:$LINENO: result: $CC" >&5
2887echo "${ECHO_T}$CC" >&6
2888else
2889  echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891fi
2892
2893fi
2894if test -z "$CC"; then
2895  if test -n "$ac_tool_prefix"; then
2896  for ac_prog in cl
2897  do
2898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2900echo "$as_me:$LINENO: checking for $ac_word" >&5
2901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2902if test "${ac_cv_prog_CC+set}" = set; then
2903  echo $ECHO_N "(cached) $ECHO_C" >&6
2904else
2905  if test -n "$CC"; then
2906  ac_cv_prog_CC="$CC" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  test -z "$as_dir" && as_dir=.
2913  for ac_exec_ext in '' $ac_executable_extensions; do
2914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920done
2921
2922fi
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  echo "$as_me:$LINENO: result: $CC" >&5
2927echo "${ECHO_T}$CC" >&6
2928else
2929  echo "$as_me:$LINENO: result: no" >&5
2930echo "${ECHO_T}no" >&6
2931fi
2932
2933    test -n "$CC" && break
2934  done
2935fi
2936if test -z "$CC"; then
2937  ac_ct_CC=$CC
2938  for ac_prog in cl
2939do
2940  # Extract the first word of "$ac_prog", so it can be a program name with args.
2941set dummy $ac_prog; ac_word=$2
2942echo "$as_me:$LINENO: checking for $ac_word" >&5
2943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2945  echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947  if test -n "$ac_ct_CC"; then
2948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955  for ac_exec_ext in '' $ac_executable_extensions; do
2956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_ac_ct_CC="$ac_prog"
2958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962done
2963
2964fi
2965fi
2966ac_ct_CC=$ac_cv_prog_ac_ct_CC
2967if test -n "$ac_ct_CC"; then
2968  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2969echo "${ECHO_T}$ac_ct_CC" >&6
2970else
2971  echo "$as_me:$LINENO: result: no" >&5
2972echo "${ECHO_T}no" >&6
2973fi
2974
2975  test -n "$ac_ct_CC" && break
2976done
2977
2978  CC=$ac_ct_CC
2979fi
2980
2981fi
2982
2983
2984test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: no acceptable C compiler found in \$PATH
2987See \`config.log' for more details." >&2;}
2988   { (exit 1); exit 1; }; }
2989
2990# Provide some information about the compiler.
2991echo "$as_me:$LINENO:" \
2992     "checking for C compiler version" >&5
2993ac_compiler=`set X $ac_compile; echo $2`
2994{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2995  (eval $ac_compiler --version </dev/null >&5) 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }
2999{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3000  (eval $ac_compiler -v </dev/null >&5) 2>&5
3001  ac_status=$?
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); }
3004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3005  (eval $ac_compiler -V </dev/null >&5) 2>&5
3006  ac_status=$?
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); }
3009
3010echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3011echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3012if test "${ac_cv_c_compiler_gnu+set}" = set; then
3013  echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015  cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h.  */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025#ifndef __GNUC__
3026       choke me
3027#endif
3028
3029  ;
3030  return 0;
3031}
3032_ACEOF
3033rm -f conftest.$ac_objext
3034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035  (eval $ac_compile) 2>conftest.er1
3036  ac_status=$?
3037  grep -v '^ *+' conftest.er1 >conftest.err
3038  rm -f conftest.er1
3039  cat conftest.err >&5
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); } &&
3042         { ac_try='test -z "$ac_c_werror_flag"
3043                         || test ! -s conftest.err'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; } &&
3049         { ac_try='test -s conftest.$ac_objext'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; }; then
3055  ac_compiler_gnu=yes
3056else
3057  echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060ac_compiler_gnu=no
3061fi
3062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064
3065fi
3066echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3067echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3068GCC=`test $ac_compiler_gnu = yes && echo yes`
3069ac_test_CFLAGS=${CFLAGS+set}
3070ac_save_CFLAGS=$CFLAGS
3071CFLAGS="-g"
3072echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3074if test "${ac_cv_prog_cc_g+set}" = set; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077  cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083
3084int
3085main ()
3086{
3087
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094  (eval $ac_compile) 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } &&
3101         { ac_try='test -z "$ac_c_werror_flag"
3102                         || test ! -s conftest.err'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; } &&
3108         { ac_try='test -s conftest.$ac_objext'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; }; then
3114  ac_cv_prog_cc_g=yes
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119ac_cv_prog_cc_g=no
3120fi
3121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3122fi
3123echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3124echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3125if test "$ac_test_CFLAGS" = set; then
3126  CFLAGS=$ac_save_CFLAGS
3127elif test $ac_cv_prog_cc_g = yes; then
3128  if test "$GCC" = yes; then
3129    CFLAGS="-g -O2"
3130  else
3131    CFLAGS="-g"
3132  fi
3133else
3134  if test "$GCC" = yes; then
3135    CFLAGS="-O2"
3136  else
3137    CFLAGS=
3138  fi
3139fi
3140echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3141echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3142if test "${ac_cv_prog_cc_stdc+set}" = set; then
3143  echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145  ac_cv_prog_cc_stdc=no
3146ac_save_CC=$CC
3147cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h.  */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h.  */
3153#include <stdarg.h>
3154#include <stdio.h>
3155#include <sys/types.h>
3156#include <sys/stat.h>
3157/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3158struct buf { int x; };
3159FILE * (*rcsopen) (struct buf *, struct stat *, int);
3160static char *e (p, i)
3161     char **p;
3162     int i;
3163{
3164  return p[i];
3165}
3166static char *f (char * (*g) (char **, int), char **p, ...)
3167{
3168  char *s;
3169  va_list v;
3170  va_start (v,p);
3171  s = g (p, va_arg (v,int));
3172  va_end (v);
3173  return s;
3174}
3175
3176/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3177   function prototypes and stuff, but not '\xHH' hex character constants.
3178   These don't provoke an error unfortunately, instead are silently treated
3179   as 'x'.  The following induces an error, until -std1 is added to get
3180   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3181   array size at least.  It's necessary to write '\x00'==0 to get something
3182   that's true only with -std1.  */
3183int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3184
3185int test (int i, double x);
3186struct s1 {int (*f) (int a);};
3187struct s2 {int (*f) (double a);};
3188int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3189int argc;
3190char **argv;
3191int
3192main ()
3193{
3194return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3195  ;
3196  return 0;
3197}
3198_ACEOF
3199# Don't try gcc -ansi; that turns off useful extensions and
3200# breaks some systems' header files.
3201# AIX                   -qlanglvl=ansi
3202# Ultrix and OSF/1      -std1
3203# HP-UX 10.20 and later -Ae
3204# HP-UX older versions  -Aa -D_HPUX_SOURCE
3205# SVR4                  -Xc -D__EXTENSIONS__
3206for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3207do
3208  CC="$ac_save_CC $ac_arg"
3209  rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211  (eval $ac_compile) 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218         { ac_try='test -z "$ac_c_werror_flag"
3219                         || test ! -s conftest.err'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; } &&
3225         { ac_try='test -s conftest.$ac_objext'
3226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227  (eval $ac_try) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  ac_cv_prog_cc_stdc=$ac_arg
3232break
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237fi
3238rm -f conftest.err conftest.$ac_objext
3239done
3240rm -f conftest.$ac_ext conftest.$ac_objext
3241CC=$ac_save_CC
3242
3243fi
3244
3245case "x$ac_cv_prog_cc_stdc" in
3246  x|xno)
3247    echo "$as_me:$LINENO: result: none needed" >&5
3248echo "${ECHO_T}none needed" >&6 ;;
3249  *)
3250    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3251echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3252    CC="$CC $ac_cv_prog_cc_stdc" ;;
3253esac
3254
3255# Some people use a C++ compiler to compile C.  Since we use `exit',
3256# in C++ we need to declare it.  In case someone uses the same compiler
3257# for both compiling C and C++ we need to have the C++ compiler decide
3258# the declaration of exit, since it's the most demanding environment.
3259cat >conftest.$ac_ext <<_ACEOF
3260#ifndef __cplusplus
3261  choke me
3262#endif
3263_ACEOF
3264rm -f conftest.$ac_objext
3265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266  (eval $ac_compile) 2>conftest.er1
3267  ac_status=$?
3268  grep -v '^ *+' conftest.er1 >conftest.err
3269  rm -f conftest.er1
3270  cat conftest.err >&5
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); } &&
3273         { ac_try='test -z "$ac_c_werror_flag"
3274                         || test ! -s conftest.err'
3275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276  (eval $ac_try) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }; } &&
3280         { ac_try='test -s conftest.$ac_objext'
3281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282  (eval $ac_try) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; }; then
3286  for ac_declaration in \
3287   '' \
3288   'extern "C" void std::exit (int) throw (); using std::exit;' \
3289   'extern "C" void std::exit (int); using std::exit;' \
3290   'extern "C" void exit (int) throw ();' \
3291   'extern "C" void exit (int);' \
3292   'void exit (int);'
3293do
3294  cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300$ac_declaration
3301#include <stdlib.h>
3302int
3303main ()
3304{
3305exit (42);
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext
3311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312  (eval $ac_compile) 2>conftest.er1
3313  ac_status=$?
3314  grep -v '^ *+' conftest.er1 >conftest.err
3315  rm -f conftest.er1
3316  cat conftest.err >&5
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); } &&
3319         { ac_try='test -z "$ac_c_werror_flag"
3320                         || test ! -s conftest.err'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; } &&
3326         { ac_try='test -s conftest.$ac_objext'
3327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328  (eval $ac_try) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }; }; then
3332  :
3333else
3334  echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337continue
3338fi
3339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340  cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346$ac_declaration
3347int
3348main ()
3349{
3350exit (42);
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357  (eval $ac_compile) 2>conftest.er1
3358  ac_status=$?
3359  grep -v '^ *+' conftest.er1 >conftest.err
3360  rm -f conftest.er1
3361  cat conftest.err >&5
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } &&
3364         { ac_try='test -z "$ac_c_werror_flag"
3365                         || test ! -s conftest.err'
3366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367  (eval $ac_try) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); }; } &&
3371         { ac_try='test -s conftest.$ac_objext'
3372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373  (eval $ac_try) 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }; }; then
3377  break
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382fi
3383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3384done
3385rm -f conftest*
3386if test -n "$ac_declaration"; then
3387  echo '#ifdef __cplusplus' >>confdefs.h
3388  echo $ac_declaration      >>confdefs.h
3389  echo '#endif'             >>confdefs.h
3390fi
3391
3392else
3393  echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396fi
3397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3398ac_ext=c
3399ac_cpp='$CPP $CPPFLAGS'
3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403
3404depcc="$CC"   am_compiler_list=
3405
3406echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3408if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412  # We make a subdir and do the tests there.  Otherwise we can end up
3413  # making bogus files that we don't know about and never remove.  For
3414  # instance it was reported that on HP-UX the gcc test will end up
3415  # making a dummy file named `D' -- because `-MD' means `put the output
3416  # in D'.
3417  mkdir conftest.dir
3418  # Copy depcomp to subdir because otherwise we won't find it if we're
3419  # using a relative directory.
3420  cp "$am_depcomp" conftest.dir
3421  cd conftest.dir
3422  # We will build objects and dependencies in a subdirectory because
3423  # it helps to detect inapplicable dependency modes.  For instance
3424  # both Tru64's cc and ICC support -MD to output dependencies as a
3425  # side effect of compilation, but ICC will put the dependencies in
3426  # the current directory while Tru64 will put them in the object
3427  # directory.
3428  mkdir sub
3429
3430  am_cv_CC_dependencies_compiler_type=none
3431  if test "$am_compiler_list" = ""; then
3432     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433  fi
3434  for depmode in $am_compiler_list; do
3435    # Setup a source with many dependencies, because some compilers
3436    # like to wrap large dependency lists on column 80 (with \), and
3437    # we should not choose a depcomp mode which is confused by this.
3438    #
3439    # We need to recreate these files for each test, as the compiler may
3440    # overwrite some of them when testing with obscure command lines.
3441    # This happens at least with the AIX C compiler.
3442    : > sub/conftest.c
3443    for i in 1 2 3 4 5 6; do
3444      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446      # Solaris 8's {/usr,}/bin/sh.
3447      touch sub/conftst$i.h
3448    done
3449    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
3451    case $depmode in
3452    nosideeffect)
3453      # after this tag, mechanisms are not by side-effect, so they'll
3454      # only be used when explicitly requested
3455      if test "x$enable_dependency_tracking" = xyes; then
3456        continue
3457      else
3458        break
3459      fi
3460      ;;
3461    none) break ;;
3462    esac
3463    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464    # mode.  It turns out that the SunPro C++ compiler does not properly
3465    # handle `-M -o', and we need to detect this.
3466    if depmode=$depmode \
3467       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470         >/dev/null 2>conftest.err &&
3471       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474      # icc doesn't choke on unknown options, it will just issue warnings
3475      # or remarks (even with -Werror).  So we grep stderr for any message
3476      # that says an option was ignored or not supported.
3477      # When given -MP, icc 7.0 and 7.1 complain thusly:
3478      #   icc: Command line warning: ignoring option '-M'; no argument required
3479      # The diagnosis changed in icc 8.0:
3480      #   icc: Command line remark: option '-MP' not supported
3481      if (grep 'ignoring option' conftest.err ||
3482          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483        am_cv_CC_dependencies_compiler_type=$depmode
3484        break
3485      fi
3486    fi
3487  done
3488
3489  cd ..
3490  rm -rf conftest.dir
3491else
3492  am_cv_CC_dependencies_compiler_type=none
3493fi
3494
3495fi
3496echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3498CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499
3500
3501
3502if
3503  test "x$enable_dependency_tracking" != xno \
3504  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3505  am__fastdepCC_TRUE=
3506  am__fastdepCC_FALSE='#'
3507else
3508  am__fastdepCC_TRUE='#'
3509  am__fastdepCC_FALSE=
3510fi
3511
3512
3513
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3520echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3521# On Suns, sometimes $CPP names a directory.
3522if test -n "$CPP" && test -d "$CPP"; then
3523  CPP=
3524fi
3525if test -z "$CPP"; then
3526  if test "${ac_cv_prog_CPP+set}" = set; then
3527  echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529      # Double quotes because CPP needs to be expanded
3530    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3531    do
3532      ac_preproc_ok=false
3533for ac_c_preproc_warn_flag in '' yes
3534do
3535  # Use a header file that comes with gcc, so configuring glibc
3536  # with a fresh cross-compiler works.
3537  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538  # <limits.h> exists even on freestanding compilers.
3539  # On the NeXT, cc -E runs the code through the compiler's parser,
3540  # not just through cpp. "Syntax error" is here to catch this case.
3541  cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h.  */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h.  */
3547#ifdef __STDC__
3548# include <limits.h>
3549#else
3550# include <assert.h>
3551#endif
3552                     Syntax error
3553_ACEOF
3554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3555  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3556  ac_status=$?
3557  grep -v '^ *+' conftest.er1 >conftest.err
3558  rm -f conftest.er1
3559  cat conftest.err >&5
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); } >/dev/null; then
3562  if test -s conftest.err; then
3563    ac_cpp_err=$ac_c_preproc_warn_flag
3564    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565  else
3566    ac_cpp_err=
3567  fi
3568else
3569  ac_cpp_err=yes
3570fi
3571if test -z "$ac_cpp_err"; then
3572  :
3573else
3574  echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577  # Broken: fails on valid input.
3578continue
3579fi
3580rm -f conftest.err conftest.$ac_ext
3581
3582  # OK, works on sane cases.  Now check whether non-existent headers
3583  # can be detected and how.
3584  cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590#include <ac_nonexistent.h>
3591_ACEOF
3592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3593  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3594  ac_status=$?
3595  grep -v '^ *+' conftest.er1 >conftest.err
3596  rm -f conftest.er1
3597  cat conftest.err >&5
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); } >/dev/null; then
3600  if test -s conftest.err; then
3601    ac_cpp_err=$ac_c_preproc_warn_flag
3602    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3603  else
3604    ac_cpp_err=
3605  fi
3606else
3607  ac_cpp_err=yes
3608fi
3609if test -z "$ac_cpp_err"; then
3610  # Broken: success on invalid input.
3611continue
3612else
3613  echo "$as_me: failed program was:" >&5
3614sed 's/^/| /' conftest.$ac_ext >&5
3615
3616  # Passes both tests.
3617ac_preproc_ok=:
3618break
3619fi
3620rm -f conftest.err conftest.$ac_ext
3621
3622done
3623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3624rm -f conftest.err conftest.$ac_ext
3625if $ac_preproc_ok; then
3626  break
3627fi
3628
3629    done
3630    ac_cv_prog_CPP=$CPP
3631
3632fi
3633  CPP=$ac_cv_prog_CPP
3634else
3635  ac_cv_prog_CPP=$CPP
3636fi
3637echo "$as_me:$LINENO: result: $CPP" >&5
3638echo "${ECHO_T}$CPP" >&6
3639ac_preproc_ok=false
3640for ac_c_preproc_warn_flag in '' yes
3641do
3642  # Use a header file that comes with gcc, so configuring glibc
3643  # with a fresh cross-compiler works.
3644  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3645  # <limits.h> exists even on freestanding compilers.
3646  # On the NeXT, cc -E runs the code through the compiler's parser,
3647  # not just through cpp. "Syntax error" is here to catch this case.
3648  cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654#ifdef __STDC__
3655# include <limits.h>
3656#else
3657# include <assert.h>
3658#endif
3659                     Syntax error
3660_ACEOF
3661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3662  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3663  ac_status=$?
3664  grep -v '^ *+' conftest.er1 >conftest.err
3665  rm -f conftest.er1
3666  cat conftest.err >&5
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); } >/dev/null; then
3669  if test -s conftest.err; then
3670    ac_cpp_err=$ac_c_preproc_warn_flag
3671    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672  else
3673    ac_cpp_err=
3674  fi
3675else
3676  ac_cpp_err=yes
3677fi
3678if test -z "$ac_cpp_err"; then
3679  :
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684  # Broken: fails on valid input.
3685continue
3686fi
3687rm -f conftest.err conftest.$ac_ext
3688
3689  # OK, works on sane cases.  Now check whether non-existent headers
3690  # can be detected and how.
3691  cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h.  */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h.  */
3697#include <ac_nonexistent.h>
3698_ACEOF
3699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3700  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } >/dev/null; then
3707  if test -s conftest.err; then
3708    ac_cpp_err=$ac_c_preproc_warn_flag
3709    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710  else
3711    ac_cpp_err=
3712  fi
3713else
3714  ac_cpp_err=yes
3715fi
3716if test -z "$ac_cpp_err"; then
3717  # Broken: success on invalid input.
3718continue
3719else
3720  echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723  # Passes both tests.
3724ac_preproc_ok=:
3725break
3726fi
3727rm -f conftest.err conftest.$ac_ext
3728
3729done
3730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731rm -f conftest.err conftest.$ac_ext
3732if $ac_preproc_ok; then
3733  :
3734else
3735  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&5
3737echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3738See \`config.log' for more details." >&2;}
3739   { (exit 1); exit 1; }; }
3740fi
3741
3742ac_ext=c
3743ac_cpp='$CPP $CPPFLAGS'
3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
3748
3749echo "$as_me:$LINENO: checking for egrep" >&5
3750echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3751if test "${ac_cv_prog_egrep+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3755    then ac_cv_prog_egrep='grep -E'
3756    else ac_cv_prog_egrep='egrep'
3757    fi
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3760echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3761 EGREP=$ac_cv_prog_egrep
3762
3763
3764echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3765echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3766if test "${ac_cv_header_stdc+set}" = set; then
3767  echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769  cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775#include <stdlib.h>
3776#include <stdarg.h>
3777#include <string.h>
3778#include <float.h>
3779
3780int
3781main ()
3782{
3783
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext
3789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790  (eval $ac_compile) 2>conftest.er1
3791  ac_status=$?
3792  grep -v '^ *+' conftest.er1 >conftest.err
3793  rm -f conftest.er1
3794  cat conftest.err >&5
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); } &&
3797         { ac_try='test -z "$ac_c_werror_flag"
3798                         || test ! -s conftest.err'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; } &&
3804         { ac_try='test -s conftest.$ac_objext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  ac_cv_header_stdc=yes
3811else
3812  echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815ac_cv_header_stdc=no
3816fi
3817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818
3819if test $ac_cv_header_stdc = yes; then
3820  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3821  cat >conftest.$ac_ext <<_ACEOF
3822/* confdefs.h.  */
3823_ACEOF
3824cat confdefs.h >>conftest.$ac_ext
3825cat >>conftest.$ac_ext <<_ACEOF
3826/* end confdefs.h.  */
3827#include <string.h>
3828
3829_ACEOF
3830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831  $EGREP "memchr" >/dev/null 2>&1; then
3832  :
3833else
3834  ac_cv_header_stdc=no
3835fi
3836rm -f conftest*
3837
3838fi
3839
3840if test $ac_cv_header_stdc = yes; then
3841  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3842  cat >conftest.$ac_ext <<_ACEOF
3843/* confdefs.h.  */
3844_ACEOF
3845cat confdefs.h >>conftest.$ac_ext
3846cat >>conftest.$ac_ext <<_ACEOF
3847/* end confdefs.h.  */
3848#include <stdlib.h>
3849
3850_ACEOF
3851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852  $EGREP "free" >/dev/null 2>&1; then
3853  :
3854else
3855  ac_cv_header_stdc=no
3856fi
3857rm -f conftest*
3858
3859fi
3860
3861if test $ac_cv_header_stdc = yes; then
3862  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3863  if test "$cross_compiling" = yes; then
3864  :
3865else
3866  cat >conftest.$ac_ext <<_ACEOF
3867/* confdefs.h.  */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h.  */
3872#include <ctype.h>
3873#if ((' ' & 0x0FF) == 0x020)
3874# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3875# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3876#else
3877# define ISLOWER(c) \
3878                   (('a' <= (c) && (c) <= 'i') \
3879                     || ('j' <= (c) && (c) <= 'r') \
3880                     || ('s' <= (c) && (c) <= 'z'))
3881# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3882#endif
3883
3884#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3885int
3886main ()
3887{
3888  int i;
3889  for (i = 0; i < 256; i++)
3890    if (XOR (islower (i), ISLOWER (i))
3891        || toupper (i) != TOUPPER (i))
3892      exit(2);
3893  exit (0);
3894}
3895_ACEOF
3896rm -f conftest$ac_exeext
3897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3898  (eval $ac_link) 2>&5
3899  ac_status=$?
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903  (eval $ac_try) 2>&5
3904  ac_status=$?
3905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906  (exit $ac_status); }; }; then
3907  :
3908else
3909  echo "$as_me: program exited with status $ac_status" >&5
3910echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913( exit $ac_status )
3914ac_cv_header_stdc=no
3915fi
3916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3917fi
3918fi
3919fi
3920echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3921echo "${ECHO_T}$ac_cv_header_stdc" >&6
3922if test $ac_cv_header_stdc = yes; then
3923
3924cat >>confdefs.h <<\_ACEOF
3925#define STDC_HEADERS 1
3926_ACEOF
3927
3928fi
3929
3930
3931## THIS IS OUR DEFAULT-DATA-DIRECTORY
3932
3933##################################
3934## CHECKING  OPTIONAL ARGUMENTS ##
3935##################################
3936#----------------#
3937# Data-Directory #
3938#----------------#
3939DATA_DIR=$datadir
3940echo \$\{prefix\}
3941if test $DATA_DIR = \$\{prefix\}/share ; then
3942        echo "not given"
3943        DATA_DIR=/usr/share
3944else
3945        echo "given: $DATA_DIR"
3946fi
3947
3948cat >>confdefs.h <<_ACEOF
3949#define DATADIR "$DATA_DIR"
3950_ACEOF
3951
3952
3953#-----------------#
3954# shared-lib-path #
3955#-----------------#
3956SHARED_LIB_PATH=no
3957echo "$as_me:$LINENO: checking shared lib path" >&5
3958echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3959
3960# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3961if test "${with_shared_lib_path+set}" = set; then
3962  withval="$with_shared_lib_path"
3963  SHARED_LIB_PATH=$withval
3964fi;
3965if test x$SHARED_LIB_PATH != xno; then
3966        echo "set to $SHARED_LIB_PATH"
3967else
3968        echo "no"
3969fi
3970
3971
3972#-----------------#
3973# DEBUG-statement #
3974#-----------------#
3975DEBUG=no
3976echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3977echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3978# Check whether --enable-debug or --disable-debug was given.
3979if test "${enable_debug+set}" = set; then
3980  enableval="$enable_debug"
3981  DEBUG=$enableval
3982fi;
3983
3984if test x$DEBUG = xno; then
3985        echo "no"
3986        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3987        DEBUG=4
3988elif test x$DEBUG = xyes; then
3989        echo "yes"
3990        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3991        DEBUG=4
3992else
3993        echo "yes: setting debuglevel to to $DEBUG"
3994fi
3995
3996cat >>confdefs.h <<_ACEOF
3997#define DEBUG $DEBUG
3998_ACEOF
3999
4000
4001
4002#---------------#
4003# Modular Debug #
4004#---------------#
4005MODULAR_DEBUG=yes
4006echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4007echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4008# Check whether --enable-modular-debug or --disable-modular-debug was given.
4009if test "${enable_modular_debug+set}" = set; then
4010  enableval="$enable_modular_debug"
4011  MODULAR_DEBUG=$enableval
4012fi;
4013
4014if test x$MODULAR_DEBUG = xno; then
4015        echo "no"
4016elif test x$MODULAR_DEBUG = xyes; then
4017        echo "yes"
4018
4019cat >>confdefs.h <<_ACEOF
4020#define MODULAR_DEBUG 1
4021_ACEOF
4022
4023fi
4024
4025#--------------#
4026# GTK-disabled #
4027#--------------#
4028echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4029echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4030# Check whether --enable-gtk or --disable-gtk was given.
4031if test "${enable_gtk+set}" = set; then
4032  enableval="$enable_gtk"
4033  def_gtk=no
4034else
4035  def_gtk=yes
4036fi;
4037if test x$def_gtk = xyes; then
4038  echo "yes"
4039fi
4040if test x$def_gtk = xno; then
4041  echo "no"
4042fi
4043
4044#------------------#
4045# libCurl-disabled #
4046#------------------#
4047echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4048echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4049# Check whether --enable-curl or --disable-curl was given.
4050if test "${enable_curl+set}" = set; then
4051  enableval="$enable_curl"
4052  def_curl=no
4053else
4054  def_curl=yes
4055fi;
4056if test x$def_curl = xyes; then
4057  echo "yes"
4058fi
4059if test x$def_curl = xno; then
4060  echo "no"
4061fi
4062
4063#-------------------#
4064# SubProject-enable #
4065#-------------------#
4066def_sub_projects=no
4067echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4068echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4069
4070# Check whether --with-sub-projects or --without-sub-projects was given.
4071if test "${with_sub_projects+set}" = set; then
4072  withval="$with_sub_projects"
4073  def_sub_projects=yes
4074fi;
4075if test x$def_sub_projects = xyes; then
4076  echo "yes"
4077fi
4078if test x$def_sub_projects = xno; then
4079  echo "no"
4080fi
4081
4082
4083if test x$def_sub_projects = xyes; then
4084  SUB_PROJECTS_TRUE=
4085  SUB_PROJECTS_FALSE='#'
4086else
4087  SUB_PROJECTS_TRUE='#'
4088  SUB_PROJECTS_FALSE=
4089fi
4090
4091
4092#-------------------#
4093# Profiling Enabled #
4094#-------------------#
4095def_profiling=no
4096echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4097echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4098# Check whether --enable-profile or --disable-profile was given.
4099if test "${enable_profile+set}" = set; then
4100  enableval="$enable_profile"
4101  def_profiling=yes
4102fi;
4103if test x$def_profiling = xyes; then
4104  echo "yes"
4105  CXXFLAGS="$CXXFLAGS -pg"
4106fi
4107if test x$def_profiling = xno; then
4108  echo "no"
4109fi
4110
4111#----------------#
4112# efence Enabled #
4113#----------------#
4114def_efence=no
4115echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4116echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4117# Check whether --enable-efence or --disable-efence was given.
4118if test "${enable_efence+set}" = set; then
4119  enableval="$enable_efence"
4120  def_efence=yes
4121fi;
4122if test x$def_efence = xyes; then
4123  echo "yes"
4124fi
4125if test x$def_efence = xno; then
4126  echo "no"
4127fi
4128
4129#----------------------#
4130# Documentation-enable #
4131#----------------------#
4132def_documentation=no
4133echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4134echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4135# Check whether --enable-documentation or --disable-documentation was given.
4136if test "${enable_documentation+set}" = set; then
4137  enableval="$enable_documentation"
4138  def_documentation=yes
4139fi;
4140if test x$def_documentation = xyes; then
4141  echo "yes"
4142fi
4143if test x$def_documentation = xno; then
4144  echo "no"
4145fi
4146
4147
4148if test x$def_documentation = xyes; then
4149  DOCUMENTATION_TRUE=
4150  DOCUMENTATION_FALSE='#'
4151else
4152  DOCUMENTATION_TRUE='#'
4153  DOCUMENTATION_FALSE=
4154fi
4155
4156
4157
4158
4159#---------------------------#
4160# WITH TARDIS (convenience) #
4161#---------------------------#
4162def_tardis=no
4163echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5
4164echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6
4165
4166# Check whether --with-tardi or --without-tardi was given.
4167if test "${with_tardi+set}" = set; then
4168  withval="$with_tardi"
4169  def_tardis=yes
4170fi;
4171if test x$def_tardis = xyes; then
4172  PREFIX=/usr/pack/gamelibs-1.0-to
4173  CPPFLAGS="$CPPFLAGS -I$PREFIX/include"
4174  LDFLAGS="$LDFLAGS -L$PREFIX/$ARCH/lib -Wl,-rpath -Wl,$PREFIX/$ARCH/lib"
4175  echo "yes"
4176fi
4177if test x$def_tardis = xno; then
4178  echo "no"
4179fi
4180
4181#######################
4182## PROGRAMM CHECKING ##
4183## 3. party Programs ##
4184#######################
4185
4186#----------------------#
4187# checking for Doxygen #
4188#----------------------#
4189# Extract the first word of "doxygen", so it can be a program name with args.
4190set dummy doxygen; ac_word=$2
4191echo "$as_me:$LINENO: checking for $ac_word" >&5
4192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4193if test "${ac_cv_path_DOXYGEN+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  case $DOXYGEN in
4197  [\\/]* | ?:[\\/]*)
4198  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4199  ;;
4200  *)
4201  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204  IFS=$as_save_IFS
4205  test -z "$as_dir" && as_dir=.
4206  for ac_exec_ext in '' $ac_executable_extensions; do
4207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4208    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210    break 2
4211  fi
4212done
4213done
4214
4215  ;;
4216esac
4217fi
4218DOXYGEN=$ac_cv_path_DOXYGEN
4219
4220if test -n "$DOXYGEN"; then
4221  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4222echo "${ECHO_T}$DOXYGEN" >&6
4223else
4224  echo "$as_me:$LINENO: result: no" >&5
4225echo "${ECHO_T}no" >&6
4226fi
4227
4228
4229
4230if test $DOXYGEN; then
4231  DOXYGEN_TRUE=
4232  DOXYGEN_FALSE='#'
4233else
4234  DOXYGEN_TRUE='#'
4235  DOXYGEN_FALSE=
4236fi
4237
4238
4239#--------------------#
4240# checking for gprof #
4241#--------------------#
4242# Extract the first word of "gprof", so it can be a program name with args.
4243set dummy gprof; ac_word=$2
4244echo "$as_me:$LINENO: checking for $ac_word" >&5
4245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246if test "${ac_cv_path_GPROF+set}" = set; then
4247  echo $ECHO_N "(cached) $ECHO_C" >&6
4248else
4249  case $GPROF in
4250  [\\/]* | ?:[\\/]*)
4251  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4252  ;;
4253  *)
4254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257  IFS=$as_save_IFS
4258  test -z "$as_dir" && as_dir=.
4259  for ac_exec_ext in '' $ac_executable_extensions; do
4260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263    break 2
4264  fi
4265done
4266done
4267
4268  ;;
4269esac
4270fi
4271GPROF=$ac_cv_path_GPROF
4272
4273if test -n "$GPROF"; then
4274  echo "$as_me:$LINENO: result: $GPROF" >&5
4275echo "${ECHO_T}$GPROF" >&6
4276else
4277  echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279fi
4280
4281
4282#-------------------------#
4283# checking for pkg-config #
4284#-------------------------#
4285if test x$def_gtk = xyes; then
4286 # Extract the first word of "pkg-config", so it can be a program name with args.
4287set dummy pkg-config; ac_word=$2
4288echo "$as_me:$LINENO: checking for $ac_word" >&5
4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293  case $PKG_CONFIG in
4294  [\\/]* | ?:[\\/]*)
4295  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4296  ;;
4297  *)
4298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
4300do
4301  IFS=$as_save_IFS
4302  test -z "$as_dir" && as_dir=.
4303  for ac_exec_ext in '' $ac_executable_extensions; do
4304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307    break 2
4308  fi
4309done
4310done
4311
4312  ;;
4313esac
4314fi
4315PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4316
4317if test -n "$PKG_CONFIG"; then
4318  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4319echo "${ECHO_T}$PKG_CONFIG" >&6
4320else
4321  echo "$as_me:$LINENO: result: no" >&5
4322echo "${ECHO_T}no" >&6
4323fi
4324
4325fi
4326
4327
4328#########################
4329## CHECKING FOR SYSTEM ##
4330#########################
4331## here the system is checked, and openGL is included
4332## also checking for SDL on differen Systems
4333
4334echo "$as_me:$LINENO: checking for System" >&5
4335echo $ECHO_N "checking for System... $ECHO_C" >&6
4336## checking for openGL-environment and other sys-specific parameters
4337case "$target" in
4338
4339###########
4340#---------#
4341# WINDOWS #
4342#---------#
4343###########
4344  *-*-mingw32*)
4345echo "mingw-WINDOWS detected"
4346
4347CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4348
4349    mingw="yes"
4350    MSBITFIELDS="-mms-bitfields"
4351    MWINDOWS="-mwindows"
4352
4353#--------#
4354# MIN-GW #
4355#--------#
4356# checking for mingw32
4357    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4358echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4359if test "${ac_cv_lib_mingw32_main+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  ac_check_lib_save_LIBS=$LIBS
4363LIBS="-lmingw32  $LIBS"
4364cat >conftest.$ac_ext <<_ACEOF
4365/* confdefs.h.  */
4366_ACEOF
4367cat confdefs.h >>conftest.$ac_ext
4368cat >>conftest.$ac_ext <<_ACEOF
4369/* end confdefs.h.  */
4370
4371
4372int
4373main ()
4374{
4375main ();
4376  ;
4377  return 0;
4378}
4379_ACEOF
4380rm -f conftest.$ac_objext conftest$ac_exeext
4381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382  (eval $ac_link) 2>conftest.er1
4383  ac_status=$?
4384  grep -v '^ *+' conftest.er1 >conftest.err
4385  rm -f conftest.er1
4386  cat conftest.err >&5
4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388  (exit $ac_status); } &&
4389         { ac_try='test -z "$ac_c_werror_flag"
4390                         || test ! -s conftest.err'
4391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392  (eval $ac_try) 2>&5
4393  ac_status=$?
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); }; } &&
4396         { ac_try='test -s conftest$ac_exeext'
4397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398  (eval $ac_try) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; }; then
4402  ac_cv_lib_mingw32_main=yes
4403else
4404  echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
4407ac_cv_lib_mingw32_main=no
4408fi
4409rm -f conftest.err conftest.$ac_objext \
4410      conftest$ac_exeext conftest.$ac_ext
4411LIBS=$ac_check_lib_save_LIBS
4412fi
4413echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4414echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4415if test $ac_cv_lib_mingw32_main = yes; then
4416  FOUND_mingw32=yes
4417fi
4418
4419    if test x$FOUND_mingw32 = xyes; then
4420        LIBS="$LIBS -lmingw32"
4421    fi
4422
4423#---------------#
4424# open-GL (win) #
4425#---------------#
4426# checking gl header
4427   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4438                  inttypes.h stdint.h unistd.h
4439do
4440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4441echo "$as_me:$LINENO: checking for $ac_header" >&5
4442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h.  */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h.  */
4452$ac_includes_default
4453
4454#include <$ac_header>
4455_ACEOF
4456rm -f conftest.$ac_objext
4457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458  (eval $ac_compile) 2>conftest.er1
4459  ac_status=$?
4460  grep -v '^ *+' conftest.er1 >conftest.err
4461  rm -f conftest.er1
4462  cat conftest.err >&5
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); } &&
4465         { ac_try='test -z "$ac_c_werror_flag"
4466                         || test ! -s conftest.err'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; } &&
4472         { ac_try='test -s conftest.$ac_objext'
4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474  (eval $ac_try) 2>&5
4475  ac_status=$?
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; }; then
4478  eval "$as_ac_Header=yes"
4479else
4480  echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483eval "$as_ac_Header=no"
4484fi
4485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4486fi
4487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4489if test `eval echo '${'$as_ac_Header'}'` = yes; then
4490  cat >>confdefs.h <<_ACEOF
4491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4492_ACEOF
4493
4494fi
4495
4496done
4497
4498
4499
4500for ac_header in GL/gl.h
4501do
4502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4503if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504  echo "$as_me:$LINENO: checking for $ac_header" >&5
4505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4506if eval "test \"\${$as_ac_Header+set}\" = set"; then
4507  echo $ECHO_N "(cached) $ECHO_C" >&6
4508fi
4509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4511else
4512  # Is the header compilable?
4513echo "$as_me:$LINENO: checking $ac_header usability" >&5
4514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4515cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h.  */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h.  */
4521$ac_includes_default
4522#include <$ac_header>
4523_ACEOF
4524rm -f conftest.$ac_objext
4525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526  (eval $ac_compile) 2>conftest.er1
4527  ac_status=$?
4528  grep -v '^ *+' conftest.er1 >conftest.err
4529  rm -f conftest.er1
4530  cat conftest.err >&5
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); } &&
4533         { ac_try='test -z "$ac_c_werror_flag"
4534                         || test ! -s conftest.err'
4535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536  (eval $ac_try) 2>&5
4537  ac_status=$?
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); }; } &&
4540         { ac_try='test -s conftest.$ac_objext'
4541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542  (eval $ac_try) 2>&5
4543  ac_status=$?
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); }; }; then
4546  ac_header_compiler=yes
4547else
4548  echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551ac_header_compiler=no
4552fi
4553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4555echo "${ECHO_T}$ac_header_compiler" >&6
4556
4557# Is the header present?
4558echo "$as_me:$LINENO: checking $ac_header presence" >&5
4559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4560cat >conftest.$ac_ext <<_ACEOF
4561/* confdefs.h.  */
4562_ACEOF
4563cat confdefs.h >>conftest.$ac_ext
4564cat >>conftest.$ac_ext <<_ACEOF
4565/* end confdefs.h.  */
4566#include <$ac_header>
4567_ACEOF
4568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4569  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4570  ac_status=$?
4571  grep -v '^ *+' conftest.er1 >conftest.err
4572  rm -f conftest.er1
4573  cat conftest.err >&5
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); } >/dev/null; then
4576  if test -s conftest.err; then
4577    ac_cpp_err=$ac_c_preproc_warn_flag
4578    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4579  else
4580    ac_cpp_err=
4581  fi
4582else
4583  ac_cpp_err=yes
4584fi
4585if test -z "$ac_cpp_err"; then
4586  ac_header_preproc=yes
4587else
4588  echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591  ac_header_preproc=no
4592fi
4593rm -f conftest.err conftest.$ac_ext
4594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4595echo "${ECHO_T}$ac_header_preproc" >&6
4596
4597# So?  What about this header?
4598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4599  yes:no: )
4600    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4602    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4604    ac_header_preproc=yes
4605    ;;
4606  no:yes:* )
4607    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4609    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4610echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4611    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4613    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4614echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4615    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4617    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4619    (
4620      cat <<\_ASBOX
4621## ---------------------------------------------- ##
4622## Report this to orxonox-dev at mail.datacore.ch ##
4623## ---------------------------------------------- ##
4624_ASBOX
4625    ) |
4626      sed "s/^/$as_me: WARNING:     /" >&2
4627    ;;
4628esac
4629echo "$as_me:$LINENO: checking for $ac_header" >&5
4630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4631if eval "test \"\${$as_ac_Header+set}\" = set"; then
4632  echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634  eval "$as_ac_Header=\$ac_header_preproc"
4635fi
4636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638
4639fi
4640if test `eval echo '${'$as_ac_Header'}'` = yes; then
4641  cat >>confdefs.h <<_ACEOF
4642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643_ACEOF
4644
4645else
4646  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4647echo "$as_me: error: cannot find opengl headers" >&2;}
4648   { (exit 1); exit 1; }; }
4649fi
4650
4651done
4652
4653#   checking for Windows openGl library
4654    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4655echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4656if test "${ac_cv_lib_opengl32_main+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  ac_check_lib_save_LIBS=$LIBS
4660LIBS="-lopengl32  $LIBS"
4661cat >conftest.$ac_ext <<_ACEOF
4662/* confdefs.h.  */
4663_ACEOF
4664cat confdefs.h >>conftest.$ac_ext
4665cat >>conftest.$ac_ext <<_ACEOF
4666/* end confdefs.h.  */
4667
4668
4669int
4670main ()
4671{
4672main ();
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677rm -f conftest.$ac_objext conftest$ac_exeext
4678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4679  (eval $ac_link) 2>conftest.er1
4680  ac_status=$?
4681  grep -v '^ *+' conftest.er1 >conftest.err
4682  rm -f conftest.er1
4683  cat conftest.err >&5
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); } &&
4686         { ac_try='test -z "$ac_c_werror_flag"
4687                         || test ! -s conftest.err'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; } &&
4693         { ac_try='test -s conftest$ac_exeext'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; }; then
4699  ac_cv_lib_opengl32_main=yes
4700else
4701  echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704ac_cv_lib_opengl32_main=no
4705fi
4706rm -f conftest.err conftest.$ac_objext \
4707      conftest$ac_exeext conftest.$ac_ext
4708LIBS=$ac_check_lib_save_LIBS
4709fi
4710echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4711echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4712if test $ac_cv_lib_opengl32_main = yes; then
4713  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
4714fi
4715
4716    if test x$FOUND_GL != xyes ; then
4717         echo "------------------"
4718         echo "opengl not found."
4719         echo "please install the opengl package which can be found at http://www.opengl.org"
4720         echo "------------------"
4721         exit -1
4722    fi
4723
4724# cheking for GLU-header
4725
4726for ac_header in GL/glu.h
4727do
4728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729if eval "test \"\${$as_ac_Header+set}\" = set"; then
4730  echo "$as_me:$LINENO: checking for $ac_header" >&5
4731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4732if eval "test \"\${$as_ac_Header+set}\" = set"; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734fi
4735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4737else
4738  # Is the header compilable?
4739echo "$as_me:$LINENO: checking $ac_header usability" >&5
4740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4741cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h.  */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h.  */
4747$ac_includes_default
4748#include <$ac_header>
4749_ACEOF
4750rm -f conftest.$ac_objext
4751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752  (eval $ac_compile) 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } &&
4759         { ac_try='test -z "$ac_c_werror_flag"
4760                         || test ! -s conftest.err'
4761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762  (eval $ac_try) 2>&5
4763  ac_status=$?
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); }; } &&
4766         { ac_try='test -s conftest.$ac_objext'
4767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768  (eval $ac_try) 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); }; }; then
4772  ac_header_compiler=yes
4773else
4774  echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777ac_header_compiler=no
4778fi
4779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4781echo "${ECHO_T}$ac_header_compiler" >&6
4782
4783# Is the header present?
4784echo "$as_me:$LINENO: checking $ac_header presence" >&5
4785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4786cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h.  */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h.  */
4792#include <$ac_header>
4793_ACEOF
4794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4796  ac_status=$?
4797  grep -v '^ *+' conftest.er1 >conftest.err
4798  rm -f conftest.er1
4799  cat conftest.err >&5
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); } >/dev/null; then
4802  if test -s conftest.err; then
4803    ac_cpp_err=$ac_c_preproc_warn_flag
4804    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4805  else
4806    ac_cpp_err=
4807  fi
4808else
4809  ac_cpp_err=yes
4810fi
4811if test -z "$ac_cpp_err"; then
4812  ac_header_preproc=yes
4813else
4814  echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817  ac_header_preproc=no
4818fi
4819rm -f conftest.err conftest.$ac_ext
4820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4821echo "${ECHO_T}$ac_header_preproc" >&6
4822
4823# So?  What about this header?
4824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4825  yes:no: )
4826    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4828    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4830    ac_header_preproc=yes
4831    ;;
4832  no:yes:* )
4833    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4835    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4836echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4837    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4839    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4840echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4843    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4845    (
4846      cat <<\_ASBOX
4847## ---------------------------------------------- ##
4848## Report this to orxonox-dev at mail.datacore.ch ##
4849## ---------------------------------------------- ##
4850_ASBOX
4851    ) |
4852      sed "s/^/$as_me: WARNING:     /" >&2
4853    ;;
4854esac
4855echo "$as_me:$LINENO: checking for $ac_header" >&5
4856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4857if eval "test \"\${$as_ac_Header+set}\" = set"; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  eval "$as_ac_Header=\$ac_header_preproc"
4861fi
4862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864
4865fi
4866if test `eval echo '${'$as_ac_Header'}'` = yes; then
4867  cat >>confdefs.h <<_ACEOF
4868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869_ACEOF
4870
4871else
4872  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4873echo "$as_me: error: cannot find opengl headers" >&2;}
4874   { (exit 1); exit 1; }; }
4875fi
4876
4877done
4878
4879
4880# checking for libGLU
4881    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4882echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4883if test "${ac_cv_lib_glu32_main+set}" = set; then
4884  echo $ECHO_N "(cached) $ECHO_C" >&6
4885else
4886  ac_check_lib_save_LIBS=$LIBS
4887LIBS="-lglu32  $LIBS"
4888cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h.  */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h.  */
4894
4895
4896int
4897main ()
4898{
4899main ();
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904rm -f conftest.$ac_objext conftest$ac_exeext
4905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906  (eval $ac_link) 2>conftest.er1
4907  ac_status=$?
4908  grep -v '^ *+' conftest.er1 >conftest.err
4909  rm -f conftest.er1
4910  cat conftest.err >&5
4911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912  (exit $ac_status); } &&
4913         { ac_try='test -z "$ac_c_werror_flag"
4914                         || test ! -s conftest.err'
4915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916  (eval $ac_try) 2>&5
4917  ac_status=$?
4918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); }; } &&
4920         { ac_try='test -s conftest$ac_exeext'
4921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922  (eval $ac_try) 2>&5
4923  ac_status=$?
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); }; }; then
4926  ac_cv_lib_glu32_main=yes
4927else
4928  echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931ac_cv_lib_glu32_main=no
4932fi
4933rm -f conftest.err conftest.$ac_objext \
4934      conftest$ac_exeext conftest.$ac_ext
4935LIBS=$ac_check_lib_save_LIBS
4936fi
4937echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4938echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4939if test $ac_cv_lib_glu32_main = yes; then
4940  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
4941fi
4942
4943    if test x$FOUND_GLU != xyes ; then
4944         echo "------------------"
4945         echo "GLU library not found."
4946         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4947         echo "------------------"
4948         exit -1
4949    fi
4950
4951# checking glew header
4952
4953for ac_header in GL/glew.h
4954do
4955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956if eval "test \"\${$as_ac_Header+set}\" = set"; then
4957  echo "$as_me:$LINENO: checking for $ac_header" >&5
4958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4959if eval "test \"\${$as_ac_Header+set}\" = set"; then
4960  echo $ECHO_N "(cached) $ECHO_C" >&6
4961fi
4962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4964else
4965  # Is the header compilable?
4966echo "$as_me:$LINENO: checking $ac_header usability" >&5
4967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4968cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h.  */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h.  */
4974$ac_includes_default
4975#include <$ac_header>
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979  (eval $ac_compile) 2>conftest.er1
4980  ac_status=$?
4981  grep -v '^ *+' conftest.er1 >conftest.err
4982  rm -f conftest.er1
4983  cat conftest.err >&5
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); } &&
4986         { ac_try='test -z "$ac_c_werror_flag"
4987                         || test ! -s conftest.err'
4988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989  (eval $ac_try) 2>&5
4990  ac_status=$?
4991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992  (exit $ac_status); }; } &&
4993         { ac_try='test -s conftest.$ac_objext'
4994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995  (eval $ac_try) 2>&5
4996  ac_status=$?
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); }; }; then
4999  ac_header_compiler=yes
5000else
5001  echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004ac_header_compiler=no
5005fi
5006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5008echo "${ECHO_T}$ac_header_compiler" >&6
5009
5010# Is the header present?
5011echo "$as_me:$LINENO: checking $ac_header presence" >&5
5012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5013cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h.  */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h.  */
5019#include <$ac_header>
5020_ACEOF
5021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5022  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5023  ac_status=$?
5024  grep -v '^ *+' conftest.er1 >conftest.err
5025  rm -f conftest.er1
5026  cat conftest.err >&5
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); } >/dev/null; then
5029  if test -s conftest.err; then
5030    ac_cpp_err=$ac_c_preproc_warn_flag
5031    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5032  else
5033    ac_cpp_err=
5034  fi
5035else
5036  ac_cpp_err=yes
5037fi
5038if test -z "$ac_cpp_err"; then
5039  ac_header_preproc=yes
5040else
5041  echo "$as_me: failed program was:" >&5
5042sed 's/^/| /' conftest.$ac_ext >&5
5043
5044  ac_header_preproc=no
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5048echo "${ECHO_T}$ac_header_preproc" >&6
5049
5050# So?  What about this header?
5051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5052  yes:no: )
5053    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5057    ac_header_preproc=yes
5058    ;;
5059  no:yes:* )
5060    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5062    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5063echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5064    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5066    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5067echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5068    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5070    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5072    (
5073      cat <<\_ASBOX
5074## ---------------------------------------------- ##
5075## Report this to orxonox-dev at mail.datacore.ch ##
5076## ---------------------------------------------- ##
5077_ASBOX
5078    ) |
5079      sed "s/^/$as_me: WARNING:     /" >&2
5080    ;;
5081esac
5082echo "$as_me:$LINENO: checking for $ac_header" >&5
5083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5084if eval "test \"\${$as_ac_Header+set}\" = set"; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  eval "$as_ac_Header=\$ac_header_preproc"
5088fi
5089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5091
5092fi
5093if test `eval echo '${'$as_ac_Header'}'` = yes; then
5094  cat >>confdefs.h <<_ACEOF
5095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5096_ACEOF
5097
5098else
5099  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5100echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5101   { (exit 1); exit 1; }; }
5102fi
5103
5104done
5105
5106#   checking for Windows glew library
5107    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5108echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5109if test "${ac_cv_lib_glew32_main+set}" = set; then
5110  echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112  ac_check_lib_save_LIBS=$LIBS
5113LIBS="-lglew32  $LIBS"
5114cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h.  */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h.  */
5120
5121
5122int
5123main ()
5124{
5125main ();
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext conftest$ac_exeext
5131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132  (eval $ac_link) 2>conftest.er1
5133  ac_status=$?
5134  grep -v '^ *+' conftest.er1 >conftest.err
5135  rm -f conftest.er1
5136  cat conftest.err >&5
5137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138  (exit $ac_status); } &&
5139         { ac_try='test -z "$ac_c_werror_flag"
5140                         || test ! -s conftest.err'
5141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142  (eval $ac_try) 2>&5
5143  ac_status=$?
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); }; } &&
5146         { ac_try='test -s conftest$ac_exeext'
5147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148  (eval $ac_try) 2>&5
5149  ac_status=$?
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); }; }; then
5152  ac_cv_lib_glew32_main=yes
5153else
5154  echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
5157ac_cv_lib_glew32_main=no
5158fi
5159rm -f conftest.err conftest.$ac_objext \
5160      conftest$ac_exeext conftest.$ac_ext
5161LIBS=$ac_check_lib_save_LIBS
5162fi
5163echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5164echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5165if test $ac_cv_lib_glew32_main = yes; then
5166  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
5167fi
5168
5169    if test x$FOUND_GLEW != xyes ; then
5170         echo "------------------"
5171         echo "opengl extension wrangler not found."
5172         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5173         echo "------------------"
5174         exit -1
5175    fi
5176
5177#--------#
5178# openAL #
5179#--------#
5180# checking for openAL-headers
5181
5182for ac_header in AL/al.h
5183do
5184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5185if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186  echo "$as_me:$LINENO: checking for $ac_header" >&5
5187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5188if eval "test \"\${$as_ac_Header+set}\" = set"; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190fi
5191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193else
5194  # Is the header compilable?
5195echo "$as_me:$LINENO: checking $ac_header usability" >&5
5196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5197cat >conftest.$ac_ext <<_ACEOF
5198/* confdefs.h.  */
5199_ACEOF
5200cat confdefs.h >>conftest.$ac_ext
5201cat >>conftest.$ac_ext <<_ACEOF
5202/* end confdefs.h.  */
5203$ac_includes_default
5204#include <$ac_header>
5205_ACEOF
5206rm -f conftest.$ac_objext
5207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208  (eval $ac_compile) 2>conftest.er1
5209  ac_status=$?
5210  grep -v '^ *+' conftest.er1 >conftest.err
5211  rm -f conftest.er1
5212  cat conftest.err >&5
5213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214  (exit $ac_status); } &&
5215         { ac_try='test -z "$ac_c_werror_flag"
5216                         || test ! -s conftest.err'
5217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218  (eval $ac_try) 2>&5
5219  ac_status=$?
5220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221  (exit $ac_status); }; } &&
5222         { ac_try='test -s conftest.$ac_objext'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; }; then
5228  ac_header_compiler=yes
5229else
5230  echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233ac_header_compiler=no
5234fi
5235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5237echo "${ECHO_T}$ac_header_compiler" >&6
5238
5239# Is the header present?
5240echo "$as_me:$LINENO: checking $ac_header presence" >&5
5241echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5242cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h.  */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h.  */
5248#include <$ac_header>
5249_ACEOF
5250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5252  ac_status=$?
5253  grep -v '^ *+' conftest.er1 >conftest.err
5254  rm -f conftest.er1
5255  cat conftest.err >&5
5256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257  (exit $ac_status); } >/dev/null; then
5258  if test -s conftest.err; then
5259    ac_cpp_err=$ac_c_preproc_warn_flag
5260    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5261  else
5262    ac_cpp_err=
5263  fi
5264else
5265  ac_cpp_err=yes
5266fi
5267if test -z "$ac_cpp_err"; then
5268  ac_header_preproc=yes
5269else
5270  echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273  ac_header_preproc=no
5274fi
5275rm -f conftest.err conftest.$ac_ext
5276echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5277echo "${ECHO_T}$ac_header_preproc" >&6
5278
5279# So?  What about this header?
5280case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5281  yes:no: )
5282    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5283echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5284    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5285echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5286    ac_header_preproc=yes
5287    ;;
5288  no:yes:* )
5289    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5290echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5291    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5292echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5293    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5294echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5295    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5296echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5297    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5300echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5301    (
5302      cat <<\_ASBOX
5303## ---------------------------------------------- ##
5304## Report this to orxonox-dev at mail.datacore.ch ##
5305## ---------------------------------------------- ##
5306_ASBOX
5307    ) |
5308      sed "s/^/$as_me: WARNING:     /" >&2
5309    ;;
5310esac
5311echo "$as_me:$LINENO: checking for $ac_header" >&5
5312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314  echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316  eval "$as_ac_Header=\$ac_header_preproc"
5317fi
5318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5320
5321fi
5322if test `eval echo '${'$as_ac_Header'}'` = yes; then
5323  cat >>confdefs.h <<_ACEOF
5324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5325_ACEOF
5326
5327else
5328  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5329echo "$as_me: error: cannot find openAL header." >&2;}
5330   { (exit 1); exit 1; }; }
5331fi
5332
5333done
5334
5335# checking for openAL-lib
5336  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5337echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5338if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5339  echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341  ac_check_lib_save_LIBS=$LIBS
5342LIBS="-lOpenAL32  $LIBS"
5343cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h.  */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h.  */
5349
5350
5351int
5352main ()
5353{
5354main ();
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359rm -f conftest.$ac_objext conftest$ac_exeext
5360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361  (eval $ac_link) 2>conftest.er1
5362  ac_status=$?
5363  grep -v '^ *+' conftest.er1 >conftest.err
5364  rm -f conftest.er1
5365  cat conftest.err >&5
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); } &&
5368         { ac_try='test -z "$ac_c_werror_flag"
5369                         || test ! -s conftest.err'
5370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371  (eval $ac_try) 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; } &&
5375         { ac_try='test -s conftest$ac_exeext'
5376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377  (eval $ac_try) 2>&5
5378  ac_status=$?
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); }; }; then
5381  ac_cv_lib_OpenAL32_main=yes
5382else
5383  echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
5385
5386ac_cv_lib_OpenAL32_main=no
5387fi
5388rm -f conftest.err conftest.$ac_objext \
5389      conftest$ac_exeext conftest.$ac_ext
5390LIBS=$ac_check_lib_save_LIBS
5391fi
5392echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5393echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5394if test $ac_cv_lib_OpenAL32_main = yes; then
5395  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
5396fi
5397
5398  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5399echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5400if test "${ac_cv_lib_ALut_main+set}" = set; then
5401  echo $ECHO_N "(cached) $ECHO_C" >&6
5402else
5403  ac_check_lib_save_LIBS=$LIBS
5404LIBS="-lALut  $LIBS"
5405cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h.  */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h.  */
5411
5412
5413int
5414main ()
5415{
5416main ();
5417  ;
5418  return 0;
5419}
5420_ACEOF
5421rm -f conftest.$ac_objext conftest$ac_exeext
5422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5423  (eval $ac_link) 2>conftest.er1
5424  ac_status=$?
5425  grep -v '^ *+' conftest.er1 >conftest.err
5426  rm -f conftest.er1
5427  cat conftest.err >&5
5428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429  (exit $ac_status); } &&
5430         { ac_try='test -z "$ac_c_werror_flag"
5431                         || test ! -s conftest.err'
5432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433  (eval $ac_try) 2>&5
5434  ac_status=$?
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); }; } &&
5437         { ac_try='test -s conftest$ac_exeext'
5438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439  (eval $ac_try) 2>&5
5440  ac_status=$?
5441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); }; }; then
5443  ac_cv_lib_ALut_main=yes
5444else
5445  echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448ac_cv_lib_ALut_main=no
5449fi
5450rm -f conftest.err conftest.$ac_objext \
5451      conftest$ac_exeext conftest.$ac_ext
5452LIBS=$ac_check_lib_save_LIBS
5453fi
5454echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5455echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5456if test $ac_cv_lib_ALut_main = yes; then
5457  FOUND_ALUT=yes; LIBS="-lALut $LIBS"
5458fi
5459
5460     if test x$FOUND_OPENAL != xyes ; then
5461        echo "------------------"
5462        echo "openal library not found."
5463        echo "please install the openal library, which can be found at http://www.openal.org"
5464        echo "------------------"
5465        exit -1
5466     fi
5467
5468
5469#-----------#
5470# SDL(win) #
5471#-----------#
5472# checking for SDL-headers
5473
5474for ac_header in SDL/SDL.h
5475do
5476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477if eval "test \"\${$as_ac_Header+set}\" = set"; then
5478  echo "$as_me:$LINENO: checking for $ac_header" >&5
5479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5480if eval "test \"\${$as_ac_Header+set}\" = set"; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482fi
5483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5485else
5486  # Is the header compilable?
5487echo "$as_me:$LINENO: checking $ac_header usability" >&5
5488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5489cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495$ac_includes_default
5496#include <$ac_header>
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_header_compiler=yes
5521else
5522  echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525ac_header_compiler=no
5526fi
5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5529echo "${ECHO_T}$ac_header_compiler" >&6
5530
5531# Is the header present?
5532echo "$as_me:$LINENO: checking $ac_header presence" >&5
5533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5534cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h.  */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h.  */
5540#include <$ac_header>
5541_ACEOF
5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } >/dev/null; then
5550  if test -s conftest.err; then
5551    ac_cpp_err=$ac_c_preproc_warn_flag
5552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5553  else
5554    ac_cpp_err=
5555  fi
5556else
5557  ac_cpp_err=yes
5558fi
5559if test -z "$ac_cpp_err"; then
5560  ac_header_preproc=yes
5561else
5562  echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565  ac_header_preproc=no
5566fi
5567rm -f conftest.err conftest.$ac_ext
5568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5569echo "${ECHO_T}$ac_header_preproc" >&6
5570
5571# So?  What about this header?
5572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5573  yes:no: )
5574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5578    ac_header_preproc=yes
5579    ;;
5580  no:yes:* )
5581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5593    (
5594      cat <<\_ASBOX
5595## ---------------------------------------------- ##
5596## Report this to orxonox-dev at mail.datacore.ch ##
5597## ---------------------------------------------- ##
5598_ASBOX
5599    ) |
5600      sed "s/^/$as_me: WARNING:     /" >&2
5601    ;;
5602esac
5603echo "$as_me:$LINENO: checking for $ac_header" >&5
5604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  eval "$as_ac_Header=\$ac_header_preproc"
5609fi
5610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612
5613fi
5614if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615  cat >>confdefs.h <<_ACEOF
5616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617_ACEOF
5618
5619else
5620  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5621echo "$as_me: error: cannot find SDL headers" >&2;}
5622   { (exit 1); exit 1; }; }
5623fi
5624
5625done
5626
5627
5628#checking for libSDL
5629    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5630echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5631if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5632  echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634  ac_check_lib_save_LIBS=$LIBS
5635LIBS="-lsdlmain  $LIBS"
5636cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h.  */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
5641/* end confdefs.h.  */
5642
5643
5644int
5645main ()
5646{
5647main ();
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext conftest$ac_exeext
5653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654  (eval $ac_link) 2>conftest.er1
5655  ac_status=$?
5656  grep -v '^ *+' conftest.er1 >conftest.err
5657  rm -f conftest.er1
5658  cat conftest.err >&5
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); } &&
5661         { ac_try='test -z "$ac_c_werror_flag"
5662                         || test ! -s conftest.err'
5663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664  (eval $ac_try) 2>&5
5665  ac_status=$?
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); }; } &&
5668         { ac_try='test -s conftest$ac_exeext'
5669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670  (eval $ac_try) 2>&5
5671  ac_status=$?
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); }; }; then
5674  ac_cv_lib_sdlmain_main=yes
5675else
5676  echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679ac_cv_lib_sdlmain_main=no
5680fi
5681rm -f conftest.err conftest.$ac_objext \
5682      conftest$ac_exeext conftest.$ac_ext
5683LIBS=$ac_check_lib_save_LIBS
5684fi
5685echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5686echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5687if test $ac_cv_lib_sdlmain_main = yes; then
5688  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
5689fi
5690
5691    if test x$FOUND_sdlmain != xyes ; then
5692        echo "------------------"
5693        echo "SDL library not found."
5694        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5695        echo "------------------"
5696        exit 1
5697    fi
5698    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5699echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5700if test "${ac_cv_lib_sdl_main+set}" = set; then
5701  echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703  ac_check_lib_save_LIBS=$LIBS
5704LIBS="-lsdl  $LIBS"
5705cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h.  */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h.  */
5711
5712
5713int
5714main ()
5715{
5716main ();
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext conftest$ac_exeext
5722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723  (eval $ac_link) 2>conftest.er1
5724  ac_status=$?
5725  grep -v '^ *+' conftest.er1 >conftest.err
5726  rm -f conftest.er1
5727  cat conftest.err >&5
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); } &&
5730         { ac_try='test -z "$ac_c_werror_flag"
5731                         || test ! -s conftest.err'
5732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733  (eval $ac_try) 2>&5
5734  ac_status=$?
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); }; } &&
5737         { ac_try='test -s conftest$ac_exeext'
5738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739  (eval $ac_try) 2>&5
5740  ac_status=$?
5741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742  (exit $ac_status); }; }; then
5743  ac_cv_lib_sdl_main=yes
5744else
5745  echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748ac_cv_lib_sdl_main=no
5749fi
5750rm -f conftest.err conftest.$ac_objext \
5751      conftest$ac_exeext conftest.$ac_ext
5752LIBS=$ac_check_lib_save_LIBS
5753fi
5754echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5755echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5756if test $ac_cv_lib_sdl_main = yes; then
5757  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
5758fi
5759
5760    if test x$FOUND_SDL != xyes ; then
5761        echo "------------------"
5762        echo "SDL library not found."
5763        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5764        echo "------------------"
5765        exit -1
5766    fi
5767
5768  ;;
5769
5770#########
5771#-------#
5772# LINUX #
5773#-------#
5774#########
5775 *-*-linux*)
5776echo "Linux detected"
5777
5778 Linux="yes"
5779
5780##CPPFLAGS="-I/usr/include $CPPFLAGS"
5781##LDFLAGS="-L/usr/lib $LDFLAGS"
5782if test x$SHARED_LIB_PATH != xno; then
5783        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5784        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5785fi
5786
5787#--------#
5788# openGL #
5789#--------#
5790# checking gl header
5791
5792for ac_header in GL/gl.h
5793do
5794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5795if eval "test \"\${$as_ac_Header+set}\" = set"; then
5796  echo "$as_me:$LINENO: checking for $ac_header" >&5
5797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5798if eval "test \"\${$as_ac_Header+set}\" = set"; then
5799  echo $ECHO_N "(cached) $ECHO_C" >&6
5800fi
5801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5803else
5804  # Is the header compilable?
5805echo "$as_me:$LINENO: checking $ac_header usability" >&5
5806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5807cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h.  */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h.  */
5813$ac_includes_default
5814#include <$ac_header>
5815_ACEOF
5816rm -f conftest.$ac_objext
5817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818  (eval $ac_compile) 2>conftest.er1
5819  ac_status=$?
5820  grep -v '^ *+' conftest.er1 >conftest.err
5821  rm -f conftest.er1
5822  cat conftest.err >&5
5823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824  (exit $ac_status); } &&
5825         { ac_try='test -z "$ac_c_werror_flag"
5826                         || test ! -s conftest.err'
5827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828  (eval $ac_try) 2>&5
5829  ac_status=$?
5830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831  (exit $ac_status); }; } &&
5832         { ac_try='test -s conftest.$ac_objext'
5833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834  (eval $ac_try) 2>&5
5835  ac_status=$?
5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); }; }; then
5838  ac_header_compiler=yes
5839else
5840  echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843ac_header_compiler=no
5844fi
5845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5847echo "${ECHO_T}$ac_header_compiler" >&6
5848
5849# Is the header present?
5850echo "$as_me:$LINENO: checking $ac_header presence" >&5
5851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5852cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h.  */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h.  */
5858#include <$ac_header>
5859_ACEOF
5860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5862  ac_status=$?
5863  grep -v '^ *+' conftest.er1 >conftest.err
5864  rm -f conftest.er1
5865  cat conftest.err >&5
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); } >/dev/null; then
5868  if test -s conftest.err; then
5869    ac_cpp_err=$ac_c_preproc_warn_flag
5870    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5871  else
5872    ac_cpp_err=
5873  fi
5874else
5875  ac_cpp_err=yes
5876fi
5877if test -z "$ac_cpp_err"; then
5878  ac_header_preproc=yes
5879else
5880  echo "$as_me: failed program was:" >&5
5881sed 's/^/| /' conftest.$ac_ext >&5
5882
5883  ac_header_preproc=no
5884fi
5885rm -f conftest.err conftest.$ac_ext
5886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5887echo "${ECHO_T}$ac_header_preproc" >&6
5888
5889# So?  What about this header?
5890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5891  yes:no: )
5892    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5894    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5896    ac_header_preproc=yes
5897    ;;
5898  no:yes:* )
5899    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5901    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5902echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5903    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5905    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5906echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5907    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5909    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5911    (
5912      cat <<\_ASBOX
5913## ---------------------------------------------- ##
5914## Report this to orxonox-dev at mail.datacore.ch ##
5915## ---------------------------------------------- ##
5916_ASBOX
5917    ) |
5918      sed "s/^/$as_me: WARNING:     /" >&2
5919    ;;
5920esac
5921echo "$as_me:$LINENO: checking for $ac_header" >&5
5922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5923if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924  echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926  eval "$as_ac_Header=\$ac_header_preproc"
5927fi
5928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5930
5931fi
5932if test `eval echo '${'$as_ac_Header'}'` = yes; then
5933  cat >>confdefs.h <<_ACEOF
5934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935_ACEOF
5936
5937else
5938  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5939echo "$as_me: error: cannot find opengl headers" >&2;}
5940   { (exit 1); exit 1; }; }
5941fi
5942
5943done
5944
5945
5946#  checking for Unix GL
5947   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5948echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5949if test "${ac_cv_lib_GL_main+set}" = set; then
5950  echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952  ac_check_lib_save_LIBS=$LIBS
5953LIBS="-lGL  $LIBS"
5954cat >conftest.$ac_ext <<_ACEOF
5955/* confdefs.h.  */
5956_ACEOF
5957cat confdefs.h >>conftest.$ac_ext
5958cat >>conftest.$ac_ext <<_ACEOF
5959/* end confdefs.h.  */
5960
5961
5962int
5963main ()
5964{
5965main ();
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970rm -f conftest.$ac_objext conftest$ac_exeext
5971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972  (eval $ac_link) 2>conftest.er1
5973  ac_status=$?
5974  grep -v '^ *+' conftest.er1 >conftest.err
5975  rm -f conftest.er1
5976  cat conftest.err >&5
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); } &&
5979         { ac_try='test -z "$ac_c_werror_flag"
5980                         || test ! -s conftest.err'
5981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982  (eval $ac_try) 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; } &&
5986         { ac_try='test -s conftest$ac_exeext'
5987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988  (eval $ac_try) 2>&5
5989  ac_status=$?
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); }; }; then
5992  ac_cv_lib_GL_main=yes
5993else
5994  echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
5996
5997ac_cv_lib_GL_main=no
5998fi
5999rm -f conftest.err conftest.$ac_objext \
6000      conftest$ac_exeext conftest.$ac_ext
6001LIBS=$ac_check_lib_save_LIBS
6002fi
6003echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6004echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6005if test $ac_cv_lib_GL_main = yes; then
6006  FOUND_GL=yes; LIBS="$LIBS -lGL"
6007fi
6008
6009   if test x$FOUND_GL != xyes ; then
6010         echo "------------------"
6011         echo "opengl not found."
6012         echo "please install the opengl package which can be found at http://www.opengl.org"
6013         echo "------------------"
6014         exit -1
6015   fi
6016
6017# cheking for GLU-header
6018
6019for ac_header in GL/glu.h
6020do
6021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022if eval "test \"\${$as_ac_Header+set}\" = set"; then
6023  echo "$as_me:$LINENO: checking for $ac_header" >&5
6024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6025if eval "test \"\${$as_ac_Header+set}\" = set"; then
6026  echo $ECHO_N "(cached) $ECHO_C" >&6
6027fi
6028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6030else
6031  # Is the header compilable?
6032echo "$as_me:$LINENO: checking $ac_header usability" >&5
6033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6034cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h.  */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h.  */
6040$ac_includes_default
6041#include <$ac_header>
6042_ACEOF
6043rm -f conftest.$ac_objext
6044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045  (eval $ac_compile) 2>conftest.er1
6046  ac_status=$?
6047  grep -v '^ *+' conftest.er1 >conftest.err
6048  rm -f conftest.er1
6049  cat conftest.err >&5
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); } &&
6052         { ac_try='test -z "$ac_c_werror_flag"
6053                         || test ! -s conftest.err'
6054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055  (eval $ac_try) 2>&5
6056  ac_status=$?
6057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058  (exit $ac_status); }; } &&
6059         { ac_try='test -s conftest.$ac_objext'
6060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061  (eval $ac_try) 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); }; }; then
6065  ac_header_compiler=yes
6066else
6067  echo "$as_me: failed program was:" >&5
6068sed 's/^/| /' conftest.$ac_ext >&5
6069
6070ac_header_compiler=no
6071fi
6072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6074echo "${ECHO_T}$ac_header_compiler" >&6
6075
6076# Is the header present?
6077echo "$as_me:$LINENO: checking $ac_header presence" >&5
6078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6079cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085#include <$ac_header>
6086_ACEOF
6087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6088  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6089  ac_status=$?
6090  grep -v '^ *+' conftest.er1 >conftest.err
6091  rm -f conftest.er1
6092  cat conftest.err >&5
6093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094  (exit $ac_status); } >/dev/null; then
6095  if test -s conftest.err; then
6096    ac_cpp_err=$ac_c_preproc_warn_flag
6097    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6098  else
6099    ac_cpp_err=
6100  fi
6101else
6102  ac_cpp_err=yes
6103fi
6104if test -z "$ac_cpp_err"; then
6105  ac_header_preproc=yes
6106else
6107  echo "$as_me: failed program was:" >&5
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
6110  ac_header_preproc=no
6111fi
6112rm -f conftest.err conftest.$ac_ext
6113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6114echo "${ECHO_T}$ac_header_preproc" >&6
6115
6116# So?  What about this header?
6117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6118  yes:no: )
6119    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6121    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6123    ac_header_preproc=yes
6124    ;;
6125  no:yes:* )
6126    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6128    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6129echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6130    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6132    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6133echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6136    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6138    (
6139      cat <<\_ASBOX
6140## ---------------------------------------------- ##
6141## Report this to orxonox-dev at mail.datacore.ch ##
6142## ---------------------------------------------- ##
6143_ASBOX
6144    ) |
6145      sed "s/^/$as_me: WARNING:     /" >&2
6146    ;;
6147esac
6148echo "$as_me:$LINENO: checking for $ac_header" >&5
6149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6150if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  eval "$as_ac_Header=\$ac_header_preproc"
6154fi
6155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6157
6158fi
6159if test `eval echo '${'$as_ac_Header'}'` = yes; then
6160  cat >>confdefs.h <<_ACEOF
6161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6162_ACEOF
6163
6164else
6165  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6166echo "$as_me: error: cannot find opengl headers" >&2;}
6167   { (exit 1); exit 1; }; }
6168fi
6169
6170done
6171
6172    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6173echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6174if test "${ac_cv_lib_GLU_main+set}" = set; then
6175  echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177  ac_check_lib_save_LIBS=$LIBS
6178LIBS="-lGLU  $LIBS"
6179cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h.  */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h.  */
6185
6186
6187int
6188main ()
6189{
6190main ();
6191  ;
6192  return 0;
6193}
6194_ACEOF
6195rm -f conftest.$ac_objext conftest$ac_exeext
6196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197  (eval $ac_link) 2>conftest.er1
6198  ac_status=$?
6199  grep -v '^ *+' conftest.er1 >conftest.err
6200  rm -f conftest.er1
6201  cat conftest.err >&5
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); } &&
6204         { ac_try='test -z "$ac_c_werror_flag"
6205                         || test ! -s conftest.err'
6206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207  (eval $ac_try) 2>&5
6208  ac_status=$?
6209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210  (exit $ac_status); }; } &&
6211         { ac_try='test -s conftest$ac_exeext'
6212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213  (eval $ac_try) 2>&5
6214  ac_status=$?
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); }; }; then
6217  ac_cv_lib_GLU_main=yes
6218else
6219  echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222ac_cv_lib_GLU_main=no
6223fi
6224rm -f conftest.err conftest.$ac_objext \
6225      conftest$ac_exeext conftest.$ac_ext
6226LIBS=$ac_check_lib_save_LIBS
6227fi
6228echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6229echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6230if test $ac_cv_lib_GLU_main = yes; then
6231  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6232fi
6233
6234    if test x$FOUND_GLU != xyes ; then
6235         echo "------------------"
6236         echo "GLU library not found."
6237         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6238         echo "------------------"
6239         exit -1
6240    fi
6241
6242# checking for GLEW-headers
6243
6244for ac_header in GL/glew.h
6245do
6246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6247if eval "test \"\${$as_ac_Header+set}\" = set"; then
6248  echo "$as_me:$LINENO: checking for $ac_header" >&5
6249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6250if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251  echo $ECHO_N "(cached) $ECHO_C" >&6
6252fi
6253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6255else
6256  # Is the header compilable?
6257echo "$as_me:$LINENO: checking $ac_header usability" >&5
6258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6259cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h.  */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h.  */
6265$ac_includes_default
6266#include <$ac_header>
6267_ACEOF
6268rm -f conftest.$ac_objext
6269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6270  (eval $ac_compile) 2>conftest.er1
6271  ac_status=$?
6272  grep -v '^ *+' conftest.er1 >conftest.err
6273  rm -f conftest.er1
6274  cat conftest.err >&5
6275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); } &&
6277         { ac_try='test -z "$ac_c_werror_flag"
6278                         || test ! -s conftest.err'
6279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280  (eval $ac_try) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; } &&
6284         { ac_try='test -s conftest.$ac_objext'
6285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286  (eval $ac_try) 2>&5
6287  ac_status=$?
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); }; }; then
6290  ac_header_compiler=yes
6291else
6292  echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295ac_header_compiler=no
6296fi
6297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6299echo "${ECHO_T}$ac_header_compiler" >&6
6300
6301# Is the header present?
6302echo "$as_me:$LINENO: checking $ac_header presence" >&5
6303echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6304cat >conftest.$ac_ext <<_ACEOF
6305/* confdefs.h.  */
6306_ACEOF
6307cat confdefs.h >>conftest.$ac_ext
6308cat >>conftest.$ac_ext <<_ACEOF
6309/* end confdefs.h.  */
6310#include <$ac_header>
6311_ACEOF
6312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6314  ac_status=$?
6315  grep -v '^ *+' conftest.er1 >conftest.err
6316  rm -f conftest.er1
6317  cat conftest.err >&5
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); } >/dev/null; then
6320  if test -s conftest.err; then
6321    ac_cpp_err=$ac_c_preproc_warn_flag
6322    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6323  else
6324    ac_cpp_err=
6325  fi
6326else
6327  ac_cpp_err=yes
6328fi
6329if test -z "$ac_cpp_err"; then
6330  ac_header_preproc=yes
6331else
6332  echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
6335  ac_header_preproc=no
6336fi
6337rm -f conftest.err conftest.$ac_ext
6338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6339echo "${ECHO_T}$ac_header_preproc" >&6
6340
6341# So?  What about this header?
6342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6343  yes:no: )
6344    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6346    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6348    ac_header_preproc=yes
6349    ;;
6350  no:yes:* )
6351    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6354echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6355    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6357    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6358echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6361    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6363    (
6364      cat <<\_ASBOX
6365## ---------------------------------------------- ##
6366## Report this to orxonox-dev at mail.datacore.ch ##
6367## ---------------------------------------------- ##
6368_ASBOX
6369    ) |
6370      sed "s/^/$as_me: WARNING:     /" >&2
6371    ;;
6372esac
6373echo "$as_me:$LINENO: checking for $ac_header" >&5
6374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6375if eval "test \"\${$as_ac_Header+set}\" = set"; then
6376  echo $ECHO_N "(cached) $ECHO_C" >&6
6377else
6378  eval "$as_ac_Header=\$ac_header_preproc"
6379fi
6380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382
6383fi
6384if test `eval echo '${'$as_ac_Header'}'` = yes; then
6385  cat >>confdefs.h <<_ACEOF
6386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6387_ACEOF
6388
6389else
6390  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6391echo "$as_me: error: cannot find glew headers" >&2;}
6392   { (exit 1); exit 1; }; }
6393fi
6394
6395done
6396
6397# checking for GLEW-lib
6398  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6399echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6400if test "${ac_cv_lib_GLEW_main+set}" = set; then
6401  echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
6403  ac_check_lib_save_LIBS=$LIBS
6404LIBS="-lGLEW  $LIBS"
6405cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411
6412
6413int
6414main ()
6415{
6416main ();
6417  ;
6418  return 0;
6419}
6420_ACEOF
6421rm -f conftest.$ac_objext conftest$ac_exeext
6422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423  (eval $ac_link) 2>conftest.er1
6424  ac_status=$?
6425  grep -v '^ *+' conftest.er1 >conftest.err
6426  rm -f conftest.er1
6427  cat conftest.err >&5
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); } &&
6430         { ac_try='test -z "$ac_c_werror_flag"
6431                         || test ! -s conftest.err'
6432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433  (eval $ac_try) 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; } &&
6437         { ac_try='test -s conftest$ac_exeext'
6438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439  (eval $ac_try) 2>&5
6440  ac_status=$?
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); }; }; then
6443  ac_cv_lib_GLEW_main=yes
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448ac_cv_lib_GLEW_main=no
6449fi
6450rm -f conftest.err conftest.$ac_objext \
6451      conftest$ac_exeext conftest.$ac_ext
6452LIBS=$ac_check_lib_save_LIBS
6453fi
6454echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6455echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6456if test $ac_cv_lib_GLEW_main = yes; then
6457  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
6458fi
6459
6460   if test x$FOUND_GLEW != xyes ; then
6461         echo "------------------"
6462         echo "glew not found."
6463         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6464         echo "------------------"
6465         exit -1
6466   fi
6467
6468#--------#
6469# openAL #
6470#--------#
6471# checking for openAL-headers
6472
6473for ac_header in AL/al.h
6474do
6475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476if eval "test \"\${$as_ac_Header+set}\" = set"; then
6477  echo "$as_me:$LINENO: checking for $ac_header" >&5
6478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480  echo $ECHO_N "(cached) $ECHO_C" >&6
6481fi
6482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484else
6485  # Is the header compilable?
6486echo "$as_me:$LINENO: checking $ac_header usability" >&5
6487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6488cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494$ac_includes_default
6495#include <$ac_header>
6496_ACEOF
6497rm -f conftest.$ac_objext
6498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499  (eval $ac_compile) 2>conftest.er1
6500  ac_status=$?
6501  grep -v '^ *+' conftest.er1 >conftest.err
6502  rm -f conftest.er1
6503  cat conftest.err >&5
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); } &&
6506         { ac_try='test -z "$ac_c_werror_flag"
6507                         || test ! -s conftest.err'
6508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509  (eval $ac_try) 2>&5
6510  ac_status=$?
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); }; } &&
6513         { ac_try='test -s conftest.$ac_objext'
6514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515  (eval $ac_try) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; }; then
6519  ac_header_compiler=yes
6520else
6521  echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5
6523
6524ac_header_compiler=no
6525fi
6526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6528echo "${ECHO_T}$ac_header_compiler" >&6
6529
6530# Is the header present?
6531echo "$as_me:$LINENO: checking $ac_header presence" >&5
6532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6533cat >conftest.$ac_ext <<_ACEOF
6534/* confdefs.h.  */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
6538/* end confdefs.h.  */
6539#include <$ac_header>
6540_ACEOF
6541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6543  ac_status=$?
6544  grep -v '^ *+' conftest.er1 >conftest.err
6545  rm -f conftest.er1
6546  cat conftest.err >&5
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); } >/dev/null; then
6549  if test -s conftest.err; then
6550    ac_cpp_err=$ac_c_preproc_warn_flag
6551    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6552  else
6553    ac_cpp_err=
6554  fi
6555else
6556  ac_cpp_err=yes
6557fi
6558if test -z "$ac_cpp_err"; then
6559  ac_header_preproc=yes
6560else
6561  echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564  ac_header_preproc=no
6565fi
6566rm -f conftest.err conftest.$ac_ext
6567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6568echo "${ECHO_T}$ac_header_preproc" >&6
6569
6570# So?  What about this header?
6571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6572  yes:no: )
6573    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6575    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6577    ac_header_preproc=yes
6578    ;;
6579  no:yes:* )
6580    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6582    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6583echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6584    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6586    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6587echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6588    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6590    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6592    (
6593      cat <<\_ASBOX
6594## ---------------------------------------------- ##
6595## Report this to orxonox-dev at mail.datacore.ch ##
6596## ---------------------------------------------- ##
6597_ASBOX
6598    ) |
6599      sed "s/^/$as_me: WARNING:     /" >&2
6600    ;;
6601esac
6602echo "$as_me:$LINENO: checking for $ac_header" >&5
6603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6604if eval "test \"\${$as_ac_Header+set}\" = set"; then
6605  echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607  eval "$as_ac_Header=\$ac_header_preproc"
6608fi
6609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6611
6612fi
6613if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614  cat >>confdefs.h <<_ACEOF
6615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616_ACEOF
6617
6618else
6619  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6620echo "$as_me: error: cannot find openAL header." >&2;}
6621   { (exit 1); exit 1; }; }
6622fi
6623
6624done
6625
6626# checking for openAL-lib
6627  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6628echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6629if test "${ac_cv_lib_openal_main+set}" = set; then
6630  echo $ECHO_N "(cached) $ECHO_C" >&6
6631else
6632  ac_check_lib_save_LIBS=$LIBS
6633LIBS="-lopenal  $LIBS"
6634cat >conftest.$ac_ext <<_ACEOF
6635/* confdefs.h.  */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h.  */
6640
6641
6642int
6643main ()
6644{
6645main ();
6646  ;
6647  return 0;
6648}
6649_ACEOF
6650rm -f conftest.$ac_objext conftest$ac_exeext
6651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652  (eval $ac_link) 2>conftest.er1
6653  ac_status=$?
6654  grep -v '^ *+' conftest.er1 >conftest.err
6655  rm -f conftest.er1
6656  cat conftest.err >&5
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); } &&
6659         { ac_try='test -z "$ac_c_werror_flag"
6660                         || test ! -s conftest.err'
6661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662  (eval $ac_try) 2>&5
6663  ac_status=$?
6664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665  (exit $ac_status); }; } &&
6666         { ac_try='test -s conftest$ac_exeext'
6667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668  (eval $ac_try) 2>&5
6669  ac_status=$?
6670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671  (exit $ac_status); }; }; then
6672  ac_cv_lib_openal_main=yes
6673else
6674  echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677ac_cv_lib_openal_main=no
6678fi
6679rm -f conftest.err conftest.$ac_objext \
6680      conftest$ac_exeext conftest.$ac_ext
6681LIBS=$ac_check_lib_save_LIBS
6682fi
6683echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6684echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6685if test $ac_cv_lib_openal_main = yes; then
6686  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
6687fi
6688
6689     if test x$FOUND_OPENAL != xyes ; then
6690        echo "------------------"
6691        echo "openal library not found."
6692        echo "please install the openal library, which can be found at http://www.openal.org"
6693        echo "------------------"
6694        exit -1
6695     fi
6696# checking for alut
6697
6698for ac_header in AL/alut.h
6699do
6700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6701if eval "test \"\${$as_ac_Header+set}\" = set"; then
6702  echo "$as_me:$LINENO: checking for $ac_header" >&5
6703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6704if eval "test \"\${$as_ac_Header+set}\" = set"; then
6705  echo $ECHO_N "(cached) $ECHO_C" >&6
6706fi
6707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709else
6710  # Is the header compilable?
6711echo "$as_me:$LINENO: checking $ac_header usability" >&5
6712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6713cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h.  */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h.  */
6719$ac_includes_default
6720#include <$ac_header>
6721_ACEOF
6722rm -f conftest.$ac_objext
6723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6724  (eval $ac_compile) 2>conftest.er1
6725  ac_status=$?
6726  grep -v '^ *+' conftest.er1 >conftest.err
6727  rm -f conftest.er1
6728  cat conftest.err >&5
6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); } &&
6731         { ac_try='test -z "$ac_c_werror_flag"
6732                         || test ! -s conftest.err'
6733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734  (eval $ac_try) 2>&5
6735  ac_status=$?
6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737  (exit $ac_status); }; } &&
6738         { ac_try='test -s conftest.$ac_objext'
6739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740  (eval $ac_try) 2>&5
6741  ac_status=$?
6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743  (exit $ac_status); }; }; then
6744  ac_header_compiler=yes
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749ac_header_compiler=no
6750fi
6751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6753echo "${ECHO_T}$ac_header_compiler" >&6
6754
6755# Is the header present?
6756echo "$as_me:$LINENO: checking $ac_header presence" >&5
6757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6758cat >conftest.$ac_ext <<_ACEOF
6759/* confdefs.h.  */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h.  */
6764#include <$ac_header>
6765_ACEOF
6766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6767  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6768  ac_status=$?
6769  grep -v '^ *+' conftest.er1 >conftest.err
6770  rm -f conftest.er1
6771  cat conftest.err >&5
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); } >/dev/null; then
6774  if test -s conftest.err; then
6775    ac_cpp_err=$ac_c_preproc_warn_flag
6776    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6777  else
6778    ac_cpp_err=
6779  fi
6780else
6781  ac_cpp_err=yes
6782fi
6783if test -z "$ac_cpp_err"; then
6784  ac_header_preproc=yes
6785else
6786  echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789  ac_header_preproc=no
6790fi
6791rm -f conftest.err conftest.$ac_ext
6792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6793echo "${ECHO_T}$ac_header_preproc" >&6
6794
6795# So?  What about this header?
6796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6797  yes:no: )
6798    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6800    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6802    ac_header_preproc=yes
6803    ;;
6804  no:yes:* )
6805    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6807    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6808echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6809    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6811    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6812echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6813    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6815    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6817    (
6818      cat <<\_ASBOX
6819## ---------------------------------------------- ##
6820## Report this to orxonox-dev at mail.datacore.ch ##
6821## ---------------------------------------------- ##
6822_ASBOX
6823    ) |
6824      sed "s/^/$as_me: WARNING:     /" >&2
6825    ;;
6826esac
6827echo "$as_me:$LINENO: checking for $ac_header" >&5
6828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6829if eval "test \"\${$as_ac_Header+set}\" = set"; then
6830  echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832  eval "$as_ac_Header=\$ac_header_preproc"
6833fi
6834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6836
6837fi
6838if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839  cat >>confdefs.h <<_ACEOF
6840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6841_ACEOF
6842
6843else
6844  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6845echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6846   { (exit 1); exit 1; }; }
6847fi
6848
6849done
6850
6851  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6852echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6853if test "${ac_cv_lib_alut_main+set}" = set; then
6854  echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856  ac_check_lib_save_LIBS=$LIBS
6857LIBS="-lalut  $LIBS"
6858cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h.  */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h.  */
6864
6865
6866int
6867main ()
6868{
6869main ();
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874rm -f conftest.$ac_objext conftest$ac_exeext
6875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876  (eval $ac_link) 2>conftest.er1
6877  ac_status=$?
6878  grep -v '^ *+' conftest.er1 >conftest.err
6879  rm -f conftest.er1
6880  cat conftest.err >&5
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); } &&
6883         { ac_try='test -z "$ac_c_werror_flag"
6884                         || test ! -s conftest.err'
6885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886  (eval $ac_try) 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); }; } &&
6890         { ac_try='test -s conftest$ac_exeext'
6891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892  (eval $ac_try) 2>&5
6893  ac_status=$?
6894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); }; }; then
6896  ac_cv_lib_alut_main=yes
6897else
6898  echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901ac_cv_lib_alut_main=no
6902fi
6903rm -f conftest.err conftest.$ac_objext \
6904      conftest$ac_exeext conftest.$ac_ext
6905LIBS=$ac_check_lib_save_LIBS
6906fi
6907echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6908echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6909if test $ac_cv_lib_alut_main = yes; then
6910  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
6911fi
6912
6913
6914#-----#
6915# SDL #
6916#-----#
6917# checking for SDL
6918  echo "$as_me:$LINENO: checking for SDL-version" >&5
6919echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6920  SDL_VERSION=`sdl-config --version`
6921  echo $SDL_VERSION
6922
6923   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6924
6925for ac_header in SDL.h
6926do
6927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928if eval "test \"\${$as_ac_Header+set}\" = set"; then
6929  echo "$as_me:$LINENO: checking for $ac_header" >&5
6930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6931if eval "test \"\${$as_ac_Header+set}\" = set"; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933fi
6934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6936else
6937  # Is the header compilable?
6938echo "$as_me:$LINENO: checking $ac_header usability" >&5
6939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6940cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h.  */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h.  */
6946$ac_includes_default
6947#include <$ac_header>
6948_ACEOF
6949rm -f conftest.$ac_objext
6950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951  (eval $ac_compile) 2>conftest.er1
6952  ac_status=$?
6953  grep -v '^ *+' conftest.er1 >conftest.err
6954  rm -f conftest.er1
6955  cat conftest.err >&5
6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); } &&
6958         { ac_try='test -z "$ac_c_werror_flag"
6959                         || test ! -s conftest.err'
6960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961  (eval $ac_try) 2>&5
6962  ac_status=$?
6963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964  (exit $ac_status); }; } &&
6965         { ac_try='test -s conftest.$ac_objext'
6966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967  (eval $ac_try) 2>&5
6968  ac_status=$?
6969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970  (exit $ac_status); }; }; then
6971  ac_header_compiler=yes
6972else
6973  echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976ac_header_compiler=no
6977fi
6978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6980echo "${ECHO_T}$ac_header_compiler" >&6
6981
6982# Is the header present?
6983echo "$as_me:$LINENO: checking $ac_header presence" >&5
6984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6985cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h.  */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h.  */
6991#include <$ac_header>
6992_ACEOF
6993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6995  ac_status=$?
6996  grep -v '^ *+' conftest.er1 >conftest.err
6997  rm -f conftest.er1
6998  cat conftest.err >&5
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } >/dev/null; then
7001  if test -s conftest.err; then
7002    ac_cpp_err=$ac_c_preproc_warn_flag
7003    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7004  else
7005    ac_cpp_err=
7006  fi
7007else
7008  ac_cpp_err=yes
7009fi
7010if test -z "$ac_cpp_err"; then
7011  ac_header_preproc=yes
7012else
7013  echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7016  ac_header_preproc=no
7017fi
7018rm -f conftest.err conftest.$ac_ext
7019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7020echo "${ECHO_T}$ac_header_preproc" >&6
7021
7022# So?  What about this header?
7023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7024  yes:no: )
7025    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7029    ac_header_preproc=yes
7030    ;;
7031  no:yes:* )
7032    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7034    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7035echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7036    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7038    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7039echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7040    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7042    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7044    (
7045      cat <<\_ASBOX
7046## ---------------------------------------------- ##
7047## Report this to orxonox-dev at mail.datacore.ch ##
7048## ---------------------------------------------- ##
7049_ASBOX
7050    ) |
7051      sed "s/^/$as_me: WARNING:     /" >&2
7052    ;;
7053esac
7054echo "$as_me:$LINENO: checking for $ac_header" >&5
7055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7056if eval "test \"\${$as_ac_Header+set}\" = set"; then
7057  echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059  eval "$as_ac_Header=\$ac_header_preproc"
7060fi
7061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7063
7064fi
7065if test `eval echo '${'$as_ac_Header'}'` = yes; then
7066  cat >>confdefs.h <<_ACEOF
7067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068_ACEOF
7069
7070else
7071
7072for ac_header in SDL/SDL.h
7073do
7074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7075if eval "test \"\${$as_ac_Header+set}\" = set"; then
7076  echo "$as_me:$LINENO: checking for $ac_header" >&5
7077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7078if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079  echo $ECHO_N "(cached) $ECHO_C" >&6
7080fi
7081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7083else
7084  # Is the header compilable?
7085echo "$as_me:$LINENO: checking $ac_header usability" >&5
7086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7087cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h.  */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h.  */
7093$ac_includes_default
7094#include <$ac_header>
7095_ACEOF
7096rm -f conftest.$ac_objext
7097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098  (eval $ac_compile) 2>conftest.er1
7099  ac_status=$?
7100  grep -v '^ *+' conftest.er1 >conftest.err
7101  rm -f conftest.er1
7102  cat conftest.err >&5
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); } &&
7105         { ac_try='test -z "$ac_c_werror_flag"
7106                         || test ! -s conftest.err'
7107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108  (eval $ac_try) 2>&5
7109  ac_status=$?
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); }; } &&
7112         { ac_try='test -s conftest.$ac_objext'
7113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114  (eval $ac_try) 2>&5
7115  ac_status=$?
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); }; }; then
7118  ac_header_compiler=yes
7119else
7120  echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123ac_header_compiler=no
7124fi
7125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7127echo "${ECHO_T}$ac_header_compiler" >&6
7128
7129# Is the header present?
7130echo "$as_me:$LINENO: checking $ac_header presence" >&5
7131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7132cat >conftest.$ac_ext <<_ACEOF
7133/* confdefs.h.  */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h.  */
7138#include <$ac_header>
7139_ACEOF
7140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7141  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7142  ac_status=$?
7143  grep -v '^ *+' conftest.er1 >conftest.err
7144  rm -f conftest.er1
7145  cat conftest.err >&5
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); } >/dev/null; then
7148  if test -s conftest.err; then
7149    ac_cpp_err=$ac_c_preproc_warn_flag
7150    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7151  else
7152    ac_cpp_err=
7153  fi
7154else
7155  ac_cpp_err=yes
7156fi
7157if test -z "$ac_cpp_err"; then
7158  ac_header_preproc=yes
7159else
7160  echo "$as_me: failed program was:" >&5
7161sed 's/^/| /' conftest.$ac_ext >&5
7162
7163  ac_header_preproc=no
7164fi
7165rm -f conftest.err conftest.$ac_ext
7166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7167echo "${ECHO_T}$ac_header_preproc" >&6
7168
7169# So?  What about this header?
7170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7171  yes:no: )
7172    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7174    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7176    ac_header_preproc=yes
7177    ;;
7178  no:yes:* )
7179    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7181    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7182echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7183    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7185    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7186echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7189    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7191    (
7192      cat <<\_ASBOX
7193## ---------------------------------------------- ##
7194## Report this to orxonox-dev at mail.datacore.ch ##
7195## ---------------------------------------------- ##
7196_ASBOX
7197    ) |
7198      sed "s/^/$as_me: WARNING:     /" >&2
7199    ;;
7200esac
7201echo "$as_me:$LINENO: checking for $ac_header" >&5
7202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7203if eval "test \"\${$as_ac_Header+set}\" = set"; then
7204  echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206  eval "$as_ac_Header=\$ac_header_preproc"
7207fi
7208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7210
7211fi
7212if test `eval echo '${'$as_ac_Header'}'` = yes; then
7213  cat >>confdefs.h <<_ACEOF
7214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7215_ACEOF
7216
7217else
7218  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7219echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7220   { (exit 1); exit 1; }; }
7221fi
7222
7223done
7224
7225fi
7226
7227done
7228
7229   LIBS="`sdl-config --libs` $LIBS"
7230   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7231echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7232if test "${ac_cv_lib_SDL_main+set}" = set; then
7233  echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235  ac_check_lib_save_LIBS=$LIBS
7236LIBS="-lSDL  $LIBS"
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h.  */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h.  */
7243
7244
7245int
7246main ()
7247{
7248main ();
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253rm -f conftest.$ac_objext conftest$ac_exeext
7254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255  (eval $ac_link) 2>conftest.er1
7256  ac_status=$?
7257  grep -v '^ *+' conftest.er1 >conftest.err
7258  rm -f conftest.er1
7259  cat conftest.err >&5
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); } &&
7262         { ac_try='test -z "$ac_c_werror_flag"
7263                         || test ! -s conftest.err'
7264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265  (eval $ac_try) 2>&5
7266  ac_status=$?
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); }; } &&
7269         { ac_try='test -s conftest$ac_exeext'
7270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271  (eval $ac_try) 2>&5
7272  ac_status=$?
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); }; }; then
7275  ac_cv_lib_SDL_main=yes
7276else
7277  echo "$as_me: failed program was:" >&5
7278sed 's/^/| /' conftest.$ac_ext >&5
7279
7280ac_cv_lib_SDL_main=no
7281fi
7282rm -f conftest.err conftest.$ac_objext \
7283      conftest$ac_exeext conftest.$ac_ext
7284LIBS=$ac_check_lib_save_LIBS
7285fi
7286echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7287echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7288if test $ac_cv_lib_SDL_main = yes; then
7289  FOUND_SDL=yes
7290fi
7291
7292    if test x$FOUND_SDL != xyes ; then
7293        echo "------------------"
7294        echo "SDL library not found."
7295        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7296        echo "------------------"
7297        exit -1
7298     fi
7299
7300    ;;
7301
7302#############
7303#-----------#
7304# MAC -OS X #
7305#-----------#
7306#############
7307 *darwin*)
7308 echo "OS X detected"
7309
7310 osX="yes"
7311
7312 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7313 LDFLAGS="$LDFLAGS -L/sw/lib"
7314# checking gl header
7315
7316for ac_header in OpenGL/gl.h
7317do
7318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7319if eval "test \"\${$as_ac_Header+set}\" = set"; then
7320  echo "$as_me:$LINENO: checking for $ac_header" >&5
7321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7322if eval "test \"\${$as_ac_Header+set}\" = set"; then
7323  echo $ECHO_N "(cached) $ECHO_C" >&6
7324fi
7325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7327else
7328  # Is the header compilable?
7329echo "$as_me:$LINENO: checking $ac_header usability" >&5
7330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7331cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337$ac_includes_default
7338#include <$ac_header>
7339_ACEOF
7340rm -f conftest.$ac_objext
7341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7342  (eval $ac_compile) 2>conftest.er1
7343  ac_status=$?
7344  grep -v '^ *+' conftest.er1 >conftest.err
7345  rm -f conftest.er1
7346  cat conftest.err >&5
7347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348  (exit $ac_status); } &&
7349         { ac_try='test -z "$ac_c_werror_flag"
7350                         || test ! -s conftest.err'
7351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352  (eval $ac_try) 2>&5
7353  ac_status=$?
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); }; } &&
7356         { ac_try='test -s conftest.$ac_objext'
7357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358  (eval $ac_try) 2>&5
7359  ac_status=$?
7360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361  (exit $ac_status); }; }; then
7362  ac_header_compiler=yes
7363else
7364  echo "$as_me: failed program was:" >&5
7365sed 's/^/| /' conftest.$ac_ext >&5
7366
7367ac_header_compiler=no
7368fi
7369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7371echo "${ECHO_T}$ac_header_compiler" >&6
7372
7373# Is the header present?
7374echo "$as_me:$LINENO: checking $ac_header presence" >&5
7375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7376cat >conftest.$ac_ext <<_ACEOF
7377/* confdefs.h.  */
7378_ACEOF
7379cat confdefs.h >>conftest.$ac_ext
7380cat >>conftest.$ac_ext <<_ACEOF
7381/* end confdefs.h.  */
7382#include <$ac_header>
7383_ACEOF
7384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7386  ac_status=$?
7387  grep -v '^ *+' conftest.er1 >conftest.err
7388  rm -f conftest.er1
7389  cat conftest.err >&5
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); } >/dev/null; then
7392  if test -s conftest.err; then
7393    ac_cpp_err=$ac_c_preproc_warn_flag
7394    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7395  else
7396    ac_cpp_err=
7397  fi
7398else
7399  ac_cpp_err=yes
7400fi
7401if test -z "$ac_cpp_err"; then
7402  ac_header_preproc=yes
7403else
7404  echo "$as_me: failed program was:" >&5
7405sed 's/^/| /' conftest.$ac_ext >&5
7406
7407  ac_header_preproc=no
7408fi
7409rm -f conftest.err conftest.$ac_ext
7410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7411echo "${ECHO_T}$ac_header_preproc" >&6
7412
7413# So?  What about this header?
7414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7415  yes:no: )
7416    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7420    ac_header_preproc=yes
7421    ;;
7422  no:yes:* )
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7426echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7427    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7429    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7430echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7431    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7433    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7435    (
7436      cat <<\_ASBOX
7437## ---------------------------------------------- ##
7438## Report this to orxonox-dev at mail.datacore.ch ##
7439## ---------------------------------------------- ##
7440_ASBOX
7441    ) |
7442      sed "s/^/$as_me: WARNING:     /" >&2
7443    ;;
7444esac
7445echo "$as_me:$LINENO: checking for $ac_header" >&5
7446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7447if eval "test \"\${$as_ac_Header+set}\" = set"; then
7448  echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450  eval "$as_ac_Header=\$ac_header_preproc"
7451fi
7452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7454
7455fi
7456if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457  cat >>confdefs.h <<_ACEOF
7458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459_ACEOF
7460
7461else
7462  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7463echo "$as_me: error: cannot find opengl headers" >&2;}
7464   { (exit 1); exit 1; }; }
7465fi
7466
7467done
7468
7469# cheking for GLU-header
7470
7471for ac_header in OpenGL/glu.h
7472do
7473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474if eval "test \"\${$as_ac_Header+set}\" = set"; then
7475  echo "$as_me:$LINENO: checking for $ac_header" >&5
7476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7477if eval "test \"\${$as_ac_Header+set}\" = set"; then
7478  echo $ECHO_N "(cached) $ECHO_C" >&6
7479fi
7480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7482else
7483  # Is the header compilable?
7484echo "$as_me:$LINENO: checking $ac_header usability" >&5
7485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7486cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h.  */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h.  */
7492$ac_includes_default
7493#include <$ac_header>
7494_ACEOF
7495rm -f conftest.$ac_objext
7496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497  (eval $ac_compile) 2>conftest.er1
7498  ac_status=$?
7499  grep -v '^ *+' conftest.er1 >conftest.err
7500  rm -f conftest.er1
7501  cat conftest.err >&5
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); } &&
7504         { ac_try='test -z "$ac_c_werror_flag"
7505                         || test ! -s conftest.err'
7506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507  (eval $ac_try) 2>&5
7508  ac_status=$?
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); }; } &&
7511         { ac_try='test -s conftest.$ac_objext'
7512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513  (eval $ac_try) 2>&5
7514  ac_status=$?
7515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516  (exit $ac_status); }; }; then
7517  ac_header_compiler=yes
7518else
7519  echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522ac_header_compiler=no
7523fi
7524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7526echo "${ECHO_T}$ac_header_compiler" >&6
7527
7528# Is the header present?
7529echo "$as_me:$LINENO: checking $ac_header presence" >&5
7530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7531cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h.  */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h.  */
7537#include <$ac_header>
7538_ACEOF
7539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7540  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7541  ac_status=$?
7542  grep -v '^ *+' conftest.er1 >conftest.err
7543  rm -f conftest.er1
7544  cat conftest.err >&5
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); } >/dev/null; then
7547  if test -s conftest.err; then
7548    ac_cpp_err=$ac_c_preproc_warn_flag
7549    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7550  else
7551    ac_cpp_err=
7552  fi
7553else
7554  ac_cpp_err=yes
7555fi
7556if test -z "$ac_cpp_err"; then
7557  ac_header_preproc=yes
7558else
7559  echo "$as_me: failed program was:" >&5
7560sed 's/^/| /' conftest.$ac_ext >&5
7561
7562  ac_header_preproc=no
7563fi
7564rm -f conftest.err conftest.$ac_ext
7565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566echo "${ECHO_T}$ac_header_preproc" >&6
7567
7568# So?  What about this header?
7569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7570  yes:no: )
7571    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7575    ac_header_preproc=yes
7576    ;;
7577  no:yes:* )
7578    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7580    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7581echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7582    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7584    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7585echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7586    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7588    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7590    (
7591      cat <<\_ASBOX
7592## ---------------------------------------------- ##
7593## Report this to orxonox-dev at mail.datacore.ch ##
7594## ---------------------------------------------- ##
7595_ASBOX
7596    ) |
7597      sed "s/^/$as_me: WARNING:     /" >&2
7598    ;;
7599esac
7600echo "$as_me:$LINENO: checking for $ac_header" >&5
7601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  eval "$as_ac_Header=\$ac_header_preproc"
7606fi
7607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7609
7610fi
7611if test `eval echo '${'$as_ac_Header'}'` = yes; then
7612  cat >>confdefs.h <<_ACEOF
7613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7614_ACEOF
7615
7616else
7617  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7618echo "$as_me: error: cannot find opengl headers" >&2;}
7619   { (exit 1); exit 1; }; }
7620fi
7621
7622done
7623
7624
7625   LIBS="$LIBS -framework OpenGL"
7626
7627
7628
7629# checking for GLEW-headers
7630
7631for ac_header in GL/glew.h
7632do
7633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634if eval "test \"\${$as_ac_Header+set}\" = set"; then
7635  echo "$as_me:$LINENO: checking for $ac_header" >&5
7636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7637if eval "test \"\${$as_ac_Header+set}\" = set"; then
7638  echo $ECHO_N "(cached) $ECHO_C" >&6
7639fi
7640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7642else
7643  # Is the header compilable?
7644echo "$as_me:$LINENO: checking $ac_header usability" >&5
7645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7646cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h.  */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h.  */
7652$ac_includes_default
7653#include <$ac_header>
7654_ACEOF
7655rm -f conftest.$ac_objext
7656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657  (eval $ac_compile) 2>conftest.er1
7658  ac_status=$?
7659  grep -v '^ *+' conftest.er1 >conftest.err
7660  rm -f conftest.er1
7661  cat conftest.err >&5
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); } &&
7664         { ac_try='test -z "$ac_c_werror_flag"
7665                         || test ! -s conftest.err'
7666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667  (eval $ac_try) 2>&5
7668  ac_status=$?
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); }; } &&
7671         { ac_try='test -s conftest.$ac_objext'
7672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673  (eval $ac_try) 2>&5
7674  ac_status=$?
7675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676  (exit $ac_status); }; }; then
7677  ac_header_compiler=yes
7678else
7679  echo "$as_me: failed program was:" >&5
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7682ac_header_compiler=no
7683fi
7684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7686echo "${ECHO_T}$ac_header_compiler" >&6
7687
7688# Is the header present?
7689echo "$as_me:$LINENO: checking $ac_header presence" >&5
7690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7691cat >conftest.$ac_ext <<_ACEOF
7692/* confdefs.h.  */
7693_ACEOF
7694cat confdefs.h >>conftest.$ac_ext
7695cat >>conftest.$ac_ext <<_ACEOF
7696/* end confdefs.h.  */
7697#include <$ac_header>
7698_ACEOF
7699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7700  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7701  ac_status=$?
7702  grep -v '^ *+' conftest.er1 >conftest.err
7703  rm -f conftest.er1
7704  cat conftest.err >&5
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); } >/dev/null; then
7707  if test -s conftest.err; then
7708    ac_cpp_err=$ac_c_preproc_warn_flag
7709    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7710  else
7711    ac_cpp_err=
7712  fi
7713else
7714  ac_cpp_err=yes
7715fi
7716if test -z "$ac_cpp_err"; then
7717  ac_header_preproc=yes
7718else
7719  echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722  ac_header_preproc=no
7723fi
7724rm -f conftest.err conftest.$ac_ext
7725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7726echo "${ECHO_T}$ac_header_preproc" >&6
7727
7728# So?  What about this header?
7729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7730  yes:no: )
7731    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7733    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7735    ac_header_preproc=yes
7736    ;;
7737  no:yes:* )
7738    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7740    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7741echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7742    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7744    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7745echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7746    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7748    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7750    (
7751      cat <<\_ASBOX
7752## ---------------------------------------------- ##
7753## Report this to orxonox-dev at mail.datacore.ch ##
7754## ---------------------------------------------- ##
7755_ASBOX
7756    ) |
7757      sed "s/^/$as_me: WARNING:     /" >&2
7758    ;;
7759esac
7760echo "$as_me:$LINENO: checking for $ac_header" >&5
7761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7762if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763  echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765  eval "$as_ac_Header=\$ac_header_preproc"
7766fi
7767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7769
7770fi
7771if test `eval echo '${'$as_ac_Header'}'` = yes; then
7772  cat >>confdefs.h <<_ACEOF
7773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774_ACEOF
7775
7776else
7777  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
7778echo "$as_me: error: cannot find glew headers" >&2;}
7779   { (exit 1); exit 1; }; }
7780fi
7781
7782done
7783
7784# checking for GLEW-lib
7785  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
7786echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
7787if test "${ac_cv_lib_GLEW_main+set}" = set; then
7788  echo $ECHO_N "(cached) $ECHO_C" >&6
7789else
7790  ac_check_lib_save_LIBS=$LIBS
7791LIBS="-lGLEW  $LIBS"
7792cat >conftest.$ac_ext <<_ACEOF
7793/* confdefs.h.  */
7794_ACEOF
7795cat confdefs.h >>conftest.$ac_ext
7796cat >>conftest.$ac_ext <<_ACEOF
7797/* end confdefs.h.  */
7798
7799
7800int
7801main ()
7802{
7803main ();
7804  ;
7805  return 0;
7806}
7807_ACEOF
7808rm -f conftest.$ac_objext conftest$ac_exeext
7809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810  (eval $ac_link) 2>conftest.er1
7811  ac_status=$?
7812  grep -v '^ *+' conftest.er1 >conftest.err
7813  rm -f conftest.er1
7814  cat conftest.err >&5
7815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816  (exit $ac_status); } &&
7817         { ac_try='test -z "$ac_c_werror_flag"
7818                         || test ! -s conftest.err'
7819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820  (eval $ac_try) 2>&5
7821  ac_status=$?
7822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823  (exit $ac_status); }; } &&
7824         { ac_try='test -s conftest$ac_exeext'
7825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826  (eval $ac_try) 2>&5
7827  ac_status=$?
7828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829  (exit $ac_status); }; }; then
7830  ac_cv_lib_GLEW_main=yes
7831else
7832  echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835ac_cv_lib_GLEW_main=no
7836fi
7837rm -f conftest.err conftest.$ac_objext \
7838      conftest$ac_exeext conftest.$ac_ext
7839LIBS=$ac_check_lib_save_LIBS
7840fi
7841echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
7842echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
7843if test $ac_cv_lib_GLEW_main = yes; then
7844  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
7845fi
7846
7847   if test x$FOUND_GLEW != xyes ; then
7848         echo "------------------"
7849         echo "glew not found."
7850         echo "please install the glew package which can be found at http://glew.sourceforge.net"
7851         echo "------------------"
7852         exit -1
7853   fi
7854
7855
7856
7857for ac_header in OpenAL/al.h
7858do
7859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861  echo "$as_me:$LINENO: checking for $ac_header" >&5
7862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7863if eval "test \"\${$as_ac_Header+set}\" = set"; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865fi
7866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868else
7869  # Is the header compilable?
7870echo "$as_me:$LINENO: checking $ac_header usability" >&5
7871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7872cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h.  */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h.  */
7878$ac_includes_default
7879#include <$ac_header>
7880_ACEOF
7881rm -f conftest.$ac_objext
7882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883  (eval $ac_compile) 2>conftest.er1
7884  ac_status=$?
7885  grep -v '^ *+' conftest.er1 >conftest.err
7886  rm -f conftest.er1
7887  cat conftest.err >&5
7888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889  (exit $ac_status); } &&
7890         { ac_try='test -z "$ac_c_werror_flag"
7891                         || test ! -s conftest.err'
7892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893  (eval $ac_try) 2>&5
7894  ac_status=$?
7895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896  (exit $ac_status); }; } &&
7897         { ac_try='test -s conftest.$ac_objext'
7898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899  (eval $ac_try) 2>&5
7900  ac_status=$?
7901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902  (exit $ac_status); }; }; then
7903  ac_header_compiler=yes
7904else
7905  echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908ac_header_compiler=no
7909fi
7910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7912echo "${ECHO_T}$ac_header_compiler" >&6
7913
7914# Is the header present?
7915echo "$as_me:$LINENO: checking $ac_header presence" >&5
7916echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7917cat >conftest.$ac_ext <<_ACEOF
7918/* confdefs.h.  */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h.  */
7923#include <$ac_header>
7924_ACEOF
7925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7926  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7927  ac_status=$?
7928  grep -v '^ *+' conftest.er1 >conftest.err
7929  rm -f conftest.er1
7930  cat conftest.err >&5
7931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932  (exit $ac_status); } >/dev/null; then
7933  if test -s conftest.err; then
7934    ac_cpp_err=$ac_c_preproc_warn_flag
7935    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7936  else
7937    ac_cpp_err=
7938  fi
7939else
7940  ac_cpp_err=yes
7941fi
7942if test -z "$ac_cpp_err"; then
7943  ac_header_preproc=yes
7944else
7945  echo "$as_me: failed program was:" >&5
7946sed 's/^/| /' conftest.$ac_ext >&5
7947
7948  ac_header_preproc=no
7949fi
7950rm -f conftest.err conftest.$ac_ext
7951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7952echo "${ECHO_T}$ac_header_preproc" >&6
7953
7954# So?  What about this header?
7955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7956  yes:no: )
7957    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7959    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7961    ac_header_preproc=yes
7962    ;;
7963  no:yes:* )
7964    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7966    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7967echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7968    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7970    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7971echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7972    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7974    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7976    (
7977      cat <<\_ASBOX
7978## ---------------------------------------------- ##
7979## Report this to orxonox-dev at mail.datacore.ch ##
7980## ---------------------------------------------- ##
7981_ASBOX
7982    ) |
7983      sed "s/^/$as_me: WARNING:     /" >&2
7984    ;;
7985esac
7986echo "$as_me:$LINENO: checking for $ac_header" >&5
7987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989  echo $ECHO_N "(cached) $ECHO_C" >&6
7990else
7991  eval "$as_ac_Header=\$ac_header_preproc"
7992fi
7993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995
7996fi
7997if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998  cat >>confdefs.h <<_ACEOF
7999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000_ACEOF
8001
8002else
8003  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
8004echo "$as_me: error: cannot find opengl headers" >&2;}
8005   { (exit 1); exit 1; }; }
8006fi
8007
8008done
8009
8010  HAVE_OPENAL=yes
8011  LIBS="$LIBS -framework OpenAL"
8012
8013
8014## SDL-check
8015       SDL_CFLAGS=`sdl-config --cflags`
8016       SDL_LIBS=`sdl-config --libs`
8017       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8018       LIBS="$LIBS $SDL_LIBS"
8019
8020for ac_header in SDL/SDL.h
8021do
8022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8023if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024  echo "$as_me:$LINENO: checking for $ac_header" >&5
8025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8026if eval "test \"\${$as_ac_Header+set}\" = set"; then
8027  echo $ECHO_N "(cached) $ECHO_C" >&6
8028fi
8029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8031else
8032  # Is the header compilable?
8033echo "$as_me:$LINENO: checking $ac_header usability" >&5
8034echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8035cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h.  */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h.  */
8041$ac_includes_default
8042#include <$ac_header>
8043_ACEOF
8044rm -f conftest.$ac_objext
8045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046  (eval $ac_compile) 2>conftest.er1
8047  ac_status=$?
8048  grep -v '^ *+' conftest.er1 >conftest.err
8049  rm -f conftest.er1
8050  cat conftest.err >&5
8051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052  (exit $ac_status); } &&
8053         { ac_try='test -z "$ac_c_werror_flag"
8054                         || test ! -s conftest.err'
8055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056  (eval $ac_try) 2>&5
8057  ac_status=$?
8058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059  (exit $ac_status); }; } &&
8060         { ac_try='test -s conftest.$ac_objext'
8061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062  (eval $ac_try) 2>&5
8063  ac_status=$?
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); }; }; then
8066  ac_header_compiler=yes
8067else
8068  echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
8071ac_header_compiler=no
8072fi
8073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8075echo "${ECHO_T}$ac_header_compiler" >&6
8076
8077# Is the header present?
8078echo "$as_me:$LINENO: checking $ac_header presence" >&5
8079echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8080cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h.  */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h.  */
8086#include <$ac_header>
8087_ACEOF
8088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8090  ac_status=$?
8091  grep -v '^ *+' conftest.er1 >conftest.err
8092  rm -f conftest.er1
8093  cat conftest.err >&5
8094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095  (exit $ac_status); } >/dev/null; then
8096  if test -s conftest.err; then
8097    ac_cpp_err=$ac_c_preproc_warn_flag
8098    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8099  else
8100    ac_cpp_err=
8101  fi
8102else
8103  ac_cpp_err=yes
8104fi
8105if test -z "$ac_cpp_err"; then
8106  ac_header_preproc=yes
8107else
8108  echo "$as_me: failed program was:" >&5
8109sed 's/^/| /' conftest.$ac_ext >&5
8110
8111  ac_header_preproc=no
8112fi
8113rm -f conftest.err conftest.$ac_ext
8114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8115echo "${ECHO_T}$ac_header_preproc" >&6
8116
8117# So?  What about this header?
8118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8119  yes:no: )
8120    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8121echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8122    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8123echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8124    ac_header_preproc=yes
8125    ;;
8126  no:yes:* )
8127    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8128echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8129    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8130echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8131    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8132echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8133    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8134echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8135    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8137    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8138echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8139    (
8140      cat <<\_ASBOX
8141## ---------------------------------------------- ##
8142## Report this to orxonox-dev at mail.datacore.ch ##
8143## ---------------------------------------------- ##
8144_ASBOX
8145    ) |
8146      sed "s/^/$as_me: WARNING:     /" >&2
8147    ;;
8148esac
8149echo "$as_me:$LINENO: checking for $ac_header" >&5
8150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8151if eval "test \"\${$as_ac_Header+set}\" = set"; then
8152  echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154  eval "$as_ac_Header=\$ac_header_preproc"
8155fi
8156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8158
8159fi
8160if test `eval echo '${'$as_ac_Header'}'` = yes; then
8161  cat >>confdefs.h <<_ACEOF
8162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8163_ACEOF
8164
8165else
8166  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
8167echo "$as_me: error: cannot find SDL headers" >&2;}
8168   { (exit 1); exit 1; }; }
8169fi
8170
8171done
8172
8173   HAVE_SDL=yes
8174#   LIBS="$LIBS -framework SDL"
8175
8176# checking for SDL-headers
8177#    AC_CHECK_HEADERS(SDL/SDL.h ,,
8178#      [AC_MSG_ERROR([cannot find SDL headers]) ])
8179
8180## checking for SDL
8181#    SDL_VERSION=1.2.7
8182#    AM_PATH_SDL($SDL_VERSION,
8183#      :,
8184#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
8185#      )
8186
8187
8188    ;;
8189
8190  *)
8191    ;;
8192esac
8193
8194
8195
8196###################################
8197## CHECKING FOR HEADERS AND LIBS ##
8198###################################
8199
8200#---------#
8201# SDL_ttf #
8202#---------#
8203# checking for SDL_ttf-headers
8204
8205for ac_header in SDL_ttf.h
8206do
8207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8208if eval "test \"\${$as_ac_Header+set}\" = set"; then
8209  echo "$as_me:$LINENO: checking for $ac_header" >&5
8210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8211if eval "test \"\${$as_ac_Header+set}\" = set"; then
8212  echo $ECHO_N "(cached) $ECHO_C" >&6
8213fi
8214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8216else
8217  # Is the header compilable?
8218echo "$as_me:$LINENO: checking $ac_header usability" >&5
8219echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8220cat >conftest.$ac_ext <<_ACEOF
8221/* confdefs.h.  */
8222_ACEOF
8223cat confdefs.h >>conftest.$ac_ext
8224cat >>conftest.$ac_ext <<_ACEOF
8225/* end confdefs.h.  */
8226$ac_includes_default
8227#include <$ac_header>
8228_ACEOF
8229rm -f conftest.$ac_objext
8230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231  (eval $ac_compile) 2>conftest.er1
8232  ac_status=$?
8233  grep -v '^ *+' conftest.er1 >conftest.err
8234  rm -f conftest.er1
8235  cat conftest.err >&5
8236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237  (exit $ac_status); } &&
8238         { ac_try='test -z "$ac_c_werror_flag"
8239                         || test ! -s conftest.err'
8240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241  (eval $ac_try) 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); }; } &&
8245         { ac_try='test -s conftest.$ac_objext'
8246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247  (eval $ac_try) 2>&5
8248  ac_status=$?
8249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250  (exit $ac_status); }; }; then
8251  ac_header_compiler=yes
8252else
8253  echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256ac_header_compiler=no
8257fi
8258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8260echo "${ECHO_T}$ac_header_compiler" >&6
8261
8262# Is the header present?
8263echo "$as_me:$LINENO: checking $ac_header presence" >&5
8264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8265cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h.  */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h.  */
8271#include <$ac_header>
8272_ACEOF
8273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8275  ac_status=$?
8276  grep -v '^ *+' conftest.er1 >conftest.err
8277  rm -f conftest.er1
8278  cat conftest.err >&5
8279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280  (exit $ac_status); } >/dev/null; then
8281  if test -s conftest.err; then
8282    ac_cpp_err=$ac_c_preproc_warn_flag
8283    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8284  else
8285    ac_cpp_err=
8286  fi
8287else
8288  ac_cpp_err=yes
8289fi
8290if test -z "$ac_cpp_err"; then
8291  ac_header_preproc=yes
8292else
8293  echo "$as_me: failed program was:" >&5
8294sed 's/^/| /' conftest.$ac_ext >&5
8295
8296  ac_header_preproc=no
8297fi
8298rm -f conftest.err conftest.$ac_ext
8299echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8300echo "${ECHO_T}$ac_header_preproc" >&6
8301
8302# So?  What about this header?
8303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8304  yes:no: )
8305    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8306echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8307    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8308echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8309    ac_header_preproc=yes
8310    ;;
8311  no:yes:* )
8312    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8313echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8314    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8315echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8316    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8317echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8318    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8319echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8320    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8321echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8322    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8323echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8324    (
8325      cat <<\_ASBOX
8326## ---------------------------------------------- ##
8327## Report this to orxonox-dev at mail.datacore.ch ##
8328## ---------------------------------------------- ##
8329_ASBOX
8330    ) |
8331      sed "s/^/$as_me: WARNING:     /" >&2
8332    ;;
8333esac
8334echo "$as_me:$LINENO: checking for $ac_header" >&5
8335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8336if eval "test \"\${$as_ac_Header+set}\" = set"; then
8337  echo $ECHO_N "(cached) $ECHO_C" >&6
8338else
8339  eval "$as_ac_Header=\$ac_header_preproc"
8340fi
8341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8343
8344fi
8345if test `eval echo '${'$as_ac_Header'}'` = yes; then
8346  cat >>confdefs.h <<_ACEOF
8347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348_ACEOF
8349
8350else
8351
8352for ac_header in SDL/SDL_ttf.h
8353do
8354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8355if eval "test \"\${$as_ac_Header+set}\" = set"; then
8356  echo "$as_me:$LINENO: checking for $ac_header" >&5
8357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8358if eval "test \"\${$as_ac_Header+set}\" = set"; then
8359  echo $ECHO_N "(cached) $ECHO_C" >&6
8360fi
8361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8363else
8364  # Is the header compilable?
8365echo "$as_me:$LINENO: checking $ac_header usability" >&5
8366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8367cat >conftest.$ac_ext <<_ACEOF
8368/* confdefs.h.  */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h.  */
8373$ac_includes_default
8374#include <$ac_header>
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8378  (eval $ac_compile) 2>conftest.er1
8379  ac_status=$?
8380  grep -v '^ *+' conftest.er1 >conftest.err
8381  rm -f conftest.er1
8382  cat conftest.err >&5
8383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384  (exit $ac_status); } &&
8385         { ac_try='test -z "$ac_c_werror_flag"
8386                         || test ! -s conftest.err'
8387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388  (eval $ac_try) 2>&5
8389  ac_status=$?
8390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391  (exit $ac_status); }; } &&
8392         { ac_try='test -s conftest.$ac_objext'
8393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394  (eval $ac_try) 2>&5
8395  ac_status=$?
8396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397  (exit $ac_status); }; }; then
8398  ac_header_compiler=yes
8399else
8400  echo "$as_me: failed program was:" >&5
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403ac_header_compiler=no
8404fi
8405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8407echo "${ECHO_T}$ac_header_compiler" >&6
8408
8409# Is the header present?
8410echo "$as_me:$LINENO: checking $ac_header presence" >&5
8411echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8412cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h.  */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h.  */
8418#include <$ac_header>
8419_ACEOF
8420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422  ac_status=$?
8423  grep -v '^ *+' conftest.er1 >conftest.err
8424  rm -f conftest.er1
8425  cat conftest.err >&5
8426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427  (exit $ac_status); } >/dev/null; then
8428  if test -s conftest.err; then
8429    ac_cpp_err=$ac_c_preproc_warn_flag
8430    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8431  else
8432    ac_cpp_err=
8433  fi
8434else
8435  ac_cpp_err=yes
8436fi
8437if test -z "$ac_cpp_err"; then
8438  ac_header_preproc=yes
8439else
8440  echo "$as_me: failed program was:" >&5
8441sed 's/^/| /' conftest.$ac_ext >&5
8442
8443  ac_header_preproc=no
8444fi
8445rm -f conftest.err conftest.$ac_ext
8446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8447echo "${ECHO_T}$ac_header_preproc" >&6
8448
8449# So?  What about this header?
8450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8451  yes:no: )
8452    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8454    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8456    ac_header_preproc=yes
8457    ;;
8458  no:yes:* )
8459    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8461    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8462echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8463    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8465    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8466echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8467    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8469    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8471    (
8472      cat <<\_ASBOX
8473## ---------------------------------------------- ##
8474## Report this to orxonox-dev at mail.datacore.ch ##
8475## ---------------------------------------------- ##
8476_ASBOX
8477    ) |
8478      sed "s/^/$as_me: WARNING:     /" >&2
8479    ;;
8480esac
8481echo "$as_me:$LINENO: checking for $ac_header" >&5
8482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484  echo $ECHO_N "(cached) $ECHO_C" >&6
8485else
8486  eval "$as_ac_Header=\$ac_header_preproc"
8487fi
8488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8490
8491fi
8492if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493  cat >>confdefs.h <<_ACEOF
8494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495_ACEOF
8496
8497else
8498  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
8499echo "$as_me: error: cannot find SDL_ttf header." >&2;}
8500   { (exit 1); exit 1; }; }
8501fi
8502
8503done
8504
8505fi
8506
8507done
8508
8509# checking for SDL_ttf-lib
8510  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
8511echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
8512if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
8513  echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515  ac_check_lib_save_LIBS=$LIBS
8516LIBS="-lSDL_ttf  $LIBS"
8517cat >conftest.$ac_ext <<_ACEOF
8518/* confdefs.h.  */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h.  */
8523
8524/* Override any gcc2 internal prototype to avoid an error.  */
8525#ifdef __cplusplus
8526extern "C"
8527#endif
8528/* We use char because int might match the return type of a gcc2
8529   builtin and then its argument prototype would still apply.  */
8530char TTF_OpenFont ();
8531int
8532main ()
8533{
8534TTF_OpenFont ();
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539rm -f conftest.$ac_objext conftest$ac_exeext
8540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541  (eval $ac_link) 2>conftest.er1
8542  ac_status=$?
8543  grep -v '^ *+' conftest.er1 >conftest.err
8544  rm -f conftest.er1
8545  cat conftest.err >&5
8546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547  (exit $ac_status); } &&
8548         { ac_try='test -z "$ac_c_werror_flag"
8549                         || test ! -s conftest.err'
8550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551  (eval $ac_try) 2>&5
8552  ac_status=$?
8553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554  (exit $ac_status); }; } &&
8555         { ac_try='test -s conftest$ac_exeext'
8556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557  (eval $ac_try) 2>&5
8558  ac_status=$?
8559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560  (exit $ac_status); }; }; then
8561  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
8562else
8563  echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566ac_cv_lib_SDL_ttf_TTF_OpenFont=no
8567fi
8568rm -f conftest.err conftest.$ac_objext \
8569      conftest$ac_exeext conftest.$ac_ext
8570LIBS=$ac_check_lib_save_LIBS
8571fi
8572echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8573echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8574if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
8575  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
8576fi
8577
8578     if test x$FOUND_SDL_ttf != xyes ; then
8579        echo "------------------"
8580        echo "SDL_ttf library not found."
8581        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8582        echo "------------------"
8583        exit -1
8584     fi
8585
8586#-----------#
8587# SDL_Image #
8588#-----------#
8589# checking for SDL_image-headers
8590
8591for ac_header in SDL_image.h
8592do
8593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595  echo "$as_me:$LINENO: checking for $ac_header" >&5
8596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598  echo $ECHO_N "(cached) $ECHO_C" >&6
8599fi
8600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602else
8603  # Is the header compilable?
8604echo "$as_me:$LINENO: checking $ac_header usability" >&5
8605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8606cat >conftest.$ac_ext <<_ACEOF
8607/* confdefs.h.  */
8608_ACEOF
8609cat confdefs.h >>conftest.$ac_ext
8610cat >>conftest.$ac_ext <<_ACEOF
8611/* end confdefs.h.  */
8612$ac_includes_default
8613#include <$ac_header>
8614_ACEOF
8615rm -f conftest.$ac_objext
8616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617  (eval $ac_compile) 2>conftest.er1
8618  ac_status=$?
8619  grep -v '^ *+' conftest.er1 >conftest.err
8620  rm -f conftest.er1
8621  cat conftest.err >&5
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); } &&
8624         { ac_try='test -z "$ac_c_werror_flag"
8625                         || test ! -s conftest.err'
8626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627  (eval $ac_try) 2>&5
8628  ac_status=$?
8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); }; } &&
8631         { ac_try='test -s conftest.$ac_objext'
8632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633  (eval $ac_try) 2>&5
8634  ac_status=$?
8635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636  (exit $ac_status); }; }; then
8637  ac_header_compiler=yes
8638else
8639  echo "$as_me: failed program was:" >&5
8640sed 's/^/| /' conftest.$ac_ext >&5
8641
8642ac_header_compiler=no
8643fi
8644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8646echo "${ECHO_T}$ac_header_compiler" >&6
8647
8648# Is the header present?
8649echo "$as_me:$LINENO: checking $ac_header presence" >&5
8650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8651cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h.  */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h.  */
8657#include <$ac_header>
8658_ACEOF
8659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8661  ac_status=$?
8662  grep -v '^ *+' conftest.er1 >conftest.err
8663  rm -f conftest.er1
8664  cat conftest.err >&5
8665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666  (exit $ac_status); } >/dev/null; then
8667  if test -s conftest.err; then
8668    ac_cpp_err=$ac_c_preproc_warn_flag
8669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8670  else
8671    ac_cpp_err=
8672  fi
8673else
8674  ac_cpp_err=yes
8675fi
8676if test -z "$ac_cpp_err"; then
8677  ac_header_preproc=yes
8678else
8679  echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682  ac_header_preproc=no
8683fi
8684rm -f conftest.err conftest.$ac_ext
8685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686echo "${ECHO_T}$ac_header_preproc" >&6
8687
8688# So?  What about this header?
8689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8690  yes:no: )
8691    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8695    ac_header_preproc=yes
8696    ;;
8697  no:yes:* )
8698    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8700    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8701echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8702    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8704    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8705echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8706    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8708    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8710    (
8711      cat <<\_ASBOX
8712## ---------------------------------------------- ##
8713## Report this to orxonox-dev at mail.datacore.ch ##
8714## ---------------------------------------------- ##
8715_ASBOX
8716    ) |
8717      sed "s/^/$as_me: WARNING:     /" >&2
8718    ;;
8719esac
8720echo "$as_me:$LINENO: checking for $ac_header" >&5
8721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8722if eval "test \"\${$as_ac_Header+set}\" = set"; then
8723  echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725  eval "$as_ac_Header=\$ac_header_preproc"
8726fi
8727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8729
8730fi
8731if test `eval echo '${'$as_ac_Header'}'` = yes; then
8732  cat >>confdefs.h <<_ACEOF
8733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8734_ACEOF
8735
8736else
8737
8738for ac_header in SDL/SDL_image.h
8739do
8740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742  echo "$as_me:$LINENO: checking for $ac_header" >&5
8743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745  echo $ECHO_N "(cached) $ECHO_C" >&6
8746fi
8747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749else
8750  # Is the header compilable?
8751echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753cat >conftest.$ac_ext <<_ACEOF
8754/* confdefs.h.  */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h.  */
8759$ac_includes_default
8760#include <$ac_header>
8761_ACEOF
8762rm -f conftest.$ac_objext
8763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764  (eval $ac_compile) 2>conftest.er1
8765  ac_status=$?
8766  grep -v '^ *+' conftest.er1 >conftest.err
8767  rm -f conftest.er1
8768  cat conftest.err >&5
8769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770  (exit $ac_status); } &&
8771         { ac_try='test -z "$ac_c_werror_flag"
8772                         || test ! -s conftest.err'
8773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774  (eval $ac_try) 2>&5
8775  ac_status=$?
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); }; } &&
8778         { ac_try='test -s conftest.$ac_objext'
8779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780  (eval $ac_try) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); }; }; then
8784  ac_header_compiler=yes
8785else
8786  echo "$as_me: failed program was:" >&5
8787sed 's/^/| /' conftest.$ac_ext >&5
8788
8789ac_header_compiler=no
8790fi
8791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8793echo "${ECHO_T}$ac_header_compiler" >&6
8794
8795# Is the header present?
8796echo "$as_me:$LINENO: checking $ac_header presence" >&5
8797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8798cat >conftest.$ac_ext <<_ACEOF
8799/* confdefs.h.  */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h.  */
8804#include <$ac_header>
8805_ACEOF
8806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808  ac_status=$?
8809  grep -v '^ *+' conftest.er1 >conftest.err
8810  rm -f conftest.er1
8811  cat conftest.err >&5
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } >/dev/null; then
8814  if test -s conftest.err; then
8815    ac_cpp_err=$ac_c_preproc_warn_flag
8816    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8817  else
8818    ac_cpp_err=
8819  fi
8820else
8821  ac_cpp_err=yes
8822fi
8823if test -z "$ac_cpp_err"; then
8824  ac_header_preproc=yes
8825else
8826  echo "$as_me: failed program was:" >&5
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
8829  ac_header_preproc=no
8830fi
8831rm -f conftest.err conftest.$ac_ext
8832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833echo "${ECHO_T}$ac_header_preproc" >&6
8834
8835# So?  What about this header?
8836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8837  yes:no: )
8838    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8842    ac_header_preproc=yes
8843    ;;
8844  no:yes:* )
8845    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8847    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8848echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8849    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8851    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8852echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8853    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8855    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8857    (
8858      cat <<\_ASBOX
8859## ---------------------------------------------- ##
8860## Report this to orxonox-dev at mail.datacore.ch ##
8861## ---------------------------------------------- ##
8862_ASBOX
8863    ) |
8864      sed "s/^/$as_me: WARNING:     /" >&2
8865    ;;
8866esac
8867echo "$as_me:$LINENO: checking for $ac_header" >&5
8868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870  echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872  eval "$as_ac_Header=\$ac_header_preproc"
8873fi
8874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8876
8877fi
8878if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879  cat >>confdefs.h <<_ACEOF
8880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8881_ACEOF
8882
8883else
8884  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8885echo "$as_me: error: SDL_image header not found." >&2;}
8886   { (exit 1); exit 1; }; }
8887fi
8888
8889done
8890
8891fi
8892
8893done
8894
8895# checking for SDL_image-lib
8896echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8897echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8898if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8899  echo $ECHO_N "(cached) $ECHO_C" >&6
8900else
8901  ac_check_lib_save_LIBS=$LIBS
8902LIBS="-lSDL_image  $LIBS"
8903cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h.  */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h.  */
8909
8910
8911int
8912main ()
8913{
8914main ();
8915  ;
8916  return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext conftest$ac_exeext
8920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921  (eval $ac_link) 2>conftest.er1
8922  ac_status=$?
8923  grep -v '^ *+' conftest.er1 >conftest.err
8924  rm -f conftest.er1
8925  cat conftest.err >&5
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); } &&
8928         { ac_try='test -z "$ac_c_werror_flag"
8929                         || test ! -s conftest.err'
8930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931  (eval $ac_try) 2>&5
8932  ac_status=$?
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); }; } &&
8935         { ac_try='test -s conftest$ac_exeext'
8936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937  (eval $ac_try) 2>&5
8938  ac_status=$?
8939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940  (exit $ac_status); }; }; then
8941  ac_cv_lib_SDL_image_main=yes
8942else
8943  echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946ac_cv_lib_SDL_image_main=no
8947fi
8948rm -f conftest.err conftest.$ac_objext \
8949      conftest$ac_exeext conftest.$ac_ext
8950LIBS=$ac_check_lib_save_LIBS
8951fi
8952echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8953echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8954if test $ac_cv_lib_SDL_image_main = yes; then
8955  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
8956fi
8957
8958   if test x$FOUND_SDL_image != xyes ; then
8959      echo "------------------"
8960      echo "SDL_image library not found."
8961      echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/"
8962      echo "------------------"
8963      exit -1
8964   fi
8965
8966#-----#
8967# ogg #
8968#-----#
8969# checking for ogg-headers
8970
8971for ac_header in ogg/ogg.h
8972do
8973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8974if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975  echo "$as_me:$LINENO: checking for $ac_header" >&5
8976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8977if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978  echo $ECHO_N "(cached) $ECHO_C" >&6
8979fi
8980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8982else
8983  # Is the header compilable?
8984echo "$as_me:$LINENO: checking $ac_header usability" >&5
8985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h.  */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h.  */
8992$ac_includes_default
8993#include <$ac_header>
8994_ACEOF
8995rm -f conftest.$ac_objext
8996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8997  (eval $ac_compile) 2>conftest.er1
8998  ac_status=$?
8999  grep -v '^ *+' conftest.er1 >conftest.err
9000  rm -f conftest.er1
9001  cat conftest.err >&5
9002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003  (exit $ac_status); } &&
9004         { ac_try='test -z "$ac_c_werror_flag"
9005                         || test ! -s conftest.err'
9006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007  (eval $ac_try) 2>&5
9008  ac_status=$?
9009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); }; } &&
9011         { ac_try='test -s conftest.$ac_objext'
9012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013  (eval $ac_try) 2>&5
9014  ac_status=$?
9015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016  (exit $ac_status); }; }; then
9017  ac_header_compiler=yes
9018else
9019  echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022ac_header_compiler=no
9023fi
9024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9026echo "${ECHO_T}$ac_header_compiler" >&6
9027
9028# Is the header present?
9029echo "$as_me:$LINENO: checking $ac_header presence" >&5
9030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9031cat >conftest.$ac_ext <<_ACEOF
9032/* confdefs.h.  */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h.  */
9037#include <$ac_header>
9038_ACEOF
9039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9040  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9041  ac_status=$?
9042  grep -v '^ *+' conftest.er1 >conftest.err
9043  rm -f conftest.er1
9044  cat conftest.err >&5
9045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046  (exit $ac_status); } >/dev/null; then
9047  if test -s conftest.err; then
9048    ac_cpp_err=$ac_c_preproc_warn_flag
9049    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9050  else
9051    ac_cpp_err=
9052  fi
9053else
9054  ac_cpp_err=yes
9055fi
9056if test -z "$ac_cpp_err"; then
9057  ac_header_preproc=yes
9058else
9059  echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
9062  ac_header_preproc=no
9063fi
9064rm -f conftest.err conftest.$ac_ext
9065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9066echo "${ECHO_T}$ac_header_preproc" >&6
9067
9068# So?  What about this header?
9069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9070  yes:no: )
9071    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9073    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9075    ac_header_preproc=yes
9076    ;;
9077  no:yes:* )
9078    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9080    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9081echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9082    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9084    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9085echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9086    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9088    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9090    (
9091      cat <<\_ASBOX
9092## ---------------------------------------------- ##
9093## Report this to orxonox-dev at mail.datacore.ch ##
9094## ---------------------------------------------- ##
9095_ASBOX
9096    ) |
9097      sed "s/^/$as_me: WARNING:     /" >&2
9098    ;;
9099esac
9100echo "$as_me:$LINENO: checking for $ac_header" >&5
9101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9102if eval "test \"\${$as_ac_Header+set}\" = set"; then
9103  echo $ECHO_N "(cached) $ECHO_C" >&6
9104else
9105  eval "$as_ac_Header=\$ac_header_preproc"
9106fi
9107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9109
9110fi
9111if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112  cat >>confdefs.h <<_ACEOF
9113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114_ACEOF
9115
9116else
9117  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
9118echo "$as_me: error: cannot find ogg header." >&2;}
9119   { (exit 1); exit 1; }; }
9120fi
9121
9122done
9123
9124# checking for ogg-lib
9125  echo "$as_me:$LINENO: checking for main in -logg" >&5
9126echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
9127if test "${ac_cv_lib_ogg_main+set}" = set; then
9128  echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130  ac_check_lib_save_LIBS=$LIBS
9131LIBS="-logg  $LIBS"
9132cat >conftest.$ac_ext <<_ACEOF
9133/* confdefs.h.  */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h.  */
9138
9139
9140int
9141main ()
9142{
9143main ();
9144  ;
9145  return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext conftest$ac_exeext
9149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150  (eval $ac_link) 2>conftest.er1
9151  ac_status=$?
9152  grep -v '^ *+' conftest.er1 >conftest.err
9153  rm -f conftest.er1
9154  cat conftest.err >&5
9155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156  (exit $ac_status); } &&
9157         { ac_try='test -z "$ac_c_werror_flag"
9158                         || test ! -s conftest.err'
9159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160  (eval $ac_try) 2>&5
9161  ac_status=$?
9162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163  (exit $ac_status); }; } &&
9164         { ac_try='test -s conftest$ac_exeext'
9165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166  (eval $ac_try) 2>&5
9167  ac_status=$?
9168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169  (exit $ac_status); }; }; then
9170  ac_cv_lib_ogg_main=yes
9171else
9172  echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175ac_cv_lib_ogg_main=no
9176fi
9177rm -f conftest.err conftest.$ac_objext \
9178      conftest$ac_exeext conftest.$ac_ext
9179LIBS=$ac_check_lib_save_LIBS
9180fi
9181echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
9182echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
9183if test $ac_cv_lib_ogg_main = yes; then
9184  FOUND_ogg=yes; LIBS="$LIBS -logg"
9185fi
9186
9187     if test x$FOUND_ogg != xyes ; then
9188        echo "------------------"
9189        echo "ogg library not found."
9190        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9191        echo "------------------"
9192        exit -1
9193     fi
9194
9195#--------#
9196# vorbis #
9197#--------#
9198# checking for vorbis-lib
9199  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
9200echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
9201if test "${ac_cv_lib_vorbis_main+set}" = set; then
9202  echo $ECHO_N "(cached) $ECHO_C" >&6
9203else
9204  ac_check_lib_save_LIBS=$LIBS
9205LIBS="-lvorbis  $LIBS"
9206cat >conftest.$ac_ext <<_ACEOF
9207/* confdefs.h.  */
9208_ACEOF
9209cat confdefs.h >>conftest.$ac_ext
9210cat >>conftest.$ac_ext <<_ACEOF
9211/* end confdefs.h.  */
9212
9213
9214int
9215main ()
9216{
9217main ();
9218  ;
9219  return 0;
9220}
9221_ACEOF
9222rm -f conftest.$ac_objext conftest$ac_exeext
9223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224  (eval $ac_link) 2>conftest.er1
9225  ac_status=$?
9226  grep -v '^ *+' conftest.er1 >conftest.err
9227  rm -f conftest.er1
9228  cat conftest.err >&5
9229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230  (exit $ac_status); } &&
9231         { ac_try='test -z "$ac_c_werror_flag"
9232                         || test ! -s conftest.err'
9233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234  (eval $ac_try) 2>&5
9235  ac_status=$?
9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237  (exit $ac_status); }; } &&
9238         { ac_try='test -s conftest$ac_exeext'
9239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240  (eval $ac_try) 2>&5
9241  ac_status=$?
9242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243  (exit $ac_status); }; }; then
9244  ac_cv_lib_vorbis_main=yes
9245else
9246  echo "$as_me: failed program was:" >&5
9247sed 's/^/| /' conftest.$ac_ext >&5
9248
9249ac_cv_lib_vorbis_main=no
9250fi
9251rm -f conftest.err conftest.$ac_objext \
9252      conftest$ac_exeext conftest.$ac_ext
9253LIBS=$ac_check_lib_save_LIBS
9254fi
9255echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
9256echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
9257if test $ac_cv_lib_vorbis_main = yes; then
9258  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
9259fi
9260
9261     if test x$FOUND_vorbis != xyes ; then
9262        echo "------------------"
9263        echo "vorbis library not found."
9264        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9265        echo "------------------"
9266        exit -1
9267     fi
9268
9269#------------#
9270# vorbisfile #
9271#------------#
9272# checking for vorbis-headers
9273
9274for ac_header in vorbis/vorbisfile.h
9275do
9276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277if eval "test \"\${$as_ac_Header+set}\" = set"; then
9278  echo "$as_me:$LINENO: checking for $ac_header" >&5
9279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9280if eval "test \"\${$as_ac_Header+set}\" = set"; then
9281  echo $ECHO_N "(cached) $ECHO_C" >&6
9282fi
9283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9284echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9285else
9286  # Is the header compilable?
9287echo "$as_me:$LINENO: checking $ac_header usability" >&5
9288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9289cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h.  */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h.  */
9295$ac_includes_default
9296#include <$ac_header>
9297_ACEOF
9298rm -f conftest.$ac_objext
9299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9300  (eval $ac_compile) 2>conftest.er1
9301  ac_status=$?
9302  grep -v '^ *+' conftest.er1 >conftest.err
9303  rm -f conftest.er1
9304  cat conftest.err >&5
9305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306  (exit $ac_status); } &&
9307         { ac_try='test -z "$ac_c_werror_flag"
9308                         || test ! -s conftest.err'
9309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310  (eval $ac_try) 2>&5
9311  ac_status=$?
9312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313  (exit $ac_status); }; } &&
9314         { ac_try='test -s conftest.$ac_objext'
9315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316  (eval $ac_try) 2>&5
9317  ac_status=$?
9318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319  (exit $ac_status); }; }; then
9320  ac_header_compiler=yes
9321else
9322  echo "$as_me: failed program was:" >&5
9323sed 's/^/| /' conftest.$ac_ext >&5
9324
9325ac_header_compiler=no
9326fi
9327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9329echo "${ECHO_T}$ac_header_compiler" >&6
9330
9331# Is the header present?
9332echo "$as_me:$LINENO: checking $ac_header presence" >&5
9333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9334cat >conftest.$ac_ext <<_ACEOF
9335/* confdefs.h.  */
9336_ACEOF
9337cat confdefs.h >>conftest.$ac_ext
9338cat >>conftest.$ac_ext <<_ACEOF
9339/* end confdefs.h.  */
9340#include <$ac_header>
9341_ACEOF
9342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9343  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9344  ac_status=$?
9345  grep -v '^ *+' conftest.er1 >conftest.err
9346  rm -f conftest.er1
9347  cat conftest.err >&5
9348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349  (exit $ac_status); } >/dev/null; then
9350  if test -s conftest.err; then
9351    ac_cpp_err=$ac_c_preproc_warn_flag
9352    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9353  else
9354    ac_cpp_err=
9355  fi
9356else
9357  ac_cpp_err=yes
9358fi
9359if test -z "$ac_cpp_err"; then
9360  ac_header_preproc=yes
9361else
9362  echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365  ac_header_preproc=no
9366fi
9367rm -f conftest.err conftest.$ac_ext
9368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9369echo "${ECHO_T}$ac_header_preproc" >&6
9370
9371# So?  What about this header?
9372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9373  yes:no: )
9374    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9376    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9378    ac_header_preproc=yes
9379    ;;
9380  no:yes:* )
9381    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9383    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9384echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9385    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9387    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9388echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9389    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9391    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9393    (
9394      cat <<\_ASBOX
9395## ---------------------------------------------- ##
9396## Report this to orxonox-dev at mail.datacore.ch ##
9397## ---------------------------------------------- ##
9398_ASBOX
9399    ) |
9400      sed "s/^/$as_me: WARNING:     /" >&2
9401    ;;
9402esac
9403echo "$as_me:$LINENO: checking for $ac_header" >&5
9404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9405if eval "test \"\${$as_ac_Header+set}\" = set"; then
9406  echo $ECHO_N "(cached) $ECHO_C" >&6
9407else
9408  eval "$as_ac_Header=\$ac_header_preproc"
9409fi
9410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9412
9413fi
9414if test `eval echo '${'$as_ac_Header'}'` = yes; then
9415  cat >>confdefs.h <<_ACEOF
9416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9417_ACEOF
9418
9419else
9420  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
9421echo "$as_me: error: cannot find vorbisfile header." >&2;}
9422   { (exit 1); exit 1; }; }
9423fi
9424
9425done
9426
9427# checking for vorbisfile-lib
9428  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
9429echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
9430if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
9431  echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433  ac_check_lib_save_LIBS=$LIBS
9434LIBS="-lvorbisfile  $LIBS"
9435cat >conftest.$ac_ext <<_ACEOF
9436/* confdefs.h.  */
9437_ACEOF
9438cat confdefs.h >>conftest.$ac_ext
9439cat >>conftest.$ac_ext <<_ACEOF
9440/* end confdefs.h.  */
9441
9442
9443int
9444main ()
9445{
9446main ();
9447  ;
9448  return 0;
9449}
9450_ACEOF
9451rm -f conftest.$ac_objext conftest$ac_exeext
9452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453  (eval $ac_link) 2>conftest.er1
9454  ac_status=$?
9455  grep -v '^ *+' conftest.er1 >conftest.err
9456  rm -f conftest.er1
9457  cat conftest.err >&5
9458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459  (exit $ac_status); } &&
9460         { ac_try='test -z "$ac_c_werror_flag"
9461                         || test ! -s conftest.err'
9462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463  (eval $ac_try) 2>&5
9464  ac_status=$?
9465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466  (exit $ac_status); }; } &&
9467         { ac_try='test -s conftest$ac_exeext'
9468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469  (eval $ac_try) 2>&5
9470  ac_status=$?
9471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472  (exit $ac_status); }; }; then
9473  ac_cv_lib_vorbisfile_main=yes
9474else
9475  echo "$as_me: failed program was:" >&5
9476sed 's/^/| /' conftest.$ac_ext >&5
9477
9478ac_cv_lib_vorbisfile_main=no
9479fi
9480rm -f conftest.err conftest.$ac_objext \
9481      conftest$ac_exeext conftest.$ac_ext
9482LIBS=$ac_check_lib_save_LIBS
9483fi
9484echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
9485echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
9486if test $ac_cv_lib_vorbisfile_main = yes; then
9487  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
9488fi
9489
9490     if test x$FOUND_vorbisfile != xyes ; then
9491        echo "------------------"
9492        echo "vorbisfile library not found."
9493        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9494        echo "------------------"
9495        exit -1
9496     fi
9497
9498
9499#---------#
9500# libcURL #
9501#---------#
9502if test x$def_curl = xyes; then
9503
9504for ac_header in curl/curl.h
9505do
9506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9507if eval "test \"\${$as_ac_Header+set}\" = set"; then
9508  echo "$as_me:$LINENO: checking for $ac_header" >&5
9509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9510if eval "test \"\${$as_ac_Header+set}\" = set"; then
9511  echo $ECHO_N "(cached) $ECHO_C" >&6
9512fi
9513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9515else
9516  # Is the header compilable?
9517echo "$as_me:$LINENO: checking $ac_header usability" >&5
9518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9519cat >conftest.$ac_ext <<_ACEOF
9520/* confdefs.h.  */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h.  */
9525$ac_includes_default
9526#include <$ac_header>
9527_ACEOF
9528rm -f conftest.$ac_objext
9529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9530  (eval $ac_compile) 2>conftest.er1
9531  ac_status=$?
9532  grep -v '^ *+' conftest.er1 >conftest.err
9533  rm -f conftest.er1
9534  cat conftest.err >&5
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); } &&
9537         { ac_try='test -z "$ac_c_werror_flag"
9538                         || test ! -s conftest.err'
9539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540  (eval $ac_try) 2>&5
9541  ac_status=$?
9542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543  (exit $ac_status); }; } &&
9544         { ac_try='test -s conftest.$ac_objext'
9545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546  (eval $ac_try) 2>&5
9547  ac_status=$?
9548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); }; }; then
9550  ac_header_compiler=yes
9551else
9552  echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555ac_header_compiler=no
9556fi
9557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9559echo "${ECHO_T}$ac_header_compiler" >&6
9560
9561# Is the header present?
9562echo "$as_me:$LINENO: checking $ac_header presence" >&5
9563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9564cat >conftest.$ac_ext <<_ACEOF
9565/* confdefs.h.  */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h.  */
9570#include <$ac_header>
9571_ACEOF
9572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9573  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9574  ac_status=$?
9575  grep -v '^ *+' conftest.er1 >conftest.err
9576  rm -f conftest.er1
9577  cat conftest.err >&5
9578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579  (exit $ac_status); } >/dev/null; then
9580  if test -s conftest.err; then
9581    ac_cpp_err=$ac_c_preproc_warn_flag
9582    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9583  else
9584    ac_cpp_err=
9585  fi
9586else
9587  ac_cpp_err=yes
9588fi
9589if test -z "$ac_cpp_err"; then
9590  ac_header_preproc=yes
9591else
9592  echo "$as_me: failed program was:" >&5
9593sed 's/^/| /' conftest.$ac_ext >&5
9594
9595  ac_header_preproc=no
9596fi
9597rm -f conftest.err conftest.$ac_ext
9598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9599echo "${ECHO_T}$ac_header_preproc" >&6
9600
9601# So?  What about this header?
9602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9603  yes:no: )
9604    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9606    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9608    ac_header_preproc=yes
9609    ;;
9610  no:yes:* )
9611    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9613    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9614echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9615    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9617    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9618echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9621    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9623    (
9624      cat <<\_ASBOX
9625## ---------------------------------------------- ##
9626## Report this to orxonox-dev at mail.datacore.ch ##
9627## ---------------------------------------------- ##
9628_ASBOX
9629    ) |
9630      sed "s/^/$as_me: WARNING:     /" >&2
9631    ;;
9632esac
9633echo "$as_me:$LINENO: checking for $ac_header" >&5
9634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9635if eval "test \"\${$as_ac_Header+set}\" = set"; then
9636  echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638  eval "$as_ac_Header=\$ac_header_preproc"
9639fi
9640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9642
9643fi
9644if test `eval echo '${'$as_ac_Header'}'` = yes; then
9645  cat >>confdefs.h <<_ACEOF
9646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9647_ACEOF
9648 curlHeader=yes
9649else
9650  curlHeader=no
9651fi
9652
9653done
9654
9655 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9656echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9657if test "${ac_cv_lib_curl_main+set}" = set; then
9658  echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660  ac_check_lib_save_LIBS=$LIBS
9661LIBS="-lcurl  $LIBS"
9662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h.  */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h.  */
9668
9669
9670int
9671main ()
9672{
9673main ();
9674  ;
9675  return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext conftest$ac_exeext
9679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680  (eval $ac_link) 2>conftest.er1
9681  ac_status=$?
9682  grep -v '^ *+' conftest.er1 >conftest.err
9683  rm -f conftest.er1
9684  cat conftest.err >&5
9685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686  (exit $ac_status); } &&
9687         { ac_try='test -z "$ac_c_werror_flag"
9688                         || test ! -s conftest.err'
9689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690  (eval $ac_try) 2>&5
9691  ac_status=$?
9692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693  (exit $ac_status); }; } &&
9694         { ac_try='test -s conftest$ac_exeext'
9695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696  (eval $ac_try) 2>&5
9697  ac_status=$?
9698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699  (exit $ac_status); }; }; then
9700  ac_cv_lib_curl_main=yes
9701else
9702  echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705ac_cv_lib_curl_main=no
9706fi
9707rm -f conftest.err conftest.$ac_objext \
9708      conftest$ac_exeext conftest.$ac_ext
9709LIBS=$ac_check_lib_save_LIBS
9710fi
9711echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9712echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9713if test $ac_cv_lib_curl_main = yes; then
9714  FOUND_curl=yes
9715fi
9716
9717 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9718  have_curl=yes
9719  CURL_LIBS=`curl-config --libs`
9720  CURLCFLAGS=`curl-config --cflags`
9721
9722cat >>confdefs.h <<_ACEOF
9723#define HAVE_CURL 1
9724_ACEOF
9725
9726 else
9727  have_curl=no
9728 fi
9729
9730fi
9731
9732
9733
9734
9735if test x$have_curl = xyes; then
9736  HAVE_CURL_TRUE=
9737  HAVE_CURL_FALSE='#'
9738else
9739  HAVE_CURL_TRUE='#'
9740  HAVE_CURL_FALSE=
9741fi
9742
9743
9744#--------#
9745# efence #
9746#--------#
9747if test x$def_efence = xyes ; then
9748  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9749echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9750if test "${ac_cv_lib_efence_main+set}" = set; then
9751  echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753  ac_check_lib_save_LIBS=$LIBS
9754LIBS="-lefence  $LIBS"
9755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h.  */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h.  */
9761
9762
9763int
9764main ()
9765{
9766main ();
9767  ;
9768  return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773  (eval $ac_link) 2>conftest.er1
9774  ac_status=$?
9775  grep -v '^ *+' conftest.er1 >conftest.err
9776  rm -f conftest.er1
9777  cat conftest.err >&5
9778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779  (exit $ac_status); } &&
9780         { ac_try='test -z "$ac_c_werror_flag"
9781                         || test ! -s conftest.err'
9782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783  (eval $ac_try) 2>&5
9784  ac_status=$?
9785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786  (exit $ac_status); }; } &&
9787         { ac_try='test -s conftest$ac_exeext'
9788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789  (eval $ac_try) 2>&5
9790  ac_status=$?
9791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792  (exit $ac_status); }; }; then
9793  ac_cv_lib_efence_main=yes
9794else
9795  echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798ac_cv_lib_efence_main=no
9799fi
9800rm -f conftest.err conftest.$ac_objext \
9801      conftest$ac_exeext conftest.$ac_ext
9802LIBS=$ac_check_lib_save_LIBS
9803fi
9804echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9805echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9806if test $ac_cv_lib_efence_main = yes; then
9807  FOUND_efence=yes; LIBS="$LIBS -lefence"
9808fi
9809
9810   if test x$FOUND_efence != xyes ; then
9811     echo "efence was requested, but is not installed!! going on"
9812   fi
9813
9814fi
9815
9816#-----#
9817# GTK #
9818#-----#
9819if test x$def_gtk = xyes; then
9820#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
9821        echo "$as_me:$LINENO: checking for gtk2.0" >&5
9822echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
9823        if `$PKG_CONFIG --exists gtk+-2.0`; then
9824                echo "yes"
9825                have_gtk2=yes
9826                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9827                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9828
9829cat >>confdefs.h <<_ACEOF
9830#define HAVE_GTK2 1
9831_ACEOF
9832
9833                if test $DEBUG -ge 3; then
9834                 echo "cflags: $GTK2_CFLAGS"
9835                 echo "libs: $GTK2_LIBS"
9836                fi
9837        else
9838                echo "no"
9839        fi
9840
9841fi
9842
9843
9844
9845
9846if test x$have_gtk2 = xyes; then
9847  HAVE_GTK2_TRUE=
9848  HAVE_GTK2_FALSE='#'
9849else
9850  HAVE_GTK2_TRUE='#'
9851  HAVE_GTK2_FALSE=
9852fi
9853
9854
9855
9856# FIXME: Replace `main' with a function in `-lm':
9857
9858echo "$as_me:$LINENO: checking for main in -lm" >&5
9859echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9860if test "${ac_cv_lib_m_main+set}" = set; then
9861  echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863  ac_check_lib_save_LIBS=$LIBS
9864LIBS="-lm  $LIBS"
9865cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h.  */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
9870/* end confdefs.h.  */
9871
9872
9873int
9874main ()
9875{
9876main ();
9877  ;
9878  return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext conftest$ac_exeext
9882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9883  (eval $ac_link) 2>conftest.er1
9884  ac_status=$?
9885  grep -v '^ *+' conftest.er1 >conftest.err
9886  rm -f conftest.er1
9887  cat conftest.err >&5
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); } &&
9890         { ac_try='test -z "$ac_c_werror_flag"
9891                         || test ! -s conftest.err'
9892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893  (eval $ac_try) 2>&5
9894  ac_status=$?
9895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896  (exit $ac_status); }; } &&
9897         { ac_try='test -s conftest$ac_exeext'
9898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899  (eval $ac_try) 2>&5
9900  ac_status=$?
9901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902  (exit $ac_status); }; }; then
9903  ac_cv_lib_m_main=yes
9904else
9905  echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908ac_cv_lib_m_main=no
9909fi
9910rm -f conftest.err conftest.$ac_objext \
9911      conftest$ac_exeext conftest.$ac_ext
9912LIBS=$ac_check_lib_save_LIBS
9913fi
9914echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9915echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9916if test $ac_cv_lib_m_main = yes; then
9917  cat >>confdefs.h <<_ACEOF
9918#define HAVE_LIBM 1
9919_ACEOF
9920
9921  LIBS="-lm $LIBS"
9922
9923fi
9924
9925
9926
9927# Checks for header files.
9928echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9929echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9930if test "${ac_cv_header_stdc+set}" = set; then
9931  echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933  cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h.  */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h.  */
9939#include <stdlib.h>
9940#include <stdarg.h>
9941#include <string.h>
9942#include <float.h>
9943
9944int
9945main ()
9946{
9947
9948  ;
9949  return 0;
9950}
9951_ACEOF
9952rm -f conftest.$ac_objext
9953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9954  (eval $ac_compile) 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } &&
9961         { ac_try='test -z "$ac_c_werror_flag"
9962                         || test ! -s conftest.err'
9963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964  (eval $ac_try) 2>&5
9965  ac_status=$?
9966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); }; } &&
9968         { ac_try='test -s conftest.$ac_objext'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; }; then
9974  ac_cv_header_stdc=yes
9975else
9976  echo "$as_me: failed program was:" >&5
9977sed 's/^/| /' conftest.$ac_ext >&5
9978
9979ac_cv_header_stdc=no
9980fi
9981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9982
9983if test $ac_cv_header_stdc = yes; then
9984  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9985  cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h.  */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h.  */
9991#include <string.h>
9992
9993_ACEOF
9994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995  $EGREP "memchr" >/dev/null 2>&1; then
9996  :
9997else
9998  ac_cv_header_stdc=no
9999fi
10000rm -f conftest*
10001
10002fi
10003
10004if test $ac_cv_header_stdc = yes; then
10005  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10006  cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h.  */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h.  */
10012#include <stdlib.h>
10013
10014_ACEOF
10015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10016  $EGREP "free" >/dev/null 2>&1; then
10017  :
10018else
10019  ac_cv_header_stdc=no
10020fi
10021rm -f conftest*
10022
10023fi
10024
10025if test $ac_cv_header_stdc = yes; then
10026  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10027  if test "$cross_compiling" = yes; then
10028  :
10029else
10030  cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h.  */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h.  */
10036#include <ctype.h>
10037#if ((' ' & 0x0FF) == 0x020)
10038# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10039# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10040#else
10041# define ISLOWER(c) \
10042                   (('a' <= (c) && (c) <= 'i') \
10043                     || ('j' <= (c) && (c) <= 'r') \
10044                     || ('s' <= (c) && (c) <= 'z'))
10045# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10046#endif
10047
10048#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10049int
10050main ()
10051{
10052  int i;
10053  for (i = 0; i < 256; i++)
10054    if (XOR (islower (i), ISLOWER (i))
10055        || toupper (i) != TOUPPER (i))
10056      exit(2);
10057  exit (0);
10058}
10059_ACEOF
10060rm -f conftest$ac_exeext
10061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062  (eval $ac_link) 2>&5
10063  ac_status=$?
10064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067  (eval $ac_try) 2>&5
10068  ac_status=$?
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); }; }; then
10071  :
10072else
10073  echo "$as_me: program exited with status $ac_status" >&5
10074echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077( exit $ac_status )
10078ac_cv_header_stdc=no
10079fi
10080rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10081fi
10082fi
10083fi
10084echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10085echo "${ECHO_T}$ac_cv_header_stdc" >&6
10086if test $ac_cv_header_stdc = yes; then
10087
10088cat >>confdefs.h <<\_ACEOF
10089#define STDC_HEADERS 1
10090_ACEOF
10091
10092fi
10093
10094
10095
10096for ac_header in stdlib.h string.h
10097do
10098as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10099if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100  echo "$as_me:$LINENO: checking for $ac_header" >&5
10101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10102if eval "test \"\${$as_ac_Header+set}\" = set"; then
10103  echo $ECHO_N "(cached) $ECHO_C" >&6
10104fi
10105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10107else
10108  # Is the header compilable?
10109echo "$as_me:$LINENO: checking $ac_header usability" >&5
10110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10111cat >conftest.$ac_ext <<_ACEOF
10112/* confdefs.h.  */
10113_ACEOF
10114cat confdefs.h >>conftest.$ac_ext
10115cat >>conftest.$ac_ext <<_ACEOF
10116/* end confdefs.h.  */
10117$ac_includes_default
10118#include <$ac_header>
10119_ACEOF
10120rm -f conftest.$ac_objext
10121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122  (eval $ac_compile) 2>conftest.er1
10123  ac_status=$?
10124  grep -v '^ *+' conftest.er1 >conftest.err
10125  rm -f conftest.er1
10126  cat conftest.err >&5
10127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128  (exit $ac_status); } &&
10129         { ac_try='test -z "$ac_c_werror_flag"
10130                         || test ! -s conftest.err'
10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; } &&
10136         { ac_try='test -s conftest.$ac_objext'
10137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138  (eval $ac_try) 2>&5
10139  ac_status=$?
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); }; }; then
10142  ac_header_compiler=yes
10143else
10144  echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147ac_header_compiler=no
10148fi
10149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10151echo "${ECHO_T}$ac_header_compiler" >&6
10152
10153# Is the header present?
10154echo "$as_me:$LINENO: checking $ac_header presence" >&5
10155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10156cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h.  */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h.  */
10162#include <$ac_header>
10163_ACEOF
10164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10165  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10166  ac_status=$?
10167  grep -v '^ *+' conftest.er1 >conftest.err
10168  rm -f conftest.er1
10169  cat conftest.err >&5
10170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); } >/dev/null; then
10172  if test -s conftest.err; then
10173    ac_cpp_err=$ac_c_preproc_warn_flag
10174    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10175  else
10176    ac_cpp_err=
10177  fi
10178else
10179  ac_cpp_err=yes
10180fi
10181if test -z "$ac_cpp_err"; then
10182  ac_header_preproc=yes
10183else
10184  echo "$as_me: failed program was:" >&5
10185sed 's/^/| /' conftest.$ac_ext >&5
10186
10187  ac_header_preproc=no
10188fi
10189rm -f conftest.err conftest.$ac_ext
10190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10191echo "${ECHO_T}$ac_header_preproc" >&6
10192
10193# So?  What about this header?
10194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10195  yes:no: )
10196    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10198    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10200    ac_header_preproc=yes
10201    ;;
10202  no:yes:* )
10203    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10205    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10206echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10207    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10209    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10210echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10211    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10213    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10215    (
10216      cat <<\_ASBOX
10217## ---------------------------------------------- ##
10218## Report this to orxonox-dev at mail.datacore.ch ##
10219## ---------------------------------------------- ##
10220_ASBOX
10221    ) |
10222      sed "s/^/$as_me: WARNING:     /" >&2
10223    ;;
10224esac
10225echo "$as_me:$LINENO: checking for $ac_header" >&5
10226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10227if eval "test \"\${$as_ac_Header+set}\" = set"; then
10228  echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230  eval "$as_ac_Header=\$ac_header_preproc"
10231fi
10232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10234
10235fi
10236if test `eval echo '${'$as_ac_Header'}'` = yes; then
10237  cat >>confdefs.h <<_ACEOF
10238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10239_ACEOF
10240
10241fi
10242
10243done
10244
10245
10246# Checks for typedefs, structures, and compiler characteristics.
10247echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10248echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10249if test "${ac_cv_header_stdbool_h+set}" = set; then
10250  echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252  cat >conftest.$ac_ext <<_ACEOF
10253/* confdefs.h.  */
10254_ACEOF
10255cat confdefs.h >>conftest.$ac_ext
10256cat >>conftest.$ac_ext <<_ACEOF
10257/* end confdefs.h.  */
10258
10259#include <stdbool.h>
10260#ifndef bool
10261# error bool is not defined
10262#endif
10263#ifndef false
10264# error false is not defined
10265#endif
10266#if false
10267# error false is not 0
10268#endif
10269#ifndef true
10270# error true is not defined
10271#endif
10272#if true != 1
10273# error true is not 1
10274#endif
10275#ifndef __bool_true_false_are_defined
10276# error __bool_true_false_are_defined is not defined
10277#endif
10278
10279        struct s { _Bool s: 1; _Bool t; } s;
10280
10281        char a[true == 1 ? 1 : -1];
10282        char b[false == 0 ? 1 : -1];
10283        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10284        char d[(bool) -0.5 == true ? 1 : -1];
10285        bool e = &s;
10286        char f[(_Bool) -0.0 == false ? 1 : -1];
10287        char g[true];
10288        char h[sizeof (_Bool)];
10289        char i[sizeof s.t];
10290
10291int
10292main ()
10293{
10294 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10295  ;
10296  return 0;
10297}
10298_ACEOF
10299rm -f conftest.$ac_objext
10300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301  (eval $ac_compile) 2>conftest.er1
10302  ac_status=$?
10303  grep -v '^ *+' conftest.er1 >conftest.err
10304  rm -f conftest.er1
10305  cat conftest.err >&5
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); } &&
10308         { ac_try='test -z "$ac_c_werror_flag"
10309                         || test ! -s conftest.err'
10310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311  (eval $ac_try) 2>&5
10312  ac_status=$?
10313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); }; } &&
10315         { ac_try='test -s conftest.$ac_objext'
10316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317  (eval $ac_try) 2>&5
10318  ac_status=$?
10319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320  (exit $ac_status); }; }; then
10321  ac_cv_header_stdbool_h=yes
10322else
10323  echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326ac_cv_header_stdbool_h=no
10327fi
10328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10329fi
10330echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10331echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10332echo "$as_me:$LINENO: checking for _Bool" >&5
10333echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10334if test "${ac_cv_type__Bool+set}" = set; then
10335  echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337  cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h.  */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h.  */
10343$ac_includes_default
10344int
10345main ()
10346{
10347if ((_Bool *) 0)
10348  return 0;
10349if (sizeof (_Bool))
10350  return 0;
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext
10356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357  (eval $ac_compile) 2>conftest.er1
10358  ac_status=$?
10359  grep -v '^ *+' conftest.er1 >conftest.err
10360  rm -f conftest.er1
10361  cat conftest.err >&5
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); } &&
10364         { ac_try='test -z "$ac_c_werror_flag"
10365                         || test ! -s conftest.err'
10366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367  (eval $ac_try) 2>&5
10368  ac_status=$?
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); }; } &&
10371         { ac_try='test -s conftest.$ac_objext'
10372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373  (eval $ac_try) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; }; then
10377  ac_cv_type__Bool=yes
10378else
10379  echo "$as_me: failed program was:" >&5
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
10382ac_cv_type__Bool=no
10383fi
10384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385fi
10386echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10387echo "${ECHO_T}$ac_cv_type__Bool" >&6
10388if test $ac_cv_type__Bool = yes; then
10389
10390cat >>confdefs.h <<_ACEOF
10391#define HAVE__BOOL 1
10392_ACEOF
10393
10394
10395fi
10396
10397if test $ac_cv_header_stdbool_h = yes; then
10398
10399cat >>confdefs.h <<\_ACEOF
10400#define HAVE_STDBOOL_H 1
10401_ACEOF
10402
10403fi
10404
10405
10406# Checks for library functions.
10407
10408for ac_header in stdlib.h
10409do
10410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10411if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412  echo "$as_me:$LINENO: checking for $ac_header" >&5
10413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10414if eval "test \"\${$as_ac_Header+set}\" = set"; then
10415  echo $ECHO_N "(cached) $ECHO_C" >&6
10416fi
10417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10419else
10420  # Is the header compilable?
10421echo "$as_me:$LINENO: checking $ac_header usability" >&5
10422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10423cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h.  */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h.  */
10429$ac_includes_default
10430#include <$ac_header>
10431_ACEOF
10432rm -f conftest.$ac_objext
10433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434  (eval $ac_compile) 2>conftest.er1
10435  ac_status=$?
10436  grep -v '^ *+' conftest.er1 >conftest.err
10437  rm -f conftest.er1
10438  cat conftest.err >&5
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } &&
10441         { ac_try='test -z "$ac_c_werror_flag"
10442                         || test ! -s conftest.err'
10443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444  (eval $ac_try) 2>&5
10445  ac_status=$?
10446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447  (exit $ac_status); }; } &&
10448         { ac_try='test -s conftest.$ac_objext'
10449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450  (eval $ac_try) 2>&5
10451  ac_status=$?
10452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453  (exit $ac_status); }; }; then
10454  ac_header_compiler=yes
10455else
10456  echo "$as_me: failed program was:" >&5
10457sed 's/^/| /' conftest.$ac_ext >&5
10458
10459ac_header_compiler=no
10460fi
10461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10462echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10463echo "${ECHO_T}$ac_header_compiler" >&6
10464
10465# Is the header present?
10466echo "$as_me:$LINENO: checking $ac_header presence" >&5
10467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10468cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h.  */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h.  */
10474#include <$ac_header>
10475_ACEOF
10476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10478  ac_status=$?
10479  grep -v '^ *+' conftest.er1 >conftest.err
10480  rm -f conftest.er1
10481  cat conftest.err >&5
10482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483  (exit $ac_status); } >/dev/null; then
10484  if test -s conftest.err; then
10485    ac_cpp_err=$ac_c_preproc_warn_flag
10486    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10487  else
10488    ac_cpp_err=
10489  fi
10490else
10491  ac_cpp_err=yes
10492fi
10493if test -z "$ac_cpp_err"; then
10494  ac_header_preproc=yes
10495else
10496  echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499  ac_header_preproc=no
10500fi
10501rm -f conftest.err conftest.$ac_ext
10502echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10503echo "${ECHO_T}$ac_header_preproc" >&6
10504
10505# So?  What about this header?
10506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10507  yes:no: )
10508    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10509echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10510    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10511echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10512    ac_header_preproc=yes
10513    ;;
10514  no:yes:* )
10515    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10518echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10519    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10520echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10521    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10522echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10525    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10526echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10527    (
10528      cat <<\_ASBOX
10529## ---------------------------------------------- ##
10530## Report this to orxonox-dev at mail.datacore.ch ##
10531## ---------------------------------------------- ##
10532_ASBOX
10533    ) |
10534      sed "s/^/$as_me: WARNING:     /" >&2
10535    ;;
10536esac
10537echo "$as_me:$LINENO: checking for $ac_header" >&5
10538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10539if eval "test \"\${$as_ac_Header+set}\" = set"; then
10540  echo $ECHO_N "(cached) $ECHO_C" >&6
10541else
10542  eval "$as_ac_Header=\$ac_header_preproc"
10543fi
10544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10546
10547fi
10548if test `eval echo '${'$as_ac_Header'}'` = yes; then
10549  cat >>confdefs.h <<_ACEOF
10550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10551_ACEOF
10552
10553fi
10554
10555done
10556
10557echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10558echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10559if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10560  echo $ECHO_N "(cached) $ECHO_C" >&6
10561else
10562  if test "$cross_compiling" = yes; then
10563  ac_cv_func_malloc_0_nonnull=no
10564else
10565  cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h.  */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h.  */
10571#if STDC_HEADERS || HAVE_STDLIB_H
10572# include <stdlib.h>
10573#else
10574char *malloc ();
10575#endif
10576
10577int
10578main ()
10579{
10580exit (malloc (0) ? 0 : 1);
10581  ;
10582  return 0;
10583}
10584_ACEOF
10585rm -f conftest$ac_exeext
10586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587  (eval $ac_link) 2>&5
10588  ac_status=$?
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592  (eval $ac_try) 2>&5
10593  ac_status=$?
10594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595  (exit $ac_status); }; }; then
10596  ac_cv_func_malloc_0_nonnull=yes
10597else
10598  echo "$as_me: program exited with status $ac_status" >&5
10599echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602( exit $ac_status )
10603ac_cv_func_malloc_0_nonnull=no
10604fi
10605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10606fi
10607fi
10608echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10609echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10610if test $ac_cv_func_malloc_0_nonnull = yes; then
10611
10612cat >>confdefs.h <<\_ACEOF
10613#define HAVE_MALLOC 1
10614_ACEOF
10615
10616else
10617  cat >>confdefs.h <<\_ACEOF
10618#define HAVE_MALLOC 0
10619_ACEOF
10620
10621   case $LIBOBJS in
10622    "malloc.$ac_objext"   | \
10623  *" malloc.$ac_objext"   | \
10624    "malloc.$ac_objext "* | \
10625  *" malloc.$ac_objext "* ) ;;
10626  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10627esac
10628
10629
10630cat >>confdefs.h <<\_ACEOF
10631#define malloc rpl_malloc
10632_ACEOF
10633
10634fi
10635
10636
10637
10638
10639
10640for ac_func in bzero sqrt
10641do
10642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643echo "$as_me:$LINENO: checking for $ac_func" >&5
10644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645if eval "test \"\${$as_ac_var+set}\" = set"; then
10646  echo $ECHO_N "(cached) $ECHO_C" >&6
10647else
10648  cat >conftest.$ac_ext <<_ACEOF
10649/* confdefs.h.  */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h.  */
10654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10655   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10656#define $ac_func innocuous_$ac_func
10657
10658/* System header to define __stub macros and hopefully few prototypes,
10659    which can conflict with char $ac_func (); below.
10660    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10661    <limits.h> exists even on freestanding compilers.  */
10662
10663#ifdef __STDC__
10664# include <limits.h>
10665#else
10666# include <assert.h>
10667#endif
10668
10669#undef $ac_func
10670
10671/* Override any gcc2 internal prototype to avoid an error.  */
10672#ifdef __cplusplus
10673extern "C"
10674{
10675#endif
10676/* We use char because int might match the return type of a gcc2
10677   builtin and then its argument prototype would still apply.  */
10678char $ac_func ();
10679/* The GNU C library defines this for functions which it implements
10680    to always fail with ENOSYS.  Some functions are actually named
10681    something starting with __ and the normal name is an alias.  */
10682#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10683choke me
10684#else
10685char (*f) () = $ac_func;
10686#endif
10687#ifdef __cplusplus
10688}
10689#endif
10690
10691int
10692main ()
10693{
10694return f != $ac_func;
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699rm -f conftest.$ac_objext conftest$ac_exeext
10700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701  (eval $ac_link) 2>conftest.er1
10702  ac_status=$?
10703  grep -v '^ *+' conftest.er1 >conftest.err
10704  rm -f conftest.er1
10705  cat conftest.err >&5
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); } &&
10708         { ac_try='test -z "$ac_c_werror_flag"
10709                         || test ! -s conftest.err'
10710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711  (eval $ac_try) 2>&5
10712  ac_status=$?
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); }; } &&
10715         { ac_try='test -s conftest$ac_exeext'
10716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717  (eval $ac_try) 2>&5
10718  ac_status=$?
10719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720  (exit $ac_status); }; }; then
10721  eval "$as_ac_var=yes"
10722else
10723  echo "$as_me: failed program was:" >&5
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726eval "$as_ac_var=no"
10727fi
10728rm -f conftest.err conftest.$ac_objext \
10729      conftest$ac_exeext conftest.$ac_ext
10730fi
10731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10732echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10733if test `eval echo '${'$as_ac_var'}'` = yes; then
10734  cat >>confdefs.h <<_ACEOF
10735#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10736_ACEOF
10737
10738fi
10739done
10740
10741
10742######################
10743## OUTPUT CONFIGURE ##
10744######################
10745                                                                                                                                                                                                                            ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
10746
10747
10748cat >confcache <<\_ACEOF
10749# This file is a shell script that caches the results of configure
10750# tests run on this system so they can be shared between configure
10751# scripts and configure runs, see configure's option --config-cache.
10752# It is not useful on other systems.  If it contains results you don't
10753# want to keep, you may remove or edit it.
10754#
10755# config.status only pays attention to the cache file if you give it
10756# the --recheck option to rerun configure.
10757#
10758# `ac_cv_env_foo' variables (set or unset) will be overridden when
10759# loading this file, other *unset* `ac_cv_foo' will be assigned the
10760# following values.
10761
10762_ACEOF
10763
10764# The following way of writing the cache mishandles newlines in values,
10765# but we know of no workaround that is simple, portable, and efficient.
10766# So, don't put newlines in cache variables' values.
10767# Ultrix sh set writes to stderr and can't be redirected directly,
10768# and sets the high bit in the cache file unless we assign to the vars.
10769{
10770  (set) 2>&1 |
10771    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10772    *ac_space=\ *)
10773      # `set' does not quote correctly, so add quotes (double-quote
10774      # substitution turns \\\\ into \\, and sed turns \\ into \).
10775      sed -n \
10776        "s/'/'\\\\''/g;
10777          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10778      ;;
10779    *)
10780      # `set' quotes correctly as required by POSIX, so do not add quotes.
10781      sed -n \
10782        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10783      ;;
10784    esac;
10785} |
10786  sed '
10787     t clear
10788     : clear
10789     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10790     t end
10791     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10792     : end' >>confcache
10793if diff $cache_file confcache >/dev/null 2>&1; then :; else
10794  if test -w $cache_file; then
10795    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10796    cat confcache >$cache_file
10797  else
10798    echo "not updating unwritable cache $cache_file"
10799  fi
10800fi
10801rm -f confcache
10802
10803test "x$prefix" = xNONE && prefix=$ac_default_prefix
10804# Let make expand exec_prefix.
10805test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10806
10807# VPATH may cause trouble with some makes, so we remove $(srcdir),
10808# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10809# trailing colons and then remove the whole line if VPATH becomes empty
10810# (actually we leave an empty line to preserve line numbers).
10811if test "x$srcdir" = x.; then
10812  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10813s/:*\$(srcdir):*/:/;
10814s/:*\${srcdir}:*/:/;
10815s/:*@srcdir@:*/:/;
10816s/^\([^=]*=[     ]*\):*/\1/;
10817s/:*$//;
10818s/^[^=]*=[       ]*$//;
10819}'
10820fi
10821
10822DEFS=-DHAVE_CONFIG_H
10823
10824ac_libobjs=
10825ac_ltlibobjs=
10826for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10827  # 1. Remove the extension, and $U if already installed.
10828  ac_i=`echo "$ac_i" |
10829         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10830  # 2. Add them.
10831  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10832  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10833done
10834LIBOBJS=$ac_libobjs
10835
10836LTLIBOBJS=$ac_ltlibobjs
10837
10838
10839if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10840  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10841Usually this means the macro was only invoked conditionally." >&5
10842echo "$as_me: error: conditional \"AMDEP\" was never defined.
10843Usually this means the macro was only invoked conditionally." >&2;}
10844   { (exit 1); exit 1; }; }
10845fi
10846if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10847  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10848Usually this means the macro was only invoked conditionally." >&5
10849echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10850Usually this means the macro was only invoked conditionally." >&2;}
10851   { (exit 1); exit 1; }; }
10852fi
10853if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10854  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10855Usually this means the macro was only invoked conditionally." >&5
10856echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10857Usually this means the macro was only invoked conditionally." >&2;}
10858   { (exit 1); exit 1; }; }
10859fi
10860if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10861  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10862Usually this means the macro was only invoked conditionally." >&5
10863echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10864Usually this means the macro was only invoked conditionally." >&2;}
10865   { (exit 1); exit 1; }; }
10866fi
10867if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10868  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10869Usually this means the macro was only invoked conditionally." >&5
10870echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10871Usually this means the macro was only invoked conditionally." >&2;}
10872   { (exit 1); exit 1; }; }
10873fi
10874if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10875  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10876Usually this means the macro was only invoked conditionally." >&5
10877echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10878Usually this means the macro was only invoked conditionally." >&2;}
10879   { (exit 1); exit 1; }; }
10880fi
10881if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10882  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10883Usually this means the macro was only invoked conditionally." >&5
10884echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10885Usually this means the macro was only invoked conditionally." >&2;}
10886   { (exit 1); exit 1; }; }
10887fi
10888if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10889  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10890Usually this means the macro was only invoked conditionally." >&5
10891echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10892Usually this means the macro was only invoked conditionally." >&2;}
10893   { (exit 1); exit 1; }; }
10894fi
10895
10896: ${CONFIG_STATUS=./config.status}
10897ac_clean_files_save=$ac_clean_files
10898ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10899{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10900echo "$as_me: creating $CONFIG_STATUS" >&6;}
10901cat >$CONFIG_STATUS <<_ACEOF
10902#! $SHELL
10903# Generated by $as_me.
10904# Run this file to recreate the current configuration.
10905# Compiler output produced by configure, useful for debugging
10906# configure, is in config.log if it exists.
10907
10908debug=false
10909ac_cs_recheck=false
10910ac_cs_silent=false
10911SHELL=\${CONFIG_SHELL-$SHELL}
10912_ACEOF
10913
10914cat >>$CONFIG_STATUS <<\_ACEOF
10915## --------------------- ##
10916## M4sh Initialization.  ##
10917## --------------------- ##
10918
10919# Be Bourne compatible
10920if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10921  emulate sh
10922  NULLCMD=:
10923  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10924  # is contrary to our usage.  Disable this feature.
10925  alias -g '${1+"$@"}'='"$@"'
10926elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10927  set -o posix
10928fi
10929DUALCASE=1; export DUALCASE # for MKS sh
10930
10931# Support unset when possible.
10932if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10933  as_unset=unset
10934else
10935  as_unset=false
10936fi
10937
10938
10939# Work around bugs in pre-3.0 UWIN ksh.
10940$as_unset ENV MAIL MAILPATH
10941PS1='$ '
10942PS2='> '
10943PS4='+ '
10944
10945# NLS nuisances.
10946for as_var in \
10947  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10948  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10949  LC_TELEPHONE LC_TIME
10950do
10951  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10952    eval $as_var=C; export $as_var
10953  else
10954    $as_unset $as_var
10955  fi
10956done
10957
10958# Required to use basename.
10959if expr a : '\(a\)' >/dev/null 2>&1; then
10960  as_expr=expr
10961else
10962  as_expr=false
10963fi
10964
10965if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10966  as_basename=basename
10967else
10968  as_basename=false
10969fi
10970
10971
10972# Name of the executable.
10973as_me=`$as_basename "$0" ||
10974$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10975         X"$0" : 'X\(//\)$' \| \
10976         X"$0" : 'X\(/\)$' \| \
10977         .     : '\(.\)' 2>/dev/null ||
10978echo X/"$0" |
10979    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10980          /^X\/\(\/\/\)$/{ s//\1/; q; }
10981          /^X\/\(\/\).*/{ s//\1/; q; }
10982          s/.*/./; q'`
10983
10984
10985# PATH needs CR, and LINENO needs CR and PATH.
10986# Avoid depending upon Character Ranges.
10987as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10988as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10989as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10990as_cr_digits='0123456789'
10991as_cr_alnum=$as_cr_Letters$as_cr_digits
10992
10993# The user is always right.
10994if test "${PATH_SEPARATOR+set}" != set; then
10995  echo "#! /bin/sh" >conf$$.sh
10996  echo  "exit 0"   >>conf$$.sh
10997  chmod +x conf$$.sh
10998  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10999    PATH_SEPARATOR=';'
11000  else
11001    PATH_SEPARATOR=:
11002  fi
11003  rm -f conf$$.sh
11004fi
11005
11006
11007  as_lineno_1=$LINENO
11008  as_lineno_2=$LINENO
11009  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11010  test "x$as_lineno_1" != "x$as_lineno_2" &&
11011  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11012  # Find who we are.  Look in the path if we contain no path at all
11013  # relative or not.
11014  case $0 in
11015    *[\\/]* ) as_myself=$0 ;;
11016    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019  IFS=$as_save_IFS
11020  test -z "$as_dir" && as_dir=.
11021  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11022done
11023
11024       ;;
11025  esac
11026  # We did not find ourselves, most probably we were run as `sh COMMAND'
11027  # in which case we are not to be found in the path.
11028  if test "x$as_myself" = x; then
11029    as_myself=$0
11030  fi
11031  if test ! -f "$as_myself"; then
11032    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11033echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11034   { (exit 1); exit 1; }; }
11035  fi
11036  case $CONFIG_SHELL in
11037  '')
11038    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11040do
11041  IFS=$as_save_IFS
11042  test -z "$as_dir" && as_dir=.
11043  for as_base in sh bash ksh sh5; do
11044         case $as_dir in
11045         /*)
11046           if ("$as_dir/$as_base" -c '
11047  as_lineno_1=$LINENO
11048  as_lineno_2=$LINENO
11049  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11050  test "x$as_lineno_1" != "x$as_lineno_2" &&
11051  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11052             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11053             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11054             CONFIG_SHELL=$as_dir/$as_base
11055             export CONFIG_SHELL
11056             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11057           fi;;
11058         esac
11059       done
11060done
11061;;
11062  esac
11063
11064  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11065  # uniformly replaced by the line number.  The first 'sed' inserts a
11066  # line-number line before each line; the second 'sed' does the real
11067  # work.  The second script uses 'N' to pair each line-number line
11068  # with the numbered line, and appends trailing '-' during
11069  # substitution so that $LINENO is not a special case at line end.
11070  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11071  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11072  sed '=' <$as_myself |
11073    sed '
11074      N
11075      s,$,-,
11076      : loop
11077      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11078      t loop
11079      s,-$,,
11080      s,^['$as_cr_digits']*\n,,
11081    ' >$as_me.lineno &&
11082  chmod +x $as_me.lineno ||
11083    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11084echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11085   { (exit 1); exit 1; }; }
11086
11087  # Don't try to exec as it changes $[0], causing all sort of problems
11088  # (the dirname of $[0] is not the place where we might find the
11089  # original and so on.  Autoconf is especially sensible to this).
11090  . ./$as_me.lineno
11091  # Exit status is that of the last command.
11092  exit
11093}
11094
11095
11096case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11097  *c*,-n*) ECHO_N= ECHO_C='
11098' ECHO_T='      ' ;;
11099  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11100  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11101esac
11102
11103if expr a : '\(a\)' >/dev/null 2>&1; then
11104  as_expr=expr
11105else
11106  as_expr=false
11107fi
11108
11109rm -f conf$$ conf$$.exe conf$$.file
11110echo >conf$$.file
11111if ln -s conf$$.file conf$$ 2>/dev/null; then
11112  # We could just check for DJGPP; but this test a) works b) is more generic
11113  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11114  if test -f conf$$.exe; then
11115    # Don't use ln at all; we don't have any links
11116    as_ln_s='cp -p'
11117  else
11118    as_ln_s='ln -s'
11119  fi
11120elif ln conf$$.file conf$$ 2>/dev/null; then
11121  as_ln_s=ln
11122else
11123  as_ln_s='cp -p'
11124fi
11125rm -f conf$$ conf$$.exe conf$$.file
11126
11127if mkdir -p . 2>/dev/null; then
11128  as_mkdir_p=:
11129else
11130  test -d ./-p && rmdir ./-p
11131  as_mkdir_p=false
11132fi
11133
11134as_executable_p="test -f"
11135
11136# Sed expression to map a string onto a valid CPP name.
11137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11138
11139# Sed expression to map a string onto a valid variable name.
11140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11141
11142
11143# IFS
11144# We need space, tab and new line, in precisely that order.
11145as_nl='
11146'
11147IFS="   $as_nl"
11148
11149# CDPATH.
11150$as_unset CDPATH
11151
11152exec 6>&1
11153
11154# Open the log real soon, to keep \$[0] and so on meaningful, and to
11155# report actual input values of CONFIG_FILES etc. instead of their
11156# values after options handling.  Logging --version etc. is OK.
11157exec 5>>config.log
11158{
11159  echo
11160  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11161## Running $as_me. ##
11162_ASBOX
11163} >&5
11164cat >&5 <<_CSEOF
11165
11166This file was extended by orxonox $as_me 0.3.1_alpha, which was
11167generated by GNU Autoconf 2.59.  Invocation command line was
11168
11169  CONFIG_FILES    = $CONFIG_FILES
11170  CONFIG_HEADERS  = $CONFIG_HEADERS
11171  CONFIG_LINKS    = $CONFIG_LINKS
11172  CONFIG_COMMANDS = $CONFIG_COMMANDS
11173  $ $0 $@
11174
11175_CSEOF
11176echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11177echo >&5
11178_ACEOF
11179
11180# Files that config.status was made for.
11181if test -n "$ac_config_files"; then
11182  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11183fi
11184
11185if test -n "$ac_config_headers"; then
11186  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11187fi
11188
11189if test -n "$ac_config_links"; then
11190  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11191fi
11192
11193if test -n "$ac_config_commands"; then
11194  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11195fi
11196
11197cat >>$CONFIG_STATUS <<\_ACEOF
11198
11199ac_cs_usage="\
11200\`$as_me' instantiates files from templates according to the
11201current configuration.
11202
11203Usage: $0 [OPTIONS] [FILE]...
11204
11205  -h, --help       print this help, then exit
11206  -V, --version    print version number, then exit
11207  -q, --quiet      do not print progress messages
11208  -d, --debug      don't remove temporary files
11209      --recheck    update $as_me by reconfiguring in the same conditions
11210  --file=FILE[:TEMPLATE]
11211                   instantiate the configuration file FILE
11212  --header=FILE[:TEMPLATE]
11213                   instantiate the configuration header FILE
11214
11215Configuration files:
11216$config_files
11217
11218Configuration headers:
11219$config_headers
11220
11221Configuration commands:
11222$config_commands
11223
11224Report bugs to <bug-autoconf@gnu.org>."
11225_ACEOF
11226
11227cat >>$CONFIG_STATUS <<_ACEOF
11228ac_cs_version="\\
11229orxonox config.status 0.3.1_alpha
11230configured by $0, generated by GNU Autoconf 2.59,
11231  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11232
11233Copyright (C) 2003 Free Software Foundation, Inc.
11234This config.status script is free software; the Free Software Foundation
11235gives unlimited permission to copy, distribute and modify it."
11236srcdir=$srcdir
11237INSTALL="$INSTALL"
11238_ACEOF
11239
11240cat >>$CONFIG_STATUS <<\_ACEOF
11241# If no file are specified by the user, then we need to provide default
11242# value.  By we need to know if files were specified by the user.
11243ac_need_defaults=:
11244while test $# != 0
11245do
11246  case $1 in
11247  --*=*)
11248    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11249    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11250    ac_shift=:
11251    ;;
11252  -*)
11253    ac_option=$1
11254    ac_optarg=$2
11255    ac_shift=shift
11256    ;;
11257  *) # This is not an option, so the user has probably given explicit
11258     # arguments.
11259     ac_option=$1
11260     ac_need_defaults=false;;
11261  esac
11262
11263  case $ac_option in
11264  # Handling of the options.
11265_ACEOF
11266cat >>$CONFIG_STATUS <<\_ACEOF
11267  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11268    ac_cs_recheck=: ;;
11269  --version | --vers* | -V )
11270    echo "$ac_cs_version"; exit 0 ;;
11271  --he | --h)
11272    # Conflict between --help and --header
11273    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11274Try \`$0 --help' for more information." >&5
11275echo "$as_me: error: ambiguous option: $1
11276Try \`$0 --help' for more information." >&2;}
11277   { (exit 1); exit 1; }; };;
11278  --help | --hel | -h )
11279    echo "$ac_cs_usage"; exit 0 ;;
11280  --debug | --d* | -d )
11281    debug=: ;;
11282  --file | --fil | --fi | --f )
11283    $ac_shift
11284    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11285    ac_need_defaults=false;;
11286  --header | --heade | --head | --hea )
11287    $ac_shift
11288    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11289    ac_need_defaults=false;;
11290  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11291  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11292    ac_cs_silent=: ;;
11293
11294  # This is an error.
11295  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11296Try \`$0 --help' for more information." >&5
11297echo "$as_me: error: unrecognized option: $1
11298Try \`$0 --help' for more information." >&2;}
11299   { (exit 1); exit 1; }; } ;;
11300
11301  *) ac_config_targets="$ac_config_targets $1" ;;
11302
11303  esac
11304  shift
11305done
11306
11307ac_configure_extra_args=
11308
11309if $ac_cs_silent; then
11310  exec 6>/dev/null
11311  ac_configure_extra_args="$ac_configure_extra_args --silent"
11312fi
11313
11314_ACEOF
11315cat >>$CONFIG_STATUS <<_ACEOF
11316if \$ac_cs_recheck; then
11317  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11318  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11319fi
11320
11321_ACEOF
11322
11323cat >>$CONFIG_STATUS <<_ACEOF
11324#
11325# INIT-COMMANDS section.
11326#
11327
11328AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11329
11330_ACEOF
11331
11332
11333
11334cat >>$CONFIG_STATUS <<\_ACEOF
11335for ac_config_target in $ac_config_targets
11336do
11337  case "$ac_config_target" in
11338  # Handling of arguments.
11339  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11340  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11341  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11342  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
11343  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
11344  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
11345  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
11346  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
11347  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
11348  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
11349  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
11350  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
11351  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
11352  "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;;
11353  "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;;
11354  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
11355  "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
11356  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
11357  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
11358  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
11359  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
11360  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
11361  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11362  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11363  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11364echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11365   { (exit 1); exit 1; }; };;
11366  esac
11367done
11368
11369# If the user did not use the arguments to specify the items to instantiate,
11370# then the envvar interface is used.  Set only those that are not.
11371# We use the long form for the default assignment because of an extremely
11372# bizarre bug on SunOS 4.1.3.
11373if $ac_need_defaults; then
11374  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11375  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11376  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11377fi
11378
11379# Have a temporary directory for convenience.  Make it in the build tree
11380# simply because there is no reason to put it here, and in addition,
11381# creating and moving files from /tmp can sometimes cause problems.
11382# Create a temporary directory, and hook for its removal unless debugging.
11383$debug ||
11384{
11385  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11386  trap '{ (exit 1); exit 1; }' 1 2 13 15
11387}
11388
11389# Create a (secure) tmp directory for tmp files.
11390
11391{
11392  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11393  test -n "$tmp" && test -d "$tmp"
11394}  ||
11395{
11396  tmp=./confstat$$-$RANDOM
11397  (umask 077 && mkdir $tmp)
11398} ||
11399{
11400   echo "$me: cannot create a temporary directory in ." >&2
11401   { (exit 1); exit 1; }
11402}
11403
11404_ACEOF
11405
11406cat >>$CONFIG_STATUS <<_ACEOF
11407
11408#
11409# CONFIG_FILES section.
11410#
11411
11412# No need to generate the scripts if there are no CONFIG_FILES.
11413# This happens for instance when ./config.status config.h
11414if test -n "\$CONFIG_FILES"; then
11415  # Protect against being on the right side of a sed subst in config.status.
11416  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11417   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11418s,@SHELL@,$SHELL,;t t
11419s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11420s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11421s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11422s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11423s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11424s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11425s,@exec_prefix@,$exec_prefix,;t t
11426s,@prefix@,$prefix,;t t
11427s,@program_transform_name@,$program_transform_name,;t t
11428s,@bindir@,$bindir,;t t
11429s,@sbindir@,$sbindir,;t t
11430s,@libexecdir@,$libexecdir,;t t
11431s,@datadir@,$datadir,;t t
11432s,@sysconfdir@,$sysconfdir,;t t
11433s,@sharedstatedir@,$sharedstatedir,;t t
11434s,@localstatedir@,$localstatedir,;t t
11435s,@libdir@,$libdir,;t t
11436s,@includedir@,$includedir,;t t
11437s,@oldincludedir@,$oldincludedir,;t t
11438s,@infodir@,$infodir,;t t
11439s,@mandir@,$mandir,;t t
11440s,@build_alias@,$build_alias,;t t
11441s,@host_alias@,$host_alias,;t t
11442s,@target_alias@,$target_alias,;t t
11443s,@DEFS@,$DEFS,;t t
11444s,@ECHO_C@,$ECHO_C,;t t
11445s,@ECHO_N@,$ECHO_N,;t t
11446s,@ECHO_T@,$ECHO_T,;t t
11447s,@LIBS@,$LIBS,;t t
11448s,@build@,$build,;t t
11449s,@build_cpu@,$build_cpu,;t t
11450s,@build_vendor@,$build_vendor,;t t
11451s,@build_os@,$build_os,;t t
11452s,@host@,$host,;t t
11453s,@host_cpu@,$host_cpu,;t t
11454s,@host_vendor@,$host_vendor,;t t
11455s,@host_os@,$host_os,;t t
11456s,@target@,$target,;t t
11457s,@target_cpu@,$target_cpu,;t t
11458s,@target_vendor@,$target_vendor,;t t
11459s,@target_os@,$target_os,;t t
11460s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11461s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11462s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11463s,@CYGPATH_W@,$CYGPATH_W,;t t
11464s,@PACKAGE@,$PACKAGE,;t t
11465s,@VERSION@,$VERSION,;t t
11466s,@ACLOCAL@,$ACLOCAL,;t t
11467s,@AUTOCONF@,$AUTOCONF,;t t
11468s,@AUTOMAKE@,$AUTOMAKE,;t t
11469s,@AUTOHEADER@,$AUTOHEADER,;t t
11470s,@MAKEINFO@,$MAKEINFO,;t t
11471s,@AMTAR@,$AMTAR,;t t
11472s,@install_sh@,$install_sh,;t t
11473s,@STRIP@,$STRIP,;t t
11474s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11475s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11476s,@mkdir_p@,$mkdir_p,;t t
11477s,@AWK@,$AWK,;t t
11478s,@SET_MAKE@,$SET_MAKE,;t t
11479s,@am__leading_dot@,$am__leading_dot,;t t
11480s,@CXX@,$CXX,;t t
11481s,@CXXFLAGS@,$CXXFLAGS,;t t
11482s,@LDFLAGS@,$LDFLAGS,;t t
11483s,@CPPFLAGS@,$CPPFLAGS,;t t
11484s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11485s,@EXEEXT@,$EXEEXT,;t t
11486s,@OBJEXT@,$OBJEXT,;t t
11487s,@DEPDIR@,$DEPDIR,;t t
11488s,@am__include@,$am__include,;t t
11489s,@am__quote@,$am__quote,;t t
11490s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11491s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11492s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11493s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11494s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11495s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11496s,@RANLIB@,$RANLIB,;t t
11497s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11498s,@CC@,$CC,;t t
11499s,@CFLAGS@,$CFLAGS,;t t
11500s,@ac_ct_CC@,$ac_ct_CC,;t t
11501s,@CCDEPMODE@,$CCDEPMODE,;t t
11502s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11503s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11504s,@CPP@,$CPP,;t t
11505s,@EGREP@,$EGREP,;t t
11506s,@DEBUG@,$DEBUG,;t t
11507s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
11508s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
11509s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
11510s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
11511s,@DOXYGEN@,$DOXYGEN,;t t
11512s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
11513s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
11514s,@GPROF@,$GPROF,;t t
11515s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11516s,@MSBITFIELDS@,$MSBITFIELDS,;t t
11517s,@CURL_LIBS@,$CURL_LIBS,;t t
11518s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
11519s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
11520s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
11521s,@GTK2_LIBS@,$GTK2_LIBS,;t t
11522s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
11523s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
11524s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
11525s,@LIBOBJS@,$LIBOBJS,;t t
11526s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11527CEOF
11528
11529_ACEOF
11530
11531  cat >>$CONFIG_STATUS <<\_ACEOF
11532  # Split the substitutions into bite-sized pieces for seds with
11533  # small command number limits, like on Digital OSF/1 and HP-UX.
11534  ac_max_sed_lines=48
11535  ac_sed_frag=1 # Number of current file.
11536  ac_beg=1 # First line for current file.
11537  ac_end=$ac_max_sed_lines # Line after last line for current file.
11538  ac_more_lines=:
11539  ac_sed_cmds=
11540  while $ac_more_lines; do
11541    if test $ac_beg -gt 1; then
11542      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11543    else
11544      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11545    fi
11546    if test ! -s $tmp/subs.frag; then
11547      ac_more_lines=false
11548    else
11549      # The purpose of the label and of the branching condition is to
11550      # speed up the sed processing (if there are no `@' at all, there
11551      # is no need to browse any of the substitutions).
11552      # These are the two extra sed commands mentioned above.
11553      (echo ':t
11554  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11555      if test -z "$ac_sed_cmds"; then
11556        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11557      else
11558        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11559      fi
11560      ac_sed_frag=`expr $ac_sed_frag + 1`
11561      ac_beg=$ac_end
11562      ac_end=`expr $ac_end + $ac_max_sed_lines`
11563    fi
11564  done
11565  if test -z "$ac_sed_cmds"; then
11566    ac_sed_cmds=cat
11567  fi
11568fi # test -n "$CONFIG_FILES"
11569
11570_ACEOF
11571cat >>$CONFIG_STATUS <<\_ACEOF
11572for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11573  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11574  case $ac_file in
11575  - | *:- | *:-:* ) # input from stdin
11576        cat >$tmp/stdin
11577        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11578        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11579  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11580        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11581  * )   ac_file_in=$ac_file.in ;;
11582  esac
11583
11584  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11585  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11586$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11587         X"$ac_file" : 'X\(//\)[^/]' \| \
11588         X"$ac_file" : 'X\(//\)$' \| \
11589         X"$ac_file" : 'X\(/\)' \| \
11590         .     : '\(.\)' 2>/dev/null ||
11591echo X"$ac_file" |
11592    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11593          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11594          /^X\(\/\/\)$/{ s//\1/; q; }
11595          /^X\(\/\).*/{ s//\1/; q; }
11596          s/.*/./; q'`
11597  { if $as_mkdir_p; then
11598    mkdir -p "$ac_dir"
11599  else
11600    as_dir="$ac_dir"
11601    as_dirs=
11602    while test ! -d "$as_dir"; do
11603      as_dirs="$as_dir $as_dirs"
11604      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11606         X"$as_dir" : 'X\(//\)[^/]' \| \
11607         X"$as_dir" : 'X\(//\)$' \| \
11608         X"$as_dir" : 'X\(/\)' \| \
11609         .     : '\(.\)' 2>/dev/null ||
11610echo X"$as_dir" |
11611    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11612          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11613          /^X\(\/\/\)$/{ s//\1/; q; }
11614          /^X\(\/\).*/{ s//\1/; q; }
11615          s/.*/./; q'`
11616    done
11617    test ! -n "$as_dirs" || mkdir $as_dirs
11618  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11619echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11620   { (exit 1); exit 1; }; }; }
11621
11622  ac_builddir=.
11623
11624if test "$ac_dir" != .; then
11625  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11626  # A "../" for each directory in $ac_dir_suffix.
11627  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11628else
11629  ac_dir_suffix= ac_top_builddir=
11630fi
11631
11632case $srcdir in
11633  .)  # No --srcdir option.  We are building in place.
11634    ac_srcdir=.
11635    if test -z "$ac_top_builddir"; then
11636       ac_top_srcdir=.
11637    else
11638       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11639    fi ;;
11640  [\\/]* | ?:[\\/]* )  # Absolute path.
11641    ac_srcdir=$srcdir$ac_dir_suffix;
11642    ac_top_srcdir=$srcdir ;;
11643  *) # Relative path.
11644    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11645    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11646esac
11647
11648# Do not use `cd foo && pwd` to compute absolute paths, because
11649# the directories may not exist.
11650case `pwd` in
11651.) ac_abs_builddir="$ac_dir";;
11652*)
11653  case "$ac_dir" in
11654  .) ac_abs_builddir=`pwd`;;
11655  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11656  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11657  esac;;
11658esac
11659case $ac_abs_builddir in
11660.) ac_abs_top_builddir=${ac_top_builddir}.;;
11661*)
11662  case ${ac_top_builddir}. in
11663  .) ac_abs_top_builddir=$ac_abs_builddir;;
11664  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11665  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11666  esac;;
11667esac
11668case $ac_abs_builddir in
11669.) ac_abs_srcdir=$ac_srcdir;;
11670*)
11671  case $ac_srcdir in
11672  .) ac_abs_srcdir=$ac_abs_builddir;;
11673  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11674  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11675  esac;;
11676esac
11677case $ac_abs_builddir in
11678.) ac_abs_top_srcdir=$ac_top_srcdir;;
11679*)
11680  case $ac_top_srcdir in
11681  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11682  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11683  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11684  esac;;
11685esac
11686
11687
11688  case $INSTALL in
11689  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11690  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11691  esac
11692
11693  if test x"$ac_file" != x-; then
11694    { echo "$as_me:$LINENO: creating $ac_file" >&5
11695echo "$as_me: creating $ac_file" >&6;}
11696    rm -f "$ac_file"
11697  fi
11698  # Let's still pretend it is `configure' which instantiates (i.e., don't
11699  # use $as_me), people would be surprised to read:
11700  #    /* config.h.  Generated by config.status.  */
11701  if test x"$ac_file" = x-; then
11702    configure_input=
11703  else
11704    configure_input="$ac_file.  "
11705  fi
11706  configure_input=$configure_input"Generated from `echo $ac_file_in |
11707                                     sed 's,.*/,,'` by configure."
11708
11709  # First look for the input files in the build tree, otherwise in the
11710  # src tree.
11711  ac_file_inputs=`IFS=:
11712    for f in $ac_file_in; do
11713      case $f in
11714      -) echo $tmp/stdin ;;
11715      [\\/$]*)
11716         # Absolute (can't be DOS-style, as IFS=:)
11717         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11718echo "$as_me: error: cannot find input file: $f" >&2;}
11719   { (exit 1); exit 1; }; }
11720         echo "$f";;
11721      *) # Relative
11722         if test -f "$f"; then
11723           # Build tree
11724           echo "$f"
11725         elif test -f "$srcdir/$f"; then
11726           # Source tree
11727           echo "$srcdir/$f"
11728         else
11729           # /dev/null tree
11730           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11731echo "$as_me: error: cannot find input file: $f" >&2;}
11732   { (exit 1); exit 1; }; }
11733         fi;;
11734      esac
11735    done` || { (exit 1); exit 1; }
11736_ACEOF
11737cat >>$CONFIG_STATUS <<_ACEOF
11738  sed "$ac_vpsub
11739$extrasub
11740_ACEOF
11741cat >>$CONFIG_STATUS <<\_ACEOF
11742:t
11743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11744s,@configure_input@,$configure_input,;t t
11745s,@srcdir@,$ac_srcdir,;t t
11746s,@abs_srcdir@,$ac_abs_srcdir,;t t
11747s,@top_srcdir@,$ac_top_srcdir,;t t
11748s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11749s,@builddir@,$ac_builddir,;t t
11750s,@abs_builddir@,$ac_abs_builddir,;t t
11751s,@top_builddir@,$ac_top_builddir,;t t
11752s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11753s,@INSTALL@,$ac_INSTALL,;t t
11754" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11755  rm -f $tmp/stdin
11756  if test x"$ac_file" != x-; then
11757    mv $tmp/out $ac_file
11758  else
11759    cat $tmp/out
11760    rm -f $tmp/out
11761  fi
11762
11763done
11764_ACEOF
11765cat >>$CONFIG_STATUS <<\_ACEOF
11766
11767#
11768# CONFIG_HEADER section.
11769#
11770
11771# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11772# NAME is the cpp macro being defined and VALUE is the value it is being given.
11773#
11774# ac_d sets the value in "#define NAME VALUE" lines.
11775ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11776ac_dB='[         ].*$,\1#\2'
11777ac_dC=' '
11778ac_dD=',;t'
11779# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11780ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11781ac_uB='$,\1#\2define\3'
11782ac_uC=' '
11783ac_uD=',;t'
11784
11785for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11786  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11787  case $ac_file in
11788  - | *:- | *:-:* ) # input from stdin
11789        cat >$tmp/stdin
11790        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11791        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11792  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11793        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11794  * )   ac_file_in=$ac_file.in ;;
11795  esac
11796
11797  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11798echo "$as_me: creating $ac_file" >&6;}
11799
11800  # First look for the input files in the build tree, otherwise in the
11801  # src tree.
11802  ac_file_inputs=`IFS=:
11803    for f in $ac_file_in; do
11804      case $f in
11805      -) echo $tmp/stdin ;;
11806      [\\/$]*)
11807         # Absolute (can't be DOS-style, as IFS=:)
11808         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11809echo "$as_me: error: cannot find input file: $f" >&2;}
11810   { (exit 1); exit 1; }; }
11811         # Do quote $f, to prevent DOS paths from being IFS'd.
11812         echo "$f";;
11813      *) # Relative
11814         if test -f "$f"; then
11815           # Build tree
11816           echo "$f"
11817         elif test -f "$srcdir/$f"; then
11818           # Source tree
11819           echo "$srcdir/$f"
11820         else
11821           # /dev/null tree
11822           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11823echo "$as_me: error: cannot find input file: $f" >&2;}
11824   { (exit 1); exit 1; }; }
11825         fi;;
11826      esac
11827    done` || { (exit 1); exit 1; }
11828  # Remove the trailing spaces.
11829  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11830
11831_ACEOF
11832
11833# Transform confdefs.h into two sed scripts, `conftest.defines' and
11834# `conftest.undefs', that substitutes the proper values into
11835# config.h.in to produce config.h.  The first handles `#define'
11836# templates, and the second `#undef' templates.
11837# And first: Protect against being on the right side of a sed subst in
11838# config.status.  Protect against being in an unquoted here document
11839# in config.status.
11840rm -f conftest.defines conftest.undefs
11841# Using a here document instead of a string reduces the quoting nightmare.
11842# Putting comments in sed scripts is not portable.
11843#
11844# `end' is used to avoid that the second main sed command (meant for
11845# 0-ary CPP macros) applies to n-ary macro definitions.
11846# See the Autoconf documentation for `clear'.
11847cat >confdef2sed.sed <<\_ACEOF
11848s/[\\&,]/\\&/g
11849s,[\\$`],\\&,g
11850t clear
11851: clear
11852s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11853t end
11854s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11855: end
11856_ACEOF
11857# If some macros were called several times there might be several times
11858# the same #defines, which is useless.  Nevertheless, we may not want to
11859# sort them, since we want the *last* AC-DEFINE to be honored.
11860uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11861sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11862rm -f confdef2sed.sed
11863
11864# This sed command replaces #undef with comments.  This is necessary, for
11865# example, in the case of _POSIX_SOURCE, which is predefined and required
11866# on some systems where configure will not decide to define it.
11867cat >>conftest.undefs <<\_ACEOF
11868s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11869_ACEOF
11870
11871# Break up conftest.defines because some shells have a limit on the size
11872# of here documents, and old seds have small limits too (100 cmds).
11873echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11874echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11875echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11876echo '  :' >>$CONFIG_STATUS
11877rm -f conftest.tail
11878while grep . conftest.defines >/dev/null
11879do
11880  # Write a limited-size here document to $tmp/defines.sed.
11881  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11882  # Speed up: don't consider the non `#define' lines.
11883  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11884  # Work around the forget-to-reset-the-flag bug.
11885  echo 't clr' >>$CONFIG_STATUS
11886  echo ': clr' >>$CONFIG_STATUS
11887  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11888  echo 'CEOF
11889  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11890  rm -f $tmp/in
11891  mv $tmp/out $tmp/in
11892' >>$CONFIG_STATUS
11893  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11894  rm -f conftest.defines
11895  mv conftest.tail conftest.defines
11896done
11897rm -f conftest.defines
11898echo '  fi # grep' >>$CONFIG_STATUS
11899echo >>$CONFIG_STATUS
11900
11901# Break up conftest.undefs because some shells have a limit on the size
11902# of here documents, and old seds have small limits too (100 cmds).
11903echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11904rm -f conftest.tail
11905while grep . conftest.undefs >/dev/null
11906do
11907  # Write a limited-size here document to $tmp/undefs.sed.
11908  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11909  # Speed up: don't consider the non `#undef'
11910  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11911  # Work around the forget-to-reset-the-flag bug.
11912  echo 't clr' >>$CONFIG_STATUS
11913  echo ': clr' >>$CONFIG_STATUS
11914  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11915  echo 'CEOF
11916  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11917  rm -f $tmp/in
11918  mv $tmp/out $tmp/in
11919' >>$CONFIG_STATUS
11920  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11921  rm -f conftest.undefs
11922  mv conftest.tail conftest.undefs
11923done
11924rm -f conftest.undefs
11925
11926cat >>$CONFIG_STATUS <<\_ACEOF
11927  # Let's still pretend it is `configure' which instantiates (i.e., don't
11928  # use $as_me), people would be surprised to read:
11929  #    /* config.h.  Generated by config.status.  */
11930  if test x"$ac_file" = x-; then
11931    echo "/* Generated by configure.  */" >$tmp/config.h
11932  else
11933    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11934  fi
11935  cat $tmp/in >>$tmp/config.h
11936  rm -f $tmp/in
11937  if test x"$ac_file" != x-; then
11938    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11939      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11940echo "$as_me: $ac_file is unchanged" >&6;}
11941    else
11942      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11944         X"$ac_file" : 'X\(//\)[^/]' \| \
11945         X"$ac_file" : 'X\(//\)$' \| \
11946         X"$ac_file" : 'X\(/\)' \| \
11947         .     : '\(.\)' 2>/dev/null ||
11948echo X"$ac_file" |
11949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11950          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11951          /^X\(\/\/\)$/{ s//\1/; q; }
11952          /^X\(\/\).*/{ s//\1/; q; }
11953          s/.*/./; q'`
11954      { if $as_mkdir_p; then
11955    mkdir -p "$ac_dir"
11956  else
11957    as_dir="$ac_dir"
11958    as_dirs=
11959    while test ! -d "$as_dir"; do
11960      as_dirs="$as_dir $as_dirs"
11961      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11962$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11963         X"$as_dir" : 'X\(//\)[^/]' \| \
11964         X"$as_dir" : 'X\(//\)$' \| \
11965         X"$as_dir" : 'X\(/\)' \| \
11966         .     : '\(.\)' 2>/dev/null ||
11967echo X"$as_dir" |
11968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11969          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11970          /^X\(\/\/\)$/{ s//\1/; q; }
11971          /^X\(\/\).*/{ s//\1/; q; }
11972          s/.*/./; q'`
11973    done
11974    test ! -n "$as_dirs" || mkdir $as_dirs
11975  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11976echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11977   { (exit 1); exit 1; }; }; }
11978
11979      rm -f $ac_file
11980      mv $tmp/config.h $ac_file
11981    fi
11982  else
11983    cat $tmp/config.h
11984    rm -f $tmp/config.h
11985  fi
11986# Compute $ac_file's index in $config_headers.
11987_am_stamp_count=1
11988for _am_header in $config_headers :; do
11989  case $_am_header in
11990    $ac_file | $ac_file:* )
11991      break ;;
11992    * )
11993      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11994  esac
11995done
11996echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11997$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11998         X$ac_file : 'X\(//\)[^/]' \| \
11999         X$ac_file : 'X\(//\)$' \| \
12000         X$ac_file : 'X\(/\)' \| \
12001         .     : '\(.\)' 2>/dev/null ||
12002echo X$ac_file |
12003    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12004          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12005          /^X\(\/\/\)$/{ s//\1/; q; }
12006          /^X\(\/\).*/{ s//\1/; q; }
12007          s/.*/./; q'`/stamp-h$_am_stamp_count
12008done
12009_ACEOF
12010cat >>$CONFIG_STATUS <<\_ACEOF
12011
12012#
12013# CONFIG_COMMANDS section.
12014#
12015for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12016  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12017  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12018  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12019$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020         X"$ac_dest" : 'X\(//\)[^/]' \| \
12021         X"$ac_dest" : 'X\(//\)$' \| \
12022         X"$ac_dest" : 'X\(/\)' \| \
12023         .     : '\(.\)' 2>/dev/null ||
12024echo X"$ac_dest" |
12025    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12026          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12027          /^X\(\/\/\)$/{ s//\1/; q; }
12028          /^X\(\/\).*/{ s//\1/; q; }
12029          s/.*/./; q'`
12030  { if $as_mkdir_p; then
12031    mkdir -p "$ac_dir"
12032  else
12033    as_dir="$ac_dir"
12034    as_dirs=
12035    while test ! -d "$as_dir"; do
12036      as_dirs="$as_dir $as_dirs"
12037      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12038$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12039         X"$as_dir" : 'X\(//\)[^/]' \| \
12040         X"$as_dir" : 'X\(//\)$' \| \
12041         X"$as_dir" : 'X\(/\)' \| \
12042         .     : '\(.\)' 2>/dev/null ||
12043echo X"$as_dir" |
12044    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12045          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12046          /^X\(\/\/\)$/{ s//\1/; q; }
12047          /^X\(\/\).*/{ s//\1/; q; }
12048          s/.*/./; q'`
12049    done
12050    test ! -n "$as_dirs" || mkdir $as_dirs
12051  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12052echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12053   { (exit 1); exit 1; }; }; }
12054
12055  ac_builddir=.
12056
12057if test "$ac_dir" != .; then
12058  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12059  # A "../" for each directory in $ac_dir_suffix.
12060  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12061else
12062  ac_dir_suffix= ac_top_builddir=
12063fi
12064
12065case $srcdir in
12066  .)  # No --srcdir option.  We are building in place.
12067    ac_srcdir=.
12068    if test -z "$ac_top_builddir"; then
12069       ac_top_srcdir=.
12070    else
12071       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12072    fi ;;
12073  [\\/]* | ?:[\\/]* )  # Absolute path.
12074    ac_srcdir=$srcdir$ac_dir_suffix;
12075    ac_top_srcdir=$srcdir ;;
12076  *) # Relative path.
12077    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12078    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12079esac
12080
12081# Do not use `cd foo && pwd` to compute absolute paths, because
12082# the directories may not exist.
12083case `pwd` in
12084.) ac_abs_builddir="$ac_dir";;
12085*)
12086  case "$ac_dir" in
12087  .) ac_abs_builddir=`pwd`;;
12088  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12089  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12090  esac;;
12091esac
12092case $ac_abs_builddir in
12093.) ac_abs_top_builddir=${ac_top_builddir}.;;
12094*)
12095  case ${ac_top_builddir}. in
12096  .) ac_abs_top_builddir=$ac_abs_builddir;;
12097  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12098  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12099  esac;;
12100esac
12101case $ac_abs_builddir in
12102.) ac_abs_srcdir=$ac_srcdir;;
12103*)
12104  case $ac_srcdir in
12105  .) ac_abs_srcdir=$ac_abs_builddir;;
12106  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12107  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12108  esac;;
12109esac
12110case $ac_abs_builddir in
12111.) ac_abs_top_srcdir=$ac_top_srcdir;;
12112*)
12113  case $ac_top_srcdir in
12114  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12115  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12116  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12117  esac;;
12118esac
12119
12120
12121  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12122echo "$as_me: executing $ac_dest commands" >&6;}
12123  case $ac_dest in
12124    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12125  # Strip MF so we end up with the name of the file.
12126  mf=`echo "$mf" | sed -e 's/:.*$//'`
12127  # Check whether this is an Automake generated Makefile or not.
12128  # We used to match only the files named `Makefile.in', but
12129  # some people rename them; so instead we look at the file content.
12130  # Grep'ing the first line is not enough: some people post-process
12131  # each Makefile.in and add a new line on top of each file to say so.
12132  # So let's grep whole file.
12133  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12134    dirpart=`(dirname "$mf") 2>/dev/null ||
12135$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12136         X"$mf" : 'X\(//\)[^/]' \| \
12137         X"$mf" : 'X\(//\)$' \| \
12138         X"$mf" : 'X\(/\)' \| \
12139         .     : '\(.\)' 2>/dev/null ||
12140echo X"$mf" |
12141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12142          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12143          /^X\(\/\/\)$/{ s//\1/; q; }
12144          /^X\(\/\).*/{ s//\1/; q; }
12145          s/.*/./; q'`
12146  else
12147    continue
12148  fi
12149  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12150  # Extract the definition of DEP_FILES from the Makefile without
12151  # running `make'.
12152  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12153  test -z "$DEPDIR" && continue
12154  # When using ansi2knr, U may be empty or an underscore; expand it
12155  U=`sed -n 's/^U = //p' < "$mf"`
12156  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12157  # We invoke sed twice because it is the simplest approach to
12158  # changing $(DEPDIR) to its actual value in the expansion.
12159  for file in `sed -n '
12160    /^DEP_FILES = .*\\\\$/ {
12161      s/^DEP_FILES = //
12162      :loop
12163        s/\\\\$//
12164        p
12165        n
12166        /\\\\$/ b loop
12167      p
12168    }
12169    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12170       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12171    # Make sure the directory exists.
12172    test -f "$dirpart/$file" && continue
12173    fdir=`(dirname "$file") 2>/dev/null ||
12174$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12175         X"$file" : 'X\(//\)[^/]' \| \
12176         X"$file" : 'X\(//\)$' \| \
12177         X"$file" : 'X\(/\)' \| \
12178         .     : '\(.\)' 2>/dev/null ||
12179echo X"$file" |
12180    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12181          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12182          /^X\(\/\/\)$/{ s//\1/; q; }
12183          /^X\(\/\).*/{ s//\1/; q; }
12184          s/.*/./; q'`
12185    { if $as_mkdir_p; then
12186    mkdir -p $dirpart/$fdir
12187  else
12188    as_dir=$dirpart/$fdir
12189    as_dirs=
12190    while test ! -d "$as_dir"; do
12191      as_dirs="$as_dir $as_dirs"
12192      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12194         X"$as_dir" : 'X\(//\)[^/]' \| \
12195         X"$as_dir" : 'X\(//\)$' \| \
12196         X"$as_dir" : 'X\(/\)' \| \
12197         .     : '\(.\)' 2>/dev/null ||
12198echo X"$as_dir" |
12199    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12200          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12201          /^X\(\/\/\)$/{ s//\1/; q; }
12202          /^X\(\/\).*/{ s//\1/; q; }
12203          s/.*/./; q'`
12204    done
12205    test ! -n "$as_dirs" || mkdir $as_dirs
12206  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12207echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12208   { (exit 1); exit 1; }; }; }
12209
12210    # echo "creating $dirpart/$file"
12211    echo '# dummy' > "$dirpart/$file"
12212  done
12213done
12214 ;;
12215  esac
12216done
12217_ACEOF
12218
12219cat >>$CONFIG_STATUS <<\_ACEOF
12220
12221{ (exit 0); exit 0; }
12222_ACEOF
12223chmod +x $CONFIG_STATUS
12224ac_clean_files=$ac_clean_files_save
12225
12226
12227# configure is writing to config.log, and then calls config.status.
12228# config.status does its own redirection, appending to config.log.
12229# Unfortunately, on DOS this fails, as config.log is still kept open
12230# by configure, so config.status won't be able to write to it; its
12231# output is simply discarded.  So we exec the FD to /dev/null,
12232# effectively closing config.log, so it can be properly (re)opened and
12233# appended to by config.status.  When coming back to configure, we
12234# need to make the FD available again.
12235if test "$no_create" != yes; then
12236  ac_cs_success=:
12237  ac_config_status_args=
12238  test "$silent" = yes &&
12239    ac_config_status_args="$ac_config_status_args --quiet"
12240  exec 5>/dev/null
12241  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12242  exec 5>>config.log
12243  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12244  # would make configure fail if this is the last instruction.
12245  $ac_cs_success || { (exit 1); exit 1; }
12246fi
12247
Note: See TracBrowser for help on using the repository browser.