Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5471

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

orxonox/trunk: nicer rendering of the rockets particles

  • Property svn:executable set to *
File size: 372.8 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-tardis or --without-tardis was given.
4167if test "${with_tardis+set}" = set; then
4168  withval="$with_tardis"
4169  def_tardis=yes
4170fi;
4171if test x$def_tardis = xyes; then
4172  ARCH=i686-debian-linux3.1
4173   ## GAMELIBS
4174  PREFIX=/usr/pack/gamelibs-1.0-to
4175  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
4176  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
4177  ## GTK
4178  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
4179  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
4180  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
4181  echo "yes"
4182fi
4183if test x$def_tardis = xno; then
4184  echo "no"
4185fi
4186
4187#######################
4188## PROGRAMM CHECKING ##
4189## 3. party Programs ##
4190#######################
4191
4192#----------------------#
4193# checking for Doxygen #
4194#----------------------#
4195# Extract the first word of "doxygen", so it can be a program name with args.
4196set dummy doxygen; ac_word=$2
4197echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199if test "${ac_cv_path_DOXYGEN+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  case $DOXYGEN in
4203  [\\/]* | ?:[\\/]*)
4204  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4205  ;;
4206  *)
4207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210  IFS=$as_save_IFS
4211  test -z "$as_dir" && as_dir=.
4212  for ac_exec_ext in '' $ac_executable_extensions; do
4213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216    break 2
4217  fi
4218done
4219done
4220
4221  ;;
4222esac
4223fi
4224DOXYGEN=$ac_cv_path_DOXYGEN
4225
4226if test -n "$DOXYGEN"; then
4227  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4228echo "${ECHO_T}$DOXYGEN" >&6
4229else
4230  echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232fi
4233
4234
4235
4236if test $DOXYGEN; then
4237  DOXYGEN_TRUE=
4238  DOXYGEN_FALSE='#'
4239else
4240  DOXYGEN_TRUE='#'
4241  DOXYGEN_FALSE=
4242fi
4243
4244
4245#--------------------#
4246# checking for gprof #
4247#--------------------#
4248# Extract the first word of "gprof", so it can be a program name with args.
4249set dummy gprof; ac_word=$2
4250echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252if test "${ac_cv_path_GPROF+set}" = set; then
4253  echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255  case $GPROF in
4256  [\\/]* | ?:[\\/]*)
4257  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4258  ;;
4259  *)
4260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263  IFS=$as_save_IFS
4264  test -z "$as_dir" && as_dir=.
4265  for ac_exec_ext in '' $ac_executable_extensions; do
4266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269    break 2
4270  fi
4271done
4272done
4273
4274  ;;
4275esac
4276fi
4277GPROF=$ac_cv_path_GPROF
4278
4279if test -n "$GPROF"; then
4280  echo "$as_me:$LINENO: result: $GPROF" >&5
4281echo "${ECHO_T}$GPROF" >&6
4282else
4283  echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285fi
4286
4287
4288#-------------------------#
4289# checking for pkg-config #
4290#-------------------------#
4291if test x$def_gtk = xyes; then
4292 # Extract the first word of "pkg-config", so it can be a program name with args.
4293set dummy pkg-config; ac_word=$2
4294echo "$as_me:$LINENO: checking for $ac_word" >&5
4295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4297  echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299  case $PKG_CONFIG in
4300  [\\/]* | ?:[\\/]*)
4301  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4302  ;;
4303  *)
4304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307  IFS=$as_save_IFS
4308  test -z "$as_dir" && as_dir=.
4309  for ac_exec_ext in '' $ac_executable_extensions; do
4310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313    break 2
4314  fi
4315done
4316done
4317
4318  ;;
4319esac
4320fi
4321PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4322
4323if test -n "$PKG_CONFIG"; then
4324  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4325echo "${ECHO_T}$PKG_CONFIG" >&6
4326else
4327  echo "$as_me:$LINENO: result: no" >&5
4328echo "${ECHO_T}no" >&6
4329fi
4330
4331fi
4332
4333
4334#########################
4335## CHECKING FOR SYSTEM ##
4336#########################
4337## here the system is checked, and openGL is included
4338## also checking for SDL on differen Systems
4339
4340echo "$as_me:$LINENO: checking for System" >&5
4341echo $ECHO_N "checking for System... $ECHO_C" >&6
4342## checking for openGL-environment and other sys-specific parameters
4343case "$target" in
4344
4345###########
4346#---------#
4347# WINDOWS #
4348#---------#
4349###########
4350  *-*-mingw32*)
4351echo "mingw-WINDOWS detected"
4352
4353CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4354
4355    mingw="yes"
4356    MSBITFIELDS="-mms-bitfields"
4357    MWINDOWS="-mwindows"
4358
4359#--------#
4360# MIN-GW #
4361#--------#
4362# checking for mingw32
4363    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4364echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4365if test "${ac_cv_lib_mingw32_main+set}" = set; then
4366  echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368  ac_check_lib_save_LIBS=$LIBS
4369LIBS="-lmingw32  $LIBS"
4370cat >conftest.$ac_ext <<_ACEOF
4371/* confdefs.h.  */
4372_ACEOF
4373cat confdefs.h >>conftest.$ac_ext
4374cat >>conftest.$ac_ext <<_ACEOF
4375/* end confdefs.h.  */
4376
4377
4378int
4379main ()
4380{
4381main ();
4382  ;
4383  return 0;
4384}
4385_ACEOF
4386rm -f conftest.$ac_objext conftest$ac_exeext
4387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4388  (eval $ac_link) 2>conftest.er1
4389  ac_status=$?
4390  grep -v '^ *+' conftest.er1 >conftest.err
4391  rm -f conftest.er1
4392  cat conftest.err >&5
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } &&
4395         { ac_try='test -z "$ac_c_werror_flag"
4396                         || test ! -s conftest.err'
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); }; } &&
4402         { ac_try='test -s conftest$ac_exeext'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; }; then
4408  ac_cv_lib_mingw32_main=yes
4409else
4410  echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
4413ac_cv_lib_mingw32_main=no
4414fi
4415rm -f conftest.err conftest.$ac_objext \
4416      conftest$ac_exeext conftest.$ac_ext
4417LIBS=$ac_check_lib_save_LIBS
4418fi
4419echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4420echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4421if test $ac_cv_lib_mingw32_main = yes; then
4422  FOUND_mingw32=yes
4423fi
4424
4425    if test x$FOUND_mingw32 = xyes; then
4426        LIBS="$LIBS -lmingw32"
4427    fi
4428
4429#---------------#
4430# open-GL (win) #
4431#---------------#
4432# checking gl header
4433   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4444                  inttypes.h stdint.h unistd.h
4445do
4446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4447echo "$as_me:$LINENO: checking for $ac_header" >&5
4448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4449if eval "test \"\${$as_ac_Header+set}\" = set"; then
4450  echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452  cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h.  */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h.  */
4458$ac_includes_default
4459
4460#include <$ac_header>
4461_ACEOF
4462rm -f conftest.$ac_objext
4463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464  (eval $ac_compile) 2>conftest.er1
4465  ac_status=$?
4466  grep -v '^ *+' conftest.er1 >conftest.err
4467  rm -f conftest.er1
4468  cat conftest.err >&5
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); } &&
4471         { ac_try='test -z "$ac_c_werror_flag"
4472                         || test ! -s conftest.err'
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); }; } &&
4478         { ac_try='test -s conftest.$ac_objext'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; }; then
4484  eval "$as_ac_Header=yes"
4485else
4486  echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489eval "$as_ac_Header=no"
4490fi
4491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492fi
4493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496  cat >>confdefs.h <<_ACEOF
4497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498_ACEOF
4499
4500fi
4501
4502done
4503
4504
4505
4506for ac_header in GL/gl.h
4507do
4508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4509if eval "test \"\${$as_ac_Header+set}\" = set"; then
4510  echo "$as_me:$LINENO: checking for $ac_header" >&5
4511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513  echo $ECHO_N "(cached) $ECHO_C" >&6
4514fi
4515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4517else
4518  # Is the header compilable?
4519echo "$as_me:$LINENO: checking $ac_header usability" >&5
4520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4521cat >conftest.$ac_ext <<_ACEOF
4522/* confdefs.h.  */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h.  */
4527$ac_includes_default
4528#include <$ac_header>
4529_ACEOF
4530rm -f conftest.$ac_objext
4531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532  (eval $ac_compile) 2>conftest.er1
4533  ac_status=$?
4534  grep -v '^ *+' conftest.er1 >conftest.err
4535  rm -f conftest.er1
4536  cat conftest.err >&5
4537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538  (exit $ac_status); } &&
4539         { ac_try='test -z "$ac_c_werror_flag"
4540                         || test ! -s conftest.err'
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); }; } &&
4546         { ac_try='test -s conftest.$ac_objext'
4547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548  (eval $ac_try) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; }; then
4552  ac_header_compiler=yes
4553else
4554  echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557ac_header_compiler=no
4558fi
4559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561echo "${ECHO_T}$ac_header_compiler" >&6
4562
4563# Is the header present?
4564echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h.  */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h.  */
4572#include <$ac_header>
4573_ACEOF
4574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4576  ac_status=$?
4577  grep -v '^ *+' conftest.er1 >conftest.err
4578  rm -f conftest.er1
4579  cat conftest.err >&5
4580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581  (exit $ac_status); } >/dev/null; then
4582  if test -s conftest.err; then
4583    ac_cpp_err=$ac_c_preproc_warn_flag
4584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4585  else
4586    ac_cpp_err=
4587  fi
4588else
4589  ac_cpp_err=yes
4590fi
4591if test -z "$ac_cpp_err"; then
4592  ac_header_preproc=yes
4593else
4594  echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597  ac_header_preproc=no
4598fi
4599rm -f conftest.err conftest.$ac_ext
4600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601echo "${ECHO_T}$ac_header_preproc" >&6
4602
4603# So?  What about this header?
4604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4605  yes:no: )
4606    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4610    ac_header_preproc=yes
4611    ;;
4612  no:yes:* )
4613    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4615    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4616echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4617    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4619    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4620echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4621    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4623    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4625    (
4626      cat <<\_ASBOX
4627## ---------------------------------------------- ##
4628## Report this to orxonox-dev at mail.datacore.ch ##
4629## ---------------------------------------------- ##
4630_ASBOX
4631    ) |
4632      sed "s/^/$as_me: WARNING:     /" >&2
4633    ;;
4634esac
4635echo "$as_me:$LINENO: checking for $ac_header" >&5
4636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638  echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640  eval "$as_ac_Header=\$ac_header_preproc"
4641fi
4642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4644
4645fi
4646if test `eval echo '${'$as_ac_Header'}'` = yes; then
4647  cat >>confdefs.h <<_ACEOF
4648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4649_ACEOF
4650
4651else
4652  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4653echo "$as_me: error: cannot find opengl headers" >&2;}
4654   { (exit 1); exit 1; }; }
4655fi
4656
4657done
4658
4659#   checking for Windows openGl library
4660    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4661echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4662if test "${ac_cv_lib_opengl32_main+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  ac_check_lib_save_LIBS=$LIBS
4666LIBS="-lopengl32  $LIBS"
4667cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h.  */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h.  */
4673
4674
4675int
4676main ()
4677{
4678main ();
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683rm -f conftest.$ac_objext conftest$ac_exeext
4684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685  (eval $ac_link) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692         { ac_try='test -z "$ac_c_werror_flag"
4693                         || test ! -s conftest.err'
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); }; } &&
4699         { ac_try='test -s conftest$ac_exeext'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; }; then
4705  ac_cv_lib_opengl32_main=yes
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710ac_cv_lib_opengl32_main=no
4711fi
4712rm -f conftest.err conftest.$ac_objext \
4713      conftest$ac_exeext conftest.$ac_ext
4714LIBS=$ac_check_lib_save_LIBS
4715fi
4716echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4717echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4718if test $ac_cv_lib_opengl32_main = yes; then
4719  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
4720fi
4721
4722    if test x$FOUND_GL != xyes ; then
4723         echo "------------------"
4724         echo "opengl not found."
4725         echo "please install the opengl package which can be found at http://www.opengl.org"
4726         echo "------------------"
4727         exit -1
4728    fi
4729
4730# cheking for GLU-header
4731
4732for ac_header in GL/glu.h
4733do
4734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735if eval "test \"\${$as_ac_Header+set}\" = set"; then
4736  echo "$as_me:$LINENO: checking for $ac_header" >&5
4737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4738if eval "test \"\${$as_ac_Header+set}\" = set"; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740fi
4741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4743else
4744  # Is the header compilable?
4745echo "$as_me:$LINENO: checking $ac_header usability" >&5
4746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4747cat >conftest.$ac_ext <<_ACEOF
4748/* confdefs.h.  */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h.  */
4753$ac_includes_default
4754#include <$ac_header>
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758  (eval $ac_compile) 2>conftest.er1
4759  ac_status=$?
4760  grep -v '^ *+' conftest.er1 >conftest.err
4761  rm -f conftest.er1
4762  cat conftest.err >&5
4763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764  (exit $ac_status); } &&
4765         { ac_try='test -z "$ac_c_werror_flag"
4766                         || test ! -s conftest.err'
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); }; } &&
4772         { ac_try='test -s conftest.$ac_objext'
4773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774  (eval $ac_try) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; }; then
4778  ac_header_compiler=yes
4779else
4780  echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783ac_header_compiler=no
4784fi
4785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4787echo "${ECHO_T}$ac_header_compiler" >&6
4788
4789# Is the header present?
4790echo "$as_me:$LINENO: checking $ac_header presence" >&5
4791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4792cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h.  */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h.  */
4798#include <$ac_header>
4799_ACEOF
4800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4801  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802  ac_status=$?
4803  grep -v '^ *+' conftest.er1 >conftest.err
4804  rm -f conftest.er1
4805  cat conftest.err >&5
4806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807  (exit $ac_status); } >/dev/null; then
4808  if test -s conftest.err; then
4809    ac_cpp_err=$ac_c_preproc_warn_flag
4810    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4811  else
4812    ac_cpp_err=
4813  fi
4814else
4815  ac_cpp_err=yes
4816fi
4817if test -z "$ac_cpp_err"; then
4818  ac_header_preproc=yes
4819else
4820  echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823  ac_header_preproc=no
4824fi
4825rm -f conftest.err conftest.$ac_ext
4826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4827echo "${ECHO_T}$ac_header_preproc" >&6
4828
4829# So?  What about this header?
4830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4831  yes:no: )
4832    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4834    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4836    ac_header_preproc=yes
4837    ;;
4838  no:yes:* )
4839    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4841    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4842echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4843    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4845    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4846echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4847    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4849    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4851    (
4852      cat <<\_ASBOX
4853## ---------------------------------------------- ##
4854## Report this to orxonox-dev at mail.datacore.ch ##
4855## ---------------------------------------------- ##
4856_ASBOX
4857    ) |
4858      sed "s/^/$as_me: WARNING:     /" >&2
4859    ;;
4860esac
4861echo "$as_me:$LINENO: checking for $ac_header" >&5
4862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4863if eval "test \"\${$as_ac_Header+set}\" = set"; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  eval "$as_ac_Header=\$ac_header_preproc"
4867fi
4868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4870
4871fi
4872if test `eval echo '${'$as_ac_Header'}'` = yes; then
4873  cat >>confdefs.h <<_ACEOF
4874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4875_ACEOF
4876
4877else
4878  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4879echo "$as_me: error: cannot find opengl headers" >&2;}
4880   { (exit 1); exit 1; }; }
4881fi
4882
4883done
4884
4885
4886# checking for libGLU
4887    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4888echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4889if test "${ac_cv_lib_glu32_main+set}" = set; then
4890  echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892  ac_check_lib_save_LIBS=$LIBS
4893LIBS="-lglu32  $LIBS"
4894cat >conftest.$ac_ext <<_ACEOF
4895/* confdefs.h.  */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h.  */
4900
4901
4902int
4903main ()
4904{
4905main ();
4906  ;
4907  return 0;
4908}
4909_ACEOF
4910rm -f conftest.$ac_objext conftest$ac_exeext
4911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912  (eval $ac_link) 2>conftest.er1
4913  ac_status=$?
4914  grep -v '^ *+' conftest.er1 >conftest.err
4915  rm -f conftest.er1
4916  cat conftest.err >&5
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); } &&
4919         { ac_try='test -z "$ac_c_werror_flag"
4920                         || test ! -s conftest.err'
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); }; } &&
4926         { ac_try='test -s conftest$ac_exeext'
4927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928  (eval $ac_try) 2>&5
4929  ac_status=$?
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); }; }; then
4932  ac_cv_lib_glu32_main=yes
4933else
4934  echo "$as_me: failed program was:" >&5
4935sed 's/^/| /' conftest.$ac_ext >&5
4936
4937ac_cv_lib_glu32_main=no
4938fi
4939rm -f conftest.err conftest.$ac_objext \
4940      conftest$ac_exeext conftest.$ac_ext
4941LIBS=$ac_check_lib_save_LIBS
4942fi
4943echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4944echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4945if test $ac_cv_lib_glu32_main = yes; then
4946  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
4947fi
4948
4949    if test x$FOUND_GLU != xyes ; then
4950         echo "------------------"
4951         echo "GLU library not found."
4952         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4953         echo "------------------"
4954         exit -1
4955    fi
4956
4957# checking glew header
4958
4959for ac_header in GL/glew.h
4960do
4961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4962if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963  echo "$as_me:$LINENO: checking for $ac_header" >&5
4964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967fi
4968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4970else
4971  # Is the header compilable?
4972echo "$as_me:$LINENO: checking $ac_header usability" >&5
4973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4974cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h.  */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h.  */
4980$ac_includes_default
4981#include <$ac_header>
4982_ACEOF
4983rm -f conftest.$ac_objext
4984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985  (eval $ac_compile) 2>conftest.er1
4986  ac_status=$?
4987  grep -v '^ *+' conftest.er1 >conftest.err
4988  rm -f conftest.er1
4989  cat conftest.err >&5
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); } &&
4992         { ac_try='test -z "$ac_c_werror_flag"
4993                         || test ! -s conftest.err'
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); }; } &&
4999         { ac_try='test -s conftest.$ac_objext'
5000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001  (eval $ac_try) 2>&5
5002  ac_status=$?
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); }; }; then
5005  ac_header_compiler=yes
5006else
5007  echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010ac_header_compiler=no
5011fi
5012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5014echo "${ECHO_T}$ac_header_compiler" >&6
5015
5016# Is the header present?
5017echo "$as_me:$LINENO: checking $ac_header presence" >&5
5018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5019cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h.  */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h.  */
5025#include <$ac_header>
5026_ACEOF
5027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5029  ac_status=$?
5030  grep -v '^ *+' conftest.er1 >conftest.err
5031  rm -f conftest.er1
5032  cat conftest.err >&5
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); } >/dev/null; then
5035  if test -s conftest.err; then
5036    ac_cpp_err=$ac_c_preproc_warn_flag
5037    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5038  else
5039    ac_cpp_err=
5040  fi
5041else
5042  ac_cpp_err=yes
5043fi
5044if test -z "$ac_cpp_err"; then
5045  ac_header_preproc=yes
5046else
5047  echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050  ac_header_preproc=no
5051fi
5052rm -f conftest.err conftest.$ac_ext
5053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5054echo "${ECHO_T}$ac_header_preproc" >&6
5055
5056# So?  What about this header?
5057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5058  yes:no: )
5059    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5061    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5063    ac_header_preproc=yes
5064    ;;
5065  no:yes:* )
5066    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5068    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5069echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5070    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5072    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5073echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5076    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5078    (
5079      cat <<\_ASBOX
5080## ---------------------------------------------- ##
5081## Report this to orxonox-dev at mail.datacore.ch ##
5082## ---------------------------------------------- ##
5083_ASBOX
5084    ) |
5085      sed "s/^/$as_me: WARNING:     /" >&2
5086    ;;
5087esac
5088echo "$as_me:$LINENO: checking for $ac_header" >&5
5089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5090if eval "test \"\${$as_ac_Header+set}\" = set"; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093  eval "$as_ac_Header=\$ac_header_preproc"
5094fi
5095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5097
5098fi
5099if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100  cat >>confdefs.h <<_ACEOF
5101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102_ACEOF
5103
5104else
5105  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5106echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5107   { (exit 1); exit 1; }; }
5108fi
5109
5110done
5111
5112#   checking for Windows glew library
5113    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5114echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5115if test "${ac_cv_lib_glew32_main+set}" = set; then
5116  echo $ECHO_N "(cached) $ECHO_C" >&6
5117else
5118  ac_check_lib_save_LIBS=$LIBS
5119LIBS="-lglew32  $LIBS"
5120cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h.  */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h.  */
5126
5127
5128int
5129main ()
5130{
5131main ();
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136rm -f conftest.$ac_objext conftest$ac_exeext
5137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138  (eval $ac_link) 2>conftest.er1
5139  ac_status=$?
5140  grep -v '^ *+' conftest.er1 >conftest.err
5141  rm -f conftest.er1
5142  cat conftest.err >&5
5143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144  (exit $ac_status); } &&
5145         { ac_try='test -z "$ac_c_werror_flag"
5146                         || test ! -s conftest.err'
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); }; } &&
5152         { ac_try='test -s conftest$ac_exeext'
5153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154  (eval $ac_try) 2>&5
5155  ac_status=$?
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); }; }; then
5158  ac_cv_lib_glew32_main=yes
5159else
5160  echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163ac_cv_lib_glew32_main=no
5164fi
5165rm -f conftest.err conftest.$ac_objext \
5166      conftest$ac_exeext conftest.$ac_ext
5167LIBS=$ac_check_lib_save_LIBS
5168fi
5169echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5170echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5171if test $ac_cv_lib_glew32_main = yes; then
5172  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
5173fi
5174
5175    if test x$FOUND_GLEW != xyes ; then
5176         echo "------------------"
5177         echo "opengl extension wrangler not found."
5178         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5179         echo "------------------"
5180         exit -1
5181    fi
5182
5183#--------#
5184# openAL #
5185#--------#
5186# checking for openAL-headers
5187
5188for ac_header in AL/al.h
5189do
5190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5191if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192  echo "$as_me:$LINENO: checking for $ac_header" >&5
5193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196fi
5197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5199else
5200  # Is the header compilable?
5201echo "$as_me:$LINENO: checking $ac_header usability" >&5
5202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5203cat >conftest.$ac_ext <<_ACEOF
5204/* confdefs.h.  */
5205_ACEOF
5206cat confdefs.h >>conftest.$ac_ext
5207cat >>conftest.$ac_ext <<_ACEOF
5208/* end confdefs.h.  */
5209$ac_includes_default
5210#include <$ac_header>
5211_ACEOF
5212rm -f conftest.$ac_objext
5213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214  (eval $ac_compile) 2>conftest.er1
5215  ac_status=$?
5216  grep -v '^ *+' conftest.er1 >conftest.err
5217  rm -f conftest.er1
5218  cat conftest.err >&5
5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); } &&
5221         { ac_try='test -z "$ac_c_werror_flag"
5222                         || test ! -s conftest.err'
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); }; } &&
5228         { ac_try='test -s conftest.$ac_objext'
5229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230  (eval $ac_try) 2>&5
5231  ac_status=$?
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); }; }; then
5234  ac_header_compiler=yes
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239ac_header_compiler=no
5240fi
5241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5243echo "${ECHO_T}$ac_header_compiler" >&6
5244
5245# Is the header present?
5246echo "$as_me:$LINENO: checking $ac_header presence" >&5
5247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5248cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h.  */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h.  */
5254#include <$ac_header>
5255_ACEOF
5256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5258  ac_status=$?
5259  grep -v '^ *+' conftest.er1 >conftest.err
5260  rm -f conftest.er1
5261  cat conftest.err >&5
5262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263  (exit $ac_status); } >/dev/null; then
5264  if test -s conftest.err; then
5265    ac_cpp_err=$ac_c_preproc_warn_flag
5266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267  else
5268    ac_cpp_err=
5269  fi
5270else
5271  ac_cpp_err=yes
5272fi
5273if test -z "$ac_cpp_err"; then
5274  ac_header_preproc=yes
5275else
5276  echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279  ac_header_preproc=no
5280fi
5281rm -f conftest.err conftest.$ac_ext
5282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5283echo "${ECHO_T}$ac_header_preproc" >&6
5284
5285# So?  What about this header?
5286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5287  yes:no: )
5288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5292    ac_header_preproc=yes
5293    ;;
5294  no:yes:* )
5295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5307    (
5308      cat <<\_ASBOX
5309## ---------------------------------------------- ##
5310## Report this to orxonox-dev at mail.datacore.ch ##
5311## ---------------------------------------------- ##
5312_ASBOX
5313    ) |
5314      sed "s/^/$as_me: WARNING:     /" >&2
5315    ;;
5316esac
5317echo "$as_me:$LINENO: checking for $ac_header" >&5
5318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5319if eval "test \"\${$as_ac_Header+set}\" = set"; then
5320  echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322  eval "$as_ac_Header=\$ac_header_preproc"
5323fi
5324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5326
5327fi
5328if test `eval echo '${'$as_ac_Header'}'` = yes; then
5329  cat >>confdefs.h <<_ACEOF
5330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5331_ACEOF
5332
5333else
5334  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5335echo "$as_me: error: cannot find openAL header." >&2;}
5336   { (exit 1); exit 1; }; }
5337fi
5338
5339done
5340
5341# checking for openAL-lib
5342  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5343echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5344if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5345  echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347  ac_check_lib_save_LIBS=$LIBS
5348LIBS="-lOpenAL32  $LIBS"
5349cat >conftest.$ac_ext <<_ACEOF
5350/* confdefs.h.  */
5351_ACEOF
5352cat confdefs.h >>conftest.$ac_ext
5353cat >>conftest.$ac_ext <<_ACEOF
5354/* end confdefs.h.  */
5355
5356
5357int
5358main ()
5359{
5360main ();
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365rm -f conftest.$ac_objext conftest$ac_exeext
5366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367  (eval $ac_link) 2>conftest.er1
5368  ac_status=$?
5369  grep -v '^ *+' conftest.er1 >conftest.err
5370  rm -f conftest.er1
5371  cat conftest.err >&5
5372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373  (exit $ac_status); } &&
5374         { ac_try='test -z "$ac_c_werror_flag"
5375                         || test ! -s conftest.err'
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); }; } &&
5381         { ac_try='test -s conftest$ac_exeext'
5382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383  (eval $ac_try) 2>&5
5384  ac_status=$?
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); }; }; then
5387  ac_cv_lib_OpenAL32_main=yes
5388else
5389  echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392ac_cv_lib_OpenAL32_main=no
5393fi
5394rm -f conftest.err conftest.$ac_objext \
5395      conftest$ac_exeext conftest.$ac_ext
5396LIBS=$ac_check_lib_save_LIBS
5397fi
5398echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5399echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5400if test $ac_cv_lib_OpenAL32_main = yes; then
5401  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
5402fi
5403
5404  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5405echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5406if test "${ac_cv_lib_ALut_main+set}" = set; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  ac_check_lib_save_LIBS=$LIBS
5410LIBS="-lALut  $LIBS"
5411cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h.  */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h.  */
5417
5418
5419int
5420main ()
5421{
5422main ();
5423  ;
5424  return 0;
5425}
5426_ACEOF
5427rm -f conftest.$ac_objext conftest$ac_exeext
5428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5429  (eval $ac_link) 2>conftest.er1
5430  ac_status=$?
5431  grep -v '^ *+' conftest.er1 >conftest.err
5432  rm -f conftest.er1
5433  cat conftest.err >&5
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } &&
5436         { ac_try='test -z "$ac_c_werror_flag"
5437                         || test ! -s conftest.err'
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); }; } &&
5443         { ac_try='test -s conftest$ac_exeext'
5444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445  (eval $ac_try) 2>&5
5446  ac_status=$?
5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); }; }; then
5449  ac_cv_lib_ALut_main=yes
5450else
5451  echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454ac_cv_lib_ALut_main=no
5455fi
5456rm -f conftest.err conftest.$ac_objext \
5457      conftest$ac_exeext conftest.$ac_ext
5458LIBS=$ac_check_lib_save_LIBS
5459fi
5460echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5461echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5462if test $ac_cv_lib_ALut_main = yes; then
5463  FOUND_ALUT=yes; LIBS="-lALut $LIBS"
5464fi
5465
5466     if test x$FOUND_OPENAL != xyes ; then
5467        echo "------------------"
5468        echo "openal library not found."
5469        echo "please install the openal library, which can be found at http://www.openal.org"
5470        echo "------------------"
5471        exit -1
5472     fi
5473
5474
5475#-----------#
5476# SDL(win) #
5477#-----------#
5478# checking for SDL-headers
5479
5480for ac_header in SDL/SDL.h
5481do
5482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483if eval "test \"\${$as_ac_Header+set}\" = set"; then
5484  echo "$as_me:$LINENO: checking for $ac_header" >&5
5485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5486if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488fi
5489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5491else
5492  # Is the header compilable?
5493echo "$as_me:$LINENO: checking $ac_header usability" >&5
5494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5495cat >conftest.$ac_ext <<_ACEOF
5496/* confdefs.h.  */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h.  */
5501$ac_includes_default
5502#include <$ac_header>
5503_ACEOF
5504rm -f conftest.$ac_objext
5505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5506  (eval $ac_compile) 2>conftest.er1
5507  ac_status=$?
5508  grep -v '^ *+' conftest.er1 >conftest.err
5509  rm -f conftest.er1
5510  cat conftest.err >&5
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); } &&
5513         { ac_try='test -z "$ac_c_werror_flag"
5514                         || test ! -s conftest.err'
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); }; } &&
5520         { ac_try='test -s conftest.$ac_objext'
5521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522  (eval $ac_try) 2>&5
5523  ac_status=$?
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }; }; then
5526  ac_header_compiler=yes
5527else
5528  echo "$as_me: failed program was:" >&5
5529sed 's/^/| /' conftest.$ac_ext >&5
5530
5531ac_header_compiler=no
5532fi
5533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5535echo "${ECHO_T}$ac_header_compiler" >&6
5536
5537# Is the header present?
5538echo "$as_me:$LINENO: checking $ac_header presence" >&5
5539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5540cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h.  */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h.  */
5546#include <$ac_header>
5547_ACEOF
5548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } >/dev/null; then
5556  if test -s conftest.err; then
5557    ac_cpp_err=$ac_c_preproc_warn_flag
5558    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5559  else
5560    ac_cpp_err=
5561  fi
5562else
5563  ac_cpp_err=yes
5564fi
5565if test -z "$ac_cpp_err"; then
5566  ac_header_preproc=yes
5567else
5568  echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571  ac_header_preproc=no
5572fi
5573rm -f conftest.err conftest.$ac_ext
5574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5575echo "${ECHO_T}$ac_header_preproc" >&6
5576
5577# So?  What about this header?
5578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5579  yes:no: )
5580    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5584    ac_header_preproc=yes
5585    ;;
5586  no:yes:* )
5587    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5589    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5590echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5591    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5593    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5594echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5595    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5597    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5599    (
5600      cat <<\_ASBOX
5601## ---------------------------------------------- ##
5602## Report this to orxonox-dev at mail.datacore.ch ##
5603## ---------------------------------------------- ##
5604_ASBOX
5605    ) |
5606      sed "s/^/$as_me: WARNING:     /" >&2
5607    ;;
5608esac
5609echo "$as_me:$LINENO: checking for $ac_header" >&5
5610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5611if eval "test \"\${$as_ac_Header+set}\" = set"; then
5612  echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614  eval "$as_ac_Header=\$ac_header_preproc"
5615fi
5616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5618
5619fi
5620if test `eval echo '${'$as_ac_Header'}'` = yes; then
5621  cat >>confdefs.h <<_ACEOF
5622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5623_ACEOF
5624
5625else
5626  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5627echo "$as_me: error: cannot find SDL headers" >&2;}
5628   { (exit 1); exit 1; }; }
5629fi
5630
5631done
5632
5633
5634#checking for libSDL
5635    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5636echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5637if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  ac_check_lib_save_LIBS=$LIBS
5641LIBS="-lsdlmain  $LIBS"
5642cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h.  */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h.  */
5648
5649
5650int
5651main ()
5652{
5653main ();
5654  ;
5655  return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext conftest$ac_exeext
5659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660  (eval $ac_link) 2>conftest.er1
5661  ac_status=$?
5662  grep -v '^ *+' conftest.er1 >conftest.err
5663  rm -f conftest.er1
5664  cat conftest.err >&5
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } &&
5667         { ac_try='test -z "$ac_c_werror_flag"
5668                         || test ! -s conftest.err'
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); }; } &&
5674         { ac_try='test -s conftest$ac_exeext'
5675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676  (eval $ac_try) 2>&5
5677  ac_status=$?
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); }; }; then
5680  ac_cv_lib_sdlmain_main=yes
5681else
5682  echo "$as_me: failed program was:" >&5
5683sed 's/^/| /' conftest.$ac_ext >&5
5684
5685ac_cv_lib_sdlmain_main=no
5686fi
5687rm -f conftest.err conftest.$ac_objext \
5688      conftest$ac_exeext conftest.$ac_ext
5689LIBS=$ac_check_lib_save_LIBS
5690fi
5691echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5692echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5693if test $ac_cv_lib_sdlmain_main = yes; then
5694  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
5695fi
5696
5697    if test x$FOUND_sdlmain != xyes ; then
5698        echo "------------------"
5699        echo "SDL library not found."
5700        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5701        echo "------------------"
5702        exit 1
5703    fi
5704    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5705echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5706if test "${ac_cv_lib_sdl_main+set}" = set; then
5707  echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709  ac_check_lib_save_LIBS=$LIBS
5710LIBS="-lsdl  $LIBS"
5711cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h.  */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h.  */
5717
5718
5719int
5720main ()
5721{
5722main ();
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext conftest$ac_exeext
5728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729  (eval $ac_link) 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } &&
5736         { ac_try='test -z "$ac_c_werror_flag"
5737                         || test ! -s conftest.err'
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); }; } &&
5743         { ac_try='test -s conftest$ac_exeext'
5744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745  (eval $ac_try) 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }; }; then
5749  ac_cv_lib_sdl_main=yes
5750else
5751  echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754ac_cv_lib_sdl_main=no
5755fi
5756rm -f conftest.err conftest.$ac_objext \
5757      conftest$ac_exeext conftest.$ac_ext
5758LIBS=$ac_check_lib_save_LIBS
5759fi
5760echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5761echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5762if test $ac_cv_lib_sdl_main = yes; then
5763  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
5764fi
5765
5766    if test x$FOUND_SDL != xyes ; then
5767        echo "------------------"
5768        echo "SDL library not found."
5769        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5770        echo "------------------"
5771        exit -1
5772    fi
5773
5774  ;;
5775
5776#########
5777#-------#
5778# LINUX #
5779#-------#
5780#########
5781 *-*-linux*)
5782echo "Linux detected"
5783
5784 Linux="yes"
5785
5786##CPPFLAGS="-I/usr/include $CPPFLAGS"
5787##LDFLAGS="-L/usr/lib $LDFLAGS"
5788if test x$SHARED_LIB_PATH != xno; then
5789        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5790        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5791fi
5792
5793#--------#
5794# openGL #
5795#--------#
5796# checking gl header
5797
5798for ac_header in GL/gl.h
5799do
5800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5801if eval "test \"\${$as_ac_Header+set}\" = set"; then
5802  echo "$as_me:$LINENO: checking for $ac_header" >&5
5803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5804if eval "test \"\${$as_ac_Header+set}\" = set"; then
5805  echo $ECHO_N "(cached) $ECHO_C" >&6
5806fi
5807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5809else
5810  # Is the header compilable?
5811echo "$as_me:$LINENO: checking $ac_header usability" >&5
5812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5813cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819$ac_includes_default
5820#include <$ac_header>
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824  (eval $ac_compile) 2>conftest.er1
5825  ac_status=$?
5826  grep -v '^ *+' conftest.er1 >conftest.err
5827  rm -f conftest.er1
5828  cat conftest.err >&5
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); } &&
5831         { ac_try='test -z "$ac_c_werror_flag"
5832                         || test ! -s conftest.err'
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); }; } &&
5838         { ac_try='test -s conftest.$ac_objext'
5839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840  (eval $ac_try) 2>&5
5841  ac_status=$?
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); }; }; then
5844  ac_header_compiler=yes
5845else
5846  echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849ac_header_compiler=no
5850fi
5851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5853echo "${ECHO_T}$ac_header_compiler" >&6
5854
5855# Is the header present?
5856echo "$as_me:$LINENO: checking $ac_header presence" >&5
5857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5858cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h.  */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h.  */
5864#include <$ac_header>
5865_ACEOF
5866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5868  ac_status=$?
5869  grep -v '^ *+' conftest.er1 >conftest.err
5870  rm -f conftest.er1
5871  cat conftest.err >&5
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); } >/dev/null; then
5874  if test -s conftest.err; then
5875    ac_cpp_err=$ac_c_preproc_warn_flag
5876    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5877  else
5878    ac_cpp_err=
5879  fi
5880else
5881  ac_cpp_err=yes
5882fi
5883if test -z "$ac_cpp_err"; then
5884  ac_header_preproc=yes
5885else
5886  echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889  ac_header_preproc=no
5890fi
5891rm -f conftest.err conftest.$ac_ext
5892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5893echo "${ECHO_T}$ac_header_preproc" >&6
5894
5895# So?  What about this header?
5896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5897  yes:no: )
5898    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5900    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5902    ac_header_preproc=yes
5903    ;;
5904  no:yes:* )
5905    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5907    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5908echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5909    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5911    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5912echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5913    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5915    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5917    (
5918      cat <<\_ASBOX
5919## ---------------------------------------------- ##
5920## Report this to orxonox-dev at mail.datacore.ch ##
5921## ---------------------------------------------- ##
5922_ASBOX
5923    ) |
5924      sed "s/^/$as_me: WARNING:     /" >&2
5925    ;;
5926esac
5927echo "$as_me:$LINENO: checking for $ac_header" >&5
5928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5929if eval "test \"\${$as_ac_Header+set}\" = set"; then
5930  echo $ECHO_N "(cached) $ECHO_C" >&6
5931else
5932  eval "$as_ac_Header=\$ac_header_preproc"
5933fi
5934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5936
5937fi
5938if test `eval echo '${'$as_ac_Header'}'` = yes; then
5939  cat >>confdefs.h <<_ACEOF
5940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941_ACEOF
5942
5943else
5944  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5945echo "$as_me: error: cannot find opengl headers" >&2;}
5946   { (exit 1); exit 1; }; }
5947fi
5948
5949done
5950
5951
5952#  checking for Unix GL
5953   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5954echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5955if test "${ac_cv_lib_GL_main+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  ac_check_lib_save_LIBS=$LIBS
5959LIBS="-lGL  $LIBS"
5960cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h.  */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h.  */
5966
5967
5968int
5969main ()
5970{
5971main ();
5972  ;
5973  return 0;
5974}
5975_ACEOF
5976rm -f conftest.$ac_objext conftest$ac_exeext
5977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978  (eval $ac_link) 2>conftest.er1
5979  ac_status=$?
5980  grep -v '^ *+' conftest.er1 >conftest.err
5981  rm -f conftest.er1
5982  cat conftest.err >&5
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); } &&
5985         { ac_try='test -z "$ac_c_werror_flag"
5986                         || test ! -s conftest.err'
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); }; } &&
5992         { ac_try='test -s conftest$ac_exeext'
5993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994  (eval $ac_try) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; }; then
5998  ac_cv_lib_GL_main=yes
5999else
6000  echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003ac_cv_lib_GL_main=no
6004fi
6005rm -f conftest.err conftest.$ac_objext \
6006      conftest$ac_exeext conftest.$ac_ext
6007LIBS=$ac_check_lib_save_LIBS
6008fi
6009echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6010echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6011if test $ac_cv_lib_GL_main = yes; then
6012  FOUND_GL=yes; LIBS="$LIBS -lGL"
6013fi
6014
6015   if test x$FOUND_GL != xyes ; then
6016         echo "------------------"
6017         echo "opengl not found."
6018         echo "please install the opengl package which can be found at http://www.opengl.org"
6019         echo "------------------"
6020         exit -1
6021   fi
6022
6023# cheking for GLU-header
6024
6025for ac_header in GL/glu.h
6026do
6027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6028if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029  echo "$as_me:$LINENO: checking for $ac_header" >&5
6030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6031if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032  echo $ECHO_N "(cached) $ECHO_C" >&6
6033fi
6034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6036else
6037  # Is the header compilable?
6038echo "$as_me:$LINENO: checking $ac_header usability" >&5
6039echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6040cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h.  */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h.  */
6046$ac_includes_default
6047#include <$ac_header>
6048_ACEOF
6049rm -f conftest.$ac_objext
6050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051  (eval $ac_compile) 2>conftest.er1
6052  ac_status=$?
6053  grep -v '^ *+' conftest.er1 >conftest.err
6054  rm -f conftest.er1
6055  cat conftest.err >&5
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); } &&
6058         { ac_try='test -z "$ac_c_werror_flag"
6059                         || test ! -s conftest.err'
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); }; } &&
6065         { ac_try='test -s conftest.$ac_objext'
6066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067  (eval $ac_try) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; }; then
6071  ac_header_compiler=yes
6072else
6073  echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076ac_header_compiler=no
6077fi
6078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6080echo "${ECHO_T}$ac_header_compiler" >&6
6081
6082# Is the header present?
6083echo "$as_me:$LINENO: checking $ac_header presence" >&5
6084echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6085cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h.  */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
6090/* end confdefs.h.  */
6091#include <$ac_header>
6092_ACEOF
6093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6095  ac_status=$?
6096  grep -v '^ *+' conftest.er1 >conftest.err
6097  rm -f conftest.er1
6098  cat conftest.err >&5
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); } >/dev/null; then
6101  if test -s conftest.err; then
6102    ac_cpp_err=$ac_c_preproc_warn_flag
6103    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6104  else
6105    ac_cpp_err=
6106  fi
6107else
6108  ac_cpp_err=yes
6109fi
6110if test -z "$ac_cpp_err"; then
6111  ac_header_preproc=yes
6112else
6113  echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116  ac_header_preproc=no
6117fi
6118rm -f conftest.err conftest.$ac_ext
6119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6120echo "${ECHO_T}$ac_header_preproc" >&6
6121
6122# So?  What about this header?
6123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6124  yes:no: )
6125    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6127    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6129    ac_header_preproc=yes
6130    ;;
6131  no:yes:* )
6132    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6135echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6136    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6138    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6139echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6140    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6142    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6144    (
6145      cat <<\_ASBOX
6146## ---------------------------------------------- ##
6147## Report this to orxonox-dev at mail.datacore.ch ##
6148## ---------------------------------------------- ##
6149_ASBOX
6150    ) |
6151      sed "s/^/$as_me: WARNING:     /" >&2
6152    ;;
6153esac
6154echo "$as_me:$LINENO: checking for $ac_header" >&5
6155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  eval "$as_ac_Header=\$ac_header_preproc"
6160fi
6161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6163
6164fi
6165if test `eval echo '${'$as_ac_Header'}'` = yes; then
6166  cat >>confdefs.h <<_ACEOF
6167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6168_ACEOF
6169
6170else
6171  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6172echo "$as_me: error: cannot find opengl headers" >&2;}
6173   { (exit 1); exit 1; }; }
6174fi
6175
6176done
6177
6178    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6179echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6180if test "${ac_cv_lib_GLU_main+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  ac_check_lib_save_LIBS=$LIBS
6184LIBS="-lGLU  $LIBS"
6185cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h.  */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h.  */
6191
6192
6193int
6194main ()
6195{
6196main ();
6197  ;
6198  return 0;
6199}
6200_ACEOF
6201rm -f conftest.$ac_objext conftest$ac_exeext
6202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203  (eval $ac_link) 2>conftest.er1
6204  ac_status=$?
6205  grep -v '^ *+' conftest.er1 >conftest.err
6206  rm -f conftest.er1
6207  cat conftest.err >&5
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); } &&
6210         { ac_try='test -z "$ac_c_werror_flag"
6211                         || test ! -s conftest.err'
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); }; } &&
6217         { ac_try='test -s conftest$ac_exeext'
6218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219  (eval $ac_try) 2>&5
6220  ac_status=$?
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); }; }; then
6223  ac_cv_lib_GLU_main=yes
6224else
6225  echo "$as_me: failed program was:" >&5
6226sed 's/^/| /' conftest.$ac_ext >&5
6227
6228ac_cv_lib_GLU_main=no
6229fi
6230rm -f conftest.err conftest.$ac_objext \
6231      conftest$ac_exeext conftest.$ac_ext
6232LIBS=$ac_check_lib_save_LIBS
6233fi
6234echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6235echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6236if test $ac_cv_lib_GLU_main = yes; then
6237  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6238fi
6239
6240    if test x$FOUND_GLU != xyes ; then
6241         echo "------------------"
6242         echo "GLU library not found."
6243         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6244         echo "------------------"
6245         exit -1
6246    fi
6247
6248# checking for GLEW-headers
6249
6250for ac_header in GL/glew.h
6251do
6252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6253if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254  echo "$as_me:$LINENO: checking for $ac_header" >&5
6255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6256if eval "test \"\${$as_ac_Header+set}\" = set"; then
6257  echo $ECHO_N "(cached) $ECHO_C" >&6
6258fi
6259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261else
6262  # Is the header compilable?
6263echo "$as_me:$LINENO: checking $ac_header usability" >&5
6264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6265cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h.  */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h.  */
6271$ac_includes_default
6272#include <$ac_header>
6273_ACEOF
6274rm -f conftest.$ac_objext
6275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276  (eval $ac_compile) 2>conftest.er1
6277  ac_status=$?
6278  grep -v '^ *+' conftest.er1 >conftest.err
6279  rm -f conftest.er1
6280  cat conftest.err >&5
6281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282  (exit $ac_status); } &&
6283         { ac_try='test -z "$ac_c_werror_flag"
6284                         || test ! -s conftest.err'
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); }; } &&
6290         { ac_try='test -s conftest.$ac_objext'
6291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292  (eval $ac_try) 2>&5
6293  ac_status=$?
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); }; }; then
6296  ac_header_compiler=yes
6297else
6298  echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301ac_header_compiler=no
6302fi
6303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6305echo "${ECHO_T}$ac_header_compiler" >&6
6306
6307# Is the header present?
6308echo "$as_me:$LINENO: checking $ac_header presence" >&5
6309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6310cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h.  */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h.  */
6316#include <$ac_header>
6317_ACEOF
6318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320  ac_status=$?
6321  grep -v '^ *+' conftest.er1 >conftest.err
6322  rm -f conftest.er1
6323  cat conftest.err >&5
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); } >/dev/null; then
6326  if test -s conftest.err; then
6327    ac_cpp_err=$ac_c_preproc_warn_flag
6328    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6329  else
6330    ac_cpp_err=
6331  fi
6332else
6333  ac_cpp_err=yes
6334fi
6335if test -z "$ac_cpp_err"; then
6336  ac_header_preproc=yes
6337else
6338  echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341  ac_header_preproc=no
6342fi
6343rm -f conftest.err conftest.$ac_ext
6344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6345echo "${ECHO_T}$ac_header_preproc" >&6
6346
6347# So?  What about this header?
6348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6349  yes:no: )
6350    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6352    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6354    ac_header_preproc=yes
6355    ;;
6356  no:yes:* )
6357    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6359    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6360echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6361    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6363    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6364echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6365    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6367    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6369    (
6370      cat <<\_ASBOX
6371## ---------------------------------------------- ##
6372## Report this to orxonox-dev at mail.datacore.ch ##
6373## ---------------------------------------------- ##
6374_ASBOX
6375    ) |
6376      sed "s/^/$as_me: WARNING:     /" >&2
6377    ;;
6378esac
6379echo "$as_me:$LINENO: checking for $ac_header" >&5
6380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382  echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384  eval "$as_ac_Header=\$ac_header_preproc"
6385fi
6386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388
6389fi
6390if test `eval echo '${'$as_ac_Header'}'` = yes; then
6391  cat >>confdefs.h <<_ACEOF
6392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6393_ACEOF
6394
6395else
6396  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6397echo "$as_me: error: cannot find glew headers" >&2;}
6398   { (exit 1); exit 1; }; }
6399fi
6400
6401done
6402
6403# checking for GLEW-lib
6404  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6405echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6406if test "${ac_cv_lib_GLEW_main+set}" = set; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  ac_check_lib_save_LIBS=$LIBS
6410LIBS="-lGLEW  $LIBS"
6411cat >conftest.$ac_ext <<_ACEOF
6412/* confdefs.h.  */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
6416/* end confdefs.h.  */
6417
6418
6419int
6420main ()
6421{
6422main ();
6423  ;
6424  return 0;
6425}
6426_ACEOF
6427rm -f conftest.$ac_objext conftest$ac_exeext
6428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429  (eval $ac_link) 2>conftest.er1
6430  ac_status=$?
6431  grep -v '^ *+' conftest.er1 >conftest.err
6432  rm -f conftest.er1
6433  cat conftest.err >&5
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } &&
6436         { ac_try='test -z "$ac_c_werror_flag"
6437                         || test ! -s conftest.err'
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); }; } &&
6443         { ac_try='test -s conftest$ac_exeext'
6444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445  (eval $ac_try) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; }; then
6449  ac_cv_lib_GLEW_main=yes
6450else
6451  echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
6454ac_cv_lib_GLEW_main=no
6455fi
6456rm -f conftest.err conftest.$ac_objext \
6457      conftest$ac_exeext conftest.$ac_ext
6458LIBS=$ac_check_lib_save_LIBS
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6461echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6462if test $ac_cv_lib_GLEW_main = yes; then
6463  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
6464fi
6465
6466   if test x$FOUND_GLEW != xyes ; then
6467         echo "------------------"
6468         echo "glew not found."
6469         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6470         echo "------------------"
6471         exit -1
6472   fi
6473
6474#--------#
6475# openAL #
6476#--------#
6477# checking for openAL-headers
6478
6479for ac_header in AL/al.h
6480do
6481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6482if eval "test \"\${$as_ac_Header+set}\" = set"; then
6483  echo "$as_me:$LINENO: checking for $ac_header" >&5
6484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486  echo $ECHO_N "(cached) $ECHO_C" >&6
6487fi
6488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6490else
6491  # Is the header compilable?
6492echo "$as_me:$LINENO: checking $ac_header usability" >&5
6493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6494cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h.  */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h.  */
6500$ac_includes_default
6501#include <$ac_header>
6502_ACEOF
6503rm -f conftest.$ac_objext
6504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505  (eval $ac_compile) 2>conftest.er1
6506  ac_status=$?
6507  grep -v '^ *+' conftest.er1 >conftest.err
6508  rm -f conftest.er1
6509  cat conftest.err >&5
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); } &&
6512         { ac_try='test -z "$ac_c_werror_flag"
6513                         || test ! -s conftest.err'
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); }; } &&
6519         { ac_try='test -s conftest.$ac_objext'
6520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521  (eval $ac_try) 2>&5
6522  ac_status=$?
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); }; }; then
6525  ac_header_compiler=yes
6526else
6527  echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530ac_header_compiler=no
6531fi
6532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6534echo "${ECHO_T}$ac_header_compiler" >&6
6535
6536# Is the header present?
6537echo "$as_me:$LINENO: checking $ac_header presence" >&5
6538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6539cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545#include <$ac_header>
6546_ACEOF
6547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6548  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6549  ac_status=$?
6550  grep -v '^ *+' conftest.er1 >conftest.err
6551  rm -f conftest.er1
6552  cat conftest.err >&5
6553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554  (exit $ac_status); } >/dev/null; then
6555  if test -s conftest.err; then
6556    ac_cpp_err=$ac_c_preproc_warn_flag
6557    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6558  else
6559    ac_cpp_err=
6560  fi
6561else
6562  ac_cpp_err=yes
6563fi
6564if test -z "$ac_cpp_err"; then
6565  ac_header_preproc=yes
6566else
6567  echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570  ac_header_preproc=no
6571fi
6572rm -f conftest.err conftest.$ac_ext
6573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6574echo "${ECHO_T}$ac_header_preproc" >&6
6575
6576# So?  What about this header?
6577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6578  yes:no: )
6579    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6581    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6583    ac_header_preproc=yes
6584    ;;
6585  no:yes:* )
6586    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6588    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6589echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6590    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6592    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6593echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6596    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6598    (
6599      cat <<\_ASBOX
6600## ---------------------------------------------- ##
6601## Report this to orxonox-dev at mail.datacore.ch ##
6602## ---------------------------------------------- ##
6603_ASBOX
6604    ) |
6605      sed "s/^/$as_me: WARNING:     /" >&2
6606    ;;
6607esac
6608echo "$as_me:$LINENO: checking for $ac_header" >&5
6609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6610if eval "test \"\${$as_ac_Header+set}\" = set"; then
6611  echo $ECHO_N "(cached) $ECHO_C" >&6
6612else
6613  eval "$as_ac_Header=\$ac_header_preproc"
6614fi
6615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6617
6618fi
6619if test `eval echo '${'$as_ac_Header'}'` = yes; then
6620  cat >>confdefs.h <<_ACEOF
6621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6622_ACEOF
6623
6624else
6625  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6626echo "$as_me: error: cannot find openAL header." >&2;}
6627   { (exit 1); exit 1; }; }
6628fi
6629
6630done
6631
6632# checking for openAL-lib
6633  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6634echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6635if test "${ac_cv_lib_openal_main+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  ac_check_lib_save_LIBS=$LIBS
6639LIBS="-lopenal  $LIBS"
6640cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h.  */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h.  */
6646
6647
6648int
6649main ()
6650{
6651main ();
6652  ;
6653  return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext conftest$ac_exeext
6657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6658  (eval $ac_link) 2>conftest.er1
6659  ac_status=$?
6660  grep -v '^ *+' conftest.er1 >conftest.err
6661  rm -f conftest.er1
6662  cat conftest.err >&5
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); } &&
6665         { ac_try='test -z "$ac_c_werror_flag"
6666                         || test ! -s conftest.err'
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); }; } &&
6672         { ac_try='test -s conftest$ac_exeext'
6673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674  (eval $ac_try) 2>&5
6675  ac_status=$?
6676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677  (exit $ac_status); }; }; then
6678  ac_cv_lib_openal_main=yes
6679else
6680  echo "$as_me: failed program was:" >&5
6681sed 's/^/| /' conftest.$ac_ext >&5
6682
6683ac_cv_lib_openal_main=no
6684fi
6685rm -f conftest.err conftest.$ac_objext \
6686      conftest$ac_exeext conftest.$ac_ext
6687LIBS=$ac_check_lib_save_LIBS
6688fi
6689echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6690echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6691if test $ac_cv_lib_openal_main = yes; then
6692  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
6693fi
6694
6695     if test x$FOUND_OPENAL != xyes ; then
6696        echo "------------------"
6697        echo "openal library not found."
6698        echo "please install the openal library, which can be found at http://www.openal.org"
6699        echo "------------------"
6700        exit -1
6701     fi
6702# checking for alut
6703
6704for ac_header in AL/alut.h
6705do
6706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707if eval "test \"\${$as_ac_Header+set}\" = set"; then
6708  echo "$as_me:$LINENO: checking for $ac_header" >&5
6709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6710if eval "test \"\${$as_ac_Header+set}\" = set"; then
6711  echo $ECHO_N "(cached) $ECHO_C" >&6
6712fi
6713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6715else
6716  # Is the header compilable?
6717echo "$as_me:$LINENO: checking $ac_header usability" >&5
6718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6719cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h.  */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h.  */
6725$ac_includes_default
6726#include <$ac_header>
6727_ACEOF
6728rm -f conftest.$ac_objext
6729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730  (eval $ac_compile) 2>conftest.er1
6731  ac_status=$?
6732  grep -v '^ *+' conftest.er1 >conftest.err
6733  rm -f conftest.er1
6734  cat conftest.err >&5
6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); } &&
6737         { ac_try='test -z "$ac_c_werror_flag"
6738                         || test ! -s conftest.err'
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); }; } &&
6744         { ac_try='test -s conftest.$ac_objext'
6745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746  (eval $ac_try) 2>&5
6747  ac_status=$?
6748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749  (exit $ac_status); }; }; then
6750  ac_header_compiler=yes
6751else
6752  echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
6755ac_header_compiler=no
6756fi
6757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6759echo "${ECHO_T}$ac_header_compiler" >&6
6760
6761# Is the header present?
6762echo "$as_me:$LINENO: checking $ac_header presence" >&5
6763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6764cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h.  */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h.  */
6770#include <$ac_header>
6771_ACEOF
6772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6774  ac_status=$?
6775  grep -v '^ *+' conftest.er1 >conftest.err
6776  rm -f conftest.er1
6777  cat conftest.err >&5
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); } >/dev/null; then
6780  if test -s conftest.err; then
6781    ac_cpp_err=$ac_c_preproc_warn_flag
6782    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6783  else
6784    ac_cpp_err=
6785  fi
6786else
6787  ac_cpp_err=yes
6788fi
6789if test -z "$ac_cpp_err"; then
6790  ac_header_preproc=yes
6791else
6792  echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
6794
6795  ac_header_preproc=no
6796fi
6797rm -f conftest.err conftest.$ac_ext
6798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799echo "${ECHO_T}$ac_header_preproc" >&6
6800
6801# So?  What about this header?
6802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6803  yes:no: )
6804    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6808    ac_header_preproc=yes
6809    ;;
6810  no:yes:* )
6811    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6813    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6814echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6815    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6817    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6818echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6819    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6821    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6823    (
6824      cat <<\_ASBOX
6825## ---------------------------------------------- ##
6826## Report this to orxonox-dev at mail.datacore.ch ##
6827## ---------------------------------------------- ##
6828_ASBOX
6829    ) |
6830      sed "s/^/$as_me: WARNING:     /" >&2
6831    ;;
6832esac
6833echo "$as_me:$LINENO: checking for $ac_header" >&5
6834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6835if eval "test \"\${$as_ac_Header+set}\" = set"; then
6836  echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838  eval "$as_ac_Header=\$ac_header_preproc"
6839fi
6840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6842
6843fi
6844if test `eval echo '${'$as_ac_Header'}'` = yes; then
6845  cat >>confdefs.h <<_ACEOF
6846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6847_ACEOF
6848
6849else
6850  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6851echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6852   { (exit 1); exit 1; }; }
6853fi
6854
6855done
6856
6857  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6858echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6859if test "${ac_cv_lib_alut_main+set}" = set; then
6860  echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862  ac_check_lib_save_LIBS=$LIBS
6863LIBS="-lalut  $LIBS"
6864cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h.  */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h.  */
6870
6871
6872int
6873main ()
6874{
6875main ();
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880rm -f conftest.$ac_objext conftest$ac_exeext
6881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6882  (eval $ac_link) 2>conftest.er1
6883  ac_status=$?
6884  grep -v '^ *+' conftest.er1 >conftest.err
6885  rm -f conftest.er1
6886  cat conftest.err >&5
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); } &&
6889         { ac_try='test -z "$ac_c_werror_flag"
6890                         || test ! -s conftest.err'
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); }; } &&
6896         { ac_try='test -s conftest$ac_exeext'
6897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898  (eval $ac_try) 2>&5
6899  ac_status=$?
6900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901  (exit $ac_status); }; }; then
6902  ac_cv_lib_alut_main=yes
6903else
6904  echo "$as_me: failed program was:" >&5
6905sed 's/^/| /' conftest.$ac_ext >&5
6906
6907ac_cv_lib_alut_main=no
6908fi
6909rm -f conftest.err conftest.$ac_objext \
6910      conftest$ac_exeext conftest.$ac_ext
6911LIBS=$ac_check_lib_save_LIBS
6912fi
6913echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6914echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6915if test $ac_cv_lib_alut_main = yes; then
6916  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
6917fi
6918
6919
6920#-----#
6921# SDL #
6922#-----#
6923# checking for SDL
6924  echo "$as_me:$LINENO: checking for SDL-version" >&5
6925echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6926  SDL_VERSION=`sdl-config --version`
6927  echo $SDL_VERSION
6928
6929   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6930
6931for ac_header in SDL.h
6932do
6933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6934if eval "test \"\${$as_ac_Header+set}\" = set"; then
6935  echo "$as_me:$LINENO: checking for $ac_header" >&5
6936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938  echo $ECHO_N "(cached) $ECHO_C" >&6
6939fi
6940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6942else
6943  # Is the header compilable?
6944echo "$as_me:$LINENO: checking $ac_header usability" >&5
6945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6946cat >conftest.$ac_ext <<_ACEOF
6947/* confdefs.h.  */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h.  */
6952$ac_includes_default
6953#include <$ac_header>
6954_ACEOF
6955rm -f conftest.$ac_objext
6956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957  (eval $ac_compile) 2>conftest.er1
6958  ac_status=$?
6959  grep -v '^ *+' conftest.er1 >conftest.err
6960  rm -f conftest.er1
6961  cat conftest.err >&5
6962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963  (exit $ac_status); } &&
6964         { ac_try='test -z "$ac_c_werror_flag"
6965                         || test ! -s conftest.err'
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); }; } &&
6971         { ac_try='test -s conftest.$ac_objext'
6972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973  (eval $ac_try) 2>&5
6974  ac_status=$?
6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976  (exit $ac_status); }; }; then
6977  ac_header_compiler=yes
6978else
6979  echo "$as_me: failed program was:" >&5
6980sed 's/^/| /' conftest.$ac_ext >&5
6981
6982ac_header_compiler=no
6983fi
6984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6986echo "${ECHO_T}$ac_header_compiler" >&6
6987
6988# Is the header present?
6989echo "$as_me:$LINENO: checking $ac_header presence" >&5
6990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6991cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h.  */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h.  */
6997#include <$ac_header>
6998_ACEOF
6999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7000  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7001  ac_status=$?
7002  grep -v '^ *+' conftest.er1 >conftest.err
7003  rm -f conftest.er1
7004  cat conftest.err >&5
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); } >/dev/null; then
7007  if test -s conftest.err; then
7008    ac_cpp_err=$ac_c_preproc_warn_flag
7009    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7010  else
7011    ac_cpp_err=
7012  fi
7013else
7014  ac_cpp_err=yes
7015fi
7016if test -z "$ac_cpp_err"; then
7017  ac_header_preproc=yes
7018else
7019  echo "$as_me: failed program was:" >&5
7020sed 's/^/| /' conftest.$ac_ext >&5
7021
7022  ac_header_preproc=no
7023fi
7024rm -f conftest.err conftest.$ac_ext
7025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7026echo "${ECHO_T}$ac_header_preproc" >&6
7027
7028# So?  What about this header?
7029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7030  yes:no: )
7031    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7035    ac_header_preproc=yes
7036    ;;
7037  no:yes:* )
7038    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7040    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7041echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7042    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7044    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7045echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7046    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7048    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7050    (
7051      cat <<\_ASBOX
7052## ---------------------------------------------- ##
7053## Report this to orxonox-dev at mail.datacore.ch ##
7054## ---------------------------------------------- ##
7055_ASBOX
7056    ) |
7057      sed "s/^/$as_me: WARNING:     /" >&2
7058    ;;
7059esac
7060echo "$as_me:$LINENO: checking for $ac_header" >&5
7061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7062if eval "test \"\${$as_ac_Header+set}\" = set"; then
7063  echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065  eval "$as_ac_Header=\$ac_header_preproc"
7066fi
7067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7069
7070fi
7071if test `eval echo '${'$as_ac_Header'}'` = yes; then
7072  cat >>confdefs.h <<_ACEOF
7073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7074_ACEOF
7075
7076else
7077
7078for ac_header in SDL/SDL.h
7079do
7080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7081if eval "test \"\${$as_ac_Header+set}\" = set"; then
7082  echo "$as_me:$LINENO: checking for $ac_header" >&5
7083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085  echo $ECHO_N "(cached) $ECHO_C" >&6
7086fi
7087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089else
7090  # Is the header compilable?
7091echo "$as_me:$LINENO: checking $ac_header usability" >&5
7092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7093cat >conftest.$ac_ext <<_ACEOF
7094/* confdefs.h.  */
7095_ACEOF
7096cat confdefs.h >>conftest.$ac_ext
7097cat >>conftest.$ac_ext <<_ACEOF
7098/* end confdefs.h.  */
7099$ac_includes_default
7100#include <$ac_header>
7101_ACEOF
7102rm -f conftest.$ac_objext
7103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104  (eval $ac_compile) 2>conftest.er1
7105  ac_status=$?
7106  grep -v '^ *+' conftest.er1 >conftest.err
7107  rm -f conftest.er1
7108  cat conftest.err >&5
7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110  (exit $ac_status); } &&
7111         { ac_try='test -z "$ac_c_werror_flag"
7112                         || test ! -s conftest.err'
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); }; } &&
7118         { ac_try='test -s conftest.$ac_objext'
7119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120  (eval $ac_try) 2>&5
7121  ac_status=$?
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); }; }; then
7124  ac_header_compiler=yes
7125else
7126  echo "$as_me: failed program was:" >&5
7127sed 's/^/| /' conftest.$ac_ext >&5
7128
7129ac_header_compiler=no
7130fi
7131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7133echo "${ECHO_T}$ac_header_compiler" >&6
7134
7135# Is the header present?
7136echo "$as_me:$LINENO: checking $ac_header presence" >&5
7137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7138cat >conftest.$ac_ext <<_ACEOF
7139/* confdefs.h.  */
7140_ACEOF
7141cat confdefs.h >>conftest.$ac_ext
7142cat >>conftest.$ac_ext <<_ACEOF
7143/* end confdefs.h.  */
7144#include <$ac_header>
7145_ACEOF
7146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7147  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7148  ac_status=$?
7149  grep -v '^ *+' conftest.er1 >conftest.err
7150  rm -f conftest.er1
7151  cat conftest.err >&5
7152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); } >/dev/null; then
7154  if test -s conftest.err; then
7155    ac_cpp_err=$ac_c_preproc_warn_flag
7156    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7157  else
7158    ac_cpp_err=
7159  fi
7160else
7161  ac_cpp_err=yes
7162fi
7163if test -z "$ac_cpp_err"; then
7164  ac_header_preproc=yes
7165else
7166  echo "$as_me: failed program was:" >&5
7167sed 's/^/| /' conftest.$ac_ext >&5
7168
7169  ac_header_preproc=no
7170fi
7171rm -f conftest.err conftest.$ac_ext
7172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7173echo "${ECHO_T}$ac_header_preproc" >&6
7174
7175# So?  What about this header?
7176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7177  yes:no: )
7178    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7180    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7182    ac_header_preproc=yes
7183    ;;
7184  no:yes:* )
7185    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7187    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7188echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7189    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7191    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7192echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7195    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7197    (
7198      cat <<\_ASBOX
7199## ---------------------------------------------- ##
7200## Report this to orxonox-dev at mail.datacore.ch ##
7201## ---------------------------------------------- ##
7202_ASBOX
7203    ) |
7204      sed "s/^/$as_me: WARNING:     /" >&2
7205    ;;
7206esac
7207echo "$as_me:$LINENO: checking for $ac_header" >&5
7208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7209if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210  echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212  eval "$as_ac_Header=\$ac_header_preproc"
7213fi
7214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7216
7217fi
7218if test `eval echo '${'$as_ac_Header'}'` = yes; then
7219  cat >>confdefs.h <<_ACEOF
7220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7221_ACEOF
7222
7223else
7224  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7225echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7226   { (exit 1); exit 1; }; }
7227fi
7228
7229done
7230
7231fi
7232
7233done
7234
7235   LIBS="`sdl-config --libs` $LIBS"
7236   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7237echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7238if test "${ac_cv_lib_SDL_main+set}" = set; then
7239  echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241  ac_check_lib_save_LIBS=$LIBS
7242LIBS="-lSDL  $LIBS"
7243cat >conftest.$ac_ext <<_ACEOF
7244/* confdefs.h.  */
7245_ACEOF
7246cat confdefs.h >>conftest.$ac_ext
7247cat >>conftest.$ac_ext <<_ACEOF
7248/* end confdefs.h.  */
7249
7250
7251int
7252main ()
7253{
7254main ();
7255  ;
7256  return 0;
7257}
7258_ACEOF
7259rm -f conftest.$ac_objext conftest$ac_exeext
7260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261  (eval $ac_link) 2>conftest.er1
7262  ac_status=$?
7263  grep -v '^ *+' conftest.er1 >conftest.err
7264  rm -f conftest.er1
7265  cat conftest.err >&5
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); } &&
7268         { ac_try='test -z "$ac_c_werror_flag"
7269                         || test ! -s conftest.err'
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); }; } &&
7275         { ac_try='test -s conftest$ac_exeext'
7276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277  (eval $ac_try) 2>&5
7278  ac_status=$?
7279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280  (exit $ac_status); }; }; then
7281  ac_cv_lib_SDL_main=yes
7282else
7283  echo "$as_me: failed program was:" >&5
7284sed 's/^/| /' conftest.$ac_ext >&5
7285
7286ac_cv_lib_SDL_main=no
7287fi
7288rm -f conftest.err conftest.$ac_objext \
7289      conftest$ac_exeext conftest.$ac_ext
7290LIBS=$ac_check_lib_save_LIBS
7291fi
7292echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7293echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7294if test $ac_cv_lib_SDL_main = yes; then
7295  FOUND_SDL=yes
7296fi
7297
7298    if test x$FOUND_SDL != xyes ; then
7299        echo "------------------"
7300        echo "SDL library not found."
7301        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7302        echo "------------------"
7303        exit -1
7304     fi
7305
7306    ;;
7307
7308#############
7309#-----------#
7310# MAC -OS X #
7311#-----------#
7312#############
7313 *darwin*)
7314 echo "OS X detected"
7315
7316 osX="yes"
7317
7318 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7319 LDFLAGS="$LDFLAGS -L/sw/lib"
7320# checking gl header
7321
7322for ac_header in OpenGL/gl.h
7323do
7324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325if eval "test \"\${$as_ac_Header+set}\" = set"; then
7326  echo "$as_me:$LINENO: checking for $ac_header" >&5
7327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330fi
7331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7333else
7334  # Is the header compilable?
7335echo "$as_me:$LINENO: checking $ac_header usability" >&5
7336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7337cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h.  */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h.  */
7343$ac_includes_default
7344#include <$ac_header>
7345_ACEOF
7346rm -f conftest.$ac_objext
7347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348  (eval $ac_compile) 2>conftest.er1
7349  ac_status=$?
7350  grep -v '^ *+' conftest.er1 >conftest.err
7351  rm -f conftest.er1
7352  cat conftest.err >&5
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); } &&
7355         { ac_try='test -z "$ac_c_werror_flag"
7356                         || test ! -s conftest.err'
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); }; } &&
7362         { ac_try='test -s conftest.$ac_objext'
7363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364  (eval $ac_try) 2>&5
7365  ac_status=$?
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); }; }; then
7368  ac_header_compiler=yes
7369else
7370  echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373ac_header_compiler=no
7374fi
7375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7377echo "${ECHO_T}$ac_header_compiler" >&6
7378
7379# Is the header present?
7380echo "$as_me:$LINENO: checking $ac_header presence" >&5
7381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7382cat >conftest.$ac_ext <<_ACEOF
7383/* confdefs.h.  */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h.  */
7388#include <$ac_header>
7389_ACEOF
7390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7391  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7392  ac_status=$?
7393  grep -v '^ *+' conftest.er1 >conftest.err
7394  rm -f conftest.er1
7395  cat conftest.err >&5
7396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397  (exit $ac_status); } >/dev/null; then
7398  if test -s conftest.err; then
7399    ac_cpp_err=$ac_c_preproc_warn_flag
7400    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7401  else
7402    ac_cpp_err=
7403  fi
7404else
7405  ac_cpp_err=yes
7406fi
7407if test -z "$ac_cpp_err"; then
7408  ac_header_preproc=yes
7409else
7410  echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413  ac_header_preproc=no
7414fi
7415rm -f conftest.err conftest.$ac_ext
7416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7417echo "${ECHO_T}$ac_header_preproc" >&6
7418
7419# So?  What about this header?
7420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7421  yes:no: )
7422    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7424    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7426    ac_header_preproc=yes
7427    ;;
7428  no:yes:* )
7429    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7431    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7432echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7433    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7435    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7436echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7437    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7439    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7441    (
7442      cat <<\_ASBOX
7443## ---------------------------------------------- ##
7444## Report this to orxonox-dev at mail.datacore.ch ##
7445## ---------------------------------------------- ##
7446_ASBOX
7447    ) |
7448      sed "s/^/$as_me: WARNING:     /" >&2
7449    ;;
7450esac
7451echo "$as_me:$LINENO: checking for $ac_header" >&5
7452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7453if eval "test \"\${$as_ac_Header+set}\" = set"; then
7454  echo $ECHO_N "(cached) $ECHO_C" >&6
7455else
7456  eval "$as_ac_Header=\$ac_header_preproc"
7457fi
7458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460
7461fi
7462if test `eval echo '${'$as_ac_Header'}'` = yes; then
7463  cat >>confdefs.h <<_ACEOF
7464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7465_ACEOF
7466
7467else
7468  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7469echo "$as_me: error: cannot find opengl headers" >&2;}
7470   { (exit 1); exit 1; }; }
7471fi
7472
7473done
7474
7475# cheking for GLU-header
7476
7477for ac_header in OpenGL/glu.h
7478do
7479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7480if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481  echo "$as_me:$LINENO: checking for $ac_header" >&5
7482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7483if eval "test \"\${$as_ac_Header+set}\" = set"; then
7484  echo $ECHO_N "(cached) $ECHO_C" >&6
7485fi
7486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7488else
7489  # Is the header compilable?
7490echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7492cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498$ac_includes_default
7499#include <$ac_header>
7500_ACEOF
7501rm -f conftest.$ac_objext
7502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7503  (eval $ac_compile) 2>conftest.er1
7504  ac_status=$?
7505  grep -v '^ *+' conftest.er1 >conftest.err
7506  rm -f conftest.er1
7507  cat conftest.err >&5
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); } &&
7510         { ac_try='test -z "$ac_c_werror_flag"
7511                         || test ! -s conftest.err'
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); }; } &&
7517         { ac_try='test -s conftest.$ac_objext'
7518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519  (eval $ac_try) 2>&5
7520  ac_status=$?
7521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522  (exit $ac_status); }; }; then
7523  ac_header_compiler=yes
7524else
7525  echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528ac_header_compiler=no
7529fi
7530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7532echo "${ECHO_T}$ac_header_compiler" >&6
7533
7534# Is the header present?
7535echo "$as_me:$LINENO: checking $ac_header presence" >&5
7536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7537cat >conftest.$ac_ext <<_ACEOF
7538/* confdefs.h.  */
7539_ACEOF
7540cat confdefs.h >>conftest.$ac_ext
7541cat >>conftest.$ac_ext <<_ACEOF
7542/* end confdefs.h.  */
7543#include <$ac_header>
7544_ACEOF
7545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7546  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7547  ac_status=$?
7548  grep -v '^ *+' conftest.er1 >conftest.err
7549  rm -f conftest.er1
7550  cat conftest.err >&5
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); } >/dev/null; then
7553  if test -s conftest.err; then
7554    ac_cpp_err=$ac_c_preproc_warn_flag
7555    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7556  else
7557    ac_cpp_err=
7558  fi
7559else
7560  ac_cpp_err=yes
7561fi
7562if test -z "$ac_cpp_err"; then
7563  ac_header_preproc=yes
7564else
7565  echo "$as_me: failed program was:" >&5
7566sed 's/^/| /' conftest.$ac_ext >&5
7567
7568  ac_header_preproc=no
7569fi
7570rm -f conftest.err conftest.$ac_ext
7571echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7572echo "${ECHO_T}$ac_header_preproc" >&6
7573
7574# So?  What about this header?
7575case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7576  yes:no: )
7577    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7578echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7579    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7580echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7581    ac_header_preproc=yes
7582    ;;
7583  no:yes:* )
7584    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7586    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7587echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7588    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7589echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7590    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7591echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7592    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7593echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7594    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7595echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7596    (
7597      cat <<\_ASBOX
7598## ---------------------------------------------- ##
7599## Report this to orxonox-dev at mail.datacore.ch ##
7600## ---------------------------------------------- ##
7601_ASBOX
7602    ) |
7603      sed "s/^/$as_me: WARNING:     /" >&2
7604    ;;
7605esac
7606echo "$as_me:$LINENO: checking for $ac_header" >&5
7607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7608if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609  echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611  eval "$as_ac_Header=\$ac_header_preproc"
7612fi
7613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7615
7616fi
7617if test `eval echo '${'$as_ac_Header'}'` = yes; then
7618  cat >>confdefs.h <<_ACEOF
7619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620_ACEOF
7621
7622else
7623  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7624echo "$as_me: error: cannot find opengl headers" >&2;}
7625   { (exit 1); exit 1; }; }
7626fi
7627
7628done
7629
7630
7631   LIBS="$LIBS -framework OpenGL"
7632
7633
7634
7635# checking for GLEW-headers
7636
7637for ac_header in GL/glew.h
7638do
7639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7640if eval "test \"\${$as_ac_Header+set}\" = set"; then
7641  echo "$as_me:$LINENO: checking for $ac_header" >&5
7642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7643if eval "test \"\${$as_ac_Header+set}\" = set"; then
7644  echo $ECHO_N "(cached) $ECHO_C" >&6
7645fi
7646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7648else
7649  # Is the header compilable?
7650echo "$as_me:$LINENO: checking $ac_header usability" >&5
7651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7652cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h.  */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h.  */
7658$ac_includes_default
7659#include <$ac_header>
7660_ACEOF
7661rm -f conftest.$ac_objext
7662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7663  (eval $ac_compile) 2>conftest.er1
7664  ac_status=$?
7665  grep -v '^ *+' conftest.er1 >conftest.err
7666  rm -f conftest.er1
7667  cat conftest.err >&5
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); } &&
7670         { ac_try='test -z "$ac_c_werror_flag"
7671                         || test ! -s conftest.err'
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); }; } &&
7677         { ac_try='test -s conftest.$ac_objext'
7678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679  (eval $ac_try) 2>&5
7680  ac_status=$?
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); }; }; then
7683  ac_header_compiler=yes
7684else
7685  echo "$as_me: failed program was:" >&5
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688ac_header_compiler=no
7689fi
7690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7692echo "${ECHO_T}$ac_header_compiler" >&6
7693
7694# Is the header present?
7695echo "$as_me:$LINENO: checking $ac_header presence" >&5
7696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7697cat >conftest.$ac_ext <<_ACEOF
7698/* confdefs.h.  */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
7702/* end confdefs.h.  */
7703#include <$ac_header>
7704_ACEOF
7705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7706  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7707  ac_status=$?
7708  grep -v '^ *+' conftest.er1 >conftest.err
7709  rm -f conftest.er1
7710  cat conftest.err >&5
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); } >/dev/null; then
7713  if test -s conftest.err; then
7714    ac_cpp_err=$ac_c_preproc_warn_flag
7715    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7716  else
7717    ac_cpp_err=
7718  fi
7719else
7720  ac_cpp_err=yes
7721fi
7722if test -z "$ac_cpp_err"; then
7723  ac_header_preproc=yes
7724else
7725  echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728  ac_header_preproc=no
7729fi
7730rm -f conftest.err conftest.$ac_ext
7731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7732echo "${ECHO_T}$ac_header_preproc" >&6
7733
7734# So?  What about this header?
7735case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7736  yes:no: )
7737    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7739    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7741    ac_header_preproc=yes
7742    ;;
7743  no:yes:* )
7744    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7746    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7747echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7748    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7750    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7751echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7752    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7754    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7756    (
7757      cat <<\_ASBOX
7758## ---------------------------------------------- ##
7759## Report this to orxonox-dev at mail.datacore.ch ##
7760## ---------------------------------------------- ##
7761_ASBOX
7762    ) |
7763      sed "s/^/$as_me: WARNING:     /" >&2
7764    ;;
7765esac
7766echo "$as_me:$LINENO: checking for $ac_header" >&5
7767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7768if eval "test \"\${$as_ac_Header+set}\" = set"; then
7769  echo $ECHO_N "(cached) $ECHO_C" >&6
7770else
7771  eval "$as_ac_Header=\$ac_header_preproc"
7772fi
7773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7775
7776fi
7777if test `eval echo '${'$as_ac_Header'}'` = yes; then
7778  cat >>confdefs.h <<_ACEOF
7779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7780_ACEOF
7781
7782else
7783  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
7784echo "$as_me: error: cannot find glew headers" >&2;}
7785   { (exit 1); exit 1; }; }
7786fi
7787
7788done
7789
7790# checking for GLEW-lib
7791  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
7792echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
7793if test "${ac_cv_lib_GLEW_main+set}" = set; then
7794  echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796  ac_check_lib_save_LIBS=$LIBS
7797LIBS="-lGLEW  $LIBS"
7798cat >conftest.$ac_ext <<_ACEOF
7799/* confdefs.h.  */
7800_ACEOF
7801cat confdefs.h >>conftest.$ac_ext
7802cat >>conftest.$ac_ext <<_ACEOF
7803/* end confdefs.h.  */
7804
7805
7806int
7807main ()
7808{
7809main ();
7810  ;
7811  return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext conftest$ac_exeext
7815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816  (eval $ac_link) 2>conftest.er1
7817  ac_status=$?
7818  grep -v '^ *+' conftest.er1 >conftest.err
7819  rm -f conftest.er1
7820  cat conftest.err >&5
7821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822  (exit $ac_status); } &&
7823         { ac_try='test -z "$ac_c_werror_flag"
7824                         || test ! -s conftest.err'
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); }; } &&
7830         { ac_try='test -s conftest$ac_exeext'
7831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832  (eval $ac_try) 2>&5
7833  ac_status=$?
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); }; }; then
7836  ac_cv_lib_GLEW_main=yes
7837else
7838  echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
7841ac_cv_lib_GLEW_main=no
7842fi
7843rm -f conftest.err conftest.$ac_objext \
7844      conftest$ac_exeext conftest.$ac_ext
7845LIBS=$ac_check_lib_save_LIBS
7846fi
7847echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
7848echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
7849if test $ac_cv_lib_GLEW_main = yes; then
7850  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
7851fi
7852
7853   if test x$FOUND_GLEW != xyes ; then
7854         echo "------------------"
7855         echo "glew not found."
7856         echo "please install the glew package which can be found at http://glew.sourceforge.net"
7857         echo "------------------"
7858         exit -1
7859   fi
7860
7861
7862
7863for ac_header in OpenAL/al.h
7864do
7865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7866if eval "test \"\${$as_ac_Header+set}\" = set"; then
7867  echo "$as_me:$LINENO: checking for $ac_header" >&5
7868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7869if eval "test \"\${$as_ac_Header+set}\" = set"; then
7870  echo $ECHO_N "(cached) $ECHO_C" >&6
7871fi
7872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7874else
7875  # Is the header compilable?
7876echo "$as_me:$LINENO: checking $ac_header usability" >&5
7877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7878cat >conftest.$ac_ext <<_ACEOF
7879/* confdefs.h.  */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h.  */
7884$ac_includes_default
7885#include <$ac_header>
7886_ACEOF
7887rm -f conftest.$ac_objext
7888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889  (eval $ac_compile) 2>conftest.er1
7890  ac_status=$?
7891  grep -v '^ *+' conftest.er1 >conftest.err
7892  rm -f conftest.er1
7893  cat conftest.err >&5
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); } &&
7896         { ac_try='test -z "$ac_c_werror_flag"
7897                         || test ! -s conftest.err'
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); }; } &&
7903         { ac_try='test -s conftest.$ac_objext'
7904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905  (eval $ac_try) 2>&5
7906  ac_status=$?
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); }; }; then
7909  ac_header_compiler=yes
7910else
7911  echo "$as_me: failed program was:" >&5
7912sed 's/^/| /' conftest.$ac_ext >&5
7913
7914ac_header_compiler=no
7915fi
7916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7918echo "${ECHO_T}$ac_header_compiler" >&6
7919
7920# Is the header present?
7921echo "$as_me:$LINENO: checking $ac_header presence" >&5
7922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7923cat >conftest.$ac_ext <<_ACEOF
7924/* confdefs.h.  */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h.  */
7929#include <$ac_header>
7930_ACEOF
7931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7933  ac_status=$?
7934  grep -v '^ *+' conftest.er1 >conftest.err
7935  rm -f conftest.er1
7936  cat conftest.err >&5
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); } >/dev/null; then
7939  if test -s conftest.err; then
7940    ac_cpp_err=$ac_c_preproc_warn_flag
7941    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7942  else
7943    ac_cpp_err=
7944  fi
7945else
7946  ac_cpp_err=yes
7947fi
7948if test -z "$ac_cpp_err"; then
7949  ac_header_preproc=yes
7950else
7951  echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
7954  ac_header_preproc=no
7955fi
7956rm -f conftest.err conftest.$ac_ext
7957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7958echo "${ECHO_T}$ac_header_preproc" >&6
7959
7960# So?  What about this header?
7961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7962  yes:no: )
7963    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7965    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7967    ac_header_preproc=yes
7968    ;;
7969  no:yes:* )
7970    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7972    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7973echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7974    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7976    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7977echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7978    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7980    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7982    (
7983      cat <<\_ASBOX
7984## ---------------------------------------------- ##
7985## Report this to orxonox-dev at mail.datacore.ch ##
7986## ---------------------------------------------- ##
7987_ASBOX
7988    ) |
7989      sed "s/^/$as_me: WARNING:     /" >&2
7990    ;;
7991esac
7992echo "$as_me:$LINENO: checking for $ac_header" >&5
7993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7994if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995  echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997  eval "$as_ac_Header=\$ac_header_preproc"
7998fi
7999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8001
8002fi
8003if test `eval echo '${'$as_ac_Header'}'` = yes; then
8004  cat >>confdefs.h <<_ACEOF
8005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8006_ACEOF
8007
8008else
8009  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
8010echo "$as_me: error: cannot find opengl headers" >&2;}
8011   { (exit 1); exit 1; }; }
8012fi
8013
8014done
8015
8016  HAVE_OPENAL=yes
8017  LIBS="$LIBS -framework OpenAL"
8018
8019
8020## SDL-check
8021       SDL_CFLAGS=`sdl-config --cflags`
8022       SDL_LIBS=`sdl-config --libs`
8023       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8024       LIBS="$LIBS $SDL_LIBS"
8025
8026for ac_header in SDL/SDL.h
8027do
8028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8029if eval "test \"\${$as_ac_Header+set}\" = set"; then
8030  echo "$as_me:$LINENO: checking for $ac_header" >&5
8031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8032if eval "test \"\${$as_ac_Header+set}\" = set"; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034fi
8035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8037else
8038  # Is the header compilable?
8039echo "$as_me:$LINENO: checking $ac_header usability" >&5
8040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8041cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h.  */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h.  */
8047$ac_includes_default
8048#include <$ac_header>
8049_ACEOF
8050rm -f conftest.$ac_objext
8051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052  (eval $ac_compile) 2>conftest.er1
8053  ac_status=$?
8054  grep -v '^ *+' conftest.er1 >conftest.err
8055  rm -f conftest.er1
8056  cat conftest.err >&5
8057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058  (exit $ac_status); } &&
8059         { ac_try='test -z "$ac_c_werror_flag"
8060                         || test ! -s conftest.err'
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); }; } &&
8066         { ac_try='test -s conftest.$ac_objext'
8067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068  (eval $ac_try) 2>&5
8069  ac_status=$?
8070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071  (exit $ac_status); }; }; then
8072  ac_header_compiler=yes
8073else
8074  echo "$as_me: failed program was:" >&5
8075sed 's/^/| /' conftest.$ac_ext >&5
8076
8077ac_header_compiler=no
8078fi
8079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8081echo "${ECHO_T}$ac_header_compiler" >&6
8082
8083# Is the header present?
8084echo "$as_me:$LINENO: checking $ac_header presence" >&5
8085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8086cat >conftest.$ac_ext <<_ACEOF
8087/* confdefs.h.  */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
8091/* end confdefs.h.  */
8092#include <$ac_header>
8093_ACEOF
8094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8095  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8096  ac_status=$?
8097  grep -v '^ *+' conftest.er1 >conftest.err
8098  rm -f conftest.er1
8099  cat conftest.err >&5
8100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101  (exit $ac_status); } >/dev/null; then
8102  if test -s conftest.err; then
8103    ac_cpp_err=$ac_c_preproc_warn_flag
8104    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8105  else
8106    ac_cpp_err=
8107  fi
8108else
8109  ac_cpp_err=yes
8110fi
8111if test -z "$ac_cpp_err"; then
8112  ac_header_preproc=yes
8113else
8114  echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
8117  ac_header_preproc=no
8118fi
8119rm -f conftest.err conftest.$ac_ext
8120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8121echo "${ECHO_T}$ac_header_preproc" >&6
8122
8123# So?  What about this header?
8124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8125  yes:no: )
8126    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8128    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8130    ac_header_preproc=yes
8131    ;;
8132  no:yes:* )
8133    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8135    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8136echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8137    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8139    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8140echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8141    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8143    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8145    (
8146      cat <<\_ASBOX
8147## ---------------------------------------------- ##
8148## Report this to orxonox-dev at mail.datacore.ch ##
8149## ---------------------------------------------- ##
8150_ASBOX
8151    ) |
8152      sed "s/^/$as_me: WARNING:     /" >&2
8153    ;;
8154esac
8155echo "$as_me:$LINENO: checking for $ac_header" >&5
8156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8157if eval "test \"\${$as_ac_Header+set}\" = set"; then
8158  echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160  eval "$as_ac_Header=\$ac_header_preproc"
8161fi
8162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8164
8165fi
8166if test `eval echo '${'$as_ac_Header'}'` = yes; then
8167  cat >>confdefs.h <<_ACEOF
8168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8169_ACEOF
8170
8171else
8172  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
8173echo "$as_me: error: cannot find SDL headers" >&2;}
8174   { (exit 1); exit 1; }; }
8175fi
8176
8177done
8178
8179   HAVE_SDL=yes
8180#   LIBS="$LIBS -framework SDL"
8181
8182# checking for SDL-headers
8183#    AC_CHECK_HEADERS(SDL/SDL.h ,,
8184#      [AC_MSG_ERROR([cannot find SDL headers]) ])
8185
8186## checking for SDL
8187#    SDL_VERSION=1.2.7
8188#    AM_PATH_SDL($SDL_VERSION,
8189#      :,
8190#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
8191#      )
8192
8193
8194    ;;
8195
8196  *)
8197    ;;
8198esac
8199
8200
8201
8202###################################
8203## CHECKING FOR HEADERS AND LIBS ##
8204###################################
8205
8206#---------#
8207# SDL_ttf #
8208#---------#
8209# checking for SDL_ttf-headers
8210
8211for ac_header in SDL_ttf.h
8212do
8213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8214if eval "test \"\${$as_ac_Header+set}\" = set"; then
8215  echo "$as_me:$LINENO: checking for $ac_header" >&5
8216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8217if eval "test \"\${$as_ac_Header+set}\" = set"; then
8218  echo $ECHO_N "(cached) $ECHO_C" >&6
8219fi
8220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8222else
8223  # Is the header compilable?
8224echo "$as_me:$LINENO: checking $ac_header usability" >&5
8225echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8226cat >conftest.$ac_ext <<_ACEOF
8227/* confdefs.h.  */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h.  */
8232$ac_includes_default
8233#include <$ac_header>
8234_ACEOF
8235rm -f conftest.$ac_objext
8236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237  (eval $ac_compile) 2>conftest.er1
8238  ac_status=$?
8239  grep -v '^ *+' conftest.er1 >conftest.err
8240  rm -f conftest.er1
8241  cat conftest.err >&5
8242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243  (exit $ac_status); } &&
8244         { ac_try='test -z "$ac_c_werror_flag"
8245                         || test ! -s conftest.err'
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); }; } &&
8251         { ac_try='test -s conftest.$ac_objext'
8252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253  (eval $ac_try) 2>&5
8254  ac_status=$?
8255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256  (exit $ac_status); }; }; then
8257  ac_header_compiler=yes
8258else
8259  echo "$as_me: failed program was:" >&5
8260sed 's/^/| /' conftest.$ac_ext >&5
8261
8262ac_header_compiler=no
8263fi
8264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266echo "${ECHO_T}$ac_header_compiler" >&6
8267
8268# Is the header present?
8269echo "$as_me:$LINENO: checking $ac_header presence" >&5
8270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8271cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h.  */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h.  */
8277#include <$ac_header>
8278_ACEOF
8279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281  ac_status=$?
8282  grep -v '^ *+' conftest.er1 >conftest.err
8283  rm -f conftest.er1
8284  cat conftest.err >&5
8285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286  (exit $ac_status); } >/dev/null; then
8287  if test -s conftest.err; then
8288    ac_cpp_err=$ac_c_preproc_warn_flag
8289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8290  else
8291    ac_cpp_err=
8292  fi
8293else
8294  ac_cpp_err=yes
8295fi
8296if test -z "$ac_cpp_err"; then
8297  ac_header_preproc=yes
8298else
8299  echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
8302  ac_header_preproc=no
8303fi
8304rm -f conftest.err conftest.$ac_ext
8305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8306echo "${ECHO_T}$ac_header_preproc" >&6
8307
8308# So?  What about this header?
8309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8310  yes:no: )
8311    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8313    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8315    ac_header_preproc=yes
8316    ;;
8317  no:yes:* )
8318    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8320    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8321echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8322    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8324    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8325echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8326    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8328    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8330    (
8331      cat <<\_ASBOX
8332## ---------------------------------------------- ##
8333## Report this to orxonox-dev at mail.datacore.ch ##
8334## ---------------------------------------------- ##
8335_ASBOX
8336    ) |
8337      sed "s/^/$as_me: WARNING:     /" >&2
8338    ;;
8339esac
8340echo "$as_me:$LINENO: checking for $ac_header" >&5
8341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8342if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343  echo $ECHO_N "(cached) $ECHO_C" >&6
8344else
8345  eval "$as_ac_Header=\$ac_header_preproc"
8346fi
8347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8349
8350fi
8351if test `eval echo '${'$as_ac_Header'}'` = yes; then
8352  cat >>confdefs.h <<_ACEOF
8353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8354_ACEOF
8355
8356else
8357
8358for ac_header in SDL/SDL_ttf.h
8359do
8360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361if eval "test \"\${$as_ac_Header+set}\" = set"; then
8362  echo "$as_me:$LINENO: checking for $ac_header" >&5
8363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8364if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365  echo $ECHO_N "(cached) $ECHO_C" >&6
8366fi
8367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8369else
8370  # Is the header compilable?
8371echo "$as_me:$LINENO: checking $ac_header usability" >&5
8372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8373cat >conftest.$ac_ext <<_ACEOF
8374/* confdefs.h.  */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h.  */
8379$ac_includes_default
8380#include <$ac_header>
8381_ACEOF
8382rm -f conftest.$ac_objext
8383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8384  (eval $ac_compile) 2>conftest.er1
8385  ac_status=$?
8386  grep -v '^ *+' conftest.er1 >conftest.err
8387  rm -f conftest.er1
8388  cat conftest.err >&5
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); } &&
8391         { ac_try='test -z "$ac_c_werror_flag"
8392                         || test ! -s conftest.err'
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); }; } &&
8398         { ac_try='test -s conftest.$ac_objext'
8399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400  (eval $ac_try) 2>&5
8401  ac_status=$?
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); }; }; then
8404  ac_header_compiler=yes
8405else
8406  echo "$as_me: failed program was:" >&5
8407sed 's/^/| /' conftest.$ac_ext >&5
8408
8409ac_header_compiler=no
8410fi
8411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8412echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8413echo "${ECHO_T}$ac_header_compiler" >&6
8414
8415# Is the header present?
8416echo "$as_me:$LINENO: checking $ac_header presence" >&5
8417echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h.  */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h.  */
8424#include <$ac_header>
8425_ACEOF
8426if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8427  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8428  ac_status=$?
8429  grep -v '^ *+' conftest.er1 >conftest.err
8430  rm -f conftest.er1
8431  cat conftest.err >&5
8432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433  (exit $ac_status); } >/dev/null; then
8434  if test -s conftest.err; then
8435    ac_cpp_err=$ac_c_preproc_warn_flag
8436    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8437  else
8438    ac_cpp_err=
8439  fi
8440else
8441  ac_cpp_err=yes
8442fi
8443if test -z "$ac_cpp_err"; then
8444  ac_header_preproc=yes
8445else
8446  echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449  ac_header_preproc=no
8450fi
8451rm -f conftest.err conftest.$ac_ext
8452echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8453echo "${ECHO_T}$ac_header_preproc" >&6
8454
8455# So?  What about this header?
8456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8457  yes:no: )
8458    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8459echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8460    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8461echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8462    ac_header_preproc=yes
8463    ;;
8464  no:yes:* )
8465    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8466echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8467    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8468echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8469    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8470echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8471    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8472echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8473    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8475    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8476echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8477    (
8478      cat <<\_ASBOX
8479## ---------------------------------------------- ##
8480## Report this to orxonox-dev at mail.datacore.ch ##
8481## ---------------------------------------------- ##
8482_ASBOX
8483    ) |
8484      sed "s/^/$as_me: WARNING:     /" >&2
8485    ;;
8486esac
8487echo "$as_me:$LINENO: checking for $ac_header" >&5
8488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8489if eval "test \"\${$as_ac_Header+set}\" = set"; then
8490  echo $ECHO_N "(cached) $ECHO_C" >&6
8491else
8492  eval "$as_ac_Header=\$ac_header_preproc"
8493fi
8494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8496
8497fi
8498if test `eval echo '${'$as_ac_Header'}'` = yes; then
8499  cat >>confdefs.h <<_ACEOF
8500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8501_ACEOF
8502
8503else
8504  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
8505echo "$as_me: error: cannot find SDL_ttf header." >&2;}
8506   { (exit 1); exit 1; }; }
8507fi
8508
8509done
8510
8511fi
8512
8513done
8514
8515# checking for SDL_ttf-lib
8516  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
8517echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
8518if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
8519  echo $ECHO_N "(cached) $ECHO_C" >&6
8520else
8521  ac_check_lib_save_LIBS=$LIBS
8522LIBS="-lSDL_ttf  $LIBS"
8523cat >conftest.$ac_ext <<_ACEOF
8524/* confdefs.h.  */
8525_ACEOF
8526cat confdefs.h >>conftest.$ac_ext
8527cat >>conftest.$ac_ext <<_ACEOF
8528/* end confdefs.h.  */
8529
8530/* Override any gcc2 internal prototype to avoid an error.  */
8531#ifdef __cplusplus
8532extern "C"
8533#endif
8534/* We use char because int might match the return type of a gcc2
8535   builtin and then its argument prototype would still apply.  */
8536char TTF_OpenFont ();
8537int
8538main ()
8539{
8540TTF_OpenFont ();
8541  ;
8542  return 0;
8543}
8544_ACEOF
8545rm -f conftest.$ac_objext conftest$ac_exeext
8546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547  (eval $ac_link) 2>conftest.er1
8548  ac_status=$?
8549  grep -v '^ *+' conftest.er1 >conftest.err
8550  rm -f conftest.er1
8551  cat conftest.err >&5
8552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553  (exit $ac_status); } &&
8554         { ac_try='test -z "$ac_c_werror_flag"
8555                         || test ! -s conftest.err'
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); }; } &&
8561         { ac_try='test -s conftest$ac_exeext'
8562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563  (eval $ac_try) 2>&5
8564  ac_status=$?
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); }; }; then
8567  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
8568else
8569  echo "$as_me: failed program was:" >&5
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572ac_cv_lib_SDL_ttf_TTF_OpenFont=no
8573fi
8574rm -f conftest.err conftest.$ac_objext \
8575      conftest$ac_exeext conftest.$ac_ext
8576LIBS=$ac_check_lib_save_LIBS
8577fi
8578echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8579echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8580if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
8581  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
8582fi
8583
8584     if test x$FOUND_SDL_ttf != xyes ; then
8585        echo "------------------"
8586        echo "SDL_ttf library not found."
8587        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8588        echo "------------------"
8589        exit -1
8590     fi
8591
8592#-----------#
8593# SDL_Image #
8594#-----------#
8595# checking for SDL_image-headers
8596
8597for ac_header in SDL_image.h
8598do
8599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8600if eval "test \"\${$as_ac_Header+set}\" = set"; then
8601  echo "$as_me:$LINENO: checking for $ac_header" >&5
8602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8603if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604  echo $ECHO_N "(cached) $ECHO_C" >&6
8605fi
8606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608else
8609  # Is the header compilable?
8610echo "$as_me:$LINENO: checking $ac_header usability" >&5
8611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8612cat >conftest.$ac_ext <<_ACEOF
8613/* confdefs.h.  */
8614_ACEOF
8615cat confdefs.h >>conftest.$ac_ext
8616cat >>conftest.$ac_ext <<_ACEOF
8617/* end confdefs.h.  */
8618$ac_includes_default
8619#include <$ac_header>
8620_ACEOF
8621rm -f conftest.$ac_objext
8622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623  (eval $ac_compile) 2>conftest.er1
8624  ac_status=$?
8625  grep -v '^ *+' conftest.er1 >conftest.err
8626  rm -f conftest.er1
8627  cat conftest.err >&5
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); } &&
8630         { ac_try='test -z "$ac_c_werror_flag"
8631                         || test ! -s conftest.err'
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); }; } &&
8637         { ac_try='test -s conftest.$ac_objext'
8638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639  (eval $ac_try) 2>&5
8640  ac_status=$?
8641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642  (exit $ac_status); }; }; then
8643  ac_header_compiler=yes
8644else
8645  echo "$as_me: failed program was:" >&5
8646sed 's/^/| /' conftest.$ac_ext >&5
8647
8648ac_header_compiler=no
8649fi
8650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652echo "${ECHO_T}$ac_header_compiler" >&6
8653
8654# Is the header present?
8655echo "$as_me:$LINENO: checking $ac_header presence" >&5
8656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8657cat >conftest.$ac_ext <<_ACEOF
8658/* confdefs.h.  */
8659_ACEOF
8660cat confdefs.h >>conftest.$ac_ext
8661cat >>conftest.$ac_ext <<_ACEOF
8662/* end confdefs.h.  */
8663#include <$ac_header>
8664_ACEOF
8665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8667  ac_status=$?
8668  grep -v '^ *+' conftest.er1 >conftest.err
8669  rm -f conftest.er1
8670  cat conftest.err >&5
8671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672  (exit $ac_status); } >/dev/null; then
8673  if test -s conftest.err; then
8674    ac_cpp_err=$ac_c_preproc_warn_flag
8675    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8676  else
8677    ac_cpp_err=
8678  fi
8679else
8680  ac_cpp_err=yes
8681fi
8682if test -z "$ac_cpp_err"; then
8683  ac_header_preproc=yes
8684else
8685  echo "$as_me: failed program was:" >&5
8686sed 's/^/| /' conftest.$ac_ext >&5
8687
8688  ac_header_preproc=no
8689fi
8690rm -f conftest.err conftest.$ac_ext
8691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692echo "${ECHO_T}$ac_header_preproc" >&6
8693
8694# So?  What about this header?
8695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8696  yes:no: )
8697    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8701    ac_header_preproc=yes
8702    ;;
8703  no:yes:* )
8704    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8706    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8707echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8708    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8710    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8711echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8712    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8714    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8716    (
8717      cat <<\_ASBOX
8718## ---------------------------------------------- ##
8719## Report this to orxonox-dev at mail.datacore.ch ##
8720## ---------------------------------------------- ##
8721_ASBOX
8722    ) |
8723      sed "s/^/$as_me: WARNING:     /" >&2
8724    ;;
8725esac
8726echo "$as_me:$LINENO: checking for $ac_header" >&5
8727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8728if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729  echo $ECHO_N "(cached) $ECHO_C" >&6
8730else
8731  eval "$as_ac_Header=\$ac_header_preproc"
8732fi
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735
8736fi
8737if test `eval echo '${'$as_ac_Header'}'` = yes; then
8738  cat >>confdefs.h <<_ACEOF
8739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8740_ACEOF
8741
8742else
8743
8744for ac_header in SDL/SDL_image.h
8745do
8746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748  echo "$as_me:$LINENO: checking for $ac_header" >&5
8749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751  echo $ECHO_N "(cached) $ECHO_C" >&6
8752fi
8753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8755else
8756  # Is the header compilable?
8757echo "$as_me:$LINENO: checking $ac_header usability" >&5
8758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8759cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h.  */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h.  */
8765$ac_includes_default
8766#include <$ac_header>
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8770  (eval $ac_compile) 2>conftest.er1
8771  ac_status=$?
8772  grep -v '^ *+' conftest.er1 >conftest.err
8773  rm -f conftest.er1
8774  cat conftest.err >&5
8775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776  (exit $ac_status); } &&
8777         { ac_try='test -z "$ac_c_werror_flag"
8778                         || test ! -s conftest.err'
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); }; } &&
8784         { ac_try='test -s conftest.$ac_objext'
8785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786  (eval $ac_try) 2>&5
8787  ac_status=$?
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); }; }; then
8790  ac_header_compiler=yes
8791else
8792  echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795ac_header_compiler=no
8796fi
8797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799echo "${ECHO_T}$ac_header_compiler" >&6
8800
8801# Is the header present?
8802echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8804cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h.  */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h.  */
8810#include <$ac_header>
8811_ACEOF
8812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8814  ac_status=$?
8815  grep -v '^ *+' conftest.er1 >conftest.err
8816  rm -f conftest.er1
8817  cat conftest.err >&5
8818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819  (exit $ac_status); } >/dev/null; then
8820  if test -s conftest.err; then
8821    ac_cpp_err=$ac_c_preproc_warn_flag
8822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8823  else
8824    ac_cpp_err=
8825  fi
8826else
8827  ac_cpp_err=yes
8828fi
8829if test -z "$ac_cpp_err"; then
8830  ac_header_preproc=yes
8831else
8832  echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
8835  ac_header_preproc=no
8836fi
8837rm -f conftest.err conftest.$ac_ext
8838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839echo "${ECHO_T}$ac_header_preproc" >&6
8840
8841# So?  What about this header?
8842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843  yes:no: )
8844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848    ac_header_preproc=yes
8849    ;;
8850  no:yes:* )
8851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8863    (
8864      cat <<\_ASBOX
8865## ---------------------------------------------- ##
8866## Report this to orxonox-dev at mail.datacore.ch ##
8867## ---------------------------------------------- ##
8868_ASBOX
8869    ) |
8870      sed "s/^/$as_me: WARNING:     /" >&2
8871    ;;
8872esac
8873echo "$as_me:$LINENO: checking for $ac_header" >&5
8874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8875if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876  echo $ECHO_N "(cached) $ECHO_C" >&6
8877else
8878  eval "$as_ac_Header=\$ac_header_preproc"
8879fi
8880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882
8883fi
8884if test `eval echo '${'$as_ac_Header'}'` = yes; then
8885  cat >>confdefs.h <<_ACEOF
8886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8887_ACEOF
8888
8889else
8890  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8891echo "$as_me: error: SDL_image header not found." >&2;}
8892   { (exit 1); exit 1; }; }
8893fi
8894
8895done
8896
8897fi
8898
8899done
8900
8901# checking for SDL_image-lib
8902echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8903echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8904if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8905  echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907  ac_check_lib_save_LIBS=$LIBS
8908LIBS="-lSDL_image  $LIBS"
8909cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h.  */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
8914/* end confdefs.h.  */
8915
8916
8917int
8918main ()
8919{
8920main ();
8921  ;
8922  return 0;
8923}
8924_ACEOF
8925rm -f conftest.$ac_objext conftest$ac_exeext
8926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927  (eval $ac_link) 2>conftest.er1
8928  ac_status=$?
8929  grep -v '^ *+' conftest.er1 >conftest.err
8930  rm -f conftest.er1
8931  cat conftest.err >&5
8932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933  (exit $ac_status); } &&
8934         { ac_try='test -z "$ac_c_werror_flag"
8935                         || test ! -s conftest.err'
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); }; } &&
8941         { ac_try='test -s conftest$ac_exeext'
8942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943  (eval $ac_try) 2>&5
8944  ac_status=$?
8945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946  (exit $ac_status); }; }; then
8947  ac_cv_lib_SDL_image_main=yes
8948else
8949  echo "$as_me: failed program was:" >&5
8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8952ac_cv_lib_SDL_image_main=no
8953fi
8954rm -f conftest.err conftest.$ac_objext \
8955      conftest$ac_exeext conftest.$ac_ext
8956LIBS=$ac_check_lib_save_LIBS
8957fi
8958echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8959echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8960if test $ac_cv_lib_SDL_image_main = yes; then
8961  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
8962fi
8963
8964   if test x$FOUND_SDL_image != xyes ; then
8965      echo "------------------"
8966      echo "SDL_image library not found."
8967      echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/"
8968      echo "------------------"
8969      exit -1
8970   fi
8971
8972#-----#
8973# ogg #
8974#-----#
8975# checking for ogg-headers
8976
8977for ac_header in ogg/ogg.h
8978do
8979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8980if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981  echo "$as_me:$LINENO: checking for $ac_header" >&5
8982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8983if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984  echo $ECHO_N "(cached) $ECHO_C" >&6
8985fi
8986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8988else
8989  # Is the header compilable?
8990echo "$as_me:$LINENO: checking $ac_header usability" >&5
8991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8992cat >conftest.$ac_ext <<_ACEOF
8993/* confdefs.h.  */
8994_ACEOF
8995cat confdefs.h >>conftest.$ac_ext
8996cat >>conftest.$ac_ext <<_ACEOF
8997/* end confdefs.h.  */
8998$ac_includes_default
8999#include <$ac_header>
9000_ACEOF
9001rm -f conftest.$ac_objext
9002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003  (eval $ac_compile) 2>conftest.er1
9004  ac_status=$?
9005  grep -v '^ *+' conftest.er1 >conftest.err
9006  rm -f conftest.er1
9007  cat conftest.err >&5
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); } &&
9010         { ac_try='test -z "$ac_c_werror_flag"
9011                         || test ! -s conftest.err'
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); }; } &&
9017         { ac_try='test -s conftest.$ac_objext'
9018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019  (eval $ac_try) 2>&5
9020  ac_status=$?
9021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); }; }; then
9023  ac_header_compiler=yes
9024else
9025  echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028ac_header_compiler=no
9029fi
9030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9032echo "${ECHO_T}$ac_header_compiler" >&6
9033
9034# Is the header present?
9035echo "$as_me:$LINENO: checking $ac_header presence" >&5
9036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9037cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h.  */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h.  */
9043#include <$ac_header>
9044_ACEOF
9045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9046  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9047  ac_status=$?
9048  grep -v '^ *+' conftest.er1 >conftest.err
9049  rm -f conftest.er1
9050  cat conftest.err >&5
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); } >/dev/null; then
9053  if test -s conftest.err; then
9054    ac_cpp_err=$ac_c_preproc_warn_flag
9055    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9056  else
9057    ac_cpp_err=
9058  fi
9059else
9060  ac_cpp_err=yes
9061fi
9062if test -z "$ac_cpp_err"; then
9063  ac_header_preproc=yes
9064else
9065  echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068  ac_header_preproc=no
9069fi
9070rm -f conftest.err conftest.$ac_ext
9071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9072echo "${ECHO_T}$ac_header_preproc" >&6
9073
9074# So?  What about this header?
9075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9076  yes:no: )
9077    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9079    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9081    ac_header_preproc=yes
9082    ;;
9083  no:yes:* )
9084    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9086    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9087echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9088    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9090    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9091echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9094    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9096    (
9097      cat <<\_ASBOX
9098## ---------------------------------------------- ##
9099## Report this to orxonox-dev at mail.datacore.ch ##
9100## ---------------------------------------------- ##
9101_ASBOX
9102    ) |
9103      sed "s/^/$as_me: WARNING:     /" >&2
9104    ;;
9105esac
9106echo "$as_me:$LINENO: checking for $ac_header" >&5
9107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9108if eval "test \"\${$as_ac_Header+set}\" = set"; then
9109  echo $ECHO_N "(cached) $ECHO_C" >&6
9110else
9111  eval "$as_ac_Header=\$ac_header_preproc"
9112fi
9113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9115
9116fi
9117if test `eval echo '${'$as_ac_Header'}'` = yes; then
9118  cat >>confdefs.h <<_ACEOF
9119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120_ACEOF
9121
9122else
9123  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
9124echo "$as_me: error: cannot find ogg header." >&2;}
9125   { (exit 1); exit 1; }; }
9126fi
9127
9128done
9129
9130# checking for ogg-lib
9131  echo "$as_me:$LINENO: checking for main in -logg" >&5
9132echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
9133if test "${ac_cv_lib_ogg_main+set}" = set; then
9134  echo $ECHO_N "(cached) $ECHO_C" >&6
9135else
9136  ac_check_lib_save_LIBS=$LIBS
9137LIBS="-logg  $LIBS"
9138cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h.  */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
9143/* end confdefs.h.  */
9144
9145
9146int
9147main ()
9148{
9149main ();
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154rm -f conftest.$ac_objext conftest$ac_exeext
9155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156  (eval $ac_link) 2>conftest.er1
9157  ac_status=$?
9158  grep -v '^ *+' conftest.er1 >conftest.err
9159  rm -f conftest.er1
9160  cat conftest.err >&5
9161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162  (exit $ac_status); } &&
9163         { ac_try='test -z "$ac_c_werror_flag"
9164                         || test ! -s conftest.err'
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); }; } &&
9170         { ac_try='test -s conftest$ac_exeext'
9171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172  (eval $ac_try) 2>&5
9173  ac_status=$?
9174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175  (exit $ac_status); }; }; then
9176  ac_cv_lib_ogg_main=yes
9177else
9178  echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181ac_cv_lib_ogg_main=no
9182fi
9183rm -f conftest.err conftest.$ac_objext \
9184      conftest$ac_exeext conftest.$ac_ext
9185LIBS=$ac_check_lib_save_LIBS
9186fi
9187echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
9188echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
9189if test $ac_cv_lib_ogg_main = yes; then
9190  FOUND_ogg=yes; LIBS="$LIBS -logg"
9191fi
9192
9193     if test x$FOUND_ogg != xyes ; then
9194        echo "------------------"
9195        echo "ogg library not found."
9196        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9197        echo "------------------"
9198        exit -1
9199     fi
9200
9201#--------#
9202# vorbis #
9203#--------#
9204# checking for vorbis-lib
9205  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
9206echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
9207if test "${ac_cv_lib_vorbis_main+set}" = set; then
9208  echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
9210  ac_check_lib_save_LIBS=$LIBS
9211LIBS="-lvorbis  $LIBS"
9212cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h.  */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h.  */
9218
9219
9220int
9221main ()
9222{
9223main ();
9224  ;
9225  return 0;
9226}
9227_ACEOF
9228rm -f conftest.$ac_objext conftest$ac_exeext
9229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230  (eval $ac_link) 2>conftest.er1
9231  ac_status=$?
9232  grep -v '^ *+' conftest.er1 >conftest.err
9233  rm -f conftest.er1
9234  cat conftest.err >&5
9235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236  (exit $ac_status); } &&
9237         { ac_try='test -z "$ac_c_werror_flag"
9238                         || test ! -s conftest.err'
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); }; } &&
9244         { ac_try='test -s conftest$ac_exeext'
9245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246  (eval $ac_try) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); }; }; then
9250  ac_cv_lib_vorbis_main=yes
9251else
9252  echo "$as_me: failed program was:" >&5
9253sed 's/^/| /' conftest.$ac_ext >&5
9254
9255ac_cv_lib_vorbis_main=no
9256fi
9257rm -f conftest.err conftest.$ac_objext \
9258      conftest$ac_exeext conftest.$ac_ext
9259LIBS=$ac_check_lib_save_LIBS
9260fi
9261echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
9262echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
9263if test $ac_cv_lib_vorbis_main = yes; then
9264  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
9265fi
9266
9267     if test x$FOUND_vorbis != xyes ; then
9268        echo "------------------"
9269        echo "vorbis library not found."
9270        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9271        echo "------------------"
9272        exit -1
9273     fi
9274
9275#------------#
9276# vorbisfile #
9277#------------#
9278# checking for vorbis-headers
9279
9280for ac_header in vorbis/vorbisfile.h
9281do
9282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9283if eval "test \"\${$as_ac_Header+set}\" = set"; then
9284  echo "$as_me:$LINENO: checking for $ac_header" >&5
9285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9286if eval "test \"\${$as_ac_Header+set}\" = set"; then
9287  echo $ECHO_N "(cached) $ECHO_C" >&6
9288fi
9289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9291else
9292  # Is the header compilable?
9293echo "$as_me:$LINENO: checking $ac_header usability" >&5
9294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9295cat >conftest.$ac_ext <<_ACEOF
9296/* confdefs.h.  */
9297_ACEOF
9298cat confdefs.h >>conftest.$ac_ext
9299cat >>conftest.$ac_ext <<_ACEOF
9300/* end confdefs.h.  */
9301$ac_includes_default
9302#include <$ac_header>
9303_ACEOF
9304rm -f conftest.$ac_objext
9305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9306  (eval $ac_compile) 2>conftest.er1
9307  ac_status=$?
9308  grep -v '^ *+' conftest.er1 >conftest.err
9309  rm -f conftest.er1
9310  cat conftest.err >&5
9311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312  (exit $ac_status); } &&
9313         { ac_try='test -z "$ac_c_werror_flag"
9314                         || test ! -s conftest.err'
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); }; } &&
9320         { ac_try='test -s conftest.$ac_objext'
9321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322  (eval $ac_try) 2>&5
9323  ac_status=$?
9324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325  (exit $ac_status); }; }; then
9326  ac_header_compiler=yes
9327else
9328  echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331ac_header_compiler=no
9332fi
9333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9335echo "${ECHO_T}$ac_header_compiler" >&6
9336
9337# Is the header present?
9338echo "$as_me:$LINENO: checking $ac_header presence" >&5
9339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9340cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h.  */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h.  */
9346#include <$ac_header>
9347_ACEOF
9348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9349  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9350  ac_status=$?
9351  grep -v '^ *+' conftest.er1 >conftest.err
9352  rm -f conftest.er1
9353  cat conftest.err >&5
9354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355  (exit $ac_status); } >/dev/null; then
9356  if test -s conftest.err; then
9357    ac_cpp_err=$ac_c_preproc_warn_flag
9358    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9359  else
9360    ac_cpp_err=
9361  fi
9362else
9363  ac_cpp_err=yes
9364fi
9365if test -z "$ac_cpp_err"; then
9366  ac_header_preproc=yes
9367else
9368  echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
9371  ac_header_preproc=no
9372fi
9373rm -f conftest.err conftest.$ac_ext
9374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9375echo "${ECHO_T}$ac_header_preproc" >&6
9376
9377# So?  What about this header?
9378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9379  yes:no: )
9380    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9382    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9384    ac_header_preproc=yes
9385    ;;
9386  no:yes:* )
9387    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9389    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9390echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9391    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9393    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9394echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9395    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9397    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9399    (
9400      cat <<\_ASBOX
9401## ---------------------------------------------- ##
9402## Report this to orxonox-dev at mail.datacore.ch ##
9403## ---------------------------------------------- ##
9404_ASBOX
9405    ) |
9406      sed "s/^/$as_me: WARNING:     /" >&2
9407    ;;
9408esac
9409echo "$as_me:$LINENO: checking for $ac_header" >&5
9410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9411if eval "test \"\${$as_ac_Header+set}\" = set"; then
9412  echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414  eval "$as_ac_Header=\$ac_header_preproc"
9415fi
9416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9418
9419fi
9420if test `eval echo '${'$as_ac_Header'}'` = yes; then
9421  cat >>confdefs.h <<_ACEOF
9422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9423_ACEOF
9424
9425else
9426  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
9427echo "$as_me: error: cannot find vorbisfile header." >&2;}
9428   { (exit 1); exit 1; }; }
9429fi
9430
9431done
9432
9433# checking for vorbisfile-lib
9434  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
9435echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
9436if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
9437  echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439  ac_check_lib_save_LIBS=$LIBS
9440LIBS="-lvorbisfile  $LIBS"
9441cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h.  */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h.  */
9447
9448
9449int
9450main ()
9451{
9452main ();
9453  ;
9454  return 0;
9455}
9456_ACEOF
9457rm -f conftest.$ac_objext conftest$ac_exeext
9458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459  (eval $ac_link) 2>conftest.er1
9460  ac_status=$?
9461  grep -v '^ *+' conftest.er1 >conftest.err
9462  rm -f conftest.er1
9463  cat conftest.err >&5
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); } &&
9466         { ac_try='test -z "$ac_c_werror_flag"
9467                         || test ! -s conftest.err'
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); }; } &&
9473         { ac_try='test -s conftest$ac_exeext'
9474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475  (eval $ac_try) 2>&5
9476  ac_status=$?
9477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478  (exit $ac_status); }; }; then
9479  ac_cv_lib_vorbisfile_main=yes
9480else
9481  echo "$as_me: failed program was:" >&5
9482sed 's/^/| /' conftest.$ac_ext >&5
9483
9484ac_cv_lib_vorbisfile_main=no
9485fi
9486rm -f conftest.err conftest.$ac_objext \
9487      conftest$ac_exeext conftest.$ac_ext
9488LIBS=$ac_check_lib_save_LIBS
9489fi
9490echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
9491echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
9492if test $ac_cv_lib_vorbisfile_main = yes; then
9493  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
9494fi
9495
9496     if test x$FOUND_vorbisfile != xyes ; then
9497        echo "------------------"
9498        echo "vorbisfile library not found."
9499        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9500        echo "------------------"
9501        exit -1
9502     fi
9503
9504
9505#---------#
9506# libcURL #
9507#---------#
9508if test x$def_curl = xyes; then
9509
9510for ac_header in curl/curl.h
9511do
9512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513if eval "test \"\${$as_ac_Header+set}\" = set"; then
9514  echo "$as_me:$LINENO: checking for $ac_header" >&5
9515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9516if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517  echo $ECHO_N "(cached) $ECHO_C" >&6
9518fi
9519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9521else
9522  # Is the header compilable?
9523echo "$as_me:$LINENO: checking $ac_header usability" >&5
9524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9525cat >conftest.$ac_ext <<_ACEOF
9526/* confdefs.h.  */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
9530/* end confdefs.h.  */
9531$ac_includes_default
9532#include <$ac_header>
9533_ACEOF
9534rm -f conftest.$ac_objext
9535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9536  (eval $ac_compile) 2>conftest.er1
9537  ac_status=$?
9538  grep -v '^ *+' conftest.er1 >conftest.err
9539  rm -f conftest.er1
9540  cat conftest.err >&5
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); } &&
9543         { ac_try='test -z "$ac_c_werror_flag"
9544                         || test ! -s conftest.err'
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); }; } &&
9550         { ac_try='test -s conftest.$ac_objext'
9551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552  (eval $ac_try) 2>&5
9553  ac_status=$?
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); }; }; then
9556  ac_header_compiler=yes
9557else
9558  echo "$as_me: failed program was:" >&5
9559sed 's/^/| /' conftest.$ac_ext >&5
9560
9561ac_header_compiler=no
9562fi
9563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9565echo "${ECHO_T}$ac_header_compiler" >&6
9566
9567# Is the header present?
9568echo "$as_me:$LINENO: checking $ac_header presence" >&5
9569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9570cat >conftest.$ac_ext <<_ACEOF
9571/* confdefs.h.  */
9572_ACEOF
9573cat confdefs.h >>conftest.$ac_ext
9574cat >>conftest.$ac_ext <<_ACEOF
9575/* end confdefs.h.  */
9576#include <$ac_header>
9577_ACEOF
9578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9580  ac_status=$?
9581  grep -v '^ *+' conftest.er1 >conftest.err
9582  rm -f conftest.er1
9583  cat conftest.err >&5
9584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585  (exit $ac_status); } >/dev/null; then
9586  if test -s conftest.err; then
9587    ac_cpp_err=$ac_c_preproc_warn_flag
9588    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9589  else
9590    ac_cpp_err=
9591  fi
9592else
9593  ac_cpp_err=yes
9594fi
9595if test -z "$ac_cpp_err"; then
9596  ac_header_preproc=yes
9597else
9598  echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
9601  ac_header_preproc=no
9602fi
9603rm -f conftest.err conftest.$ac_ext
9604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605echo "${ECHO_T}$ac_header_preproc" >&6
9606
9607# So?  What about this header?
9608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609  yes:no: )
9610    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9614    ac_header_preproc=yes
9615    ;;
9616  no:yes:* )
9617    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9619    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9620echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9621    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9623    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9624echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9625    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9627    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9629    (
9630      cat <<\_ASBOX
9631## ---------------------------------------------- ##
9632## Report this to orxonox-dev at mail.datacore.ch ##
9633## ---------------------------------------------- ##
9634_ASBOX
9635    ) |
9636      sed "s/^/$as_me: WARNING:     /" >&2
9637    ;;
9638esac
9639echo "$as_me:$LINENO: checking for $ac_header" >&5
9640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9641if eval "test \"\${$as_ac_Header+set}\" = set"; then
9642  echo $ECHO_N "(cached) $ECHO_C" >&6
9643else
9644  eval "$as_ac_Header=\$ac_header_preproc"
9645fi
9646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9648
9649fi
9650if test `eval echo '${'$as_ac_Header'}'` = yes; then
9651  cat >>confdefs.h <<_ACEOF
9652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9653_ACEOF
9654 curlHeader=yes
9655else
9656  curlHeader=no
9657fi
9658
9659done
9660
9661 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9662echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9663if test "${ac_cv_lib_curl_main+set}" = set; then
9664  echo $ECHO_N "(cached) $ECHO_C" >&6
9665else
9666  ac_check_lib_save_LIBS=$LIBS
9667LIBS="-lcurl  $LIBS"
9668cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h.  */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h.  */
9674
9675
9676int
9677main ()
9678{
9679main ();
9680  ;
9681  return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
9685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686  (eval $ac_link) 2>conftest.er1
9687  ac_status=$?
9688  grep -v '^ *+' conftest.er1 >conftest.err
9689  rm -f conftest.er1
9690  cat conftest.err >&5
9691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692  (exit $ac_status); } &&
9693         { ac_try='test -z "$ac_c_werror_flag"
9694                         || test ! -s conftest.err'
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); }; } &&
9700         { ac_try='test -s conftest$ac_exeext'
9701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702  (eval $ac_try) 2>&5
9703  ac_status=$?
9704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705  (exit $ac_status); }; }; then
9706  ac_cv_lib_curl_main=yes
9707else
9708  echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711ac_cv_lib_curl_main=no
9712fi
9713rm -f conftest.err conftest.$ac_objext \
9714      conftest$ac_exeext conftest.$ac_ext
9715LIBS=$ac_check_lib_save_LIBS
9716fi
9717echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9718echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9719if test $ac_cv_lib_curl_main = yes; then
9720  FOUND_curl=yes
9721fi
9722
9723 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9724  have_curl=yes
9725  CURL_LIBS=`curl-config --libs`
9726  CURLCFLAGS=`curl-config --cflags`
9727
9728cat >>confdefs.h <<_ACEOF
9729#define HAVE_CURL 1
9730_ACEOF
9731
9732 else
9733  have_curl=no
9734 fi
9735
9736fi
9737
9738
9739
9740
9741if test x$have_curl = xyes; then
9742  HAVE_CURL_TRUE=
9743  HAVE_CURL_FALSE='#'
9744else
9745  HAVE_CURL_TRUE='#'
9746  HAVE_CURL_FALSE=
9747fi
9748
9749
9750#--------#
9751# efence #
9752#--------#
9753if test x$def_efence = xyes ; then
9754  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9755echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9756if test "${ac_cv_lib_efence_main+set}" = set; then
9757  echo $ECHO_N "(cached) $ECHO_C" >&6
9758else
9759  ac_check_lib_save_LIBS=$LIBS
9760LIBS="-lefence  $LIBS"
9761cat >conftest.$ac_ext <<_ACEOF
9762/* confdefs.h.  */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h.  */
9767
9768
9769int
9770main ()
9771{
9772main ();
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
9778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779  (eval $ac_link) 2>conftest.er1
9780  ac_status=$?
9781  grep -v '^ *+' conftest.er1 >conftest.err
9782  rm -f conftest.er1
9783  cat conftest.err >&5
9784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785  (exit $ac_status); } &&
9786         { ac_try='test -z "$ac_c_werror_flag"
9787                         || test ! -s conftest.err'
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); }; } &&
9793         { ac_try='test -s conftest$ac_exeext'
9794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795  (eval $ac_try) 2>&5
9796  ac_status=$?
9797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798  (exit $ac_status); }; }; then
9799  ac_cv_lib_efence_main=yes
9800else
9801  echo "$as_me: failed program was:" >&5
9802sed 's/^/| /' conftest.$ac_ext >&5
9803
9804ac_cv_lib_efence_main=no
9805fi
9806rm -f conftest.err conftest.$ac_objext \
9807      conftest$ac_exeext conftest.$ac_ext
9808LIBS=$ac_check_lib_save_LIBS
9809fi
9810echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9811echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9812if test $ac_cv_lib_efence_main = yes; then
9813  FOUND_efence=yes; LIBS="$LIBS -lefence"
9814fi
9815
9816   if test x$FOUND_efence != xyes ; then
9817     echo "efence was requested, but is not installed!! going on"
9818   fi
9819
9820fi
9821
9822#-----#
9823# GTK #
9824#-----#
9825if test x$def_gtk = xyes; then
9826#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
9827        echo "$as_me:$LINENO: checking for gtk2.0" >&5
9828echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
9829        if `$PKG_CONFIG --exists gtk+-2.0`; then
9830                echo "yes"
9831                have_gtk2=yes
9832                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9833                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9834
9835cat >>confdefs.h <<_ACEOF
9836#define HAVE_GTK2 1
9837_ACEOF
9838
9839                if test $DEBUG -ge 3; then
9840                 echo "cflags: $GTK2_CFLAGS"
9841                 echo "libs: $GTK2_LIBS"
9842                fi
9843        else
9844                echo "no"
9845        fi
9846
9847fi
9848
9849
9850
9851
9852if test x$have_gtk2 = xyes; then
9853  HAVE_GTK2_TRUE=
9854  HAVE_GTK2_FALSE='#'
9855else
9856  HAVE_GTK2_TRUE='#'
9857  HAVE_GTK2_FALSE=
9858fi
9859
9860
9861
9862# FIXME: Replace `main' with a function in `-lm':
9863
9864echo "$as_me:$LINENO: checking for main in -lm" >&5
9865echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9866if test "${ac_cv_lib_m_main+set}" = set; then
9867  echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869  ac_check_lib_save_LIBS=$LIBS
9870LIBS="-lm  $LIBS"
9871cat >conftest.$ac_ext <<_ACEOF
9872/* confdefs.h.  */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h.  */
9877
9878
9879int
9880main ()
9881{
9882main ();
9883  ;
9884  return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
9888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889  (eval $ac_link) 2>conftest.er1
9890  ac_status=$?
9891  grep -v '^ *+' conftest.er1 >conftest.err
9892  rm -f conftest.er1
9893  cat conftest.err >&5
9894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895  (exit $ac_status); } &&
9896         { ac_try='test -z "$ac_c_werror_flag"
9897                         || test ! -s conftest.err'
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); }; } &&
9903         { ac_try='test -s conftest$ac_exeext'
9904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905  (eval $ac_try) 2>&5
9906  ac_status=$?
9907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908  (exit $ac_status); }; }; then
9909  ac_cv_lib_m_main=yes
9910else
9911  echo "$as_me: failed program was:" >&5
9912sed 's/^/| /' conftest.$ac_ext >&5
9913
9914ac_cv_lib_m_main=no
9915fi
9916rm -f conftest.err conftest.$ac_objext \
9917      conftest$ac_exeext conftest.$ac_ext
9918LIBS=$ac_check_lib_save_LIBS
9919fi
9920echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9921echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9922if test $ac_cv_lib_m_main = yes; then
9923  cat >>confdefs.h <<_ACEOF
9924#define HAVE_LIBM 1
9925_ACEOF
9926
9927  LIBS="-lm $LIBS"
9928
9929fi
9930
9931
9932
9933# Checks for header files.
9934echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9935echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9936if test "${ac_cv_header_stdc+set}" = set; then
9937  echo $ECHO_N "(cached) $ECHO_C" >&6
9938else
9939  cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h.  */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h.  */
9945#include <stdlib.h>
9946#include <stdarg.h>
9947#include <string.h>
9948#include <float.h>
9949
9950int
9951main ()
9952{
9953
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext
9959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9960  (eval $ac_compile) 2>conftest.er1
9961  ac_status=$?
9962  grep -v '^ *+' conftest.er1 >conftest.err
9963  rm -f conftest.er1
9964  cat conftest.err >&5
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); } &&
9967         { ac_try='test -z "$ac_c_werror_flag"
9968                         || test ! -s conftest.err'
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); }; } &&
9974         { ac_try='test -s conftest.$ac_objext'
9975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976  (eval $ac_try) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; }; then
9980  ac_cv_header_stdc=yes
9981else
9982  echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985ac_cv_header_stdc=no
9986fi
9987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988
9989if test $ac_cv_header_stdc = yes; then
9990  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9991  cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997#include <string.h>
9998
9999_ACEOF
10000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10001  $EGREP "memchr" >/dev/null 2>&1; then
10002  :
10003else
10004  ac_cv_header_stdc=no
10005fi
10006rm -f conftest*
10007
10008fi
10009
10010if test $ac_cv_header_stdc = yes; then
10011  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10012  cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h.  */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h.  */
10018#include <stdlib.h>
10019
10020_ACEOF
10021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10022  $EGREP "free" >/dev/null 2>&1; then
10023  :
10024else
10025  ac_cv_header_stdc=no
10026fi
10027rm -f conftest*
10028
10029fi
10030
10031if test $ac_cv_header_stdc = yes; then
10032  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10033  if test "$cross_compiling" = yes; then
10034  :
10035else
10036  cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h.  */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h.  */
10042#include <ctype.h>
10043#if ((' ' & 0x0FF) == 0x020)
10044# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10045# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10046#else
10047# define ISLOWER(c) \
10048                   (('a' <= (c) && (c) <= 'i') \
10049                     || ('j' <= (c) && (c) <= 'r') \
10050                     || ('s' <= (c) && (c) <= 'z'))
10051# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10052#endif
10053
10054#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10055int
10056main ()
10057{
10058  int i;
10059  for (i = 0; i < 256; i++)
10060    if (XOR (islower (i), ISLOWER (i))
10061        || toupper (i) != TOUPPER (i))
10062      exit(2);
10063  exit (0);
10064}
10065_ACEOF
10066rm -f conftest$ac_exeext
10067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068  (eval $ac_link) 2>&5
10069  ac_status=$?
10070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073  (eval $ac_try) 2>&5
10074  ac_status=$?
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); }; }; then
10077  :
10078else
10079  echo "$as_me: program exited with status $ac_status" >&5
10080echo "$as_me: failed program was:" >&5
10081sed 's/^/| /' conftest.$ac_ext >&5
10082
10083( exit $ac_status )
10084ac_cv_header_stdc=no
10085fi
10086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10087fi
10088fi
10089fi
10090echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10091echo "${ECHO_T}$ac_cv_header_stdc" >&6
10092if test $ac_cv_header_stdc = yes; then
10093
10094cat >>confdefs.h <<\_ACEOF
10095#define STDC_HEADERS 1
10096_ACEOF
10097
10098fi
10099
10100
10101
10102for ac_header in stdlib.h string.h
10103do
10104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10105if eval "test \"\${$as_ac_Header+set}\" = set"; then
10106  echo "$as_me:$LINENO: checking for $ac_header" >&5
10107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10108if eval "test \"\${$as_ac_Header+set}\" = set"; then
10109  echo $ECHO_N "(cached) $ECHO_C" >&6
10110fi
10111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10113else
10114  # Is the header compilable?
10115echo "$as_me:$LINENO: checking $ac_header usability" >&5
10116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10117cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h.  */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h.  */
10123$ac_includes_default
10124#include <$ac_header>
10125_ACEOF
10126rm -f conftest.$ac_objext
10127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10128  (eval $ac_compile) 2>conftest.er1
10129  ac_status=$?
10130  grep -v '^ *+' conftest.er1 >conftest.err
10131  rm -f conftest.er1
10132  cat conftest.err >&5
10133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134  (exit $ac_status); } &&
10135         { ac_try='test -z "$ac_c_werror_flag"
10136                         || test ! -s conftest.err'
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); }; } &&
10142         { ac_try='test -s conftest.$ac_objext'
10143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144  (eval $ac_try) 2>&5
10145  ac_status=$?
10146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147  (exit $ac_status); }; }; then
10148  ac_header_compiler=yes
10149else
10150  echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
10153ac_header_compiler=no
10154fi
10155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157echo "${ECHO_T}$ac_header_compiler" >&6
10158
10159# Is the header present?
10160echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10162cat >conftest.$ac_ext <<_ACEOF
10163/* confdefs.h.  */
10164_ACEOF
10165cat confdefs.h >>conftest.$ac_ext
10166cat >>conftest.$ac_ext <<_ACEOF
10167/* end confdefs.h.  */
10168#include <$ac_header>
10169_ACEOF
10170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10172  ac_status=$?
10173  grep -v '^ *+' conftest.er1 >conftest.err
10174  rm -f conftest.er1
10175  cat conftest.err >&5
10176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); } >/dev/null; then
10178  if test -s conftest.err; then
10179    ac_cpp_err=$ac_c_preproc_warn_flag
10180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10181  else
10182    ac_cpp_err=
10183  fi
10184else
10185  ac_cpp_err=yes
10186fi
10187if test -z "$ac_cpp_err"; then
10188  ac_header_preproc=yes
10189else
10190  echo "$as_me: failed program was:" >&5
10191sed 's/^/| /' conftest.$ac_ext >&5
10192
10193  ac_header_preproc=no
10194fi
10195rm -f conftest.err conftest.$ac_ext
10196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197echo "${ECHO_T}$ac_header_preproc" >&6
10198
10199# So?  What about this header?
10200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10201  yes:no: )
10202    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206    ac_header_preproc=yes
10207    ;;
10208  no:yes:* )
10209    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10212echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10213    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10216echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10221    (
10222      cat <<\_ASBOX
10223## ---------------------------------------------- ##
10224## Report this to orxonox-dev at mail.datacore.ch ##
10225## ---------------------------------------------- ##
10226_ASBOX
10227    ) |
10228      sed "s/^/$as_me: WARNING:     /" >&2
10229    ;;
10230esac
10231echo "$as_me:$LINENO: checking for $ac_header" >&5
10232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234  echo $ECHO_N "(cached) $ECHO_C" >&6
10235else
10236  eval "$as_ac_Header=\$ac_header_preproc"
10237fi
10238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10240
10241fi
10242if test `eval echo '${'$as_ac_Header'}'` = yes; then
10243  cat >>confdefs.h <<_ACEOF
10244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10245_ACEOF
10246
10247fi
10248
10249done
10250
10251
10252# Checks for typedefs, structures, and compiler characteristics.
10253echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10254echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10255if test "${ac_cv_header_stdbool_h+set}" = set; then
10256  echo $ECHO_N "(cached) $ECHO_C" >&6
10257else
10258  cat >conftest.$ac_ext <<_ACEOF
10259/* confdefs.h.  */
10260_ACEOF
10261cat confdefs.h >>conftest.$ac_ext
10262cat >>conftest.$ac_ext <<_ACEOF
10263/* end confdefs.h.  */
10264
10265#include <stdbool.h>
10266#ifndef bool
10267# error bool is not defined
10268#endif
10269#ifndef false
10270# error false is not defined
10271#endif
10272#if false
10273# error false is not 0
10274#endif
10275#ifndef true
10276# error true is not defined
10277#endif
10278#if true != 1
10279# error true is not 1
10280#endif
10281#ifndef __bool_true_false_are_defined
10282# error __bool_true_false_are_defined is not defined
10283#endif
10284
10285        struct s { _Bool s: 1; _Bool t; } s;
10286
10287        char a[true == 1 ? 1 : -1];
10288        char b[false == 0 ? 1 : -1];
10289        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10290        char d[(bool) -0.5 == true ? 1 : -1];
10291        bool e = &s;
10292        char f[(_Bool) -0.0 == false ? 1 : -1];
10293        char g[true];
10294        char h[sizeof (_Bool)];
10295        char i[sizeof s.t];
10296
10297int
10298main ()
10299{
10300 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10301  ;
10302  return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext
10306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307  (eval $ac_compile) 2>conftest.er1
10308  ac_status=$?
10309  grep -v '^ *+' conftest.er1 >conftest.err
10310  rm -f conftest.er1
10311  cat conftest.err >&5
10312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313  (exit $ac_status); } &&
10314         { ac_try='test -z "$ac_c_werror_flag"
10315                         || test ! -s conftest.err'
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); }; } &&
10321         { ac_try='test -s conftest.$ac_objext'
10322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323  (eval $ac_try) 2>&5
10324  ac_status=$?
10325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326  (exit $ac_status); }; }; then
10327  ac_cv_header_stdbool_h=yes
10328else
10329  echo "$as_me: failed program was:" >&5
10330sed 's/^/| /' conftest.$ac_ext >&5
10331
10332ac_cv_header_stdbool_h=no
10333fi
10334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10335fi
10336echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10337echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10338echo "$as_me:$LINENO: checking for _Bool" >&5
10339echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10340if test "${ac_cv_type__Bool+set}" = set; then
10341  echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343  cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h.  */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h.  */
10349$ac_includes_default
10350int
10351main ()
10352{
10353if ((_Bool *) 0)
10354  return 0;
10355if (sizeof (_Bool))
10356  return 0;
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext
10362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363  (eval $ac_compile) 2>conftest.er1
10364  ac_status=$?
10365  grep -v '^ *+' conftest.er1 >conftest.err
10366  rm -f conftest.er1
10367  cat conftest.err >&5
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); } &&
10370         { ac_try='test -z "$ac_c_werror_flag"
10371                         || test ! -s conftest.err'
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); }; } &&
10377         { ac_try='test -s conftest.$ac_objext'
10378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379  (eval $ac_try) 2>&5
10380  ac_status=$?
10381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); }; }; then
10383  ac_cv_type__Bool=yes
10384else
10385  echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388ac_cv_type__Bool=no
10389fi
10390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10391fi
10392echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10393echo "${ECHO_T}$ac_cv_type__Bool" >&6
10394if test $ac_cv_type__Bool = yes; then
10395
10396cat >>confdefs.h <<_ACEOF
10397#define HAVE__BOOL 1
10398_ACEOF
10399
10400
10401fi
10402
10403if test $ac_cv_header_stdbool_h = yes; then
10404
10405cat >>confdefs.h <<\_ACEOF
10406#define HAVE_STDBOOL_H 1
10407_ACEOF
10408
10409fi
10410
10411
10412# Checks for library functions.
10413
10414for ac_header in stdlib.h
10415do
10416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417if eval "test \"\${$as_ac_Header+set}\" = set"; then
10418  echo "$as_me:$LINENO: checking for $ac_header" >&5
10419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10420if eval "test \"\${$as_ac_Header+set}\" = set"; then
10421  echo $ECHO_N "(cached) $ECHO_C" >&6
10422fi
10423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10425else
10426  # Is the header compilable?
10427echo "$as_me:$LINENO: checking $ac_header usability" >&5
10428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10429cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h.  */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h.  */
10435$ac_includes_default
10436#include <$ac_header>
10437_ACEOF
10438rm -f conftest.$ac_objext
10439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10440  (eval $ac_compile) 2>conftest.er1
10441  ac_status=$?
10442  grep -v '^ *+' conftest.er1 >conftest.err
10443  rm -f conftest.er1
10444  cat conftest.err >&5
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); } &&
10447         { ac_try='test -z "$ac_c_werror_flag"
10448                         || test ! -s conftest.err'
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); }; } &&
10454         { ac_try='test -s conftest.$ac_objext'
10455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456  (eval $ac_try) 2>&5
10457  ac_status=$?
10458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); }; }; then
10460  ac_header_compiler=yes
10461else
10462  echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
10465ac_header_compiler=no
10466fi
10467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10469echo "${ECHO_T}$ac_header_compiler" >&6
10470
10471# Is the header present?
10472echo "$as_me:$LINENO: checking $ac_header presence" >&5
10473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10474cat >conftest.$ac_ext <<_ACEOF
10475/* confdefs.h.  */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h.  */
10480#include <$ac_header>
10481_ACEOF
10482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10484  ac_status=$?
10485  grep -v '^ *+' conftest.er1 >conftest.err
10486  rm -f conftest.er1
10487  cat conftest.err >&5
10488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489  (exit $ac_status); } >/dev/null; then
10490  if test -s conftest.err; then
10491    ac_cpp_err=$ac_c_preproc_warn_flag
10492    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10493  else
10494    ac_cpp_err=
10495  fi
10496else
10497  ac_cpp_err=yes
10498fi
10499if test -z "$ac_cpp_err"; then
10500  ac_header_preproc=yes
10501else
10502  echo "$as_me: failed program was:" >&5
10503sed 's/^/| /' conftest.$ac_ext >&5
10504
10505  ac_header_preproc=no
10506fi
10507rm -f conftest.err conftest.$ac_ext
10508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10509echo "${ECHO_T}$ac_header_preproc" >&6
10510
10511# So?  What about this header?
10512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10513  yes:no: )
10514    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10518    ac_header_preproc=yes
10519    ;;
10520  no:yes:* )
10521    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10523    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10524echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10525    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10527    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10528echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10529    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10531    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10533    (
10534      cat <<\_ASBOX
10535## ---------------------------------------------- ##
10536## Report this to orxonox-dev at mail.datacore.ch ##
10537## ---------------------------------------------- ##
10538_ASBOX
10539    ) |
10540      sed "s/^/$as_me: WARNING:     /" >&2
10541    ;;
10542esac
10543echo "$as_me:$LINENO: checking for $ac_header" >&5
10544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10545if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546  echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548  eval "$as_ac_Header=\$ac_header_preproc"
10549fi
10550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10552
10553fi
10554if test `eval echo '${'$as_ac_Header'}'` = yes; then
10555  cat >>confdefs.h <<_ACEOF
10556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10557_ACEOF
10558
10559fi
10560
10561done
10562
10563echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10564echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10565if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10566  echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568  if test "$cross_compiling" = yes; then
10569  ac_cv_func_malloc_0_nonnull=no
10570else
10571  cat >conftest.$ac_ext <<_ACEOF
10572/* confdefs.h.  */
10573_ACEOF
10574cat confdefs.h >>conftest.$ac_ext
10575cat >>conftest.$ac_ext <<_ACEOF
10576/* end confdefs.h.  */
10577#if STDC_HEADERS || HAVE_STDLIB_H
10578# include <stdlib.h>
10579#else
10580char *malloc ();
10581#endif
10582
10583int
10584main ()
10585{
10586exit (malloc (0) ? 0 : 1);
10587  ;
10588  return 0;
10589}
10590_ACEOF
10591rm -f conftest$ac_exeext
10592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593  (eval $ac_link) 2>&5
10594  ac_status=$?
10595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598  (eval $ac_try) 2>&5
10599  ac_status=$?
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); }; }; then
10602  ac_cv_func_malloc_0_nonnull=yes
10603else
10604  echo "$as_me: program exited with status $ac_status" >&5
10605echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608( exit $ac_status )
10609ac_cv_func_malloc_0_nonnull=no
10610fi
10611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10612fi
10613fi
10614echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10615echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10616if test $ac_cv_func_malloc_0_nonnull = yes; then
10617
10618cat >>confdefs.h <<\_ACEOF
10619#define HAVE_MALLOC 1
10620_ACEOF
10621
10622else
10623  cat >>confdefs.h <<\_ACEOF
10624#define HAVE_MALLOC 0
10625_ACEOF
10626
10627   case $LIBOBJS in
10628    "malloc.$ac_objext"   | \
10629  *" malloc.$ac_objext"   | \
10630    "malloc.$ac_objext "* | \
10631  *" malloc.$ac_objext "* ) ;;
10632  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10633esac
10634
10635
10636cat >>confdefs.h <<\_ACEOF
10637#define malloc rpl_malloc
10638_ACEOF
10639
10640fi
10641
10642
10643
10644
10645
10646for ac_func in bzero sqrt
10647do
10648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10649echo "$as_me:$LINENO: checking for $ac_func" >&5
10650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10651if eval "test \"\${$as_ac_var+set}\" = set"; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h.  */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h.  */
10660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10662#define $ac_func innocuous_$ac_func
10663
10664/* System header to define __stub macros and hopefully few prototypes,
10665    which can conflict with char $ac_func (); below.
10666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10667    <limits.h> exists even on freestanding compilers.  */
10668
10669#ifdef __STDC__
10670# include <limits.h>
10671#else
10672# include <assert.h>
10673#endif
10674
10675#undef $ac_func
10676
10677/* Override any gcc2 internal prototype to avoid an error.  */
10678#ifdef __cplusplus
10679extern "C"
10680{
10681#endif
10682/* We use char because int might match the return type of a gcc2
10683   builtin and then its argument prototype would still apply.  */
10684char $ac_func ();
10685/* The GNU C library defines this for functions which it implements
10686    to always fail with ENOSYS.  Some functions are actually named
10687    something starting with __ and the normal name is an alias.  */
10688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10689choke me
10690#else
10691char (*f) () = $ac_func;
10692#endif
10693#ifdef __cplusplus
10694}
10695#endif
10696
10697int
10698main ()
10699{
10700return f != $ac_func;
10701  ;
10702  return 0;
10703}
10704_ACEOF
10705rm -f conftest.$ac_objext conftest$ac_exeext
10706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707  (eval $ac_link) 2>conftest.er1
10708  ac_status=$?
10709  grep -v '^ *+' conftest.er1 >conftest.err
10710  rm -f conftest.er1
10711  cat conftest.err >&5
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); } &&
10714         { ac_try='test -z "$ac_c_werror_flag"
10715                         || test ! -s conftest.err'
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); }; } &&
10721         { ac_try='test -s conftest$ac_exeext'
10722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723  (eval $ac_try) 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); }; }; then
10727  eval "$as_ac_var=yes"
10728else
10729  echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
10731
10732eval "$as_ac_var=no"
10733fi
10734rm -f conftest.err conftest.$ac_objext \
10735      conftest$ac_exeext conftest.$ac_ext
10736fi
10737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10739if test `eval echo '${'$as_ac_var'}'` = yes; then
10740  cat >>confdefs.h <<_ACEOF
10741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10742_ACEOF
10743
10744fi
10745done
10746
10747
10748######################
10749## OUTPUT CONFIGURE ##
10750######################
10751                                                                                                                                                                                                                            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"
10752
10753
10754cat >confcache <<\_ACEOF
10755# This file is a shell script that caches the results of configure
10756# tests run on this system so they can be shared between configure
10757# scripts and configure runs, see configure's option --config-cache.
10758# It is not useful on other systems.  If it contains results you don't
10759# want to keep, you may remove or edit it.
10760#
10761# config.status only pays attention to the cache file if you give it
10762# the --recheck option to rerun configure.
10763#
10764# `ac_cv_env_foo' variables (set or unset) will be overridden when
10765# loading this file, other *unset* `ac_cv_foo' will be assigned the
10766# following values.
10767
10768_ACEOF
10769
10770# The following way of writing the cache mishandles newlines in values,
10771# but we know of no workaround that is simple, portable, and efficient.
10772# So, don't put newlines in cache variables' values.
10773# Ultrix sh set writes to stderr and can't be redirected directly,
10774# and sets the high bit in the cache file unless we assign to the vars.
10775{
10776  (set) 2>&1 |
10777    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10778    *ac_space=\ *)
10779      # `set' does not quote correctly, so add quotes (double-quote
10780      # substitution turns \\\\ into \\, and sed turns \\ into \).
10781      sed -n \
10782        "s/'/'\\\\''/g;
10783          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10784      ;;
10785    *)
10786      # `set' quotes correctly as required by POSIX, so do not add quotes.
10787      sed -n \
10788        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10789      ;;
10790    esac;
10791} |
10792  sed '
10793     t clear
10794     : clear
10795     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10796     t end
10797     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10798     : end' >>confcache
10799if diff $cache_file confcache >/dev/null 2>&1; then :; else
10800  if test -w $cache_file; then
10801    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10802    cat confcache >$cache_file
10803  else
10804    echo "not updating unwritable cache $cache_file"
10805  fi
10806fi
10807rm -f confcache
10808
10809test "x$prefix" = xNONE && prefix=$ac_default_prefix
10810# Let make expand exec_prefix.
10811test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10812
10813# VPATH may cause trouble with some makes, so we remove $(srcdir),
10814# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10815# trailing colons and then remove the whole line if VPATH becomes empty
10816# (actually we leave an empty line to preserve line numbers).
10817if test "x$srcdir" = x.; then
10818  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10819s/:*\$(srcdir):*/:/;
10820s/:*\${srcdir}:*/:/;
10821s/:*@srcdir@:*/:/;
10822s/^\([^=]*=[     ]*\):*/\1/;
10823s/:*$//;
10824s/^[^=]*=[       ]*$//;
10825}'
10826fi
10827
10828DEFS=-DHAVE_CONFIG_H
10829
10830ac_libobjs=
10831ac_ltlibobjs=
10832for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10833  # 1. Remove the extension, and $U if already installed.
10834  ac_i=`echo "$ac_i" |
10835         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10836  # 2. Add them.
10837  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10838  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10839done
10840LIBOBJS=$ac_libobjs
10841
10842LTLIBOBJS=$ac_ltlibobjs
10843
10844
10845if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10846  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10847Usually this means the macro was only invoked conditionally." >&5
10848echo "$as_me: error: conditional \"AMDEP\" was never defined.
10849Usually this means the macro was only invoked conditionally." >&2;}
10850   { (exit 1); exit 1; }; }
10851fi
10852if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10853  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10854Usually this means the macro was only invoked conditionally." >&5
10855echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10856Usually this means the macro was only invoked conditionally." >&2;}
10857   { (exit 1); exit 1; }; }
10858fi
10859if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10860  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10861Usually this means the macro was only invoked conditionally." >&5
10862echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10863Usually this means the macro was only invoked conditionally." >&2;}
10864   { (exit 1); exit 1; }; }
10865fi
10866if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10867  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10868Usually this means the macro was only invoked conditionally." >&5
10869echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10870Usually this means the macro was only invoked conditionally." >&2;}
10871   { (exit 1); exit 1; }; }
10872fi
10873if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10874  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10875Usually this means the macro was only invoked conditionally." >&5
10876echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10877Usually this means the macro was only invoked conditionally." >&2;}
10878   { (exit 1); exit 1; }; }
10879fi
10880if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10881  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10882Usually this means the macro was only invoked conditionally." >&5
10883echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10884Usually this means the macro was only invoked conditionally." >&2;}
10885   { (exit 1); exit 1; }; }
10886fi
10887if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10888  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10889Usually this means the macro was only invoked conditionally." >&5
10890echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10891Usually this means the macro was only invoked conditionally." >&2;}
10892   { (exit 1); exit 1; }; }
10893fi
10894if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10895  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10896Usually this means the macro was only invoked conditionally." >&5
10897echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10898Usually this means the macro was only invoked conditionally." >&2;}
10899   { (exit 1); exit 1; }; }
10900fi
10901
10902: ${CONFIG_STATUS=./config.status}
10903ac_clean_files_save=$ac_clean_files
10904ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10905{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10906echo "$as_me: creating $CONFIG_STATUS" >&6;}
10907cat >$CONFIG_STATUS <<_ACEOF
10908#! $SHELL
10909# Generated by $as_me.
10910# Run this file to recreate the current configuration.
10911# Compiler output produced by configure, useful for debugging
10912# configure, is in config.log if it exists.
10913
10914debug=false
10915ac_cs_recheck=false
10916ac_cs_silent=false
10917SHELL=\${CONFIG_SHELL-$SHELL}
10918_ACEOF
10919
10920cat >>$CONFIG_STATUS <<\_ACEOF
10921## --------------------- ##
10922## M4sh Initialization.  ##
10923## --------------------- ##
10924
10925# Be Bourne compatible
10926if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10927  emulate sh
10928  NULLCMD=:
10929  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10930  # is contrary to our usage.  Disable this feature.
10931  alias -g '${1+"$@"}'='"$@"'
10932elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10933  set -o posix
10934fi
10935DUALCASE=1; export DUALCASE # for MKS sh
10936
10937# Support unset when possible.
10938if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10939  as_unset=unset
10940else
10941  as_unset=false
10942fi
10943
10944
10945# Work around bugs in pre-3.0 UWIN ksh.
10946$as_unset ENV MAIL MAILPATH
10947PS1='$ '
10948PS2='> '
10949PS4='+ '
10950
10951# NLS nuisances.
10952for as_var in \
10953  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10954  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10955  LC_TELEPHONE LC_TIME
10956do
10957  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10958    eval $as_var=C; export $as_var
10959  else
10960    $as_unset $as_var
10961  fi
10962done
10963
10964# Required to use basename.
10965if expr a : '\(a\)' >/dev/null 2>&1; then
10966  as_expr=expr
10967else
10968  as_expr=false
10969fi
10970
10971if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10972  as_basename=basename
10973else
10974  as_basename=false
10975fi
10976
10977
10978# Name of the executable.
10979as_me=`$as_basename "$0" ||
10980$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10981         X"$0" : 'X\(//\)$' \| \
10982         X"$0" : 'X\(/\)$' \| \
10983         .     : '\(.\)' 2>/dev/null ||
10984echo X/"$0" |
10985    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10986          /^X\/\(\/\/\)$/{ s//\1/; q; }
10987          /^X\/\(\/\).*/{ s//\1/; q; }
10988          s/.*/./; q'`
10989
10990
10991# PATH needs CR, and LINENO needs CR and PATH.
10992# Avoid depending upon Character Ranges.
10993as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10994as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10995as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10996as_cr_digits='0123456789'
10997as_cr_alnum=$as_cr_Letters$as_cr_digits
10998
10999# The user is always right.
11000if test "${PATH_SEPARATOR+set}" != set; then
11001  echo "#! /bin/sh" >conf$$.sh
11002  echo  "exit 0"   >>conf$$.sh
11003  chmod +x conf$$.sh
11004  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11005    PATH_SEPARATOR=';'
11006  else
11007    PATH_SEPARATOR=:
11008  fi
11009  rm -f conf$$.sh
11010fi
11011
11012
11013  as_lineno_1=$LINENO
11014  as_lineno_2=$LINENO
11015  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11016  test "x$as_lineno_1" != "x$as_lineno_2" &&
11017  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11018  # Find who we are.  Look in the path if we contain no path at all
11019  # relative or not.
11020  case $0 in
11021    *[\\/]* ) as_myself=$0 ;;
11022    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025  IFS=$as_save_IFS
11026  test -z "$as_dir" && as_dir=.
11027  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11028done
11029
11030       ;;
11031  esac
11032  # We did not find ourselves, most probably we were run as `sh COMMAND'
11033  # in which case we are not to be found in the path.
11034  if test "x$as_myself" = x; then
11035    as_myself=$0
11036  fi
11037  if test ! -f "$as_myself"; then
11038    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11039echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11040   { (exit 1); exit 1; }; }
11041  fi
11042  case $CONFIG_SHELL in
11043  '')
11044    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11046do
11047  IFS=$as_save_IFS
11048  test -z "$as_dir" && as_dir=.
11049  for as_base in sh bash ksh sh5; do
11050         case $as_dir in
11051         /*)
11052           if ("$as_dir/$as_base" -c '
11053  as_lineno_1=$LINENO
11054  as_lineno_2=$LINENO
11055  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11056  test "x$as_lineno_1" != "x$as_lineno_2" &&
11057  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11058             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11059             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11060             CONFIG_SHELL=$as_dir/$as_base
11061             export CONFIG_SHELL
11062             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11063           fi;;
11064         esac
11065       done
11066done
11067;;
11068  esac
11069
11070  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11071  # uniformly replaced by the line number.  The first 'sed' inserts a
11072  # line-number line before each line; the second 'sed' does the real
11073  # work.  The second script uses 'N' to pair each line-number line
11074  # with the numbered line, and appends trailing '-' during
11075  # substitution so that $LINENO is not a special case at line end.
11076  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11077  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11078  sed '=' <$as_myself |
11079    sed '
11080      N
11081      s,$,-,
11082      : loop
11083      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11084      t loop
11085      s,-$,,
11086      s,^['$as_cr_digits']*\n,,
11087    ' >$as_me.lineno &&
11088  chmod +x $as_me.lineno ||
11089    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11090echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11091   { (exit 1); exit 1; }; }
11092
11093  # Don't try to exec as it changes $[0], causing all sort of problems
11094  # (the dirname of $[0] is not the place where we might find the
11095  # original and so on.  Autoconf is especially sensible to this).
11096  . ./$as_me.lineno
11097  # Exit status is that of the last command.
11098  exit
11099}
11100
11101
11102case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11103  *c*,-n*) ECHO_N= ECHO_C='
11104' ECHO_T='      ' ;;
11105  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11106  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11107esac
11108
11109if expr a : '\(a\)' >/dev/null 2>&1; then
11110  as_expr=expr
11111else
11112  as_expr=false
11113fi
11114
11115rm -f conf$$ conf$$.exe conf$$.file
11116echo >conf$$.file
11117if ln -s conf$$.file conf$$ 2>/dev/null; then
11118  # We could just check for DJGPP; but this test a) works b) is more generic
11119  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11120  if test -f conf$$.exe; then
11121    # Don't use ln at all; we don't have any links
11122    as_ln_s='cp -p'
11123  else
11124    as_ln_s='ln -s'
11125  fi
11126elif ln conf$$.file conf$$ 2>/dev/null; then
11127  as_ln_s=ln
11128else
11129  as_ln_s='cp -p'
11130fi
11131rm -f conf$$ conf$$.exe conf$$.file
11132
11133if mkdir -p . 2>/dev/null; then
11134  as_mkdir_p=:
11135else
11136  test -d ./-p && rmdir ./-p
11137  as_mkdir_p=false
11138fi
11139
11140as_executable_p="test -f"
11141
11142# Sed expression to map a string onto a valid CPP name.
11143as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11144
11145# Sed expression to map a string onto a valid variable name.
11146as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11147
11148
11149# IFS
11150# We need space, tab and new line, in precisely that order.
11151as_nl='
11152'
11153IFS="   $as_nl"
11154
11155# CDPATH.
11156$as_unset CDPATH
11157
11158exec 6>&1
11159
11160# Open the log real soon, to keep \$[0] and so on meaningful, and to
11161# report actual input values of CONFIG_FILES etc. instead of their
11162# values after options handling.  Logging --version etc. is OK.
11163exec 5>>config.log
11164{
11165  echo
11166  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11167## Running $as_me. ##
11168_ASBOX
11169} >&5
11170cat >&5 <<_CSEOF
11171
11172This file was extended by orxonox $as_me 0.3.1_alpha, which was
11173generated by GNU Autoconf 2.59.  Invocation command line was
11174
11175  CONFIG_FILES    = $CONFIG_FILES
11176  CONFIG_HEADERS  = $CONFIG_HEADERS
11177  CONFIG_LINKS    = $CONFIG_LINKS
11178  CONFIG_COMMANDS = $CONFIG_COMMANDS
11179  $ $0 $@
11180
11181_CSEOF
11182echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11183echo >&5
11184_ACEOF
11185
11186# Files that config.status was made for.
11187if test -n "$ac_config_files"; then
11188  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11189fi
11190
11191if test -n "$ac_config_headers"; then
11192  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11193fi
11194
11195if test -n "$ac_config_links"; then
11196  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11197fi
11198
11199if test -n "$ac_config_commands"; then
11200  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11201fi
11202
11203cat >>$CONFIG_STATUS <<\_ACEOF
11204
11205ac_cs_usage="\
11206\`$as_me' instantiates files from templates according to the
11207current configuration.
11208
11209Usage: $0 [OPTIONS] [FILE]...
11210
11211  -h, --help       print this help, then exit
11212  -V, --version    print version number, then exit
11213  -q, --quiet      do not print progress messages
11214  -d, --debug      don't remove temporary files
11215      --recheck    update $as_me by reconfiguring in the same conditions
11216  --file=FILE[:TEMPLATE]
11217                   instantiate the configuration file FILE
11218  --header=FILE[:TEMPLATE]
11219                   instantiate the configuration header FILE
11220
11221Configuration files:
11222$config_files
11223
11224Configuration headers:
11225$config_headers
11226
11227Configuration commands:
11228$config_commands
11229
11230Report bugs to <bug-autoconf@gnu.org>."
11231_ACEOF
11232
11233cat >>$CONFIG_STATUS <<_ACEOF
11234ac_cs_version="\\
11235orxonox config.status 0.3.1_alpha
11236configured by $0, generated by GNU Autoconf 2.59,
11237  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11238
11239Copyright (C) 2003 Free Software Foundation, Inc.
11240This config.status script is free software; the Free Software Foundation
11241gives unlimited permission to copy, distribute and modify it."
11242srcdir=$srcdir
11243INSTALL="$INSTALL"
11244_ACEOF
11245
11246cat >>$CONFIG_STATUS <<\_ACEOF
11247# If no file are specified by the user, then we need to provide default
11248# value.  By we need to know if files were specified by the user.
11249ac_need_defaults=:
11250while test $# != 0
11251do
11252  case $1 in
11253  --*=*)
11254    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11255    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11256    ac_shift=:
11257    ;;
11258  -*)
11259    ac_option=$1
11260    ac_optarg=$2
11261    ac_shift=shift
11262    ;;
11263  *) # This is not an option, so the user has probably given explicit
11264     # arguments.
11265     ac_option=$1
11266     ac_need_defaults=false;;
11267  esac
11268
11269  case $ac_option in
11270  # Handling of the options.
11271_ACEOF
11272cat >>$CONFIG_STATUS <<\_ACEOF
11273  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11274    ac_cs_recheck=: ;;
11275  --version | --vers* | -V )
11276    echo "$ac_cs_version"; exit 0 ;;
11277  --he | --h)
11278    # Conflict between --help and --header
11279    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11280Try \`$0 --help' for more information." >&5
11281echo "$as_me: error: ambiguous option: $1
11282Try \`$0 --help' for more information." >&2;}
11283   { (exit 1); exit 1; }; };;
11284  --help | --hel | -h )
11285    echo "$ac_cs_usage"; exit 0 ;;
11286  --debug | --d* | -d )
11287    debug=: ;;
11288  --file | --fil | --fi | --f )
11289    $ac_shift
11290    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11291    ac_need_defaults=false;;
11292  --header | --heade | --head | --hea )
11293    $ac_shift
11294    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11295    ac_need_defaults=false;;
11296  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11297  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11298    ac_cs_silent=: ;;
11299
11300  # This is an error.
11301  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11302Try \`$0 --help' for more information." >&5
11303echo "$as_me: error: unrecognized option: $1
11304Try \`$0 --help' for more information." >&2;}
11305   { (exit 1); exit 1; }; } ;;
11306
11307  *) ac_config_targets="$ac_config_targets $1" ;;
11308
11309  esac
11310  shift
11311done
11312
11313ac_configure_extra_args=
11314
11315if $ac_cs_silent; then
11316  exec 6>/dev/null
11317  ac_configure_extra_args="$ac_configure_extra_args --silent"
11318fi
11319
11320_ACEOF
11321cat >>$CONFIG_STATUS <<_ACEOF
11322if \$ac_cs_recheck; then
11323  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11324  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11325fi
11326
11327_ACEOF
11328
11329cat >>$CONFIG_STATUS <<_ACEOF
11330#
11331# INIT-COMMANDS section.
11332#
11333
11334AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11335
11336_ACEOF
11337
11338
11339
11340cat >>$CONFIG_STATUS <<\_ACEOF
11341for ac_config_target in $ac_config_targets
11342do
11343  case "$ac_config_target" in
11344  # Handling of arguments.
11345  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11346  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11347  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11348  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
11349  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
11350  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
11351  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
11352  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
11353  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
11354  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
11355  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
11356  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
11357  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
11358  "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;;
11359  "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;;
11360  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
11361  "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
11362  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
11363  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
11364  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
11365  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
11366  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
11367  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11368  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11369  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11370echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11371   { (exit 1); exit 1; }; };;
11372  esac
11373done
11374
11375# If the user did not use the arguments to specify the items to instantiate,
11376# then the envvar interface is used.  Set only those that are not.
11377# We use the long form for the default assignment because of an extremely
11378# bizarre bug on SunOS 4.1.3.
11379if $ac_need_defaults; then
11380  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11381  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11382  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11383fi
11384
11385# Have a temporary directory for convenience.  Make it in the build tree
11386# simply because there is no reason to put it here, and in addition,
11387# creating and moving files from /tmp can sometimes cause problems.
11388# Create a temporary directory, and hook for its removal unless debugging.
11389$debug ||
11390{
11391  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11392  trap '{ (exit 1); exit 1; }' 1 2 13 15
11393}
11394
11395# Create a (secure) tmp directory for tmp files.
11396
11397{
11398  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11399  test -n "$tmp" && test -d "$tmp"
11400}  ||
11401{
11402  tmp=./confstat$$-$RANDOM
11403  (umask 077 && mkdir $tmp)
11404} ||
11405{
11406   echo "$me: cannot create a temporary directory in ." >&2
11407   { (exit 1); exit 1; }
11408}
11409
11410_ACEOF
11411
11412cat >>$CONFIG_STATUS <<_ACEOF
11413
11414#
11415# CONFIG_FILES section.
11416#
11417
11418# No need to generate the scripts if there are no CONFIG_FILES.
11419# This happens for instance when ./config.status config.h
11420if test -n "\$CONFIG_FILES"; then
11421  # Protect against being on the right side of a sed subst in config.status.
11422  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11423   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11424s,@SHELL@,$SHELL,;t t
11425s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11426s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11427s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11428s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11429s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11430s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11431s,@exec_prefix@,$exec_prefix,;t t
11432s,@prefix@,$prefix,;t t
11433s,@program_transform_name@,$program_transform_name,;t t
11434s,@bindir@,$bindir,;t t
11435s,@sbindir@,$sbindir,;t t
11436s,@libexecdir@,$libexecdir,;t t
11437s,@datadir@,$datadir,;t t
11438s,@sysconfdir@,$sysconfdir,;t t
11439s,@sharedstatedir@,$sharedstatedir,;t t
11440s,@localstatedir@,$localstatedir,;t t
11441s,@libdir@,$libdir,;t t
11442s,@includedir@,$includedir,;t t
11443s,@oldincludedir@,$oldincludedir,;t t
11444s,@infodir@,$infodir,;t t
11445s,@mandir@,$mandir,;t t
11446s,@build_alias@,$build_alias,;t t
11447s,@host_alias@,$host_alias,;t t
11448s,@target_alias@,$target_alias,;t t
11449s,@DEFS@,$DEFS,;t t
11450s,@ECHO_C@,$ECHO_C,;t t
11451s,@ECHO_N@,$ECHO_N,;t t
11452s,@ECHO_T@,$ECHO_T,;t t
11453s,@LIBS@,$LIBS,;t t
11454s,@build@,$build,;t t
11455s,@build_cpu@,$build_cpu,;t t
11456s,@build_vendor@,$build_vendor,;t t
11457s,@build_os@,$build_os,;t t
11458s,@host@,$host,;t t
11459s,@host_cpu@,$host_cpu,;t t
11460s,@host_vendor@,$host_vendor,;t t
11461s,@host_os@,$host_os,;t t
11462s,@target@,$target,;t t
11463s,@target_cpu@,$target_cpu,;t t
11464s,@target_vendor@,$target_vendor,;t t
11465s,@target_os@,$target_os,;t t
11466s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11467s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11468s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11469s,@CYGPATH_W@,$CYGPATH_W,;t t
11470s,@PACKAGE@,$PACKAGE,;t t
11471s,@VERSION@,$VERSION,;t t
11472s,@ACLOCAL@,$ACLOCAL,;t t
11473s,@AUTOCONF@,$AUTOCONF,;t t
11474s,@AUTOMAKE@,$AUTOMAKE,;t t
11475s,@AUTOHEADER@,$AUTOHEADER,;t t
11476s,@MAKEINFO@,$MAKEINFO,;t t
11477s,@AMTAR@,$AMTAR,;t t
11478s,@install_sh@,$install_sh,;t t
11479s,@STRIP@,$STRIP,;t t
11480s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11481s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11482s,@mkdir_p@,$mkdir_p,;t t
11483s,@AWK@,$AWK,;t t
11484s,@SET_MAKE@,$SET_MAKE,;t t
11485s,@am__leading_dot@,$am__leading_dot,;t t
11486s,@CXX@,$CXX,;t t
11487s,@CXXFLAGS@,$CXXFLAGS,;t t
11488s,@LDFLAGS@,$LDFLAGS,;t t
11489s,@CPPFLAGS@,$CPPFLAGS,;t t
11490s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11491s,@EXEEXT@,$EXEEXT,;t t
11492s,@OBJEXT@,$OBJEXT,;t t
11493s,@DEPDIR@,$DEPDIR,;t t
11494s,@am__include@,$am__include,;t t
11495s,@am__quote@,$am__quote,;t t
11496s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11497s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11498s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11499s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11500s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11501s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11502s,@RANLIB@,$RANLIB,;t t
11503s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11504s,@CC@,$CC,;t t
11505s,@CFLAGS@,$CFLAGS,;t t
11506s,@ac_ct_CC@,$ac_ct_CC,;t t
11507s,@CCDEPMODE@,$CCDEPMODE,;t t
11508s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11509s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11510s,@CPP@,$CPP,;t t
11511s,@EGREP@,$EGREP,;t t
11512s,@DEBUG@,$DEBUG,;t t
11513s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
11514s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
11515s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
11516s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
11517s,@DOXYGEN@,$DOXYGEN,;t t
11518s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
11519s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
11520s,@GPROF@,$GPROF,;t t
11521s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11522s,@MSBITFIELDS@,$MSBITFIELDS,;t t
11523s,@CURL_LIBS@,$CURL_LIBS,;t t
11524s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
11525s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
11526s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
11527s,@GTK2_LIBS@,$GTK2_LIBS,;t t
11528s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
11529s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
11530s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
11531s,@LIBOBJS@,$LIBOBJS,;t t
11532s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11533CEOF
11534
11535_ACEOF
11536
11537  cat >>$CONFIG_STATUS <<\_ACEOF
11538  # Split the substitutions into bite-sized pieces for seds with
11539  # small command number limits, like on Digital OSF/1 and HP-UX.
11540  ac_max_sed_lines=48
11541  ac_sed_frag=1 # Number of current file.
11542  ac_beg=1 # First line for current file.
11543  ac_end=$ac_max_sed_lines # Line after last line for current file.
11544  ac_more_lines=:
11545  ac_sed_cmds=
11546  while $ac_more_lines; do
11547    if test $ac_beg -gt 1; then
11548      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11549    else
11550      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11551    fi
11552    if test ! -s $tmp/subs.frag; then
11553      ac_more_lines=false
11554    else
11555      # The purpose of the label and of the branching condition is to
11556      # speed up the sed processing (if there are no `@' at all, there
11557      # is no need to browse any of the substitutions).
11558      # These are the two extra sed commands mentioned above.
11559      (echo ':t
11560  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11561      if test -z "$ac_sed_cmds"; then
11562        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11563      else
11564        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11565      fi
11566      ac_sed_frag=`expr $ac_sed_frag + 1`
11567      ac_beg=$ac_end
11568      ac_end=`expr $ac_end + $ac_max_sed_lines`
11569    fi
11570  done
11571  if test -z "$ac_sed_cmds"; then
11572    ac_sed_cmds=cat
11573  fi
11574fi # test -n "$CONFIG_FILES"
11575
11576_ACEOF
11577cat >>$CONFIG_STATUS <<\_ACEOF
11578for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11579  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11580  case $ac_file in
11581  - | *:- | *:-:* ) # input from stdin
11582        cat >$tmp/stdin
11583        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11584        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11585  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11586        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11587  * )   ac_file_in=$ac_file.in ;;
11588  esac
11589
11590  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11591  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11592$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11593         X"$ac_file" : 'X\(//\)[^/]' \| \
11594         X"$ac_file" : 'X\(//\)$' \| \
11595         X"$ac_file" : 'X\(/\)' \| \
11596         .     : '\(.\)' 2>/dev/null ||
11597echo X"$ac_file" |
11598    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11599          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11600          /^X\(\/\/\)$/{ s//\1/; q; }
11601          /^X\(\/\).*/{ s//\1/; q; }
11602          s/.*/./; q'`
11603  { if $as_mkdir_p; then
11604    mkdir -p "$ac_dir"
11605  else
11606    as_dir="$ac_dir"
11607    as_dirs=
11608    while test ! -d "$as_dir"; do
11609      as_dirs="$as_dir $as_dirs"
11610      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11612         X"$as_dir" : 'X\(//\)[^/]' \| \
11613         X"$as_dir" : 'X\(//\)$' \| \
11614         X"$as_dir" : 'X\(/\)' \| \
11615         .     : '\(.\)' 2>/dev/null ||
11616echo X"$as_dir" |
11617    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11618          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11619          /^X\(\/\/\)$/{ s//\1/; q; }
11620          /^X\(\/\).*/{ s//\1/; q; }
11621          s/.*/./; q'`
11622    done
11623    test ! -n "$as_dirs" || mkdir $as_dirs
11624  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11625echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11626   { (exit 1); exit 1; }; }; }
11627
11628  ac_builddir=.
11629
11630if test "$ac_dir" != .; then
11631  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11632  # A "../" for each directory in $ac_dir_suffix.
11633  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11634else
11635  ac_dir_suffix= ac_top_builddir=
11636fi
11637
11638case $srcdir in
11639  .)  # No --srcdir option.  We are building in place.
11640    ac_srcdir=.
11641    if test -z "$ac_top_builddir"; then
11642       ac_top_srcdir=.
11643    else
11644       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11645    fi ;;
11646  [\\/]* | ?:[\\/]* )  # Absolute path.
11647    ac_srcdir=$srcdir$ac_dir_suffix;
11648    ac_top_srcdir=$srcdir ;;
11649  *) # Relative path.
11650    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11651    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11652esac
11653
11654# Do not use `cd foo && pwd` to compute absolute paths, because
11655# the directories may not exist.
11656case `pwd` in
11657.) ac_abs_builddir="$ac_dir";;
11658*)
11659  case "$ac_dir" in
11660  .) ac_abs_builddir=`pwd`;;
11661  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11662  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11663  esac;;
11664esac
11665case $ac_abs_builddir in
11666.) ac_abs_top_builddir=${ac_top_builddir}.;;
11667*)
11668  case ${ac_top_builddir}. in
11669  .) ac_abs_top_builddir=$ac_abs_builddir;;
11670  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11671  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11672  esac;;
11673esac
11674case $ac_abs_builddir in
11675.) ac_abs_srcdir=$ac_srcdir;;
11676*)
11677  case $ac_srcdir in
11678  .) ac_abs_srcdir=$ac_abs_builddir;;
11679  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11680  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11681  esac;;
11682esac
11683case $ac_abs_builddir in
11684.) ac_abs_top_srcdir=$ac_top_srcdir;;
11685*)
11686  case $ac_top_srcdir in
11687  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11688  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11689  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11690  esac;;
11691esac
11692
11693
11694  case $INSTALL in
11695  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11696  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11697  esac
11698
11699  if test x"$ac_file" != x-; then
11700    { echo "$as_me:$LINENO: creating $ac_file" >&5
11701echo "$as_me: creating $ac_file" >&6;}
11702    rm -f "$ac_file"
11703  fi
11704  # Let's still pretend it is `configure' which instantiates (i.e., don't
11705  # use $as_me), people would be surprised to read:
11706  #    /* config.h.  Generated by config.status.  */
11707  if test x"$ac_file" = x-; then
11708    configure_input=
11709  else
11710    configure_input="$ac_file.  "
11711  fi
11712  configure_input=$configure_input"Generated from `echo $ac_file_in |
11713                                     sed 's,.*/,,'` by configure."
11714
11715  # First look for the input files in the build tree, otherwise in the
11716  # src tree.
11717  ac_file_inputs=`IFS=:
11718    for f in $ac_file_in; do
11719      case $f in
11720      -) echo $tmp/stdin ;;
11721      [\\/$]*)
11722         # Absolute (can't be DOS-style, as IFS=:)
11723         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11724echo "$as_me: error: cannot find input file: $f" >&2;}
11725   { (exit 1); exit 1; }; }
11726         echo "$f";;
11727      *) # Relative
11728         if test -f "$f"; then
11729           # Build tree
11730           echo "$f"
11731         elif test -f "$srcdir/$f"; then
11732           # Source tree
11733           echo "$srcdir/$f"
11734         else
11735           # /dev/null tree
11736           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11737echo "$as_me: error: cannot find input file: $f" >&2;}
11738   { (exit 1); exit 1; }; }
11739         fi;;
11740      esac
11741    done` || { (exit 1); exit 1; }
11742_ACEOF
11743cat >>$CONFIG_STATUS <<_ACEOF
11744  sed "$ac_vpsub
11745$extrasub
11746_ACEOF
11747cat >>$CONFIG_STATUS <<\_ACEOF
11748:t
11749/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11750s,@configure_input@,$configure_input,;t t
11751s,@srcdir@,$ac_srcdir,;t t
11752s,@abs_srcdir@,$ac_abs_srcdir,;t t
11753s,@top_srcdir@,$ac_top_srcdir,;t t
11754s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11755s,@builddir@,$ac_builddir,;t t
11756s,@abs_builddir@,$ac_abs_builddir,;t t
11757s,@top_builddir@,$ac_top_builddir,;t t
11758s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11759s,@INSTALL@,$ac_INSTALL,;t t
11760" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11761  rm -f $tmp/stdin
11762  if test x"$ac_file" != x-; then
11763    mv $tmp/out $ac_file
11764  else
11765    cat $tmp/out
11766    rm -f $tmp/out
11767  fi
11768
11769done
11770_ACEOF
11771cat >>$CONFIG_STATUS <<\_ACEOF
11772
11773#
11774# CONFIG_HEADER section.
11775#
11776
11777# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11778# NAME is the cpp macro being defined and VALUE is the value it is being given.
11779#
11780# ac_d sets the value in "#define NAME VALUE" lines.
11781ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11782ac_dB='[         ].*$,\1#\2'
11783ac_dC=' '
11784ac_dD=',;t'
11785# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11786ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11787ac_uB='$,\1#\2define\3'
11788ac_uC=' '
11789ac_uD=',;t'
11790
11791for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11792  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11793  case $ac_file in
11794  - | *:- | *:-:* ) # input from stdin
11795        cat >$tmp/stdin
11796        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11797        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11798  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11799        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11800  * )   ac_file_in=$ac_file.in ;;
11801  esac
11802
11803  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11804echo "$as_me: creating $ac_file" >&6;}
11805
11806  # First look for the input files in the build tree, otherwise in the
11807  # src tree.
11808  ac_file_inputs=`IFS=:
11809    for f in $ac_file_in; do
11810      case $f in
11811      -) echo $tmp/stdin ;;
11812      [\\/$]*)
11813         # Absolute (can't be DOS-style, as IFS=:)
11814         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11815echo "$as_me: error: cannot find input file: $f" >&2;}
11816   { (exit 1); exit 1; }; }
11817         # Do quote $f, to prevent DOS paths from being IFS'd.
11818         echo "$f";;
11819      *) # Relative
11820         if test -f "$f"; then
11821           # Build tree
11822           echo "$f"
11823         elif test -f "$srcdir/$f"; then
11824           # Source tree
11825           echo "$srcdir/$f"
11826         else
11827           # /dev/null tree
11828           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11829echo "$as_me: error: cannot find input file: $f" >&2;}
11830   { (exit 1); exit 1; }; }
11831         fi;;
11832      esac
11833    done` || { (exit 1); exit 1; }
11834  # Remove the trailing spaces.
11835  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11836
11837_ACEOF
11838
11839# Transform confdefs.h into two sed scripts, `conftest.defines' and
11840# `conftest.undefs', that substitutes the proper values into
11841# config.h.in to produce config.h.  The first handles `#define'
11842# templates, and the second `#undef' templates.
11843# And first: Protect against being on the right side of a sed subst in
11844# config.status.  Protect against being in an unquoted here document
11845# in config.status.
11846rm -f conftest.defines conftest.undefs
11847# Using a here document instead of a string reduces the quoting nightmare.
11848# Putting comments in sed scripts is not portable.
11849#
11850# `end' is used to avoid that the second main sed command (meant for
11851# 0-ary CPP macros) applies to n-ary macro definitions.
11852# See the Autoconf documentation for `clear'.
11853cat >confdef2sed.sed <<\_ACEOF
11854s/[\\&,]/\\&/g
11855s,[\\$`],\\&,g
11856t clear
11857: clear
11858s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11859t end
11860s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11861: end
11862_ACEOF
11863# If some macros were called several times there might be several times
11864# the same #defines, which is useless.  Nevertheless, we may not want to
11865# sort them, since we want the *last* AC-DEFINE to be honored.
11866uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11867sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11868rm -f confdef2sed.sed
11869
11870# This sed command replaces #undef with comments.  This is necessary, for
11871# example, in the case of _POSIX_SOURCE, which is predefined and required
11872# on some systems where configure will not decide to define it.
11873cat >>conftest.undefs <<\_ACEOF
11874s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11875_ACEOF
11876
11877# Break up conftest.defines because some shells have a limit on the size
11878# of here documents, and old seds have small limits too (100 cmds).
11879echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11880echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11881echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11882echo '  :' >>$CONFIG_STATUS
11883rm -f conftest.tail
11884while grep . conftest.defines >/dev/null
11885do
11886  # Write a limited-size here document to $tmp/defines.sed.
11887  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11888  # Speed up: don't consider the non `#define' lines.
11889  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11890  # Work around the forget-to-reset-the-flag bug.
11891  echo 't clr' >>$CONFIG_STATUS
11892  echo ': clr' >>$CONFIG_STATUS
11893  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11894  echo 'CEOF
11895  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11896  rm -f $tmp/in
11897  mv $tmp/out $tmp/in
11898' >>$CONFIG_STATUS
11899  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11900  rm -f conftest.defines
11901  mv conftest.tail conftest.defines
11902done
11903rm -f conftest.defines
11904echo '  fi # grep' >>$CONFIG_STATUS
11905echo >>$CONFIG_STATUS
11906
11907# Break up conftest.undefs because some shells have a limit on the size
11908# of here documents, and old seds have small limits too (100 cmds).
11909echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11910rm -f conftest.tail
11911while grep . conftest.undefs >/dev/null
11912do
11913  # Write a limited-size here document to $tmp/undefs.sed.
11914  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11915  # Speed up: don't consider the non `#undef'
11916  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11917  # Work around the forget-to-reset-the-flag bug.
11918  echo 't clr' >>$CONFIG_STATUS
11919  echo ': clr' >>$CONFIG_STATUS
11920  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11921  echo 'CEOF
11922  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11923  rm -f $tmp/in
11924  mv $tmp/out $tmp/in
11925' >>$CONFIG_STATUS
11926  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11927  rm -f conftest.undefs
11928  mv conftest.tail conftest.undefs
11929done
11930rm -f conftest.undefs
11931
11932cat >>$CONFIG_STATUS <<\_ACEOF
11933  # Let's still pretend it is `configure' which instantiates (i.e., don't
11934  # use $as_me), people would be surprised to read:
11935  #    /* config.h.  Generated by config.status.  */
11936  if test x"$ac_file" = x-; then
11937    echo "/* Generated by configure.  */" >$tmp/config.h
11938  else
11939    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11940  fi
11941  cat $tmp/in >>$tmp/config.h
11942  rm -f $tmp/in
11943  if test x"$ac_file" != x-; then
11944    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11945      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11946echo "$as_me: $ac_file is unchanged" >&6;}
11947    else
11948      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11950         X"$ac_file" : 'X\(//\)[^/]' \| \
11951         X"$ac_file" : 'X\(//\)$' \| \
11952         X"$ac_file" : 'X\(/\)' \| \
11953         .     : '\(.\)' 2>/dev/null ||
11954echo X"$ac_file" |
11955    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11956          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11957          /^X\(\/\/\)$/{ s//\1/; q; }
11958          /^X\(\/\).*/{ s//\1/; q; }
11959          s/.*/./; q'`
11960      { if $as_mkdir_p; then
11961    mkdir -p "$ac_dir"
11962  else
11963    as_dir="$ac_dir"
11964    as_dirs=
11965    while test ! -d "$as_dir"; do
11966      as_dirs="$as_dir $as_dirs"
11967      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11969         X"$as_dir" : 'X\(//\)[^/]' \| \
11970         X"$as_dir" : 'X\(//\)$' \| \
11971         X"$as_dir" : 'X\(/\)' \| \
11972         .     : '\(.\)' 2>/dev/null ||
11973echo X"$as_dir" |
11974    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11975          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11976          /^X\(\/\/\)$/{ s//\1/; q; }
11977          /^X\(\/\).*/{ s//\1/; q; }
11978          s/.*/./; q'`
11979    done
11980    test ! -n "$as_dirs" || mkdir $as_dirs
11981  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11982echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11983   { (exit 1); exit 1; }; }; }
11984
11985      rm -f $ac_file
11986      mv $tmp/config.h $ac_file
11987    fi
11988  else
11989    cat $tmp/config.h
11990    rm -f $tmp/config.h
11991  fi
11992# Compute $ac_file's index in $config_headers.
11993_am_stamp_count=1
11994for _am_header in $config_headers :; do
11995  case $_am_header in
11996    $ac_file | $ac_file:* )
11997      break ;;
11998    * )
11999      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12000  esac
12001done
12002echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12003$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12004         X$ac_file : 'X\(//\)[^/]' \| \
12005         X$ac_file : 'X\(//\)$' \| \
12006         X$ac_file : 'X\(/\)' \| \
12007         .     : '\(.\)' 2>/dev/null ||
12008echo X$ac_file |
12009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12010          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12011          /^X\(\/\/\)$/{ s//\1/; q; }
12012          /^X\(\/\).*/{ s//\1/; q; }
12013          s/.*/./; q'`/stamp-h$_am_stamp_count
12014done
12015_ACEOF
12016cat >>$CONFIG_STATUS <<\_ACEOF
12017
12018#
12019# CONFIG_COMMANDS section.
12020#
12021for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12022  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12023  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12024  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12025$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12026         X"$ac_dest" : 'X\(//\)[^/]' \| \
12027         X"$ac_dest" : 'X\(//\)$' \| \
12028         X"$ac_dest" : 'X\(/\)' \| \
12029         .     : '\(.\)' 2>/dev/null ||
12030echo X"$ac_dest" |
12031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12032          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12033          /^X\(\/\/\)$/{ s//\1/; q; }
12034          /^X\(\/\).*/{ s//\1/; q; }
12035          s/.*/./; q'`
12036  { if $as_mkdir_p; then
12037    mkdir -p "$ac_dir"
12038  else
12039    as_dir="$ac_dir"
12040    as_dirs=
12041    while test ! -d "$as_dir"; do
12042      as_dirs="$as_dir $as_dirs"
12043      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12045         X"$as_dir" : 'X\(//\)[^/]' \| \
12046         X"$as_dir" : 'X\(//\)$' \| \
12047         X"$as_dir" : 'X\(/\)' \| \
12048         .     : '\(.\)' 2>/dev/null ||
12049echo X"$as_dir" |
12050    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12051          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12052          /^X\(\/\/\)$/{ s//\1/; q; }
12053          /^X\(\/\).*/{ s//\1/; q; }
12054          s/.*/./; q'`
12055    done
12056    test ! -n "$as_dirs" || mkdir $as_dirs
12057  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12058echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12059   { (exit 1); exit 1; }; }; }
12060
12061  ac_builddir=.
12062
12063if test "$ac_dir" != .; then
12064  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12065  # A "../" for each directory in $ac_dir_suffix.
12066  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12067else
12068  ac_dir_suffix= ac_top_builddir=
12069fi
12070
12071case $srcdir in
12072  .)  # No --srcdir option.  We are building in place.
12073    ac_srcdir=.
12074    if test -z "$ac_top_builddir"; then
12075       ac_top_srcdir=.
12076    else
12077       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12078    fi ;;
12079  [\\/]* | ?:[\\/]* )  # Absolute path.
12080    ac_srcdir=$srcdir$ac_dir_suffix;
12081    ac_top_srcdir=$srcdir ;;
12082  *) # Relative path.
12083    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12084    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12085esac
12086
12087# Do not use `cd foo && pwd` to compute absolute paths, because
12088# the directories may not exist.
12089case `pwd` in
12090.) ac_abs_builddir="$ac_dir";;
12091*)
12092  case "$ac_dir" in
12093  .) ac_abs_builddir=`pwd`;;
12094  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12095  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12096  esac;;
12097esac
12098case $ac_abs_builddir in
12099.) ac_abs_top_builddir=${ac_top_builddir}.;;
12100*)
12101  case ${ac_top_builddir}. in
12102  .) ac_abs_top_builddir=$ac_abs_builddir;;
12103  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12104  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12105  esac;;
12106esac
12107case $ac_abs_builddir in
12108.) ac_abs_srcdir=$ac_srcdir;;
12109*)
12110  case $ac_srcdir in
12111  .) ac_abs_srcdir=$ac_abs_builddir;;
12112  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12113  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12114  esac;;
12115esac
12116case $ac_abs_builddir in
12117.) ac_abs_top_srcdir=$ac_top_srcdir;;
12118*)
12119  case $ac_top_srcdir in
12120  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12121  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12122  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12123  esac;;
12124esac
12125
12126
12127  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12128echo "$as_me: executing $ac_dest commands" >&6;}
12129  case $ac_dest in
12130    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12131  # Strip MF so we end up with the name of the file.
12132  mf=`echo "$mf" | sed -e 's/:.*$//'`
12133  # Check whether this is an Automake generated Makefile or not.
12134  # We used to match only the files named `Makefile.in', but
12135  # some people rename them; so instead we look at the file content.
12136  # Grep'ing the first line is not enough: some people post-process
12137  # each Makefile.in and add a new line on top of each file to say so.
12138  # So let's grep whole file.
12139  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12140    dirpart=`(dirname "$mf") 2>/dev/null ||
12141$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12142         X"$mf" : 'X\(//\)[^/]' \| \
12143         X"$mf" : 'X\(//\)$' \| \
12144         X"$mf" : 'X\(/\)' \| \
12145         .     : '\(.\)' 2>/dev/null ||
12146echo X"$mf" |
12147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12148          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12149          /^X\(\/\/\)$/{ s//\1/; q; }
12150          /^X\(\/\).*/{ s//\1/; q; }
12151          s/.*/./; q'`
12152  else
12153    continue
12154  fi
12155  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12156  # Extract the definition of DEP_FILES from the Makefile without
12157  # running `make'.
12158  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12159  test -z "$DEPDIR" && continue
12160  # When using ansi2knr, U may be empty or an underscore; expand it
12161  U=`sed -n 's/^U = //p' < "$mf"`
12162  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12163  # We invoke sed twice because it is the simplest approach to
12164  # changing $(DEPDIR) to its actual value in the expansion.
12165  for file in `sed -n '
12166    /^DEP_FILES = .*\\\\$/ {
12167      s/^DEP_FILES = //
12168      :loop
12169        s/\\\\$//
12170        p
12171        n
12172        /\\\\$/ b loop
12173      p
12174    }
12175    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12176       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12177    # Make sure the directory exists.
12178    test -f "$dirpart/$file" && continue
12179    fdir=`(dirname "$file") 2>/dev/null ||
12180$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12181         X"$file" : 'X\(//\)[^/]' \| \
12182         X"$file" : 'X\(//\)$' \| \
12183         X"$file" : 'X\(/\)' \| \
12184         .     : '\(.\)' 2>/dev/null ||
12185echo X"$file" |
12186    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12187          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12188          /^X\(\/\/\)$/{ s//\1/; q; }
12189          /^X\(\/\).*/{ s//\1/; q; }
12190          s/.*/./; q'`
12191    { if $as_mkdir_p; then
12192    mkdir -p $dirpart/$fdir
12193  else
12194    as_dir=$dirpart/$fdir
12195    as_dirs=
12196    while test ! -d "$as_dir"; do
12197      as_dirs="$as_dir $as_dirs"
12198      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12200         X"$as_dir" : 'X\(//\)[^/]' \| \
12201         X"$as_dir" : 'X\(//\)$' \| \
12202         X"$as_dir" : 'X\(/\)' \| \
12203         .     : '\(.\)' 2>/dev/null ||
12204echo X"$as_dir" |
12205    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12206          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12207          /^X\(\/\/\)$/{ s//\1/; q; }
12208          /^X\(\/\).*/{ s//\1/; q; }
12209          s/.*/./; q'`
12210    done
12211    test ! -n "$as_dirs" || mkdir $as_dirs
12212  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12213echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12214   { (exit 1); exit 1; }; }; }
12215
12216    # echo "creating $dirpart/$file"
12217    echo '# dummy' > "$dirpart/$file"
12218  done
12219done
12220 ;;
12221  esac
12222done
12223_ACEOF
12224
12225cat >>$CONFIG_STATUS <<\_ACEOF
12226
12227{ (exit 0); exit 0; }
12228_ACEOF
12229chmod +x $CONFIG_STATUS
12230ac_clean_files=$ac_clean_files_save
12231
12232
12233# configure is writing to config.log, and then calls config.status.
12234# config.status does its own redirection, appending to config.log.
12235# Unfortunately, on DOS this fails, as config.log is still kept open
12236# by configure, so config.status won't be able to write to it; its
12237# output is simply discarded.  So we exec the FD to /dev/null,
12238# effectively closing config.log, so it can be properly (re)opened and
12239# appended to by config.status.  When coming back to configure, we
12240# need to make the FD available again.
12241if test "$no_create" != yes; then
12242  ac_cs_success=:
12243  ac_config_status_args=
12244  test "$silent" = yes &&
12245    ac_config_status_args="$ac_config_status_args --quiet"
12246  exec 5>/dev/null
12247  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12248  exec 5>>config.log
12249  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12250  # would make configure fail if this is the last instruction.
12251  $ac_cs_success || { (exit 1); exit 1; }
12252fi
12253
Note: See TracBrowser for help on using the repository browser.