Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/configure @ 5586

Last change on this file since 5586 was 5581, checked in by snellen, 19 years ago

synchronizeable updated, connection_monitor.h and connection_monitor.cc updated

  • Property svn:executable set to *
File size: 387.1 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.2_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.2_alpha'
273PACKAGE_STRING='orxonox 0.3.2_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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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.2_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.2_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
870that logs differently on the many modules of orxonox.mode
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
882  --with-sub-projects     also builds the subProjects while make from srcdir
883  --with-tardis           sets all the necesary environment flags for
884                          linux-TARDIS boxes at the ETH Zurich
885
886Some influential environment variables:
887  CXX         C++ compiler command
888  CXXFLAGS    C++ compiler flags
889  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
890              nonstandard directory <lib dir>
891  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
892              headers in a nonstandard directory <include dir>
893  CC          C compiler command
894  CFLAGS      C compiler flags
895  CPP         C preprocessor
896
897Use these variables to override the choices made by `configure' or to help
898it to find libraries and programs with nonstandard names/locations.
899
900Report bugs to <orxonox-dev at mail.datacore.ch>.
901_ACEOF
902fi
903
904if test "$ac_init_help" = "recursive"; then
905  # If there are subdirs, report their specific --help.
906  ac_popdir=`pwd`
907  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908    test -d $ac_dir || continue
909    ac_builddir=.
910
911if test "$ac_dir" != .; then
912  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913  # A "../" for each directory in $ac_dir_suffix.
914  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915else
916  ac_dir_suffix= ac_top_builddir=
917fi
918
919case $srcdir in
920  .)  # No --srcdir option.  We are building in place.
921    ac_srcdir=.
922    if test -z "$ac_top_builddir"; then
923       ac_top_srcdir=.
924    else
925       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926    fi ;;
927  [\\/]* | ?:[\\/]* )  # Absolute path.
928    ac_srcdir=$srcdir$ac_dir_suffix;
929    ac_top_srcdir=$srcdir ;;
930  *) # Relative path.
931    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932    ac_top_srcdir=$ac_top_builddir$srcdir ;;
933esac
934
935# Do not use `cd foo && pwd` to compute absolute paths, because
936# the directories may not exist.
937case `pwd` in
938.) ac_abs_builddir="$ac_dir";;
939*)
940  case "$ac_dir" in
941  .) ac_abs_builddir=`pwd`;;
942  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944  esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_top_builddir=${ac_top_builddir}.;;
948*)
949  case ${ac_top_builddir}. in
950  .) ac_abs_top_builddir=$ac_abs_builddir;;
951  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953  esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_srcdir=$ac_srcdir;;
957*)
958  case $ac_srcdir in
959  .) ac_abs_srcdir=$ac_abs_builddir;;
960  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962  esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_top_srcdir=$ac_top_srcdir;;
966*)
967  case $ac_top_srcdir in
968  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971  esac;;
972esac
973
974    cd $ac_dir
975    # Check for guested configure; otherwise get Cygnus style configure.
976    if test -f $ac_srcdir/configure.gnu; then
977      echo
978      $SHELL $ac_srcdir/configure.gnu  --help=recursive
979    elif test -f $ac_srcdir/configure; then
980      echo
981      $SHELL $ac_srcdir/configure  --help=recursive
982    elif test -f $ac_srcdir/configure.ac ||
983           test -f $ac_srcdir/configure.in; then
984      echo
985      $ac_configure --help
986    else
987      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988    fi
989    cd "$ac_popdir"
990  done
991fi
992
993test -n "$ac_init_help" && exit 0
994if $ac_init_version; then
995  cat <<\_ACEOF
996orxonox configure 0.3.2_alpha
997generated by GNU Autoconf 2.59
998
999Copyright (C) 2003 Free Software Foundation, Inc.
1000This configure script is free software; the Free Software Foundation
1001gives unlimited permission to copy, distribute and modify it.
1002_ACEOF
1003  exit 0
1004fi
1005exec 5>config.log
1006cat >&5 <<_ACEOF
1007This file contains any messages produced by compilers while
1008running configure, to aid debugging if configure makes a mistake.
1009
1010It was created by orxonox $as_me 0.3.2_alpha, which was
1011generated by GNU Autoconf 2.59.  Invocation command line was
1012
1013  $ $0 $@
1014
1015_ACEOF
1016{
1017cat <<_ASUNAME
1018## --------- ##
1019## Platform. ##
1020## --------- ##
1021
1022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1030
1031/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1032/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1033/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1035/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1036/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038
1039_ASUNAME
1040
1041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042for as_dir in $PATH
1043do
1044  IFS=$as_save_IFS
1045  test -z "$as_dir" && as_dir=.
1046  echo "PATH: $as_dir"
1047done
1048
1049} >&5
1050
1051cat >&5 <<_ACEOF
1052
1053
1054## ----------- ##
1055## Core tests. ##
1056## ----------- ##
1057
1058_ACEOF
1059
1060
1061# Keep a trace of the command line.
1062# Strip out --no-create and --no-recursion so they do not pile up.
1063# Strip out --silent because we don't want to record it for future runs.
1064# Also quote any args containing shell meta-characters.
1065# Make two passes to allow for proper duplicate-argument suppression.
1066ac_configure_args=
1067ac_configure_args0=
1068ac_configure_args1=
1069ac_sep=
1070ac_must_keep_next=false
1071for ac_pass in 1 2
1072do
1073  for ac_arg
1074  do
1075    case $ac_arg in
1076    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078    | -silent | --silent | --silen | --sile | --sil)
1079      continue ;;
1080    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082    esac
1083    case $ac_pass in
1084    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085    2)
1086      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087      if test $ac_must_keep_next = true; then
1088        ac_must_keep_next=false # Got value, back to normal.
1089      else
1090        case $ac_arg in
1091          *=* | --config-cache | -C | -disable-* | --disable-* \
1092          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094          | -with-* | --with-* | -without-* | --without-* | --x)
1095            case "$ac_configure_args0 " in
1096              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097            esac
1098            ;;
1099          -* ) ac_must_keep_next=true ;;
1100        esac
1101      fi
1102      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103      # Get rid of the leading space.
1104      ac_sep=" "
1105      ;;
1106    esac
1107  done
1108done
1109$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111
1112# When interrupted or exit'd, cleanup temporary files, and complete
1113# config.log.  We remove comments because anyway the quotes in there
1114# would cause problems or look ugly.
1115# WARNING: Be sure not to use single quotes in there, as some shells,
1116# such as our DU 5.0 friend, will then `close' the trap.
1117trap 'exit_status=$?
1118  # Save into config.log some information that might help in debugging.
1119  {
1120    echo
1121
1122    cat <<\_ASBOX
1123## ---------------- ##
1124## Cache variables. ##
1125## ---------------- ##
1126_ASBOX
1127    echo
1128    # The following way of writing the cache mishandles newlines in values,
1129{
1130  (set) 2>&1 |
1131    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132    *ac_space=\ *)
1133      sed -n \
1134        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136      ;;
1137    *)
1138      sed -n \
1139        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140      ;;
1141    esac;
1142}
1143    echo
1144
1145    cat <<\_ASBOX
1146## ----------------- ##
1147## Output variables. ##
1148## ----------------- ##
1149_ASBOX
1150    echo
1151    for ac_var in $ac_subst_vars
1152    do
1153      eval ac_val=$`echo $ac_var`
1154      echo "$ac_var='"'"'$ac_val'"'"'"
1155    done | sort
1156    echo
1157
1158    if test -n "$ac_subst_files"; then
1159      cat <<\_ASBOX
1160## ------------- ##
1161## Output files. ##
1162## ------------- ##
1163_ASBOX
1164      echo
1165      for ac_var in $ac_subst_files
1166      do
1167        eval ac_val=$`echo $ac_var`
1168        echo "$ac_var='"'"'$ac_val'"'"'"
1169      done | sort
1170      echo
1171    fi
1172
1173    if test -s confdefs.h; then
1174      cat <<\_ASBOX
1175## ----------- ##
1176## confdefs.h. ##
1177## ----------- ##
1178_ASBOX
1179      echo
1180      sed "/^$/d" confdefs.h | sort
1181      echo
1182    fi
1183    test "$ac_signal" != 0 &&
1184      echo "$as_me: caught signal $ac_signal"
1185    echo "$as_me: exit $exit_status"
1186  } >&5
1187  rm -f core *.core &&
1188  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189    exit $exit_status
1190     ' 0
1191for ac_signal in 1 2 13 15; do
1192  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193done
1194ac_signal=0
1195
1196# confdefs.h avoids OS command line length limits that DEFS can exceed.
1197rm -rf conftest* confdefs.h
1198# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199echo >confdefs.h
1200
1201# Predefined preprocessor variables.
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_NAME "$PACKAGE_NAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_VERSION "$PACKAGE_VERSION"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_STRING "$PACKAGE_STRING"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225_ACEOF
1226
1227
1228# Let the site file select an alternate cache file if it wants to.
1229# Prefer explicitly selected file to automatically selected ones.
1230if test -z "$CONFIG_SITE"; then
1231  if test "x$prefix" != xNONE; then
1232    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233  else
1234    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235  fi
1236fi
1237for ac_site_file in $CONFIG_SITE; do
1238  if test -r "$ac_site_file"; then
1239    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240echo "$as_me: loading site script $ac_site_file" >&6;}
1241    sed 's/^/| /' "$ac_site_file" >&5
1242    . "$ac_site_file"
1243  fi
1244done
1245
1246if test -r "$cache_file"; then
1247  # Some versions of bash will fail to source /dev/null (special
1248  # files actually), so we avoid doing that.
1249  if test -f "$cache_file"; then
1250    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251echo "$as_me: loading cache $cache_file" >&6;}
1252    case $cache_file in
1253      [\\/]* | ?:[\\/]* ) . $cache_file;;
1254      *)                      . ./$cache_file;;
1255    esac
1256  fi
1257else
1258  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259echo "$as_me: creating cache $cache_file" >&6;}
1260  >$cache_file
1261fi
1262
1263# Check that the precious variables saved in the cache have kept the same
1264# value.
1265ac_cache_corrupted=false
1266for ac_var in `(set) 2>&1 |
1267               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269  eval ac_new_set=\$ac_env_${ac_var}_set
1270  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271  eval ac_new_val="\$ac_env_${ac_var}_value"
1272  case $ac_old_set,$ac_new_set in
1273    set,)
1274      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276      ac_cache_corrupted=: ;;
1277    ,set)
1278      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280      ac_cache_corrupted=: ;;
1281    ,);;
1282    *)
1283      if test "x$ac_old_val" != "x$ac_new_val"; then
1284        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287echo "$as_me:   former value:  $ac_old_val" >&2;}
1288        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289echo "$as_me:   current value: $ac_new_val" >&2;}
1290        ac_cache_corrupted=:
1291      fi;;
1292  esac
1293  # Pass precious variables to config.status.
1294  if test "$ac_new_set" = set; then
1295    case $ac_new_val in
1296    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298    *) ac_arg=$ac_var=$ac_new_val ;;
1299    esac
1300    case " $ac_configure_args " in
1301      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303    esac
1304  fi
1305done
1306if $ac_cache_corrupted; then
1307  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311   { (exit 1); exit 1; }; }
1312fi
1313
1314ac_ext=c
1315ac_cpp='$CPP $CPPFLAGS'
1316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
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## Detect the canonical host and target build environment.
1348ac_aux_dir=
1349for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1350  if test -f $ac_dir/install-sh; then
1351    ac_aux_dir=$ac_dir
1352    ac_install_sh="$ac_aux_dir/install-sh -c"
1353    break
1354  elif test -f $ac_dir/install.sh; then
1355    ac_aux_dir=$ac_dir
1356    ac_install_sh="$ac_aux_dir/install.sh -c"
1357    break
1358  elif test -f $ac_dir/shtool; then
1359    ac_aux_dir=$ac_dir
1360    ac_install_sh="$ac_aux_dir/shtool install -c"
1361    break
1362  fi
1363done
1364if test -z "$ac_aux_dir"; then
1365  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1366echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1367   { (exit 1); exit 1; }; }
1368fi
1369ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1370ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1371ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1372
1373# Make sure we can run config.sub.
1374$ac_config_sub sun4 >/dev/null 2>&1 ||
1375  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377   { (exit 1); exit 1; }; }
1378
1379echo "$as_me:$LINENO: checking build system type" >&5
1380echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381if test "${ac_cv_build+set}" = set; then
1382  echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384  ac_cv_build_alias=$build_alias
1385test -z "$ac_cv_build_alias" &&
1386  ac_cv_build_alias=`$ac_config_guess`
1387test -z "$ac_cv_build_alias" &&
1388  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390   { (exit 1); exit 1; }; }
1391ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394   { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398echo "${ECHO_T}$ac_cv_build" >&6
1399build=$ac_cv_build
1400build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405echo "$as_me:$LINENO: checking host system type" >&5
1406echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407if test "${ac_cv_host+set}" = set; then
1408  echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410  ac_cv_host_alias=$host_alias
1411test -z "$ac_cv_host_alias" &&
1412  ac_cv_host_alias=$ac_cv_build_alias
1413ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416   { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420echo "${ECHO_T}$ac_cv_host" >&6
1421host=$ac_cv_host
1422host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427echo "$as_me:$LINENO: checking target system type" >&5
1428echo $ECHO_N "checking target system type... $ECHO_C" >&6
1429if test "${ac_cv_target+set}" = set; then
1430  echo $ECHO_N "(cached) $ECHO_C" >&6
1431else
1432  ac_cv_target_alias=$target_alias
1433test "x$ac_cv_target_alias" = "x" &&
1434  ac_cv_target_alias=$ac_cv_host_alias
1435ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1436  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1437echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1438   { (exit 1); exit 1; }; }
1439
1440fi
1441echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1442echo "${ECHO_T}$ac_cv_target" >&6
1443target=$ac_cv_target
1444target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449# The aliases save the names the user supplied, while $host etc.
1450# will get canonicalized.
1451test -n "$target_alias" &&
1452  test "$program_prefix$program_suffix$program_transform_name" = \
1453    NONENONEs,x,x, &&
1454  program_prefix=${target_alias}-
1455
1456am__api_version="1.9"
1457# Find a good install program.  We prefer a C program (faster),
1458# so one script is as good as another.  But avoid the broken or
1459# incompatible versions:
1460# SysV /etc/install, /usr/sbin/install
1461# SunOS /usr/etc/install
1462# IRIX /sbin/install
1463# AIX /bin/install
1464# AmigaOS /C/install, which installs bootblocks on floppy discs
1465# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1466# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1467# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1468# OS/2's system install, which has a completely different semantic
1469# ./install, which can be erroneously created by make from ./install.sh.
1470echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1471echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1472if test -z "$INSTALL"; then
1473if test "${ac_cv_path_install+set}" = set; then
1474  echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479  IFS=$as_save_IFS
1480  test -z "$as_dir" && as_dir=.
1481  # Account for people who put trailing slashes in PATH elements.
1482case $as_dir/ in
1483  ./ | .// | /cC/* | \
1484  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1485  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1486  /usr/ucb/* ) ;;
1487  *)
1488    # OSF1 and SCO ODT 3.0 have their own names for install.
1489    # Don't use installbsd from OSF since it installs stuff as root
1490    # by default.
1491    for ac_prog in ginstall scoinst install; do
1492      for ac_exec_ext in '' $ac_executable_extensions; do
1493        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1494          if test $ac_prog = install &&
1495            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496            # AIX install.  It has an incompatible calling convention.
1497            :
1498          elif test $ac_prog = install &&
1499            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1500            # program-specific install script used by HP pwplus--don't use.
1501            :
1502          else
1503            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1504            break 3
1505          fi
1506        fi
1507      done
1508    done
1509    ;;
1510esac
1511done
1512
1513
1514fi
1515  if test "${ac_cv_path_install+set}" = set; then
1516    INSTALL=$ac_cv_path_install
1517  else
1518    # As a last resort, use the slow shell script.  We don't cache a
1519    # path for INSTALL within a source directory, because that will
1520    # break other packages using the cache if that directory is
1521    # removed, or if the path is relative.
1522    INSTALL=$ac_install_sh
1523  fi
1524fi
1525echo "$as_me:$LINENO: result: $INSTALL" >&5
1526echo "${ECHO_T}$INSTALL" >&6
1527
1528# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1529# It thinks the first close brace ends the variable substitution.
1530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1531
1532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1533
1534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1535
1536echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1537echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1538# Just in case
1539sleep 1
1540echo timestamp > conftest.file
1541# Do `set' in a subshell so we don't clobber the current shell's
1542# arguments.  Must try -L first in case configure is actually a
1543# symlink; some systems play weird games with the mod time of symlinks
1544# (eg FreeBSD returns the mod time of the symlink's containing
1545# directory).
1546if (
1547   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1548   if test "$*" = "X"; then
1549      # -L didn't work.
1550      set X `ls -t $srcdir/configure conftest.file`
1551   fi
1552   rm -f conftest.file
1553   if test "$*" != "X $srcdir/configure conftest.file" \
1554      && test "$*" != "X conftest.file $srcdir/configure"; then
1555
1556      # If neither matched, then we have a broken ls.  This can happen
1557      # if, for instance, CONFIG_SHELL is bash and it inherits a
1558      # broken ls alias from the environment.  This has actually
1559      # happened.  Such a system could not be considered "sane".
1560      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1561alias in your environment" >&5
1562echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1563alias in your environment" >&2;}
1564   { (exit 1); exit 1; }; }
1565   fi
1566
1567   test "$2" = conftest.file
1568   )
1569then
1570   # Ok.
1571   :
1572else
1573   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1574Check your system clock" >&5
1575echo "$as_me: error: newly created file is older than distributed files!
1576Check your system clock" >&2;}
1577   { (exit 1); exit 1; }; }
1578fi
1579echo "$as_me:$LINENO: result: yes" >&5
1580echo "${ECHO_T}yes" >&6
1581test "$program_prefix" != NONE &&
1582  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1583# Use a double $ so make ignores it.
1584test "$program_suffix" != NONE &&
1585  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1586# Double any \ or $.  echo might interpret backslashes.
1587# By default was `s,x,x', remove it if useless.
1588cat <<\_ACEOF >conftest.sed
1589s/[\\$]/&&/g;s/;s,x,x,$//
1590_ACEOF
1591program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1592rm conftest.sed
1593
1594# expand $ac_aux_dir to an absolute path
1595am_aux_dir=`cd $ac_aux_dir && pwd`
1596
1597test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1598# Use eval to expand $SHELL
1599if eval "$MISSING --run true"; then
1600  am_missing_run="$MISSING --run "
1601else
1602  am_missing_run=
1603  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1604echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1605fi
1606
1607if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1608  # We used to keeping the `.' as first argument, in order to
1609  # allow $(mkdir_p) to be used without argument.  As in
1610  #   $(mkdir_p) $(somedir)
1611  # where $(somedir) is conditionally defined.  However this is wrong
1612  # for two reasons:
1613  #  1. if the package is installed by a user who cannot write `.'
1614  #     make install will fail,
1615  #  2. the above comment should most certainly read
1616  #     $(mkdir_p) $(DESTDIR)$(somedir)
1617  #     so it does not work when $(somedir) is undefined and
1618  #     $(DESTDIR) is not.
1619  #  To support the latter case, we have to write
1620  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1621  #  so the `.' trick is pointless.
1622  mkdir_p='mkdir -p --'
1623else
1624  # On NextStep and OpenStep, the `mkdir' command does not
1625  # recognize any option.  It will interpret all options as
1626  # directories to create, and then abort because `.' already
1627  # exists.
1628  for d in ./-p ./--version;
1629  do
1630    test -d $d && rmdir $d
1631  done
1632  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1633  if test -f "$ac_aux_dir/mkinstalldirs"; then
1634    mkdir_p='$(mkinstalldirs)'
1635  else
1636    mkdir_p='$(install_sh) -d'
1637  fi
1638fi
1639
1640for ac_prog in gawk mawk nawk awk
1641do
1642  # Extract the first word of "$ac_prog", so it can be a program name with args.
1643set dummy $ac_prog; ac_word=$2
1644echo "$as_me:$LINENO: checking for $ac_word" >&5
1645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646if test "${ac_cv_prog_AWK+set}" = set; then
1647  echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
1649  if test -n "$AWK"; then
1650  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1651else
1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655  IFS=$as_save_IFS
1656  test -z "$as_dir" && as_dir=.
1657  for ac_exec_ext in '' $ac_executable_extensions; do
1658  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659    ac_cv_prog_AWK="$ac_prog"
1660    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661    break 2
1662  fi
1663done
1664done
1665
1666fi
1667fi
1668AWK=$ac_cv_prog_AWK
1669if test -n "$AWK"; then
1670  echo "$as_me:$LINENO: result: $AWK" >&5
1671echo "${ECHO_T}$AWK" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677  test -n "$AWK" && break
1678done
1679
1680echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1681echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1682set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1683if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  cat >conftest.make <<\_ACEOF
1687all:
1688        @echo 'ac_maketemp="$(MAKE)"'
1689_ACEOF
1690# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1691eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1692if test -n "$ac_maketemp"; then
1693  eval ac_cv_prog_make_${ac_make}_set=yes
1694else
1695  eval ac_cv_prog_make_${ac_make}_set=no
1696fi
1697rm -f conftest.make
1698fi
1699if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1700  echo "$as_me:$LINENO: result: yes" >&5
1701echo "${ECHO_T}yes" >&6
1702  SET_MAKE=
1703else
1704  echo "$as_me:$LINENO: result: no" >&5
1705echo "${ECHO_T}no" >&6
1706  SET_MAKE="MAKE=${MAKE-make}"
1707fi
1708
1709rm -rf .tst 2>/dev/null
1710mkdir .tst 2>/dev/null
1711if test -d .tst; then
1712  am__leading_dot=.
1713else
1714  am__leading_dot=_
1715fi
1716rmdir .tst 2>/dev/null
1717
1718# test to see if srcdir already configured
1719if test "`cd $srcdir && pwd`" != "`pwd`" &&
1720   test -f $srcdir/config.status; then
1721  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1722echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1723   { (exit 1); exit 1; }; }
1724fi
1725
1726# test whether we have cygpath
1727if test -z "$CYGPATH_W"; then
1728  if (cygpath --version) >/dev/null 2>/dev/null; then
1729    CYGPATH_W='cygpath -w'
1730  else
1731    CYGPATH_W=echo
1732  fi
1733fi
1734
1735
1736# Define the identity of the package.
1737 PACKAGE='orxonox'
1738 VERSION='0.3.2_alpha'
1739
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE "$PACKAGE"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define VERSION "$VERSION"
1748_ACEOF
1749
1750# Some tools Automake needs.
1751
1752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1753
1754
1755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1756
1757
1758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1759
1760
1761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1762
1763
1764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1765
1766install_sh=${install_sh-"$am_aux_dir/install-sh"}
1767
1768# Installed binaries are usually stripped using `strip' when the user
1769# run `make install-strip'.  However `strip' might not be the right
1770# tool to use in cross-compilation environments, therefore Automake
1771# will honor the `STRIP' environment variable to overrule this program.
1772if test "$cross_compiling" != no; then
1773  if test -n "$ac_tool_prefix"; then
1774  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1775set dummy ${ac_tool_prefix}strip; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_STRIP+set}" = set; then
1779  echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781  if test -n "$STRIP"; then
1782  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1783else
1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785for as_dir in $PATH
1786do
1787  IFS=$as_save_IFS
1788  test -z "$as_dir" && as_dir=.
1789  for ac_exec_ext in '' $ac_executable_extensions; do
1790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793    break 2
1794  fi
1795done
1796done
1797
1798fi
1799fi
1800STRIP=$ac_cv_prog_STRIP
1801if test -n "$STRIP"; then
1802  echo "$as_me:$LINENO: result: $STRIP" >&5
1803echo "${ECHO_T}$STRIP" >&6
1804else
1805  echo "$as_me:$LINENO: result: no" >&5
1806echo "${ECHO_T}no" >&6
1807fi
1808
1809fi
1810if test -z "$ac_cv_prog_STRIP"; then
1811  ac_ct_STRIP=$STRIP
1812  # Extract the first word of "strip", so it can be a program name with args.
1813set dummy strip; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1817  echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819  if test -n "$ac_ct_STRIP"; then
1820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829    ac_cv_prog_ac_ct_STRIP="strip"
1830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    break 2
1832  fi
1833done
1834done
1835
1836  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1837fi
1838fi
1839ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1840if test -n "$ac_ct_STRIP"; then
1841  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1842echo "${ECHO_T}$ac_ct_STRIP" >&6
1843else
1844  echo "$as_me:$LINENO: result: no" >&5
1845echo "${ECHO_T}no" >&6
1846fi
1847
1848  STRIP=$ac_ct_STRIP
1849else
1850  STRIP="$ac_cv_prog_STRIP"
1851fi
1852
1853fi
1854INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1855
1856# We need awk for the "check" target.  The system "awk" is bad on
1857# some platforms.
1858# Always define AMTAR for backward compatibility.
1859
1860AMTAR=${AMTAR-"${am_missing_run}tar"}
1861
1862am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1863
1864
1865
1866
1867
1868
1869
1870          ac_config_headers="$ac_config_headers config.h"
1871
1872
1873#########################
1874## Checks for programs ##
1875#########################
1876ac_ext=cc
1877ac_cpp='$CXXCPP $CPPFLAGS'
1878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1881if test -n "$ac_tool_prefix"; then
1882  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1883  do
1884    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1886echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_CXX+set}" = set; then
1889  echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891  if test -n "$CXX"; then
1892  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897  IFS=$as_save_IFS
1898  test -z "$as_dir" && as_dir=.
1899  for ac_exec_ext in '' $ac_executable_extensions; do
1900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908fi
1909fi
1910CXX=$ac_cv_prog_CXX
1911if test -n "$CXX"; then
1912  echo "$as_me:$LINENO: result: $CXX" >&5
1913echo "${ECHO_T}$CXX" >&6
1914else
1915  echo "$as_me:$LINENO: result: no" >&5
1916echo "${ECHO_T}no" >&6
1917fi
1918
1919    test -n "$CXX" && break
1920  done
1921fi
1922if test -z "$CXX"; then
1923  ac_ct_CXX=$CXX
1924  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1925do
1926  # Extract the first word of "$ac_prog", so it can be a program name with args.
1927set dummy $ac_prog; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$ac_ct_CXX"; then
1934  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1935else
1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939  IFS=$as_save_IFS
1940  test -z "$as_dir" && as_dir=.
1941  for ac_exec_ext in '' $ac_executable_extensions; do
1942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943    ac_cv_prog_ac_ct_CXX="$ac_prog"
1944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945    break 2
1946  fi
1947done
1948done
1949
1950fi
1951fi
1952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1953if test -n "$ac_ct_CXX"; then
1954  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1955echo "${ECHO_T}$ac_ct_CXX" >&6
1956else
1957  echo "$as_me:$LINENO: result: no" >&5
1958echo "${ECHO_T}no" >&6
1959fi
1960
1961  test -n "$ac_ct_CXX" && break
1962done
1963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1964
1965  CXX=$ac_ct_CXX
1966fi
1967
1968
1969# Provide some information about the compiler.
1970echo "$as_me:$LINENO:" \
1971     "checking for C++ compiler version" >&5
1972ac_compiler=`set X $ac_compile; echo $2`
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1974  (eval $ac_compiler --version </dev/null >&5) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); }
1978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1979  (eval $ac_compiler -v </dev/null >&5) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }
1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1984  (eval $ac_compiler -V </dev/null >&5) 2>&5
1985  ac_status=$?
1986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987  (exit $ac_status); }
1988
1989cat >conftest.$ac_ext <<_ACEOF
1990/* confdefs.h.  */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h.  */
1995
1996int
1997main ()
1998{
1999
2000  ;
2001  return 0;
2002}
2003_ACEOF
2004ac_clean_files_save=$ac_clean_files
2005ac_clean_files="$ac_clean_files a.out a.exe b.out"
2006# Try to create an executable without -o first, disregard a.out.
2007# It will help us diagnose broken compilers, and finding out an intuition
2008# of exeext.
2009echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2010echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2011ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2012if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2013  (eval $ac_link_default) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; then
2017  # Find the output, starting from the most likely.  This scheme is
2018# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019# resort.
2020
2021# Be careful to initialize this variable, since it used to be cached.
2022# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023ac_cv_exeext=
2024# b.out is created by i960 compilers.
2025for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2026do
2027  test -f "$ac_file" || continue
2028  case $ac_file in
2029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2030        ;;
2031    conftest.$ac_ext )
2032        # This is the source file.
2033        ;;
2034    [ab].out )
2035        # We found the default executable, but exeext='' is most
2036        # certainly right.
2037        break;;
2038    *.* )
2039        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040        # FIXME: I believe we export ac_cv_exeext for Libtool,
2041        # but it would be cool to find out if it's true.  Does anybody
2042        # maintain Libtool? --akim.
2043        export ac_cv_exeext
2044        break;;
2045    * )
2046        break;;
2047  esac
2048done
2049else
2050  echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2054See \`config.log' for more details." >&5
2055echo "$as_me: error: C++ compiler cannot create executables
2056See \`config.log' for more details." >&2;}
2057   { (exit 77); exit 77; }; }
2058fi
2059
2060ac_exeext=$ac_cv_exeext
2061echo "$as_me:$LINENO: result: $ac_file" >&5
2062echo "${ECHO_T}$ac_file" >&6
2063
2064# Check the compiler produces executables we can run.  If not, either
2065# the compiler is broken, or we cross compile.
2066echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2067echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069# If not cross compiling, check that we can run a simple program.
2070if test "$cross_compiling" != yes; then
2071  if { ac_try='./$ac_file'
2072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073  (eval $ac_try) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; }; then
2077    cross_compiling=no
2078  else
2079    if test "$cross_compiling" = maybe; then
2080        cross_compiling=yes
2081    else
2082        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2083If you meant to cross compile, use \`--host'.
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot run C++ compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089    fi
2090  fi
2091fi
2092echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6
2094
2095rm -f a.out a.exe conftest$ac_cv_exeext b.out
2096ac_clean_files=$ac_clean_files_save
2097# Check the compiler produces executables we can run.  If not, either
2098# the compiler is broken, or we cross compile.
2099echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2100echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2101echo "$as_me:$LINENO: result: $cross_compiling" >&5
2102echo "${ECHO_T}$cross_compiling" >&6
2103
2104echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107  (eval $ac_link) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; then
2111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2113# work properly (i.e., refer to `conftest.exe'), while it won't with
2114# `rm'.
2115for ac_file in conftest.exe conftest conftest.*; do
2116  test -f "$ac_file" || continue
2117  case $ac_file in
2118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120          export ac_cv_exeext
2121          break;;
2122    * ) break;;
2123  esac
2124done
2125else
2126  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&2;}
2130   { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest$ac_cv_exeext
2134echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2135echo "${ECHO_T}$ac_cv_exeext" >&6
2136
2137rm -f conftest.$ac_ext
2138EXEEXT=$ac_cv_exeext
2139ac_exeext=$EXEEXT
2140echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2142if test "${ac_cv_objext+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160rm -f conftest.o conftest.obj
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162  (eval $ac_compile) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167  case $ac_file in
2168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2169    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170       break;;
2171  esac
2172done
2173else
2174  echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&2;}
2181   { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2187echo "${ECHO_T}$ac_cv_objext" >&6
2188OBJEXT=$ac_cv_objext
2189ac_objext=$OBJEXT
2190echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2191echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2192if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206       choke me
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>conftest.er1
2216  ac_status=$?
2217  grep -v '^ *+' conftest.er1 >conftest.err
2218  rm -f conftest.er1
2219  cat conftest.err >&5
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224  (eval $ac_try) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; } &&
2228         { ac_try='test -s conftest.$ac_objext'
2229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230  (eval $ac_try) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }; }; then
2234  ac_compiler_gnu=yes
2235else
2236  echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239ac_compiler_gnu=no
2240fi
2241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2243
2244fi
2245echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2246echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2247GXX=`test $ac_compiler_gnu = yes && echo yes`
2248ac_test_CXXFLAGS=${CXXFLAGS+set}
2249ac_save_CXXFLAGS=$CXXFLAGS
2250CXXFLAGS="-g"
2251echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2252echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2253if test "${ac_cv_prog_cxx_g+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256  cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h.  */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h.  */
2262
2263int
2264main ()
2265{
2266
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271rm -f conftest.$ac_objext
2272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273  (eval $ac_compile) 2>conftest.er1
2274  ac_status=$?
2275  grep -v '^ *+' conftest.er1 >conftest.err
2276  rm -f conftest.er1
2277  cat conftest.err >&5
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); } &&
2280         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282  (eval $ac_try) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; } &&
2286         { ac_try='test -s conftest.$ac_objext'
2287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288  (eval $ac_try) 2>&5
2289  ac_status=$?
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); }; }; then
2292  ac_cv_prog_cxx_g=yes
2293else
2294  echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297ac_cv_prog_cxx_g=no
2298fi
2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300fi
2301echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2302echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2303if test "$ac_test_CXXFLAGS" = set; then
2304  CXXFLAGS=$ac_save_CXXFLAGS
2305elif test $ac_cv_prog_cxx_g = yes; then
2306  if test "$GXX" = yes; then
2307    CXXFLAGS="-g -O2"
2308  else
2309    CXXFLAGS="-g"
2310  fi
2311else
2312  if test "$GXX" = yes; then
2313    CXXFLAGS="-O2"
2314  else
2315    CXXFLAGS=
2316  fi
2317fi
2318for ac_declaration in \
2319   '' \
2320   'extern "C" void std::exit (int) throw (); using std::exit;' \
2321   'extern "C" void std::exit (int); using std::exit;' \
2322   'extern "C" void exit (int) throw ();' \
2323   'extern "C" void exit (int);' \
2324   'void exit (int);'
2325do
2326  cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h.  */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h.  */
2332$ac_declaration
2333#include <stdlib.h>
2334int
2335main ()
2336{
2337exit (42);
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>conftest.er1
2345  ac_status=$?
2346  grep -v '^ *+' conftest.er1 >conftest.err
2347  rm -f conftest.er1
2348  cat conftest.err >&5
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); } &&
2351         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353  (eval $ac_try) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; } &&
2357         { ac_try='test -s conftest.$ac_objext'
2358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359  (eval $ac_try) 2>&5
2360  ac_status=$?
2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362  (exit $ac_status); }; }; then
2363  :
2364else
2365  echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368continue
2369fi
2370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371  cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377$ac_declaration
2378int
2379main ()
2380{
2381exit (42);
2382  ;
2383  return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388  (eval $ac_compile) 2>conftest.er1
2389  ac_status=$?
2390  grep -v '^ *+' conftest.er1 >conftest.err
2391  rm -f conftest.er1
2392  cat conftest.err >&5
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); } &&
2395         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; } &&
2401         { ac_try='test -s conftest.$ac_objext'
2402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403  (eval $ac_try) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; }; then
2407  break
2408else
2409  echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412fi
2413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414done
2415rm -f conftest*
2416if test -n "$ac_declaration"; then
2417  echo '#ifdef __cplusplus' >>confdefs.h
2418  echo $ac_declaration      >>confdefs.h
2419  echo '#endif'             >>confdefs.h
2420fi
2421
2422ac_ext=c
2423ac_cpp='$CPP $CPPFLAGS'
2424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427DEPDIR="${am__leading_dot}deps"
2428
2429          ac_config_commands="$ac_config_commands depfiles"
2430
2431
2432am_make=${MAKE-make}
2433cat > confinc << 'END'
2434am__doit:
2435        @echo done
2436.PHONY: am__doit
2437END
2438# If we don't find an include directive, just comment out the code.
2439echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2440echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2441am__include="#"
2442am__quote=
2443_am_result=none
2444# First try GNU make style include.
2445echo "include confinc" > confmf
2446# We grep out `Entering directory' and `Leaving directory'
2447# messages which can occur if `w' ends up in MAKEFLAGS.
2448# In particular we don't look at `^make:' because GNU make might
2449# be invoked under some other name (usually "gmake"), in which
2450# case it prints its new name instead of `make'.
2451if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2452   am__include=include
2453   am__quote=
2454   _am_result=GNU
2455fi
2456# Now try BSD make style include.
2457if test "$am__include" = "#"; then
2458   echo '.include "confinc"' > confmf
2459   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2460      am__include=.include
2461      am__quote="\""
2462      _am_result=BSD
2463   fi
2464fi
2465
2466
2467echo "$as_me:$LINENO: result: $_am_result" >&5
2468echo "${ECHO_T}$_am_result" >&6
2469rm -f confinc confmf
2470
2471# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2472if test "${enable_dependency_tracking+set}" = set; then
2473  enableval="$enable_dependency_tracking"
2474
2475fi;
2476if test "x$enable_dependency_tracking" != xno; then
2477  am_depcomp="$ac_aux_dir/depcomp"
2478  AMDEPBACKSLASH='\'
2479fi
2480
2481
2482if test "x$enable_dependency_tracking" != xno; then
2483  AMDEP_TRUE=
2484  AMDEP_FALSE='#'
2485else
2486  AMDEP_TRUE='#'
2487  AMDEP_FALSE=
2488fi
2489
2490
2491
2492
2493depcc="$CXX"  am_compiler_list=
2494
2495echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2496echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2497if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2501  # We make a subdir and do the tests there.  Otherwise we can end up
2502  # making bogus files that we don't know about and never remove.  For
2503  # instance it was reported that on HP-UX the gcc test will end up
2504  # making a dummy file named `D' -- because `-MD' means `put the output
2505  # in D'.
2506  mkdir conftest.dir
2507  # Copy depcomp to subdir because otherwise we won't find it if we're
2508  # using a relative directory.
2509  cp "$am_depcomp" conftest.dir
2510  cd conftest.dir
2511  # We will build objects and dependencies in a subdirectory because
2512  # it helps to detect inapplicable dependency modes.  For instance
2513  # both Tru64's cc and ICC support -MD to output dependencies as a
2514  # side effect of compilation, but ICC will put the dependencies in
2515  # the current directory while Tru64 will put them in the object
2516  # directory.
2517  mkdir sub
2518
2519  am_cv_CXX_dependencies_compiler_type=none
2520  if test "$am_compiler_list" = ""; then
2521     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2522  fi
2523  for depmode in $am_compiler_list; do
2524    # Setup a source with many dependencies, because some compilers
2525    # like to wrap large dependency lists on column 80 (with \), and
2526    # we should not choose a depcomp mode which is confused by this.
2527    #
2528    # We need to recreate these files for each test, as the compiler may
2529    # overwrite some of them when testing with obscure command lines.
2530    # This happens at least with the AIX C compiler.
2531    : > sub/conftest.c
2532    for i in 1 2 3 4 5 6; do
2533      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2534      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2535      # Solaris 8's {/usr,}/bin/sh.
2536      touch sub/conftst$i.h
2537    done
2538    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2539
2540    case $depmode in
2541    nosideeffect)
2542      # after this tag, mechanisms are not by side-effect, so they'll
2543      # only be used when explicitly requested
2544      if test "x$enable_dependency_tracking" = xyes; then
2545        continue
2546      else
2547        break
2548      fi
2549      ;;
2550    none) break ;;
2551    esac
2552    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2553    # mode.  It turns out that the SunPro C++ compiler does not properly
2554    # handle `-M -o', and we need to detect this.
2555    if depmode=$depmode \
2556       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2557       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2558       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2559         >/dev/null 2>conftest.err &&
2560       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2561       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2562       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2563      # icc doesn't choke on unknown options, it will just issue warnings
2564      # or remarks (even with -Werror).  So we grep stderr for any message
2565      # that says an option was ignored or not supported.
2566      # When given -MP, icc 7.0 and 7.1 complain thusly:
2567      #   icc: Command line warning: ignoring option '-M'; no argument required
2568      # The diagnosis changed in icc 8.0:
2569      #   icc: Command line remark: option '-MP' not supported
2570      if (grep 'ignoring option' conftest.err ||
2571          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2572        am_cv_CXX_dependencies_compiler_type=$depmode
2573        break
2574      fi
2575    fi
2576  done
2577
2578  cd ..
2579  rm -rf conftest.dir
2580else
2581  am_cv_CXX_dependencies_compiler_type=none
2582fi
2583
2584fi
2585echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2586echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2587CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2588
2589
2590
2591if
2592  test "x$enable_dependency_tracking" != xno \
2593  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2594  am__fastdepCXX_TRUE=
2595  am__fastdepCXX_FALSE='#'
2596else
2597  am__fastdepCXX_TRUE='#'
2598  am__fastdepCXX_FALSE=
2599fi
2600
2601
2602if test -n "$ac_tool_prefix"; then
2603  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2604set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2605echo "$as_me:$LINENO: checking for $ac_word" >&5
2606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2607if test "${ac_cv_prog_RANLIB+set}" = set; then
2608  echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610  if test -n "$RANLIB"; then
2611  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2612else
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616  IFS=$as_save_IFS
2617  test -z "$as_dir" && as_dir=.
2618  for ac_exec_ext in '' $ac_executable_extensions; do
2619  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622    break 2
2623  fi
2624done
2625done
2626
2627fi
2628fi
2629RANLIB=$ac_cv_prog_RANLIB
2630if test -n "$RANLIB"; then
2631  echo "$as_me:$LINENO: result: $RANLIB" >&5
2632echo "${ECHO_T}$RANLIB" >&6
2633else
2634  echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6
2636fi
2637
2638fi
2639if test -z "$ac_cv_prog_RANLIB"; then
2640  ac_ct_RANLIB=$RANLIB
2641  # Extract the first word of "ranlib", so it can be a program name with args.
2642set dummy ranlib; ac_word=$2
2643echo "$as_me:$LINENO: checking for $ac_word" >&5
2644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2646  echo $ECHO_N "(cached) $ECHO_C" >&6
2647else
2648  if test -n "$ac_ct_RANLIB"; then
2649  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654  IFS=$as_save_IFS
2655  test -z "$as_dir" && as_dir=.
2656  for ac_exec_ext in '' $ac_executable_extensions; do
2657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658    ac_cv_prog_ac_ct_RANLIB="ranlib"
2659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660    break 2
2661  fi
2662done
2663done
2664
2665  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2666fi
2667fi
2668ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2669if test -n "$ac_ct_RANLIB"; then
2670  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2671echo "${ECHO_T}$ac_ct_RANLIB" >&6
2672else
2673  echo "$as_me:$LINENO: result: no" >&5
2674echo "${ECHO_T}no" >&6
2675fi
2676
2677  RANLIB=$ac_ct_RANLIB
2678else
2679  RANLIB="$ac_cv_prog_RANLIB"
2680fi
2681
2682ac_ext=c
2683ac_cpp='$CPP $CPPFLAGS'
2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687if test -n "$ac_tool_prefix"; then
2688  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690echo "$as_me:$LINENO: checking for $ac_word" >&5
2691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2692if test "${ac_cv_prog_CC+set}" = set; then
2693  echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695  if test -n "$CC"; then
2696  ac_cv_prog_CC="$CC" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703  for ac_exec_ext in '' $ac_executable_extensions; do
2704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710done
2711
2712fi
2713fi
2714CC=$ac_cv_prog_CC
2715if test -n "$CC"; then
2716  echo "$as_me:$LINENO: result: $CC" >&5
2717echo "${ECHO_T}$CC" >&6
2718else
2719  echo "$as_me:$LINENO: result: no" >&5
2720echo "${ECHO_T}no" >&6
2721fi
2722
2723fi
2724if test -z "$ac_cv_prog_CC"; then
2725  ac_ct_CC=$CC
2726  # Extract the first word of "gcc", so it can be a program name with args.
2727set dummy gcc; ac_word=$2
2728echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731  echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733  if test -n "$ac_ct_CC"; then
2734  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741  for ac_exec_ext in '' $ac_executable_extensions; do
2742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743    ac_cv_prog_ac_ct_CC="gcc"
2744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748done
2749
2750fi
2751fi
2752ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753if test -n "$ac_ct_CC"; then
2754  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2755echo "${ECHO_T}$ac_ct_CC" >&6
2756else
2757  echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6
2759fi
2760
2761  CC=$ac_ct_CC
2762else
2763  CC="$ac_cv_prog_CC"
2764fi
2765
2766if test -z "$CC"; then
2767  if test -n "$ac_tool_prefix"; then
2768  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}cc; ac_word=$2
2770echo "$as_me:$LINENO: checking for $ac_word" >&5
2771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772if test "${ac_cv_prog_CC+set}" = set; then
2773  echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775  if test -n "$CC"; then
2776  ac_cv_prog_CC="$CC" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781  IFS=$as_save_IFS
2782  test -z "$as_dir" && as_dir=.
2783  for ac_exec_ext in '' $ac_executable_extensions; do
2784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785    ac_cv_prog_CC="${ac_tool_prefix}cc"
2786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787    break 2
2788  fi
2789done
2790done
2791
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796  echo "$as_me:$LINENO: result: $CC" >&5
2797echo "${ECHO_T}$CC" >&6
2798else
2799  echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6
2801fi
2802
2803fi
2804if test -z "$ac_cv_prog_CC"; then
2805  ac_ct_CC=$CC
2806  # Extract the first word of "cc", so it can be a program name with args.
2807set dummy cc; ac_word=$2
2808echo "$as_me:$LINENO: checking for $ac_word" >&5
2809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2811  echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813  if test -n "$ac_ct_CC"; then
2814  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819  IFS=$as_save_IFS
2820  test -z "$as_dir" && as_dir=.
2821  for ac_exec_ext in '' $ac_executable_extensions; do
2822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823    ac_cv_prog_ac_ct_CC="cc"
2824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825    break 2
2826  fi
2827done
2828done
2829
2830fi
2831fi
2832ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833if test -n "$ac_ct_CC"; then
2834  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2835echo "${ECHO_T}$ac_ct_CC" >&6
2836else
2837  echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839fi
2840
2841  CC=$ac_ct_CC
2842else
2843  CC="$ac_cv_prog_CC"
2844fi
2845
2846fi
2847if test -z "$CC"; then
2848  # Extract the first word of "cc", so it can be a program name with args.
2849set dummy cc; ac_word=$2
2850echo "$as_me:$LINENO: checking for $ac_word" >&5
2851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852if test "${ac_cv_prog_CC+set}" = set; then
2853  echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855  if test -n "$CC"; then
2856  ac_cv_prog_CC="$CC" # Let the user override the test.
2857else
2858  ac_prog_rejected=no
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862  IFS=$as_save_IFS
2863  test -z "$as_dir" && as_dir=.
2864  for ac_exec_ext in '' $ac_executable_extensions; do
2865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867       ac_prog_rejected=yes
2868       continue
2869     fi
2870    ac_cv_prog_CC="cc"
2871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875done
2876
2877if test $ac_prog_rejected = yes; then
2878  # We found a bogon in the path, so make sure we never use it.
2879  set dummy $ac_cv_prog_CC
2880  shift
2881  if test $# != 0; then
2882    # We chose a different compiler from the bogus one.
2883    # However, it has the same basename, so the bogon will be chosen
2884    # first if we set CC to just the basename; use the full file name.
2885    shift
2886    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2887  fi
2888fi
2889fi
2890fi
2891CC=$ac_cv_prog_CC
2892if test -n "$CC"; then
2893  echo "$as_me:$LINENO: result: $CC" >&5
2894echo "${ECHO_T}$CC" >&6
2895else
2896  echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899
2900fi
2901if test -z "$CC"; then
2902  if test -n "$ac_tool_prefix"; then
2903  for ac_prog in cl
2904  do
2905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907echo "$as_me:$LINENO: checking for $ac_word" >&5
2908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909if test "${ac_cv_prog_CC+set}" = set; then
2910  echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912  if test -n "$CC"; then
2913  ac_cv_prog_CC="$CC" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  test -z "$as_dir" && as_dir=.
2920  for ac_exec_ext in '' $ac_executable_extensions; do
2921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924    break 2
2925  fi
2926done
2927done
2928
2929fi
2930fi
2931CC=$ac_cv_prog_CC
2932if test -n "$CC"; then
2933  echo "$as_me:$LINENO: result: $CC" >&5
2934echo "${ECHO_T}$CC" >&6
2935else
2936  echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938fi
2939
2940    test -n "$CC" && break
2941  done
2942fi
2943if test -z "$CC"; then
2944  ac_ct_CC=$CC
2945  for ac_prog in cl
2946do
2947  # Extract the first word of "$ac_prog", so it can be a program name with args.
2948set dummy $ac_prog; ac_word=$2
2949echo "$as_me:$LINENO: checking for $ac_word" >&5
2950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2952  echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954  if test -n "$ac_ct_CC"; then
2955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956else
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960  IFS=$as_save_IFS
2961  test -z "$as_dir" && as_dir=.
2962  for ac_exec_ext in '' $ac_executable_extensions; do
2963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964    ac_cv_prog_ac_ct_CC="$ac_prog"
2965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966    break 2
2967  fi
2968done
2969done
2970
2971fi
2972fi
2973ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974if test -n "$ac_ct_CC"; then
2975  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2976echo "${ECHO_T}$ac_ct_CC" >&6
2977else
2978  echo "$as_me:$LINENO: result: no" >&5
2979echo "${ECHO_T}no" >&6
2980fi
2981
2982  test -n "$ac_ct_CC" && break
2983done
2984
2985  CC=$ac_ct_CC
2986fi
2987
2988fi
2989
2990
2991test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2992See \`config.log' for more details." >&5
2993echo "$as_me: error: no acceptable C compiler found in \$PATH
2994See \`config.log' for more details." >&2;}
2995   { (exit 1); exit 1; }; }
2996
2997# Provide some information about the compiler.
2998echo "$as_me:$LINENO:" \
2999     "checking for C compiler version" >&5
3000ac_compiler=`set X $ac_compile; echo $2`
3001{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3002  (eval $ac_compiler --version </dev/null >&5) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }
3006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3007  (eval $ac_compiler -v </dev/null >&5) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }
3011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3012  (eval $ac_compiler -V </dev/null >&5) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }
3016
3017echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3019if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020  echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022  cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h.  */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h.  */
3028
3029int
3030main ()
3031{
3032#ifndef __GNUC__
3033       choke me
3034#endif
3035
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
3041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042  (eval $ac_compile) 2>conftest.er1
3043  ac_status=$?
3044  grep -v '^ *+' conftest.er1 >conftest.err
3045  rm -f conftest.er1
3046  cat conftest.err >&5
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); } &&
3049         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
3055         { ac_try='test -s conftest.$ac_objext'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; }; then
3061  ac_compiler_gnu=yes
3062else
3063  echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066ac_compiler_gnu=no
3067fi
3068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069ac_cv_c_compiler_gnu=$ac_compiler_gnu
3070
3071fi
3072echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3073echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3074GCC=`test $ac_compiler_gnu = yes && echo yes`
3075ac_test_CFLAGS=${CFLAGS+set}
3076ac_save_CFLAGS=$CFLAGS
3077CFLAGS="-g"
3078echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3079echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3080if test "${ac_cv_prog_cc_g+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083  cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext
3099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100  (eval $ac_compile) 2>conftest.er1
3101  ac_status=$?
3102  grep -v '^ *+' conftest.er1 >conftest.err
3103  rm -f conftest.er1
3104  cat conftest.err >&5
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); } &&
3107         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109  (eval $ac_try) 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; } &&
3113         { ac_try='test -s conftest.$ac_objext'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; }; then
3119  ac_cv_prog_cc_g=yes
3120else
3121  echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124ac_cv_prog_cc_g=no
3125fi
3126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3127fi
3128echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3129echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3130if test "$ac_test_CFLAGS" = set; then
3131  CFLAGS=$ac_save_CFLAGS
3132elif test $ac_cv_prog_cc_g = yes; then
3133  if test "$GCC" = yes; then
3134    CFLAGS="-g -O2"
3135  else
3136    CFLAGS="-g"
3137  fi
3138else
3139  if test "$GCC" = yes; then
3140    CFLAGS="-O2"
3141  else
3142    CFLAGS=
3143  fi
3144fi
3145echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3146echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3147if test "${ac_cv_prog_cc_stdc+set}" = set; then
3148  echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150  ac_cv_prog_cc_stdc=no
3151ac_save_CC=$CC
3152cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158#include <stdarg.h>
3159#include <stdio.h>
3160#include <sys/types.h>
3161#include <sys/stat.h>
3162/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3163struct buf { int x; };
3164FILE * (*rcsopen) (struct buf *, struct stat *, int);
3165static char *e (p, i)
3166     char **p;
3167     int i;
3168{
3169  return p[i];
3170}
3171static char *f (char * (*g) (char **, int), char **p, ...)
3172{
3173  char *s;
3174  va_list v;
3175  va_start (v,p);
3176  s = g (p, va_arg (v,int));
3177  va_end (v);
3178  return s;
3179}
3180
3181/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3182   function prototypes and stuff, but not '\xHH' hex character constants.
3183   These don't provoke an error unfortunately, instead are silently treated
3184   as 'x'.  The following induces an error, until -std1 is added to get
3185   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3186   array size at least.  It's necessary to write '\x00'==0 to get something
3187   that's true only with -std1.  */
3188int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189
3190int test (int i, double x);
3191struct s1 {int (*f) (int a);};
3192struct s2 {int (*f) (double a);};
3193int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3194int argc;
3195char **argv;
3196int
3197main ()
3198{
3199return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204# Don't try gcc -ansi; that turns off useful extensions and
3205# breaks some systems' header files.
3206# AIX                   -qlanglvl=ansi
3207# Ultrix and OSF/1      -std1
3208# HP-UX 10.20 and later -Ae
3209# HP-UX older versions  -Aa -D_HPUX_SOURCE
3210# SVR4                  -Xc -D__EXTENSIONS__
3211for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212do
3213  CC="$ac_save_CC $ac_arg"
3214  rm -f conftest.$ac_objext
3215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3216  (eval $ac_compile) 2>conftest.er1
3217  ac_status=$?
3218  grep -v '^ *+' conftest.er1 >conftest.err
3219  rm -f conftest.er1
3220  cat conftest.err >&5
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); } &&
3223         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; } &&
3229         { ac_try='test -s conftest.$ac_objext'
3230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231  (eval $ac_try) 2>&5
3232  ac_status=$?
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); }; }; then
3235  ac_cv_prog_cc_stdc=$ac_arg
3236break
3237else
3238  echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241fi
3242rm -f conftest.err conftest.$ac_objext
3243done
3244rm -f conftest.$ac_ext conftest.$ac_objext
3245CC=$ac_save_CC
3246
3247fi
3248
3249case "x$ac_cv_prog_cc_stdc" in
3250  x|xno)
3251    echo "$as_me:$LINENO: result: none needed" >&5
3252echo "${ECHO_T}none needed" >&6 ;;
3253  *)
3254    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3255echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3256    CC="$CC $ac_cv_prog_cc_stdc" ;;
3257esac
3258
3259# Some people use a C++ compiler to compile C.  Since we use `exit',
3260# in C++ we need to declare it.  In case someone uses the same compiler
3261# for both compiling C and C++ we need to have the C++ compiler decide
3262# the declaration of exit, since it's the most demanding environment.
3263cat >conftest.$ac_ext <<_ACEOF
3264#ifndef __cplusplus
3265  choke me
3266#endif
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270  (eval $ac_compile) 2>conftest.er1
3271  ac_status=$?
3272  grep -v '^ *+' conftest.er1 >conftest.err
3273  rm -f conftest.er1
3274  cat conftest.err >&5
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); } &&
3277         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279  (eval $ac_try) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; } &&
3283         { ac_try='test -s conftest.$ac_objext'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; }; then
3289  for ac_declaration in \
3290   '' \
3291   'extern "C" void std::exit (int) throw (); using std::exit;' \
3292   'extern "C" void std::exit (int); using std::exit;' \
3293   'extern "C" void exit (int) throw ();' \
3294   'extern "C" void exit (int);' \
3295   'void exit (int);'
3296do
3297  cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h.  */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h.  */
3303$ac_declaration
3304#include <stdlib.h>
3305int
3306main ()
3307{
3308exit (42);
3309  ;
3310  return 0;
3311}
3312_ACEOF
3313rm -f conftest.$ac_objext
3314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3315  (eval $ac_compile) 2>conftest.er1
3316  ac_status=$?
3317  grep -v '^ *+' conftest.er1 >conftest.err
3318  rm -f conftest.er1
3319  cat conftest.err >&5
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); } &&
3322         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324  (eval $ac_try) 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; } &&
3328         { ac_try='test -s conftest.$ac_objext'
3329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330  (eval $ac_try) 2>&5
3331  ac_status=$?
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }; }; then
3334  :
3335else
3336  echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339continue
3340fi
3341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3342  cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h.  */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h.  */
3348$ac_declaration
3349int
3350main ()
3351{
3352exit (42);
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359  (eval $ac_compile) 2>conftest.er1
3360  ac_status=$?
3361  grep -v '^ *+' conftest.er1 >conftest.err
3362  rm -f conftest.er1
3363  cat conftest.err >&5
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); } &&
3366         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; } &&
3372         { ac_try='test -s conftest.$ac_objext'
3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374  (eval $ac_try) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }; }; then
3378  break
3379else
3380  echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383fi
3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385done
3386rm -f conftest*
3387if test -n "$ac_declaration"; then
3388  echo '#ifdef __cplusplus' >>confdefs.h
3389  echo $ac_declaration      >>confdefs.h
3390  echo '#endif'             >>confdefs.h
3391fi
3392
3393else
3394  echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397fi
3398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404
3405depcc="$CC"   am_compiler_list=
3406
3407echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3408echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3409if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3410  echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3413  # We make a subdir and do the tests there.  Otherwise we can end up
3414  # making bogus files that we don't know about and never remove.  For
3415  # instance it was reported that on HP-UX the gcc test will end up
3416  # making a dummy file named `D' -- because `-MD' means `put the output
3417  # in D'.
3418  mkdir conftest.dir
3419  # Copy depcomp to subdir because otherwise we won't find it if we're
3420  # using a relative directory.
3421  cp "$am_depcomp" conftest.dir
3422  cd conftest.dir
3423  # We will build objects and dependencies in a subdirectory because
3424  # it helps to detect inapplicable dependency modes.  For instance
3425  # both Tru64's cc and ICC support -MD to output dependencies as a
3426  # side effect of compilation, but ICC will put the dependencies in
3427  # the current directory while Tru64 will put them in the object
3428  # directory.
3429  mkdir sub
3430
3431  am_cv_CC_dependencies_compiler_type=none
3432  if test "$am_compiler_list" = ""; then
3433     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3434  fi
3435  for depmode in $am_compiler_list; do
3436    # Setup a source with many dependencies, because some compilers
3437    # like to wrap large dependency lists on column 80 (with \), and
3438    # we should not choose a depcomp mode which is confused by this.
3439    #
3440    # We need to recreate these files for each test, as the compiler may
3441    # overwrite some of them when testing with obscure command lines.
3442    # This happens at least with the AIX C compiler.
3443    : > sub/conftest.c
3444    for i in 1 2 3 4 5 6; do
3445      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3446      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3447      # Solaris 8's {/usr,}/bin/sh.
3448      touch sub/conftst$i.h
3449    done
3450    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3451
3452    case $depmode in
3453    nosideeffect)
3454      # after this tag, mechanisms are not by side-effect, so they'll
3455      # only be used when explicitly requested
3456      if test "x$enable_dependency_tracking" = xyes; then
3457        continue
3458      else
3459        break
3460      fi
3461      ;;
3462    none) break ;;
3463    esac
3464    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3465    # mode.  It turns out that the SunPro C++ compiler does not properly
3466    # handle `-M -o', and we need to detect this.
3467    if depmode=$depmode \
3468       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3469       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3470       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3471         >/dev/null 2>conftest.err &&
3472       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3473       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3474       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3475      # icc doesn't choke on unknown options, it will just issue warnings
3476      # or remarks (even with -Werror).  So we grep stderr for any message
3477      # that says an option was ignored or not supported.
3478      # When given -MP, icc 7.0 and 7.1 complain thusly:
3479      #   icc: Command line warning: ignoring option '-M'; no argument required
3480      # The diagnosis changed in icc 8.0:
3481      #   icc: Command line remark: option '-MP' not supported
3482      if (grep 'ignoring option' conftest.err ||
3483          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3484        am_cv_CC_dependencies_compiler_type=$depmode
3485        break
3486      fi
3487    fi
3488  done
3489
3490  cd ..
3491  rm -rf conftest.dir
3492else
3493  am_cv_CC_dependencies_compiler_type=none
3494fi
3495
3496fi
3497echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3498echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3499CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3500
3501
3502
3503if
3504  test "x$enable_dependency_tracking" != xno \
3505  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3506  am__fastdepCC_TRUE=
3507  am__fastdepCC_FALSE='#'
3508else
3509  am__fastdepCC_TRUE='#'
3510  am__fastdepCC_FALSE=
3511fi
3512
3513
3514
3515ac_ext=c
3516ac_cpp='$CPP $CPPFLAGS'
3517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3521echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3522# On Suns, sometimes $CPP names a directory.
3523if test -n "$CPP" && test -d "$CPP"; then
3524  CPP=
3525fi
3526if test -z "$CPP"; then
3527  if test "${ac_cv_prog_CPP+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530      # Double quotes because CPP needs to be expanded
3531    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3532    do
3533      ac_preproc_ok=false
3534for ac_c_preproc_warn_flag in '' yes
3535do
3536  # Use a header file that comes with gcc, so configuring glibc
3537  # with a fresh cross-compiler works.
3538  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3539  # <limits.h> exists even on freestanding compilers.
3540  # On the NeXT, cc -E runs the code through the compiler's parser,
3541  # not just through cpp. "Syntax error" is here to catch this case.
3542  cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h.  */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h.  */
3548#ifdef __STDC__
3549# include <limits.h>
3550#else
3551# include <assert.h>
3552#endif
3553                     Syntax error
3554_ACEOF
3555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3556  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3557  ac_status=$?
3558  grep -v '^ *+' conftest.er1 >conftest.err
3559  rm -f conftest.er1
3560  cat conftest.err >&5
3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); } >/dev/null; then
3563  if test -s conftest.err; then
3564    ac_cpp_err=$ac_c_preproc_warn_flag
3565    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3566  else
3567    ac_cpp_err=
3568  fi
3569else
3570  ac_cpp_err=yes
3571fi
3572if test -z "$ac_cpp_err"; then
3573  :
3574else
3575  echo "$as_me: failed program was:" >&5
3576sed 's/^/| /' conftest.$ac_ext >&5
3577
3578  # Broken: fails on valid input.
3579continue
3580fi
3581rm -f conftest.err conftest.$ac_ext
3582
3583  # OK, works on sane cases.  Now check whether non-existent headers
3584  # can be detected and how.
3585  cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591#include <ac_nonexistent.h>
3592_ACEOF
3593if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3594  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3595  ac_status=$?
3596  grep -v '^ *+' conftest.er1 >conftest.err
3597  rm -f conftest.er1
3598  cat conftest.err >&5
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); } >/dev/null; then
3601  if test -s conftest.err; then
3602    ac_cpp_err=$ac_c_preproc_warn_flag
3603    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3604  else
3605    ac_cpp_err=
3606  fi
3607else
3608  ac_cpp_err=yes
3609fi
3610if test -z "$ac_cpp_err"; then
3611  # Broken: success on invalid input.
3612continue
3613else
3614  echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617  # Passes both tests.
3618ac_preproc_ok=:
3619break
3620fi
3621rm -f conftest.err conftest.$ac_ext
3622
3623done
3624# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625rm -f conftest.err conftest.$ac_ext
3626if $ac_preproc_ok; then
3627  break
3628fi
3629
3630    done
3631    ac_cv_prog_CPP=$CPP
3632
3633fi
3634  CPP=$ac_cv_prog_CPP
3635else
3636  ac_cv_prog_CPP=$CPP
3637fi
3638echo "$as_me:$LINENO: result: $CPP" >&5
3639echo "${ECHO_T}$CPP" >&6
3640ac_preproc_ok=false
3641for ac_c_preproc_warn_flag in '' yes
3642do
3643  # Use a header file that comes with gcc, so configuring glibc
3644  # with a fresh cross-compiler works.
3645  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3646  # <limits.h> exists even on freestanding compilers.
3647  # On the NeXT, cc -E runs the code through the compiler's parser,
3648  # not just through cpp. "Syntax error" is here to catch this case.
3649  cat >conftest.$ac_ext <<_ACEOF
3650/* confdefs.h.  */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h.  */
3655#ifdef __STDC__
3656# include <limits.h>
3657#else
3658# include <assert.h>
3659#endif
3660                     Syntax error
3661_ACEOF
3662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3663  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3664  ac_status=$?
3665  grep -v '^ *+' conftest.er1 >conftest.err
3666  rm -f conftest.er1
3667  cat conftest.err >&5
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); } >/dev/null; then
3670  if test -s conftest.err; then
3671    ac_cpp_err=$ac_c_preproc_warn_flag
3672    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3673  else
3674    ac_cpp_err=
3675  fi
3676else
3677  ac_cpp_err=yes
3678fi
3679if test -z "$ac_cpp_err"; then
3680  :
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685  # Broken: fails on valid input.
3686continue
3687fi
3688rm -f conftest.err conftest.$ac_ext
3689
3690  # OK, works on sane cases.  Now check whether non-existent headers
3691  # can be detected and how.
3692  cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h.  */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h.  */
3698#include <ac_nonexistent.h>
3699_ACEOF
3700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } >/dev/null; then
3708  if test -s conftest.err; then
3709    ac_cpp_err=$ac_c_preproc_warn_flag
3710    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3711  else
3712    ac_cpp_err=
3713  fi
3714else
3715  ac_cpp_err=yes
3716fi
3717if test -z "$ac_cpp_err"; then
3718  # Broken: success on invalid input.
3719continue
3720else
3721  echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724  # Passes both tests.
3725ac_preproc_ok=:
3726break
3727fi
3728rm -f conftest.err conftest.$ac_ext
3729
3730done
3731# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732rm -f conftest.err conftest.$ac_ext
3733if $ac_preproc_ok; then
3734  :
3735else
3736  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737See \`config.log' for more details." >&5
3738echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739See \`config.log' for more details." >&2;}
3740   { (exit 1); exit 1; }; }
3741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750echo "$as_me:$LINENO: checking for egrep" >&5
3751echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3752if test "${ac_cv_prog_egrep+set}" = set; then
3753  echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3756    then ac_cv_prog_egrep='grep -E'
3757    else ac_cv_prog_egrep='egrep'
3758    fi
3759fi
3760echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3761echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3762 EGREP=$ac_cv_prog_egrep
3763
3764
3765echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3766echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3767if test "${ac_cv_header_stdc+set}" = set; then
3768  echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770  cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776#include <stdlib.h>
3777#include <stdarg.h>
3778#include <string.h>
3779#include <float.h>
3780
3781int
3782main ()
3783{
3784
3785  ;
3786  return 0;
3787}
3788_ACEOF
3789rm -f conftest.$ac_objext
3790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791  (eval $ac_compile) 2>conftest.er1
3792  ac_status=$?
3793  grep -v '^ *+' conftest.er1 >conftest.err
3794  rm -f conftest.er1
3795  cat conftest.err >&5
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); } &&
3798         { ac_try='test -z "$ac_c_werror_flag"                   || 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
4163GTKPATH=""
4164echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5
4165echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6
4166
4167# Check whether --with-tardis or --without-tardis was given.
4168if test "${with_tardis+set}" = set; then
4169  withval="$with_tardis"
4170  def_tardis=yes
4171fi;
4172if test x$def_tardis = xyes; then
4173  ARCH=i686-debian-linux3.1
4174   ## GAMELIBS
4175  PREFIX=/usr/pack/gamelibs-1.0-to
4176  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
4177  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
4178  ## GTK
4179  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
4180  GTKPATH=${GTKPREFIX}/${ARCH}/bin
4181  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
4182  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
4183  echo "yes"
4184fi
4185if test x$def_tardis = xno; then
4186  echo "no"
4187fi
4188
4189#######################
4190## PROGRAMM CHECKING ##
4191## 3. party Programs ##
4192#######################
4193
4194#----------------------#
4195# checking for Doxygen #
4196#----------------------#
4197# Extract the first word of "doxygen", so it can be a program name with args.
4198set dummy doxygen; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_path_DOXYGEN+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  case $DOXYGEN in
4205  [\\/]* | ?:[\\/]*)
4206  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4207  ;;
4208  *)
4209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214  for ac_exec_ext in '' $ac_executable_extensions; do
4215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218    break 2
4219  fi
4220done
4221done
4222
4223  ;;
4224esac
4225fi
4226DOXYGEN=$ac_cv_path_DOXYGEN
4227
4228if test -n "$DOXYGEN"; then
4229  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4230echo "${ECHO_T}$DOXYGEN" >&6
4231else
4232  echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
4234fi
4235
4236
4237
4238if test $DOXYGEN; then
4239  DOXYGEN_TRUE=
4240  DOXYGEN_FALSE='#'
4241else
4242  DOXYGEN_TRUE='#'
4243  DOXYGEN_FALSE=
4244fi
4245
4246
4247#--------------------#
4248# checking for gprof #
4249#--------------------#
4250# Extract the first word of "gprof", so it can be a program name with args.
4251set dummy gprof; ac_word=$2
4252echo "$as_me:$LINENO: checking for $ac_word" >&5
4253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254if test "${ac_cv_path_GPROF+set}" = set; then
4255  echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257  case $GPROF in
4258  [\\/]* | ?:[\\/]*)
4259  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4260  ;;
4261  *)
4262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265  IFS=$as_save_IFS
4266  test -z "$as_dir" && as_dir=.
4267  for ac_exec_ext in '' $ac_executable_extensions; do
4268  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4270    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271    break 2
4272  fi
4273done
4274done
4275
4276  ;;
4277esac
4278fi
4279GPROF=$ac_cv_path_GPROF
4280
4281if test -n "$GPROF"; then
4282  echo "$as_me:$LINENO: result: $GPROF" >&5
4283echo "${ECHO_T}$GPROF" >&6
4284else
4285  echo "$as_me:$LINENO: result: no" >&5
4286echo "${ECHO_T}no" >&6
4287fi
4288
4289
4290#-------------------------#
4291# checking for pkg-config #
4292#-------------------------#
4293if test x$def_gtk = xyes; then
4294 if test x${GTKPATH} != x; then
4295   # Extract the first word of "pkg-config", so it can be a program name with args.
4296set dummy pkg-config; ac_word=$2
4297echo "$as_me:$LINENO: checking for $ac_word" >&5
4298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4300  echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302  case $PKG_CONFIG in
4303  [\\/]* | ?:[\\/]*)
4304  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4305  ;;
4306  *)
4307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $GTKPATH
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312  for ac_exec_ext in '' $ac_executable_extensions; do
4313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319done
4320
4321  ;;
4322esac
4323fi
4324PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4325
4326if test -n "$PKG_CONFIG"; then
4327  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4328echo "${ECHO_T}$PKG_CONFIG" >&6
4329else
4330  echo "$as_me:$LINENO: result: no" >&5
4331echo "${ECHO_T}no" >&6
4332fi
4333
4334 else
4335   # Extract the first word of "pkg-config ", so it can be a program name with args.
4336set dummy pkg-config ; ac_word=$2
4337echo "$as_me:$LINENO: checking for $ac_word" >&5
4338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4340  echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
4342  case $PKG_CONFIG in
4343  [\\/]* | ?:[\\/]*)
4344  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4345  ;;
4346  *)
4347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350  IFS=$as_save_IFS
4351  test -z "$as_dir" && as_dir=.
4352  for ac_exec_ext in '' $ac_executable_extensions; do
4353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356    break 2
4357  fi
4358done
4359done
4360
4361  ;;
4362esac
4363fi
4364PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4365
4366if test -n "$PKG_CONFIG"; then
4367  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4368echo "${ECHO_T}$PKG_CONFIG" >&6
4369else
4370  echo "$as_me:$LINENO: result: no" >&5
4371echo "${ECHO_T}no" >&6
4372fi
4373
4374 fi
4375fi
4376
4377
4378#########################
4379## CHECKING FOR SYSTEM ##
4380#########################
4381## here the system is checked, and openGL is included
4382## also checking for SDL on differen Systems
4383
4384echo "$as_me:$LINENO: checking for System" >&5
4385echo $ECHO_N "checking for System... $ECHO_C" >&6
4386## checking for openGL-environment and other sys-specific parameters
4387case "$target" in
4388
4389###########
4390#---------#
4391# WINDOWS #
4392#---------#
4393###########
4394  *-*-mingw32*)
4395echo "mingw-WINDOWS detected"
4396
4397CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4398
4399    mingw="yes"
4400    MSBITFIELDS="-mms-bitfields"
4401    MWINDOWS="-mwindows"
4402
4403#--------#
4404# MIN-GW #
4405#--------#
4406# checking for mingw32
4407    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4408echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4409if test "${ac_cv_lib_mingw32_main+set}" = set; then
4410  echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412  ac_check_lib_save_LIBS=$LIBS
4413LIBS="-lmingw32  $LIBS"
4414cat >conftest.$ac_ext <<_ACEOF
4415/* confdefs.h.  */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h.  */
4420
4421
4422int
4423main ()
4424{
4425main ();
4426  ;
4427  return 0;
4428}
4429_ACEOF
4430rm -f conftest.$ac_objext conftest$ac_exeext
4431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432  (eval $ac_link) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } &&
4439         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445         { ac_try='test -s conftest$ac_exeext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  ac_cv_lib_mingw32_main=yes
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456ac_cv_lib_mingw32_main=no
4457fi
4458rm -f conftest.err conftest.$ac_objext \
4459      conftest$ac_exeext conftest.$ac_ext
4460LIBS=$ac_check_lib_save_LIBS
4461fi
4462echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4463echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4464if test $ac_cv_lib_mingw32_main = yes; then
4465  FOUND_mingw32=yes
4466fi
4467
4468    if test x$FOUND_mingw32 = xyes; then
4469        LIBS="$LIBS -lmingw32"
4470    fi
4471
4472#---------------#
4473# open-GL (win) #
4474#---------------#
4475# checking gl header
4476   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4487                  inttypes.h stdint.h unistd.h
4488do
4489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4490echo "$as_me:$LINENO: checking for $ac_header" >&5
4491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493  echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495  cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h.  */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h.  */
4501$ac_includes_default
4502
4503#include <$ac_header>
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507  (eval $ac_compile) 2>conftest.er1
4508  ac_status=$?
4509  grep -v '^ *+' conftest.er1 >conftest.err
4510  rm -f conftest.er1
4511  cat conftest.err >&5
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); } &&
4514         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516  (eval $ac_try) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; } &&
4520         { ac_try='test -s conftest.$ac_objext'
4521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522  (eval $ac_try) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; }; then
4526  eval "$as_ac_Header=yes"
4527else
4528  echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531eval "$as_ac_Header=no"
4532fi
4533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534fi
4535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4537if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538  cat >>confdefs.h <<_ACEOF
4539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540_ACEOF
4541
4542fi
4543
4544done
4545
4546
4547
4548for ac_header in GL/gl.h
4549do
4550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4551if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552  echo "$as_me:$LINENO: checking for $ac_header" >&5
4553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4554if eval "test \"\${$as_ac_Header+set}\" = set"; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556fi
4557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4559else
4560  # Is the header compilable?
4561echo "$as_me:$LINENO: checking $ac_header usability" >&5
4562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4563cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h.  */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h.  */
4569$ac_includes_default
4570#include <$ac_header>
4571_ACEOF
4572rm -f conftest.$ac_objext
4573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574  (eval $ac_compile) 2>conftest.er1
4575  ac_status=$?
4576  grep -v '^ *+' conftest.er1 >conftest.err
4577  rm -f conftest.er1
4578  cat conftest.err >&5
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); } &&
4581         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583  (eval $ac_try) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; } &&
4587         { ac_try='test -s conftest.$ac_objext'
4588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589  (eval $ac_try) 2>&5
4590  ac_status=$?
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); }; }; then
4593  ac_header_compiler=yes
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598ac_header_compiler=no
4599fi
4600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4602echo "${ECHO_T}$ac_header_compiler" >&6
4603
4604# Is the header present?
4605echo "$as_me:$LINENO: checking $ac_header presence" >&5
4606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4607cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h.  */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h.  */
4613#include <$ac_header>
4614_ACEOF
4615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4617  ac_status=$?
4618  grep -v '^ *+' conftest.er1 >conftest.err
4619  rm -f conftest.er1
4620  cat conftest.err >&5
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); } >/dev/null; then
4623  if test -s conftest.err; then
4624    ac_cpp_err=$ac_c_preproc_warn_flag
4625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4626  else
4627    ac_cpp_err=
4628  fi
4629else
4630  ac_cpp_err=yes
4631fi
4632if test -z "$ac_cpp_err"; then
4633  ac_header_preproc=yes
4634else
4635  echo "$as_me: failed program was:" >&5
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
4638  ac_header_preproc=no
4639fi
4640rm -f conftest.err conftest.$ac_ext
4641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4642echo "${ECHO_T}$ac_header_preproc" >&6
4643
4644# So?  What about this header?
4645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4646  yes:no: )
4647    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4651    ac_header_preproc=yes
4652    ;;
4653  no:yes:* )
4654    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4656    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4657echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4658    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4660    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4661echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4662    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4664    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4666    (
4667      cat <<\_ASBOX
4668## ---------------------------------------------- ##
4669## Report this to orxonox-dev at mail.datacore.ch ##
4670## ---------------------------------------------- ##
4671_ASBOX
4672    ) |
4673      sed "s/^/$as_me: WARNING:     /" >&2
4674    ;;
4675esac
4676echo "$as_me:$LINENO: checking for $ac_header" >&5
4677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4678if eval "test \"\${$as_ac_Header+set}\" = set"; then
4679  echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681  eval "$as_ac_Header=\$ac_header_preproc"
4682fi
4683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685
4686fi
4687if test `eval echo '${'$as_ac_Header'}'` = yes; then
4688  cat >>confdefs.h <<_ACEOF
4689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690_ACEOF
4691
4692else
4693  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4694echo "$as_me: error: cannot find opengl headers" >&2;}
4695   { (exit 1); exit 1; }; }
4696fi
4697
4698done
4699
4700#   checking for Windows openGl library
4701    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4702echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4703if test "${ac_cv_lib_opengl32_main+set}" = set; then
4704  echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706  ac_check_lib_save_LIBS=$LIBS
4707LIBS="-lopengl32  $LIBS"
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h.  */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h.  */
4714
4715
4716int
4717main ()
4718{
4719main ();
4720  ;
4721  return 0;
4722}
4723_ACEOF
4724rm -f conftest.$ac_objext conftest$ac_exeext
4725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726  (eval $ac_link) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735  (eval $ac_try) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; } &&
4739         { ac_try='test -s conftest$ac_exeext'
4740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741  (eval $ac_try) 2>&5
4742  ac_status=$?
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); }; }; then
4745  ac_cv_lib_opengl32_main=yes
4746else
4747  echo "$as_me: failed program was:" >&5
4748sed 's/^/| /' conftest.$ac_ext >&5
4749
4750ac_cv_lib_opengl32_main=no
4751fi
4752rm -f conftest.err conftest.$ac_objext \
4753      conftest$ac_exeext conftest.$ac_ext
4754LIBS=$ac_check_lib_save_LIBS
4755fi
4756echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4757echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4758if test $ac_cv_lib_opengl32_main = yes; then
4759  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
4760fi
4761
4762    if test x$FOUND_GL != xyes ; then
4763         echo "------------------"
4764         echo "opengl not found."
4765         echo "please install the opengl package which can be found at http://www.opengl.org"
4766         echo "------------------"
4767         exit -1
4768    fi
4769
4770# cheking for GLU-header
4771
4772for ac_header in GL/glu.h
4773do
4774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775if eval "test \"\${$as_ac_Header+set}\" = set"; then
4776  echo "$as_me:$LINENO: checking for $ac_header" >&5
4777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4778if eval "test \"\${$as_ac_Header+set}\" = set"; then
4779  echo $ECHO_N "(cached) $ECHO_C" >&6
4780fi
4781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783else
4784  # Is the header compilable?
4785echo "$as_me:$LINENO: checking $ac_header usability" >&5
4786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4787cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h.  */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h.  */
4793$ac_includes_default
4794#include <$ac_header>
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798  (eval $ac_compile) 2>conftest.er1
4799  ac_status=$?
4800  grep -v '^ *+' conftest.er1 >conftest.err
4801  rm -f conftest.er1
4802  cat conftest.err >&5
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); } &&
4805         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807  (eval $ac_try) 2>&5
4808  ac_status=$?
4809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810  (exit $ac_status); }; } &&
4811         { ac_try='test -s conftest.$ac_objext'
4812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813  (eval $ac_try) 2>&5
4814  ac_status=$?
4815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816  (exit $ac_status); }; }; then
4817  ac_header_compiler=yes
4818else
4819  echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
4822ac_header_compiler=no
4823fi
4824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826echo "${ECHO_T}$ac_header_compiler" >&6
4827
4828# Is the header present?
4829echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4831cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h.  */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h.  */
4837#include <$ac_header>
4838_ACEOF
4839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841  ac_status=$?
4842  grep -v '^ *+' conftest.er1 >conftest.err
4843  rm -f conftest.er1
4844  cat conftest.err >&5
4845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846  (exit $ac_status); } >/dev/null; then
4847  if test -s conftest.err; then
4848    ac_cpp_err=$ac_c_preproc_warn_flag
4849    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850  else
4851    ac_cpp_err=
4852  fi
4853else
4854  ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857  ac_header_preproc=yes
4858else
4859  echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862  ac_header_preproc=no
4863fi
4864rm -f conftest.err conftest.$ac_ext
4865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866echo "${ECHO_T}$ac_header_preproc" >&6
4867
4868# So?  What about this header?
4869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4870  yes:no: )
4871    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875    ac_header_preproc=yes
4876    ;;
4877  no:yes:* )
4878    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4881echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4882    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4885echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4886    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4888    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4890    (
4891      cat <<\_ASBOX
4892## ---------------------------------------------- ##
4893## Report this to orxonox-dev at mail.datacore.ch ##
4894## ---------------------------------------------- ##
4895_ASBOX
4896    ) |
4897      sed "s/^/$as_me: WARNING:     /" >&2
4898    ;;
4899esac
4900echo "$as_me:$LINENO: checking for $ac_header" >&5
4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903  echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905  eval "$as_ac_Header=\$ac_header_preproc"
4906fi
4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910fi
4911if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912  cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914_ACEOF
4915
4916else
4917  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4918echo "$as_me: error: cannot find opengl headers" >&2;}
4919   { (exit 1); exit 1; }; }
4920fi
4921
4922done
4923
4924
4925# checking for libGLU
4926    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4927echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4928if test "${ac_cv_lib_glu32_main+set}" = set; then
4929  echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931  ac_check_lib_save_LIBS=$LIBS
4932LIBS="-lglu32  $LIBS"
4933cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h.  */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h.  */
4939
4940
4941int
4942main ()
4943{
4944main ();
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949rm -f conftest.$ac_objext conftest$ac_exeext
4950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4951  (eval $ac_link) 2>conftest.er1
4952  ac_status=$?
4953  grep -v '^ *+' conftest.er1 >conftest.err
4954  rm -f conftest.er1
4955  cat conftest.err >&5
4956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957  (exit $ac_status); } &&
4958         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960  (eval $ac_try) 2>&5
4961  ac_status=$?
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); }; } &&
4964         { ac_try='test -s conftest$ac_exeext'
4965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966  (eval $ac_try) 2>&5
4967  ac_status=$?
4968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969  (exit $ac_status); }; }; then
4970  ac_cv_lib_glu32_main=yes
4971else
4972  echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975ac_cv_lib_glu32_main=no
4976fi
4977rm -f conftest.err conftest.$ac_objext \
4978      conftest$ac_exeext conftest.$ac_ext
4979LIBS=$ac_check_lib_save_LIBS
4980fi
4981echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4982echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4983if test $ac_cv_lib_glu32_main = yes; then
4984  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
4985fi
4986
4987    if test x$FOUND_GLU != xyes ; then
4988         echo "------------------"
4989         echo "GLU library not found."
4990         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4991         echo "------------------"
4992         exit -1
4993    fi
4994
4995# checking glew header
4996
4997for ac_header in GL/glew.h
4998do
4999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5000if eval "test \"\${$as_ac_Header+set}\" = set"; then
5001  echo "$as_me:$LINENO: checking for $ac_header" >&5
5002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5003if eval "test \"\${$as_ac_Header+set}\" = set"; then
5004  echo $ECHO_N "(cached) $ECHO_C" >&6
5005fi
5006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5008else
5009  # Is the header compilable?
5010echo "$as_me:$LINENO: checking $ac_header usability" >&5
5011echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5012cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018$ac_includes_default
5019#include <$ac_header>
5020_ACEOF
5021rm -f conftest.$ac_objext
5022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023  (eval $ac_compile) 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } &&
5030         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032  (eval $ac_try) 2>&5
5033  ac_status=$?
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); }; } &&
5036         { ac_try='test -s conftest.$ac_objext'
5037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038  (eval $ac_try) 2>&5
5039  ac_status=$?
5040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041  (exit $ac_status); }; }; then
5042  ac_header_compiler=yes
5043else
5044  echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047ac_header_compiler=no
5048fi
5049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5051echo "${ECHO_T}$ac_header_compiler" >&6
5052
5053# Is the header present?
5054echo "$as_me:$LINENO: checking $ac_header presence" >&5
5055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5056cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062#include <$ac_header>
5063_ACEOF
5064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } >/dev/null; then
5072  if test -s conftest.err; then
5073    ac_cpp_err=$ac_c_preproc_warn_flag
5074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5075  else
5076    ac_cpp_err=
5077  fi
5078else
5079  ac_cpp_err=yes
5080fi
5081if test -z "$ac_cpp_err"; then
5082  ac_header_preproc=yes
5083else
5084  echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087  ac_header_preproc=no
5088fi
5089rm -f conftest.err conftest.$ac_ext
5090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5091echo "${ECHO_T}$ac_header_preproc" >&6
5092
5093# So?  What about this header?
5094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5095  yes:no: )
5096    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5098    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5100    ac_header_preproc=yes
5101    ;;
5102  no:yes:* )
5103    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5105    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5106echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5107    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5109    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5110echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5113    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5115    (
5116      cat <<\_ASBOX
5117## ---------------------------------------------- ##
5118## Report this to orxonox-dev at mail.datacore.ch ##
5119## ---------------------------------------------- ##
5120_ASBOX
5121    ) |
5122      sed "s/^/$as_me: WARNING:     /" >&2
5123    ;;
5124esac
5125echo "$as_me:$LINENO: checking for $ac_header" >&5
5126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5127if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  eval "$as_ac_Header=\$ac_header_preproc"
5131fi
5132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5134
5135fi
5136if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137  cat >>confdefs.h <<_ACEOF
5138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5139_ACEOF
5140
5141else
5142  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5143echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5144   { (exit 1); exit 1; }; }
5145fi
5146
5147done
5148
5149#   checking for Windows glew library
5150    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5151echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5152if test "${ac_cv_lib_glew32_main+set}" = set; then
5153  echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155  ac_check_lib_save_LIBS=$LIBS
5156LIBS="-lglew32  $LIBS"
5157cat >conftest.$ac_ext <<_ACEOF
5158/* confdefs.h.  */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h.  */
5163
5164
5165int
5166main ()
5167{
5168main ();
5169  ;
5170  return 0;
5171}
5172_ACEOF
5173rm -f conftest.$ac_objext conftest$ac_exeext
5174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175  (eval $ac_link) 2>conftest.er1
5176  ac_status=$?
5177  grep -v '^ *+' conftest.er1 >conftest.err
5178  rm -f conftest.er1
5179  cat conftest.err >&5
5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); } &&
5182         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; } &&
5188         { ac_try='test -s conftest$ac_exeext'
5189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190  (eval $ac_try) 2>&5
5191  ac_status=$?
5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193  (exit $ac_status); }; }; then
5194  ac_cv_lib_glew32_main=yes
5195else
5196  echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199ac_cv_lib_glew32_main=no
5200fi
5201rm -f conftest.err conftest.$ac_objext \
5202      conftest$ac_exeext conftest.$ac_ext
5203LIBS=$ac_check_lib_save_LIBS
5204fi
5205echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5206echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5207if test $ac_cv_lib_glew32_main = yes; then
5208  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
5209fi
5210
5211    if test x$FOUND_GLEW != xyes ; then
5212         echo "------------------"
5213         echo "opengl extension wrangler not found."
5214         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5215         echo "------------------"
5216         exit -1
5217    fi
5218
5219#--------#
5220# openAL #
5221#--------#
5222# checking for openAL-headers
5223
5224for ac_header in AL/al.h
5225do
5226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5227if eval "test \"\${$as_ac_Header+set}\" = set"; then
5228  echo "$as_me:$LINENO: checking for $ac_header" >&5
5229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5230if eval "test \"\${$as_ac_Header+set}\" = set"; then
5231  echo $ECHO_N "(cached) $ECHO_C" >&6
5232fi
5233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5235else
5236  # Is the header compilable?
5237echo "$as_me:$LINENO: checking $ac_header usability" >&5
5238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5239cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245$ac_includes_default
5246#include <$ac_header>
5247_ACEOF
5248rm -f conftest.$ac_objext
5249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250  (eval $ac_compile) 2>conftest.er1
5251  ac_status=$?
5252  grep -v '^ *+' conftest.er1 >conftest.err
5253  rm -f conftest.er1
5254  cat conftest.err >&5
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); } &&
5257         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259  (eval $ac_try) 2>&5
5260  ac_status=$?
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); }; } &&
5263         { ac_try='test -s conftest.$ac_objext'
5264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265  (eval $ac_try) 2>&5
5266  ac_status=$?
5267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268  (exit $ac_status); }; }; then
5269  ac_header_compiler=yes
5270else
5271  echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274ac_header_compiler=no
5275fi
5276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5278echo "${ECHO_T}$ac_header_compiler" >&6
5279
5280# Is the header present?
5281echo "$as_me:$LINENO: checking $ac_header presence" >&5
5282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5283cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h.  */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h.  */
5289#include <$ac_header>
5290_ACEOF
5291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293  ac_status=$?
5294  grep -v '^ *+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); } >/dev/null; then
5299  if test -s conftest.err; then
5300    ac_cpp_err=$ac_c_preproc_warn_flag
5301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302  else
5303    ac_cpp_err=
5304  fi
5305else
5306  ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
5309  ac_header_preproc=yes
5310else
5311  echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
5314  ac_header_preproc=no
5315fi
5316rm -f conftest.err conftest.$ac_ext
5317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5318echo "${ECHO_T}$ac_header_preproc" >&6
5319
5320# So?  What about this header?
5321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5322  yes:no: )
5323    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5325    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5327    ac_header_preproc=yes
5328    ;;
5329  no:yes:* )
5330    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5332    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5333echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5334    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5336    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5337echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5340    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5342    (
5343      cat <<\_ASBOX
5344## ---------------------------------------------- ##
5345## Report this to orxonox-dev at mail.datacore.ch ##
5346## ---------------------------------------------- ##
5347_ASBOX
5348    ) |
5349      sed "s/^/$as_me: WARNING:     /" >&2
5350    ;;
5351esac
5352echo "$as_me:$LINENO: checking for $ac_header" >&5
5353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5354if eval "test \"\${$as_ac_Header+set}\" = set"; then
5355  echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357  eval "$as_ac_Header=\$ac_header_preproc"
5358fi
5359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5361
5362fi
5363if test `eval echo '${'$as_ac_Header'}'` = yes; then
5364  cat >>confdefs.h <<_ACEOF
5365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5366_ACEOF
5367
5368else
5369  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5370echo "$as_me: error: cannot find openAL header." >&2;}
5371   { (exit 1); exit 1; }; }
5372fi
5373
5374done
5375
5376# checking for openAL-lib
5377  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5378echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5379if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382  ac_check_lib_save_LIBS=$LIBS
5383LIBS="-lOpenAL32  $LIBS"
5384cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h.  */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h.  */
5390
5391
5392int
5393main ()
5394{
5395main ();
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext conftest$ac_exeext
5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402  (eval $ac_link) 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } &&
5409         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411  (eval $ac_try) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; } &&
5415         { ac_try='test -s conftest$ac_exeext'
5416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417  (eval $ac_try) 2>&5
5418  ac_status=$?
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); }; }; then
5421  ac_cv_lib_OpenAL32_main=yes
5422else
5423  echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426ac_cv_lib_OpenAL32_main=no
5427fi
5428rm -f conftest.err conftest.$ac_objext \
5429      conftest$ac_exeext conftest.$ac_ext
5430LIBS=$ac_check_lib_save_LIBS
5431fi
5432echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5433echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5434if test $ac_cv_lib_OpenAL32_main = yes; then
5435  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
5436fi
5437
5438  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5439echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5440if test "${ac_cv_lib_ALut_main+set}" = set; then
5441  echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443  ac_check_lib_save_LIBS=$LIBS
5444LIBS="-lALut  $LIBS"
5445cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h.  */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h.  */
5451
5452
5453int
5454main ()
5455{
5456main ();
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461rm -f conftest.$ac_objext conftest$ac_exeext
5462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463  (eval $ac_link) 2>conftest.er1
5464  ac_status=$?
5465  grep -v '^ *+' conftest.er1 >conftest.err
5466  rm -f conftest.er1
5467  cat conftest.err >&5
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); } &&
5470         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472  (eval $ac_try) 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); }; } &&
5476         { ac_try='test -s conftest$ac_exeext'
5477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478  (eval $ac_try) 2>&5
5479  ac_status=$?
5480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481  (exit $ac_status); }; }; then
5482  ac_cv_lib_ALut_main=yes
5483else
5484  echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487ac_cv_lib_ALut_main=no
5488fi
5489rm -f conftest.err conftest.$ac_objext \
5490      conftest$ac_exeext conftest.$ac_ext
5491LIBS=$ac_check_lib_save_LIBS
5492fi
5493echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5494echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5495if test $ac_cv_lib_ALut_main = yes; then
5496  FOUND_ALUT=yes; LIBS="-lALut $LIBS"
5497fi
5498
5499     if test x$FOUND_OPENAL != xyes ; then
5500        echo "------------------"
5501        echo "openal library not found."
5502        echo "please install the openal library, which can be found at http://www.openal.org"
5503        echo "------------------"
5504        exit -1
5505     fi
5506
5507
5508#-----------#
5509# SDL(win) #
5510#-----------#
5511# checking for SDL-headers
5512
5513for ac_header in SDL/SDL.h
5514do
5515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516if eval "test \"\${$as_ac_Header+set}\" = set"; then
5517  echo "$as_me:$LINENO: checking for $ac_header" >&5
5518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5519if eval "test \"\${$as_ac_Header+set}\" = set"; then
5520  echo $ECHO_N "(cached) $ECHO_C" >&6
5521fi
5522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5524else
5525  # Is the header compilable?
5526echo "$as_me:$LINENO: checking $ac_header usability" >&5
5527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5528cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h.  */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h.  */
5534$ac_includes_default
5535#include <$ac_header>
5536_ACEOF
5537rm -f conftest.$ac_objext
5538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539  (eval $ac_compile) 2>conftest.er1
5540  ac_status=$?
5541  grep -v '^ *+' conftest.er1 >conftest.err
5542  rm -f conftest.er1
5543  cat conftest.err >&5
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } &&
5546         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548  (eval $ac_try) 2>&5
5549  ac_status=$?
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); }; } &&
5552         { ac_try='test -s conftest.$ac_objext'
5553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554  (eval $ac_try) 2>&5
5555  ac_status=$?
5556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557  (exit $ac_status); }; }; then
5558  ac_header_compiler=yes
5559else
5560  echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
5563ac_header_compiler=no
5564fi
5565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5567echo "${ECHO_T}$ac_header_compiler" >&6
5568
5569# Is the header present?
5570echo "$as_me:$LINENO: checking $ac_header presence" >&5
5571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5572cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h.  */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h.  */
5578#include <$ac_header>
5579_ACEOF
5580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5581  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5582  ac_status=$?
5583  grep -v '^ *+' conftest.er1 >conftest.err
5584  rm -f conftest.er1
5585  cat conftest.err >&5
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); } >/dev/null; then
5588  if test -s conftest.err; then
5589    ac_cpp_err=$ac_c_preproc_warn_flag
5590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5591  else
5592    ac_cpp_err=
5593  fi
5594else
5595  ac_cpp_err=yes
5596fi
5597if test -z "$ac_cpp_err"; then
5598  ac_header_preproc=yes
5599else
5600  echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603  ac_header_preproc=no
5604fi
5605rm -f conftest.err conftest.$ac_ext
5606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5607echo "${ECHO_T}$ac_header_preproc" >&6
5608
5609# So?  What about this header?
5610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5611  yes:no: )
5612    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5614    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5616    ac_header_preproc=yes
5617    ;;
5618  no:yes:* )
5619    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5621    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5622echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5623    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5625    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5626echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5627    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5629    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5631    (
5632      cat <<\_ASBOX
5633## ---------------------------------------------- ##
5634## Report this to orxonox-dev at mail.datacore.ch ##
5635## ---------------------------------------------- ##
5636_ASBOX
5637    ) |
5638      sed "s/^/$as_me: WARNING:     /" >&2
5639    ;;
5640esac
5641echo "$as_me:$LINENO: checking for $ac_header" >&5
5642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5643if eval "test \"\${$as_ac_Header+set}\" = set"; then
5644  echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646  eval "$as_ac_Header=\$ac_header_preproc"
5647fi
5648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5650
5651fi
5652if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653  cat >>confdefs.h <<_ACEOF
5654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655_ACEOF
5656
5657else
5658  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5659echo "$as_me: error: cannot find SDL headers" >&2;}
5660   { (exit 1); exit 1; }; }
5661fi
5662
5663done
5664
5665
5666#checking for libSDL
5667    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5668echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5669if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5670  echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672  ac_check_lib_save_LIBS=$LIBS
5673LIBS="-lsdlmain  $LIBS"
5674cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h.  */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h.  */
5680
5681
5682int
5683main ()
5684{
5685main ();
5686  ;
5687  return 0;
5688}
5689_ACEOF
5690rm -f conftest.$ac_objext conftest$ac_exeext
5691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5692  (eval $ac_link) 2>conftest.er1
5693  ac_status=$?
5694  grep -v '^ *+' conftest.er1 >conftest.err
5695  rm -f conftest.er1
5696  cat conftest.err >&5
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); } &&
5699         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701  (eval $ac_try) 2>&5
5702  ac_status=$?
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); }; } &&
5705         { ac_try='test -s conftest$ac_exeext'
5706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707  (eval $ac_try) 2>&5
5708  ac_status=$?
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); }; }; then
5711  ac_cv_lib_sdlmain_main=yes
5712else
5713  echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716ac_cv_lib_sdlmain_main=no
5717fi
5718rm -f conftest.err conftest.$ac_objext \
5719      conftest$ac_exeext conftest.$ac_ext
5720LIBS=$ac_check_lib_save_LIBS
5721fi
5722echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5723echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5724if test $ac_cv_lib_sdlmain_main = yes; then
5725  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
5726fi
5727
5728    if test x$FOUND_sdlmain != xyes ; then
5729        echo "------------------"
5730        echo "SDL library not found."
5731        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5732        echo "------------------"
5733        exit 1
5734    fi
5735    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5736echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5737if test "${ac_cv_lib_sdl_main+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  ac_check_lib_save_LIBS=$LIBS
5741LIBS="-lsdl  $LIBS"
5742cat >conftest.$ac_ext <<_ACEOF
5743/* confdefs.h.  */
5744_ACEOF
5745cat confdefs.h >>conftest.$ac_ext
5746cat >>conftest.$ac_ext <<_ACEOF
5747/* end confdefs.h.  */
5748
5749
5750int
5751main ()
5752{
5753main ();
5754  ;
5755  return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext conftest$ac_exeext
5759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760  (eval $ac_link) 2>conftest.er1
5761  ac_status=$?
5762  grep -v '^ *+' conftest.er1 >conftest.err
5763  rm -f conftest.er1
5764  cat conftest.err >&5
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); } &&
5767         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769  (eval $ac_try) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; } &&
5773         { ac_try='test -s conftest$ac_exeext'
5774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775  (eval $ac_try) 2>&5
5776  ac_status=$?
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); }; }; then
5779  ac_cv_lib_sdl_main=yes
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784ac_cv_lib_sdl_main=no
5785fi
5786rm -f conftest.err conftest.$ac_objext \
5787      conftest$ac_exeext conftest.$ac_ext
5788LIBS=$ac_check_lib_save_LIBS
5789fi
5790echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5791echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5792if test $ac_cv_lib_sdl_main = yes; then
5793  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
5794fi
5795
5796    if test x$FOUND_SDL != xyes ; then
5797        echo "------------------"
5798        echo "SDL library not found."
5799        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5800        echo "------------------"
5801        exit -1
5802    fi
5803
5804  ;;
5805
5806#########
5807#-------#
5808# LINUX #
5809#-------#
5810#########
5811 *-*-linux*)
5812echo "Linux detected"
5813
5814 Linux="yes"
5815
5816##CPPFLAGS="-I/usr/include $CPPFLAGS"
5817##LDFLAGS="-L/usr/lib $LDFLAGS"
5818if test x$SHARED_LIB_PATH != xno; then
5819        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5820        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5821fi
5822
5823#--------#
5824# openGL #
5825#--------#
5826# checking gl header
5827
5828for ac_header in GL/gl.h
5829do
5830as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5831if eval "test \"\${$as_ac_Header+set}\" = set"; then
5832  echo "$as_me:$LINENO: checking for $ac_header" >&5
5833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5834if eval "test \"\${$as_ac_Header+set}\" = set"; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836fi
5837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5839else
5840  # Is the header compilable?
5841echo "$as_me:$LINENO: checking $ac_header usability" >&5
5842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5843cat >conftest.$ac_ext <<_ACEOF
5844/* confdefs.h.  */
5845_ACEOF
5846cat confdefs.h >>conftest.$ac_ext
5847cat >>conftest.$ac_ext <<_ACEOF
5848/* end confdefs.h.  */
5849$ac_includes_default
5850#include <$ac_header>
5851_ACEOF
5852rm -f conftest.$ac_objext
5853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854  (eval $ac_compile) 2>conftest.er1
5855  ac_status=$?
5856  grep -v '^ *+' conftest.er1 >conftest.err
5857  rm -f conftest.er1
5858  cat conftest.err >&5
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); } &&
5861         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863  (eval $ac_try) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; } &&
5867         { ac_try='test -s conftest.$ac_objext'
5868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869  (eval $ac_try) 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }; }; then
5873  ac_header_compiler=yes
5874else
5875  echo "$as_me: failed program was:" >&5
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
5878ac_header_compiler=no
5879fi
5880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5882echo "${ECHO_T}$ac_header_compiler" >&6
5883
5884# Is the header present?
5885echo "$as_me:$LINENO: checking $ac_header presence" >&5
5886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5887cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h.  */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h.  */
5893#include <$ac_header>
5894_ACEOF
5895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5896  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5897  ac_status=$?
5898  grep -v '^ *+' conftest.er1 >conftest.err
5899  rm -f conftest.er1
5900  cat conftest.err >&5
5901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902  (exit $ac_status); } >/dev/null; then
5903  if test -s conftest.err; then
5904    ac_cpp_err=$ac_c_preproc_warn_flag
5905    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5906  else
5907    ac_cpp_err=
5908  fi
5909else
5910  ac_cpp_err=yes
5911fi
5912if test -z "$ac_cpp_err"; then
5913  ac_header_preproc=yes
5914else
5915  echo "$as_me: failed program was:" >&5
5916sed 's/^/| /' conftest.$ac_ext >&5
5917
5918  ac_header_preproc=no
5919fi
5920rm -f conftest.err conftest.$ac_ext
5921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5922echo "${ECHO_T}$ac_header_preproc" >&6
5923
5924# So?  What about this header?
5925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5926  yes:no: )
5927    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5929    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5931    ac_header_preproc=yes
5932    ;;
5933  no:yes:* )
5934    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5936    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5937echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5938    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5940    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5941echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5942    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5944    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5946    (
5947      cat <<\_ASBOX
5948## ---------------------------------------------- ##
5949## Report this to orxonox-dev at mail.datacore.ch ##
5950## ---------------------------------------------- ##
5951_ASBOX
5952    ) |
5953      sed "s/^/$as_me: WARNING:     /" >&2
5954    ;;
5955esac
5956echo "$as_me:$LINENO: checking for $ac_header" >&5
5957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5958if eval "test \"\${$as_ac_Header+set}\" = set"; then
5959  echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961  eval "$as_ac_Header=\$ac_header_preproc"
5962fi
5963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965
5966fi
5967if test `eval echo '${'$as_ac_Header'}'` = yes; then
5968  cat >>confdefs.h <<_ACEOF
5969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5970_ACEOF
5971
5972else
5973  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5974echo "$as_me: error: cannot find opengl headers" >&2;}
5975   { (exit 1); exit 1; }; }
5976fi
5977
5978done
5979
5980
5981#  checking for Unix GL
5982   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5983echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5984if test "${ac_cv_lib_GL_main+set}" = set; then
5985  echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987  ac_check_lib_save_LIBS=$LIBS
5988LIBS="-lGL  $LIBS"
5989cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h.  */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h.  */
5995
5996
5997int
5998main ()
5999{
6000main ();
6001  ;
6002  return 0;
6003}
6004_ACEOF
6005rm -f conftest.$ac_objext conftest$ac_exeext
6006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007  (eval $ac_link) 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } &&
6014         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016  (eval $ac_try) 2>&5
6017  ac_status=$?
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); }; } &&
6020         { ac_try='test -s conftest$ac_exeext'
6021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022  (eval $ac_try) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }; }; then
6026  ac_cv_lib_GL_main=yes
6027else
6028  echo "$as_me: failed program was:" >&5
6029sed 's/^/| /' conftest.$ac_ext >&5
6030
6031ac_cv_lib_GL_main=no
6032fi
6033rm -f conftest.err conftest.$ac_objext \
6034      conftest$ac_exeext conftest.$ac_ext
6035LIBS=$ac_check_lib_save_LIBS
6036fi
6037echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6038echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6039if test $ac_cv_lib_GL_main = yes; then
6040  FOUND_GL=yes; LIBS="$LIBS -lGL"
6041fi
6042
6043   if test x$FOUND_GL != xyes ; then
6044         echo "------------------"
6045         echo "opengl not found."
6046         echo "please install the opengl package which can be found at http://www.opengl.org"
6047         echo "------------------"
6048         exit -1
6049   fi
6050
6051# cheking for GLU-header
6052
6053for ac_header in GL/glu.h
6054do
6055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057  echo "$as_me:$LINENO: checking for $ac_header" >&5
6058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6059if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060  echo $ECHO_N "(cached) $ECHO_C" >&6
6061fi
6062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6064else
6065  # Is the header compilable?
6066echo "$as_me:$LINENO: checking $ac_header usability" >&5
6067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6068cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h.  */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h.  */
6074$ac_includes_default
6075#include <$ac_header>
6076_ACEOF
6077rm -f conftest.$ac_objext
6078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079  (eval $ac_compile) 2>conftest.er1
6080  ac_status=$?
6081  grep -v '^ *+' conftest.er1 >conftest.err
6082  rm -f conftest.er1
6083  cat conftest.err >&5
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); } &&
6086         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088  (eval $ac_try) 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }; } &&
6092         { ac_try='test -s conftest.$ac_objext'
6093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094  (eval $ac_try) 2>&5
6095  ac_status=$?
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); }; }; then
6098  ac_header_compiler=yes
6099else
6100  echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103ac_header_compiler=no
6104fi
6105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107echo "${ECHO_T}$ac_header_compiler" >&6
6108
6109# Is the header present?
6110echo "$as_me:$LINENO: checking $ac_header presence" >&5
6111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6112cat >conftest.$ac_ext <<_ACEOF
6113/* confdefs.h.  */
6114_ACEOF
6115cat confdefs.h >>conftest.$ac_ext
6116cat >>conftest.$ac_ext <<_ACEOF
6117/* end confdefs.h.  */
6118#include <$ac_header>
6119_ACEOF
6120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6121  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6122  ac_status=$?
6123  grep -v '^ *+' conftest.er1 >conftest.err
6124  rm -f conftest.er1
6125  cat conftest.err >&5
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); } >/dev/null; then
6128  if test -s conftest.err; then
6129    ac_cpp_err=$ac_c_preproc_warn_flag
6130    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6131  else
6132    ac_cpp_err=
6133  fi
6134else
6135  ac_cpp_err=yes
6136fi
6137if test -z "$ac_cpp_err"; then
6138  ac_header_preproc=yes
6139else
6140  echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143  ac_header_preproc=no
6144fi
6145rm -f conftest.err conftest.$ac_ext
6146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6147echo "${ECHO_T}$ac_header_preproc" >&6
6148
6149# So?  What about this header?
6150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6151  yes:no: )
6152    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6154    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6156    ac_header_preproc=yes
6157    ;;
6158  no:yes:* )
6159    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6161    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6162echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6163    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6165    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6166echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6167    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6169    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6171    (
6172      cat <<\_ASBOX
6173## ---------------------------------------------- ##
6174## Report this to orxonox-dev at mail.datacore.ch ##
6175## ---------------------------------------------- ##
6176_ASBOX
6177    ) |
6178      sed "s/^/$as_me: WARNING:     /" >&2
6179    ;;
6180esac
6181echo "$as_me:$LINENO: checking for $ac_header" >&5
6182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6183if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184  echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186  eval "$as_ac_Header=\$ac_header_preproc"
6187fi
6188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6190
6191fi
6192if test `eval echo '${'$as_ac_Header'}'` = yes; then
6193  cat >>confdefs.h <<_ACEOF
6194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6195_ACEOF
6196
6197else
6198  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6199echo "$as_me: error: cannot find opengl headers" >&2;}
6200   { (exit 1); exit 1; }; }
6201fi
6202
6203done
6204
6205    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6206echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6207if test "${ac_cv_lib_GLU_main+set}" = set; then
6208  echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210  ac_check_lib_save_LIBS=$LIBS
6211LIBS="-lGLU  $LIBS"
6212cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h.  */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h.  */
6218
6219
6220int
6221main ()
6222{
6223main ();
6224  ;
6225  return 0;
6226}
6227_ACEOF
6228rm -f conftest.$ac_objext conftest$ac_exeext
6229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6230  (eval $ac_link) 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } &&
6237         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239  (eval $ac_try) 2>&5
6240  ac_status=$?
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }; } &&
6243         { ac_try='test -s conftest$ac_exeext'
6244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245  (eval $ac_try) 2>&5
6246  ac_status=$?
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); }; }; then
6249  ac_cv_lib_GLU_main=yes
6250else
6251  echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254ac_cv_lib_GLU_main=no
6255fi
6256rm -f conftest.err conftest.$ac_objext \
6257      conftest$ac_exeext conftest.$ac_ext
6258LIBS=$ac_check_lib_save_LIBS
6259fi
6260echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6261echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6262if test $ac_cv_lib_GLU_main = yes; then
6263  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6264fi
6265
6266    if test x$FOUND_GLU != xyes ; then
6267         echo "------------------"
6268         echo "GLU library not found."
6269         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6270         echo "------------------"
6271         exit -1
6272    fi
6273
6274# checking for GLEW-headers
6275
6276for ac_header in GL/glew.h
6277do
6278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279if eval "test \"\${$as_ac_Header+set}\" = set"; then
6280  echo "$as_me:$LINENO: checking for $ac_header" >&5
6281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6282if eval "test \"\${$as_ac_Header+set}\" = set"; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284fi
6285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6287else
6288  # Is the header compilable?
6289echo "$as_me:$LINENO: checking $ac_header usability" >&5
6290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6291cat >conftest.$ac_ext <<_ACEOF
6292/* confdefs.h.  */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h.  */
6297$ac_includes_default
6298#include <$ac_header>
6299_ACEOF
6300rm -f conftest.$ac_objext
6301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302  (eval $ac_compile) 2>conftest.er1
6303  ac_status=$?
6304  grep -v '^ *+' conftest.er1 >conftest.err
6305  rm -f conftest.er1
6306  cat conftest.err >&5
6307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308  (exit $ac_status); } &&
6309         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311  (eval $ac_try) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); }; } &&
6315         { ac_try='test -s conftest.$ac_objext'
6316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317  (eval $ac_try) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; }; then
6321  ac_header_compiler=yes
6322else
6323  echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326ac_header_compiler=no
6327fi
6328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330echo "${ECHO_T}$ac_header_compiler" >&6
6331
6332# Is the header present?
6333echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6335cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h.  */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h.  */
6341#include <$ac_header>
6342_ACEOF
6343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345  ac_status=$?
6346  grep -v '^ *+' conftest.er1 >conftest.err
6347  rm -f conftest.er1
6348  cat conftest.err >&5
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); } >/dev/null; then
6351  if test -s conftest.err; then
6352    ac_cpp_err=$ac_c_preproc_warn_flag
6353    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354  else
6355    ac_cpp_err=
6356  fi
6357else
6358  ac_cpp_err=yes
6359fi
6360if test -z "$ac_cpp_err"; then
6361  ac_header_preproc=yes
6362else
6363  echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366  ac_header_preproc=no
6367fi
6368rm -f conftest.err conftest.$ac_ext
6369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370echo "${ECHO_T}$ac_header_preproc" >&6
6371
6372# So?  What about this header?
6373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374  yes:no: )
6375    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379    ac_header_preproc=yes
6380    ;;
6381  no:yes:* )
6382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6389echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6394    (
6395      cat <<\_ASBOX
6396## ---------------------------------------------- ##
6397## Report this to orxonox-dev at mail.datacore.ch ##
6398## ---------------------------------------------- ##
6399_ASBOX
6400    ) |
6401      sed "s/^/$as_me: WARNING:     /" >&2
6402    ;;
6403esac
6404echo "$as_me:$LINENO: checking for $ac_header" >&5
6405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  eval "$as_ac_Header=\$ac_header_preproc"
6410fi
6411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413
6414fi
6415if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416  cat >>confdefs.h <<_ACEOF
6417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418_ACEOF
6419
6420else
6421  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6422echo "$as_me: error: cannot find glew headers" >&2;}
6423   { (exit 1); exit 1; }; }
6424fi
6425
6426done
6427
6428# checking for GLEW-lib
6429  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6430echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6431if test "${ac_cv_lib_GLEW_main+set}" = set; then
6432  echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434  ac_check_lib_save_LIBS=$LIBS
6435LIBS="-lGLEW  $LIBS"
6436cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442
6443
6444int
6445main ()
6446{
6447main ();
6448  ;
6449  return 0;
6450}
6451_ACEOF
6452rm -f conftest.$ac_objext conftest$ac_exeext
6453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454  (eval $ac_link) 2>conftest.er1
6455  ac_status=$?
6456  grep -v '^ *+' conftest.er1 >conftest.err
6457  rm -f conftest.er1
6458  cat conftest.err >&5
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); } &&
6461         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463  (eval $ac_try) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; } &&
6467         { ac_try='test -s conftest$ac_exeext'
6468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469  (eval $ac_try) 2>&5
6470  ac_status=$?
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); }; }; then
6473  ac_cv_lib_GLEW_main=yes
6474else
6475  echo "$as_me: failed program was:" >&5
6476sed 's/^/| /' conftest.$ac_ext >&5
6477
6478ac_cv_lib_GLEW_main=no
6479fi
6480rm -f conftest.err conftest.$ac_objext \
6481      conftest$ac_exeext conftest.$ac_ext
6482LIBS=$ac_check_lib_save_LIBS
6483fi
6484echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6485echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6486if test $ac_cv_lib_GLEW_main = yes; then
6487  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
6488fi
6489
6490   if test x$FOUND_GLEW != xyes ; then
6491         echo "------------------"
6492         echo "glew not found."
6493         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6494         echo "------------------"
6495         exit -1
6496   fi
6497
6498#--------#
6499# openAL #
6500#--------#
6501# checking for openAL-headers
6502
6503for ac_header in AL/al.h
6504do
6505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507  echo "$as_me:$LINENO: checking for $ac_header" >&5
6508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510  echo $ECHO_N "(cached) $ECHO_C" >&6
6511fi
6512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6514else
6515  # Is the header compilable?
6516echo "$as_me:$LINENO: checking $ac_header usability" >&5
6517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6518cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h.  */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h.  */
6524$ac_includes_default
6525#include <$ac_header>
6526_ACEOF
6527rm -f conftest.$ac_objext
6528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6529  (eval $ac_compile) 2>conftest.er1
6530  ac_status=$?
6531  grep -v '^ *+' conftest.er1 >conftest.err
6532  rm -f conftest.er1
6533  cat conftest.err >&5
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); } &&
6536         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538  (eval $ac_try) 2>&5
6539  ac_status=$?
6540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541  (exit $ac_status); }; } &&
6542         { ac_try='test -s conftest.$ac_objext'
6543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544  (eval $ac_try) 2>&5
6545  ac_status=$?
6546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547  (exit $ac_status); }; }; then
6548  ac_header_compiler=yes
6549else
6550  echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553ac_header_compiler=no
6554fi
6555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6557echo "${ECHO_T}$ac_header_compiler" >&6
6558
6559# Is the header present?
6560echo "$as_me:$LINENO: checking $ac_header presence" >&5
6561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6562cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h.  */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h.  */
6568#include <$ac_header>
6569_ACEOF
6570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6571  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6572  ac_status=$?
6573  grep -v '^ *+' conftest.er1 >conftest.err
6574  rm -f conftest.er1
6575  cat conftest.err >&5
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); } >/dev/null; then
6578  if test -s conftest.err; then
6579    ac_cpp_err=$ac_c_preproc_warn_flag
6580    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6581  else
6582    ac_cpp_err=
6583  fi
6584else
6585  ac_cpp_err=yes
6586fi
6587if test -z "$ac_cpp_err"; then
6588  ac_header_preproc=yes
6589else
6590  echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593  ac_header_preproc=no
6594fi
6595rm -f conftest.err conftest.$ac_ext
6596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6597echo "${ECHO_T}$ac_header_preproc" >&6
6598
6599# So?  What about this header?
6600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6601  yes:no: )
6602    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6604    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6606    ac_header_preproc=yes
6607    ;;
6608  no:yes:* )
6609    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6611    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6612echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6613    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6615    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6616echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6617    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6619    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6621    (
6622      cat <<\_ASBOX
6623## ---------------------------------------------- ##
6624## Report this to orxonox-dev at mail.datacore.ch ##
6625## ---------------------------------------------- ##
6626_ASBOX
6627    ) |
6628      sed "s/^/$as_me: WARNING:     /" >&2
6629    ;;
6630esac
6631echo "$as_me:$LINENO: checking for $ac_header" >&5
6632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6633if eval "test \"\${$as_ac_Header+set}\" = set"; then
6634  echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636  eval "$as_ac_Header=\$ac_header_preproc"
6637fi
6638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6640
6641fi
6642if test `eval echo '${'$as_ac_Header'}'` = yes; then
6643  cat >>confdefs.h <<_ACEOF
6644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6645_ACEOF
6646
6647else
6648  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6649echo "$as_me: error: cannot find openAL header." >&2;}
6650   { (exit 1); exit 1; }; }
6651fi
6652
6653done
6654
6655# checking for openAL-lib
6656  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6657echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6658if test "${ac_cv_lib_openal_main+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  ac_check_lib_save_LIBS=$LIBS
6662LIBS="-lopenal  $LIBS"
6663cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h.  */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h.  */
6669
6670
6671int
6672main ()
6673{
6674main ();
6675  ;
6676  return 0;
6677}
6678_ACEOF
6679rm -f conftest.$ac_objext conftest$ac_exeext
6680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681  (eval $ac_link) 2>conftest.er1
6682  ac_status=$?
6683  grep -v '^ *+' conftest.er1 >conftest.err
6684  rm -f conftest.er1
6685  cat conftest.err >&5
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); } &&
6688         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690  (eval $ac_try) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); }; } &&
6694         { ac_try='test -s conftest$ac_exeext'
6695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696  (eval $ac_try) 2>&5
6697  ac_status=$?
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); }; }; then
6700  ac_cv_lib_openal_main=yes
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705ac_cv_lib_openal_main=no
6706fi
6707rm -f conftest.err conftest.$ac_objext \
6708      conftest$ac_exeext conftest.$ac_ext
6709LIBS=$ac_check_lib_save_LIBS
6710fi
6711echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6712echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6713if test $ac_cv_lib_openal_main = yes; then
6714  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
6715fi
6716
6717     if test x$FOUND_OPENAL != xyes ; then
6718        echo "------------------"
6719        echo "openal library not found."
6720        echo "please install the openal library, which can be found at http://www.openal.org"
6721        echo "------------------"
6722        exit -1
6723     fi
6724# checking for alut
6725
6726for ac_header in AL/alut.h
6727do
6728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6729if eval "test \"\${$as_ac_Header+set}\" = set"; then
6730  echo "$as_me:$LINENO: checking for $ac_header" >&5
6731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6732if eval "test \"\${$as_ac_Header+set}\" = set"; then
6733  echo $ECHO_N "(cached) $ECHO_C" >&6
6734fi
6735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6737else
6738  # Is the header compilable?
6739echo "$as_me:$LINENO: checking $ac_header usability" >&5
6740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6741cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h.  */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h.  */
6747$ac_includes_default
6748#include <$ac_header>
6749_ACEOF
6750rm -f conftest.$ac_objext
6751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752  (eval $ac_compile) 2>conftest.er1
6753  ac_status=$?
6754  grep -v '^ *+' conftest.er1 >conftest.err
6755  rm -f conftest.er1
6756  cat conftest.err >&5
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } &&
6759         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761  (eval $ac_try) 2>&5
6762  ac_status=$?
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); }; } &&
6765         { ac_try='test -s conftest.$ac_objext'
6766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767  (eval $ac_try) 2>&5
6768  ac_status=$?
6769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770  (exit $ac_status); }; }; then
6771  ac_header_compiler=yes
6772else
6773  echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776ac_header_compiler=no
6777fi
6778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6779echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6780echo "${ECHO_T}$ac_header_compiler" >&6
6781
6782# Is the header present?
6783echo "$as_me:$LINENO: checking $ac_header presence" >&5
6784echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6785cat >conftest.$ac_ext <<_ACEOF
6786/* confdefs.h.  */
6787_ACEOF
6788cat confdefs.h >>conftest.$ac_ext
6789cat >>conftest.$ac_ext <<_ACEOF
6790/* end confdefs.h.  */
6791#include <$ac_header>
6792_ACEOF
6793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795  ac_status=$?
6796  grep -v '^ *+' conftest.er1 >conftest.err
6797  rm -f conftest.er1
6798  cat conftest.err >&5
6799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800  (exit $ac_status); } >/dev/null; then
6801  if test -s conftest.err; then
6802    ac_cpp_err=$ac_c_preproc_warn_flag
6803    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6804  else
6805    ac_cpp_err=
6806  fi
6807else
6808  ac_cpp_err=yes
6809fi
6810if test -z "$ac_cpp_err"; then
6811  ac_header_preproc=yes
6812else
6813  echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816  ac_header_preproc=no
6817fi
6818rm -f conftest.err conftest.$ac_ext
6819echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6820echo "${ECHO_T}$ac_header_preproc" >&6
6821
6822# So?  What about this header?
6823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6824  yes:no: )
6825    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6827    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6829    ac_header_preproc=yes
6830    ;;
6831  no:yes:* )
6832    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6834    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6835echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6836    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6838    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6839echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6840    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6842    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6844    (
6845      cat <<\_ASBOX
6846## ---------------------------------------------- ##
6847## Report this to orxonox-dev at mail.datacore.ch ##
6848## ---------------------------------------------- ##
6849_ASBOX
6850    ) |
6851      sed "s/^/$as_me: WARNING:     /" >&2
6852    ;;
6853esac
6854echo "$as_me:$LINENO: checking for $ac_header" >&5
6855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6856if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857  echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859  eval "$as_ac_Header=\$ac_header_preproc"
6860fi
6861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6863
6864fi
6865if test `eval echo '${'$as_ac_Header'}'` = yes; then
6866  cat >>confdefs.h <<_ACEOF
6867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868_ACEOF
6869
6870else
6871  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6872echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6873   { (exit 1); exit 1; }; }
6874fi
6875
6876done
6877
6878  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6879echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6880if test "${ac_cv_lib_alut_main+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883  ac_check_lib_save_LIBS=$LIBS
6884LIBS="-lalut  $LIBS"
6885cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891
6892
6893int
6894main ()
6895{
6896main ();
6897  ;
6898  return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext conftest$ac_exeext
6902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6903  (eval $ac_link) 2>conftest.er1
6904  ac_status=$?
6905  grep -v '^ *+' conftest.er1 >conftest.err
6906  rm -f conftest.er1
6907  cat conftest.err >&5
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); } &&
6910         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912  (eval $ac_try) 2>&5
6913  ac_status=$?
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); }; } &&
6916         { ac_try='test -s conftest$ac_exeext'
6917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918  (eval $ac_try) 2>&5
6919  ac_status=$?
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); }; }; then
6922  ac_cv_lib_alut_main=yes
6923else
6924  echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927ac_cv_lib_alut_main=no
6928fi
6929rm -f conftest.err conftest.$ac_objext \
6930      conftest$ac_exeext conftest.$ac_ext
6931LIBS=$ac_check_lib_save_LIBS
6932fi
6933echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6934echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6935if test $ac_cv_lib_alut_main = yes; then
6936  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
6937fi
6938
6939
6940#-----#
6941# SDL #
6942#-----#
6943# checking for SDL
6944  echo "$as_me:$LINENO: checking for SDL-version" >&5
6945echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6946  SDL_VERSION=`sdl-config --version`
6947  echo $SDL_VERSION
6948
6949   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6950
6951for ac_header in SDL.h
6952do
6953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6954if eval "test \"\${$as_ac_Header+set}\" = set"; then
6955  echo "$as_me:$LINENO: checking for $ac_header" >&5
6956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6957if eval "test \"\${$as_ac_Header+set}\" = set"; then
6958  echo $ECHO_N "(cached) $ECHO_C" >&6
6959fi
6960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6962else
6963  # Is the header compilable?
6964echo "$as_me:$LINENO: checking $ac_header usability" >&5
6965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6966cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h.  */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h.  */
6972$ac_includes_default
6973#include <$ac_header>
6974_ACEOF
6975rm -f conftest.$ac_objext
6976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977  (eval $ac_compile) 2>conftest.er1
6978  ac_status=$?
6979  grep -v '^ *+' conftest.er1 >conftest.err
6980  rm -f conftest.er1
6981  cat conftest.err >&5
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); } &&
6984         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986  (eval $ac_try) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }; } &&
6990         { ac_try='test -s conftest.$ac_objext'
6991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992  (eval $ac_try) 2>&5
6993  ac_status=$?
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); }; }; then
6996  ac_header_compiler=yes
6997else
6998  echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001ac_header_compiler=no
7002fi
7003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7005echo "${ECHO_T}$ac_header_compiler" >&6
7006
7007# Is the header present?
7008echo "$as_me:$LINENO: checking $ac_header presence" >&5
7009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7010cat >conftest.$ac_ext <<_ACEOF
7011/* confdefs.h.  */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h.  */
7016#include <$ac_header>
7017_ACEOF
7018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7019  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7020  ac_status=$?
7021  grep -v '^ *+' conftest.er1 >conftest.err
7022  rm -f conftest.er1
7023  cat conftest.err >&5
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); } >/dev/null; then
7026  if test -s conftest.err; then
7027    ac_cpp_err=$ac_c_preproc_warn_flag
7028    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7029  else
7030    ac_cpp_err=
7031  fi
7032else
7033  ac_cpp_err=yes
7034fi
7035if test -z "$ac_cpp_err"; then
7036  ac_header_preproc=yes
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041  ac_header_preproc=no
7042fi
7043rm -f conftest.err conftest.$ac_ext
7044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7045echo "${ECHO_T}$ac_header_preproc" >&6
7046
7047# So?  What about this header?
7048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7049  yes:no: )
7050    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7052    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7054    ac_header_preproc=yes
7055    ;;
7056  no:yes:* )
7057    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7059    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7060echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7061    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7063    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7064echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7065    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7067    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7069    (
7070      cat <<\_ASBOX
7071## ---------------------------------------------- ##
7072## Report this to orxonox-dev at mail.datacore.ch ##
7073## ---------------------------------------------- ##
7074_ASBOX
7075    ) |
7076      sed "s/^/$as_me: WARNING:     /" >&2
7077    ;;
7078esac
7079echo "$as_me:$LINENO: checking for $ac_header" >&5
7080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7081if eval "test \"\${$as_ac_Header+set}\" = set"; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  eval "$as_ac_Header=\$ac_header_preproc"
7085fi
7086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7088
7089fi
7090if test `eval echo '${'$as_ac_Header'}'` = yes; then
7091  cat >>confdefs.h <<_ACEOF
7092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7093_ACEOF
7094
7095else
7096
7097for ac_header in SDL/SDL.h
7098do
7099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7100if eval "test \"\${$as_ac_Header+set}\" = set"; then
7101  echo "$as_me:$LINENO: checking for $ac_header" >&5
7102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7103if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104  echo $ECHO_N "(cached) $ECHO_C" >&6
7105fi
7106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7108else
7109  # Is the header compilable?
7110echo "$as_me:$LINENO: checking $ac_header usability" >&5
7111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7112cat >conftest.$ac_ext <<_ACEOF
7113/* confdefs.h.  */
7114_ACEOF
7115cat confdefs.h >>conftest.$ac_ext
7116cat >>conftest.$ac_ext <<_ACEOF
7117/* end confdefs.h.  */
7118$ac_includes_default
7119#include <$ac_header>
7120_ACEOF
7121rm -f conftest.$ac_objext
7122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123  (eval $ac_compile) 2>conftest.er1
7124  ac_status=$?
7125  grep -v '^ *+' conftest.er1 >conftest.err
7126  rm -f conftest.er1
7127  cat conftest.err >&5
7128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129  (exit $ac_status); } &&
7130         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132  (eval $ac_try) 2>&5
7133  ac_status=$?
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); }; } &&
7136         { ac_try='test -s conftest.$ac_objext'
7137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138  (eval $ac_try) 2>&5
7139  ac_status=$?
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); }; }; then
7142  ac_header_compiler=yes
7143else
7144  echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147ac_header_compiler=no
7148fi
7149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151echo "${ECHO_T}$ac_header_compiler" >&6
7152
7153# Is the header present?
7154echo "$as_me:$LINENO: checking $ac_header presence" >&5
7155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7156cat >conftest.$ac_ext <<_ACEOF
7157/* confdefs.h.  */
7158_ACEOF
7159cat confdefs.h >>conftest.$ac_ext
7160cat >>conftest.$ac_ext <<_ACEOF
7161/* end confdefs.h.  */
7162#include <$ac_header>
7163_ACEOF
7164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7165  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7166  ac_status=$?
7167  grep -v '^ *+' conftest.er1 >conftest.err
7168  rm -f conftest.er1
7169  cat conftest.err >&5
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); } >/dev/null; then
7172  if test -s conftest.err; then
7173    ac_cpp_err=$ac_c_preproc_warn_flag
7174    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7175  else
7176    ac_cpp_err=
7177  fi
7178else
7179  ac_cpp_err=yes
7180fi
7181if test -z "$ac_cpp_err"; then
7182  ac_header_preproc=yes
7183else
7184  echo "$as_me: failed program was:" >&5
7185sed 's/^/| /' conftest.$ac_ext >&5
7186
7187  ac_header_preproc=no
7188fi
7189rm -f conftest.err conftest.$ac_ext
7190echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7191echo "${ECHO_T}$ac_header_preproc" >&6
7192
7193# So?  What about this header?
7194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195  yes:no: )
7196    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7197echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7198    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7199echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7200    ac_header_preproc=yes
7201    ;;
7202  no:yes:* )
7203    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7205    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7206echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7207    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7208echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7209    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7210echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7211    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7213    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7214echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7215    (
7216      cat <<\_ASBOX
7217## ---------------------------------------------- ##
7218## Report this to orxonox-dev at mail.datacore.ch ##
7219## ---------------------------------------------- ##
7220_ASBOX
7221    ) |
7222      sed "s/^/$as_me: WARNING:     /" >&2
7223    ;;
7224esac
7225echo "$as_me:$LINENO: checking for $ac_header" >&5
7226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7227if eval "test \"\${$as_ac_Header+set}\" = set"; then
7228  echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230  eval "$as_ac_Header=\$ac_header_preproc"
7231fi
7232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7234
7235fi
7236if test `eval echo '${'$as_ac_Header'}'` = yes; then
7237  cat >>confdefs.h <<_ACEOF
7238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239_ACEOF
7240
7241else
7242  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7243echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7244   { (exit 1); exit 1; }; }
7245fi
7246
7247done
7248
7249fi
7250
7251done
7252
7253   LIBS="`sdl-config --libs` $LIBS"
7254   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7255echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7256if test "${ac_cv_lib_SDL_main+set}" = set; then
7257  echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259  ac_check_lib_save_LIBS=$LIBS
7260LIBS="-lSDL  $LIBS"
7261cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h.  */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h.  */
7267
7268
7269int
7270main ()
7271{
7272main ();
7273  ;
7274  return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext conftest$ac_exeext
7278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7279  (eval $ac_link) 2>conftest.er1
7280  ac_status=$?
7281  grep -v '^ *+' conftest.er1 >conftest.err
7282  rm -f conftest.er1
7283  cat conftest.err >&5
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); } &&
7286         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288  (eval $ac_try) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }; } &&
7292         { ac_try='test -s conftest$ac_exeext'
7293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294  (eval $ac_try) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; }; then
7298  ac_cv_lib_SDL_main=yes
7299else
7300  echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303ac_cv_lib_SDL_main=no
7304fi
7305rm -f conftest.err conftest.$ac_objext \
7306      conftest$ac_exeext conftest.$ac_ext
7307LIBS=$ac_check_lib_save_LIBS
7308fi
7309echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7310echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7311if test $ac_cv_lib_SDL_main = yes; then
7312  FOUND_SDL=yes
7313fi
7314
7315    if test x$FOUND_SDL != xyes ; then
7316        echo "------------------"
7317        echo "SDL library not found."
7318        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7319        echo "------------------"
7320        exit -1
7321     fi
7322
7323    ;;
7324
7325#############
7326#-----------#
7327# MAC -OS X #
7328#-----------#
7329#############
7330 *darwin*)
7331 echo "OS X detected"
7332
7333 osX="yes"
7334
7335 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7336 LDFLAGS="$LDFLAGS -L/sw/lib"
7337# checking gl header
7338
7339for ac_header in OpenGL/gl.h
7340do
7341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7342if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343  echo "$as_me:$LINENO: checking for $ac_header" >&5
7344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7345if eval "test \"\${$as_ac_Header+set}\" = set"; then
7346  echo $ECHO_N "(cached) $ECHO_C" >&6
7347fi
7348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7350else
7351  # Is the header compilable?
7352echo "$as_me:$LINENO: checking $ac_header usability" >&5
7353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7354cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h.  */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h.  */
7360$ac_includes_default
7361#include <$ac_header>
7362_ACEOF
7363rm -f conftest.$ac_objext
7364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7365  (eval $ac_compile) 2>conftest.er1
7366  ac_status=$?
7367  grep -v '^ *+' conftest.er1 >conftest.err
7368  rm -f conftest.er1
7369  cat conftest.err >&5
7370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371  (exit $ac_status); } &&
7372         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374  (eval $ac_try) 2>&5
7375  ac_status=$?
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); }; } &&
7378         { ac_try='test -s conftest.$ac_objext'
7379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380  (eval $ac_try) 2>&5
7381  ac_status=$?
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); }; }; then
7384  ac_header_compiler=yes
7385else
7386  echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389ac_header_compiler=no
7390fi
7391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7393echo "${ECHO_T}$ac_header_compiler" >&6
7394
7395# Is the header present?
7396echo "$as_me:$LINENO: checking $ac_header presence" >&5
7397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7398cat >conftest.$ac_ext <<_ACEOF
7399/* confdefs.h.  */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h.  */
7404#include <$ac_header>
7405_ACEOF
7406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7407  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7408  ac_status=$?
7409  grep -v '^ *+' conftest.er1 >conftest.err
7410  rm -f conftest.er1
7411  cat conftest.err >&5
7412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413  (exit $ac_status); } >/dev/null; then
7414  if test -s conftest.err; then
7415    ac_cpp_err=$ac_c_preproc_warn_flag
7416    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7417  else
7418    ac_cpp_err=
7419  fi
7420else
7421  ac_cpp_err=yes
7422fi
7423if test -z "$ac_cpp_err"; then
7424  ac_header_preproc=yes
7425else
7426  echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429  ac_header_preproc=no
7430fi
7431rm -f conftest.err conftest.$ac_ext
7432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7433echo "${ECHO_T}$ac_header_preproc" >&6
7434
7435# So?  What about this header?
7436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7437  yes:no: )
7438    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7442    ac_header_preproc=yes
7443    ;;
7444  no:yes:* )
7445    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7447    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7448echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7449    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7451    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7452echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7455    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7457    (
7458      cat <<\_ASBOX
7459## ---------------------------------------------- ##
7460## Report this to orxonox-dev at mail.datacore.ch ##
7461## ---------------------------------------------- ##
7462_ASBOX
7463    ) |
7464      sed "s/^/$as_me: WARNING:     /" >&2
7465    ;;
7466esac
7467echo "$as_me:$LINENO: checking for $ac_header" >&5
7468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7469if eval "test \"\${$as_ac_Header+set}\" = set"; then
7470  echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472  eval "$as_ac_Header=\$ac_header_preproc"
7473fi
7474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476
7477fi
7478if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479  cat >>confdefs.h <<_ACEOF
7480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481_ACEOF
7482
7483else
7484  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7485echo "$as_me: error: cannot find opengl headers" >&2;}
7486   { (exit 1); exit 1; }; }
7487fi
7488
7489done
7490
7491# cheking for GLU-header
7492
7493for ac_header in OpenGL/glu.h
7494do
7495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7496if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497  echo "$as_me:$LINENO: checking for $ac_header" >&5
7498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7499if eval "test \"\${$as_ac_Header+set}\" = set"; then
7500  echo $ECHO_N "(cached) $ECHO_C" >&6
7501fi
7502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7504else
7505  # Is the header compilable?
7506echo "$as_me:$LINENO: checking $ac_header usability" >&5
7507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7508cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h.  */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h.  */
7514$ac_includes_default
7515#include <$ac_header>
7516_ACEOF
7517rm -f conftest.$ac_objext
7518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519  (eval $ac_compile) 2>conftest.er1
7520  ac_status=$?
7521  grep -v '^ *+' conftest.er1 >conftest.err
7522  rm -f conftest.er1
7523  cat conftest.err >&5
7524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525  (exit $ac_status); } &&
7526         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528  (eval $ac_try) 2>&5
7529  ac_status=$?
7530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531  (exit $ac_status); }; } &&
7532         { ac_try='test -s conftest.$ac_objext'
7533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534  (eval $ac_try) 2>&5
7535  ac_status=$?
7536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537  (exit $ac_status); }; }; then
7538  ac_header_compiler=yes
7539else
7540  echo "$as_me: failed program was:" >&5
7541sed 's/^/| /' conftest.$ac_ext >&5
7542
7543ac_header_compiler=no
7544fi
7545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7547echo "${ECHO_T}$ac_header_compiler" >&6
7548
7549# Is the header present?
7550echo "$as_me:$LINENO: checking $ac_header presence" >&5
7551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7552cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h.  */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h.  */
7558#include <$ac_header>
7559_ACEOF
7560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7561  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7562  ac_status=$?
7563  grep -v '^ *+' conftest.er1 >conftest.err
7564  rm -f conftest.er1
7565  cat conftest.err >&5
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); } >/dev/null; then
7568  if test -s conftest.err; then
7569    ac_cpp_err=$ac_c_preproc_warn_flag
7570    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7571  else
7572    ac_cpp_err=
7573  fi
7574else
7575  ac_cpp_err=yes
7576fi
7577if test -z "$ac_cpp_err"; then
7578  ac_header_preproc=yes
7579else
7580  echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583  ac_header_preproc=no
7584fi
7585rm -f conftest.err conftest.$ac_ext
7586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7587echo "${ECHO_T}$ac_header_preproc" >&6
7588
7589# So?  What about this header?
7590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7591  yes:no: )
7592    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7596    ac_header_preproc=yes
7597    ;;
7598  no:yes:* )
7599    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7601    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7602echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7603    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7605    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7606echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7607    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7609    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7611    (
7612      cat <<\_ASBOX
7613## ---------------------------------------------- ##
7614## Report this to orxonox-dev at mail.datacore.ch ##
7615## ---------------------------------------------- ##
7616_ASBOX
7617    ) |
7618      sed "s/^/$as_me: WARNING:     /" >&2
7619    ;;
7620esac
7621echo "$as_me:$LINENO: checking for $ac_header" >&5
7622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7623if eval "test \"\${$as_ac_Header+set}\" = set"; then
7624  echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626  eval "$as_ac_Header=\$ac_header_preproc"
7627fi
7628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7630
7631fi
7632if test `eval echo '${'$as_ac_Header'}'` = yes; then
7633  cat >>confdefs.h <<_ACEOF
7634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7635_ACEOF
7636
7637else
7638  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7639echo "$as_me: error: cannot find opengl headers" >&2;}
7640   { (exit 1); exit 1; }; }
7641fi
7642
7643done
7644
7645
7646   LIBS="$LIBS -framework OpenGL"
7647
7648
7649
7650# checking for GLEW-headers
7651
7652for ac_header in GL/glew.h
7653do
7654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7655if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656  echo "$as_me:$LINENO: checking for $ac_header" >&5
7657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7658if eval "test \"\${$as_ac_Header+set}\" = set"; then
7659  echo $ECHO_N "(cached) $ECHO_C" >&6
7660fi
7661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7663else
7664  # Is the header compilable?
7665echo "$as_me:$LINENO: checking $ac_header usability" >&5
7666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7667cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h.  */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h.  */
7673$ac_includes_default
7674#include <$ac_header>
7675_ACEOF
7676rm -f conftest.$ac_objext
7677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678  (eval $ac_compile) 2>conftest.er1
7679  ac_status=$?
7680  grep -v '^ *+' conftest.er1 >conftest.err
7681  rm -f conftest.er1
7682  cat conftest.err >&5
7683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684  (exit $ac_status); } &&
7685         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687  (eval $ac_try) 2>&5
7688  ac_status=$?
7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); }; } &&
7691         { ac_try='test -s conftest.$ac_objext'
7692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693  (eval $ac_try) 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); }; }; then
7697  ac_header_compiler=yes
7698else
7699  echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702ac_header_compiler=no
7703fi
7704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7706echo "${ECHO_T}$ac_header_compiler" >&6
7707
7708# Is the header present?
7709echo "$as_me:$LINENO: checking $ac_header presence" >&5
7710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7711cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h.  */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h.  */
7717#include <$ac_header>
7718_ACEOF
7719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7720  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7721  ac_status=$?
7722  grep -v '^ *+' conftest.er1 >conftest.err
7723  rm -f conftest.er1
7724  cat conftest.err >&5
7725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726  (exit $ac_status); } >/dev/null; then
7727  if test -s conftest.err; then
7728    ac_cpp_err=$ac_c_preproc_warn_flag
7729    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7730  else
7731    ac_cpp_err=
7732  fi
7733else
7734  ac_cpp_err=yes
7735fi
7736if test -z "$ac_cpp_err"; then
7737  ac_header_preproc=yes
7738else
7739  echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742  ac_header_preproc=no
7743fi
7744rm -f conftest.err conftest.$ac_ext
7745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7746echo "${ECHO_T}$ac_header_preproc" >&6
7747
7748# So?  What about this header?
7749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7750  yes:no: )
7751    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7753    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7755    ac_header_preproc=yes
7756    ;;
7757  no:yes:* )
7758    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7760    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7761echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7762    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7764    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7765echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7766    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7768    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7770    (
7771      cat <<\_ASBOX
7772## ---------------------------------------------- ##
7773## Report this to orxonox-dev at mail.datacore.ch ##
7774## ---------------------------------------------- ##
7775_ASBOX
7776    ) |
7777      sed "s/^/$as_me: WARNING:     /" >&2
7778    ;;
7779esac
7780echo "$as_me:$LINENO: checking for $ac_header" >&5
7781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7782if eval "test \"\${$as_ac_Header+set}\" = set"; then
7783  echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785  eval "$as_ac_Header=\$ac_header_preproc"
7786fi
7787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7789
7790fi
7791if test `eval echo '${'$as_ac_Header'}'` = yes; then
7792  cat >>confdefs.h <<_ACEOF
7793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794_ACEOF
7795
7796else
7797  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
7798echo "$as_me: error: cannot find glew headers" >&2;}
7799   { (exit 1); exit 1; }; }
7800fi
7801
7802done
7803
7804# checking for GLEW-lib
7805  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
7806echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
7807if test "${ac_cv_lib_GLEW_main+set}" = set; then
7808  echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810  ac_check_lib_save_LIBS=$LIBS
7811LIBS="-lGLEW  $LIBS"
7812cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h.  */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h.  */
7818
7819
7820int
7821main ()
7822{
7823main ();
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext conftest$ac_exeext
7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830  (eval $ac_link) 2>conftest.er1
7831  ac_status=$?
7832  grep -v '^ *+' conftest.er1 >conftest.err
7833  rm -f conftest.er1
7834  cat conftest.err >&5
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); } &&
7837         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839  (eval $ac_try) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); }; } &&
7843         { ac_try='test -s conftest$ac_exeext'
7844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845  (eval $ac_try) 2>&5
7846  ac_status=$?
7847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); }; }; then
7849  ac_cv_lib_GLEW_main=yes
7850else
7851  echo "$as_me: failed program was:" >&5
7852sed 's/^/| /' conftest.$ac_ext >&5
7853
7854ac_cv_lib_GLEW_main=no
7855fi
7856rm -f conftest.err conftest.$ac_objext \
7857      conftest$ac_exeext conftest.$ac_ext
7858LIBS=$ac_check_lib_save_LIBS
7859fi
7860echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
7861echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
7862if test $ac_cv_lib_GLEW_main = yes; then
7863  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
7864fi
7865
7866   if test x$FOUND_GLEW != xyes ; then
7867         echo "------------------"
7868         echo "glew not found."
7869         echo "please install the glew package which can be found at http://glew.sourceforge.net"
7870         echo "------------------"
7871         exit -1
7872   fi
7873
7874
7875
7876for ac_header in OpenAL/al.h
7877do
7878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7879if eval "test \"\${$as_ac_Header+set}\" = set"; then
7880  echo "$as_me:$LINENO: checking for $ac_header" >&5
7881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7882if eval "test \"\${$as_ac_Header+set}\" = set"; then
7883  echo $ECHO_N "(cached) $ECHO_C" >&6
7884fi
7885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7887else
7888  # Is the header compilable?
7889echo "$as_me:$LINENO: checking $ac_header usability" >&5
7890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7891cat >conftest.$ac_ext <<_ACEOF
7892/* confdefs.h.  */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h.  */
7897$ac_includes_default
7898#include <$ac_header>
7899_ACEOF
7900rm -f conftest.$ac_objext
7901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902  (eval $ac_compile) 2>conftest.er1
7903  ac_status=$?
7904  grep -v '^ *+' conftest.er1 >conftest.err
7905  rm -f conftest.er1
7906  cat conftest.err >&5
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); } &&
7909         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911  (eval $ac_try) 2>&5
7912  ac_status=$?
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); }; } &&
7915         { ac_try='test -s conftest.$ac_objext'
7916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917  (eval $ac_try) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }; }; then
7921  ac_header_compiler=yes
7922else
7923  echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
7926ac_header_compiler=no
7927fi
7928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7930echo "${ECHO_T}$ac_header_compiler" >&6
7931
7932# Is the header present?
7933echo "$as_me:$LINENO: checking $ac_header presence" >&5
7934echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7935cat >conftest.$ac_ext <<_ACEOF
7936/* confdefs.h.  */
7937_ACEOF
7938cat confdefs.h >>conftest.$ac_ext
7939cat >>conftest.$ac_ext <<_ACEOF
7940/* end confdefs.h.  */
7941#include <$ac_header>
7942_ACEOF
7943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7944  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7945  ac_status=$?
7946  grep -v '^ *+' conftest.er1 >conftest.err
7947  rm -f conftest.er1
7948  cat conftest.err >&5
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); } >/dev/null; then
7951  if test -s conftest.err; then
7952    ac_cpp_err=$ac_c_preproc_warn_flag
7953    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7954  else
7955    ac_cpp_err=
7956  fi
7957else
7958  ac_cpp_err=yes
7959fi
7960if test -z "$ac_cpp_err"; then
7961  ac_header_preproc=yes
7962else
7963  echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966  ac_header_preproc=no
7967fi
7968rm -f conftest.err conftest.$ac_ext
7969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7970echo "${ECHO_T}$ac_header_preproc" >&6
7971
7972# So?  What about this header?
7973case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7974  yes:no: )
7975    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7976echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7977    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7978echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7979    ac_header_preproc=yes
7980    ;;
7981  no:yes:* )
7982    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7984    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7985echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7986    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7987echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7988    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7989echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7990    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7991echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7992    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7993echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7994    (
7995      cat <<\_ASBOX
7996## ---------------------------------------------- ##
7997## Report this to orxonox-dev at mail.datacore.ch ##
7998## ---------------------------------------------- ##
7999_ASBOX
8000    ) |
8001      sed "s/^/$as_me: WARNING:     /" >&2
8002    ;;
8003esac
8004echo "$as_me:$LINENO: checking for $ac_header" >&5
8005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8006if eval "test \"\${$as_ac_Header+set}\" = set"; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  eval "$as_ac_Header=\$ac_header_preproc"
8010fi
8011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8013
8014fi
8015if test `eval echo '${'$as_ac_Header'}'` = yes; then
8016  cat >>confdefs.h <<_ACEOF
8017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8018_ACEOF
8019
8020else
8021  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
8022echo "$as_me: error: cannot find opengl headers" >&2;}
8023   { (exit 1); exit 1; }; }
8024fi
8025
8026done
8027
8028  HAVE_OPENAL=yes
8029  LIBS="$LIBS -framework OpenAL"
8030
8031
8032## SDL-check
8033       SDL_CFLAGS=`sdl-config --cflags`
8034       SDL_LIBS=`sdl-config --libs`
8035       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8036       LIBS="$LIBS $SDL_LIBS"
8037
8038for ac_header in SDL/SDL.h
8039do
8040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042  echo "$as_me:$LINENO: checking for $ac_header" >&5
8043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8044if eval "test \"\${$as_ac_Header+set}\" = set"; then
8045  echo $ECHO_N "(cached) $ECHO_C" >&6
8046fi
8047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8049else
8050  # Is the header compilable?
8051echo "$as_me:$LINENO: checking $ac_header usability" >&5
8052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8053cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h.  */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h.  */
8059$ac_includes_default
8060#include <$ac_header>
8061_ACEOF
8062rm -f conftest.$ac_objext
8063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064  (eval $ac_compile) 2>conftest.er1
8065  ac_status=$?
8066  grep -v '^ *+' conftest.er1 >conftest.err
8067  rm -f conftest.er1
8068  cat conftest.err >&5
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); } &&
8071         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073  (eval $ac_try) 2>&5
8074  ac_status=$?
8075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076  (exit $ac_status); }; } &&
8077         { ac_try='test -s conftest.$ac_objext'
8078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079  (eval $ac_try) 2>&5
8080  ac_status=$?
8081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082  (exit $ac_status); }; }; then
8083  ac_header_compiler=yes
8084else
8085  echo "$as_me: failed program was:" >&5
8086sed 's/^/| /' conftest.$ac_ext >&5
8087
8088ac_header_compiler=no
8089fi
8090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8092echo "${ECHO_T}$ac_header_compiler" >&6
8093
8094# Is the header present?
8095echo "$as_me:$LINENO: checking $ac_header presence" >&5
8096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8097cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h.  */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h.  */
8103#include <$ac_header>
8104_ACEOF
8105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107  ac_status=$?
8108  grep -v '^ *+' conftest.er1 >conftest.err
8109  rm -f conftest.er1
8110  cat conftest.err >&5
8111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112  (exit $ac_status); } >/dev/null; then
8113  if test -s conftest.err; then
8114    ac_cpp_err=$ac_c_preproc_warn_flag
8115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8116  else
8117    ac_cpp_err=
8118  fi
8119else
8120  ac_cpp_err=yes
8121fi
8122if test -z "$ac_cpp_err"; then
8123  ac_header_preproc=yes
8124else
8125  echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128  ac_header_preproc=no
8129fi
8130rm -f conftest.err conftest.$ac_ext
8131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8132echo "${ECHO_T}$ac_header_preproc" >&6
8133
8134# So?  What about this header?
8135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8136  yes:no: )
8137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8141    ac_header_preproc=yes
8142    ;;
8143  no:yes:* )
8144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8156    (
8157      cat <<\_ASBOX
8158## ---------------------------------------------- ##
8159## Report this to orxonox-dev at mail.datacore.ch ##
8160## ---------------------------------------------- ##
8161_ASBOX
8162    ) |
8163      sed "s/^/$as_me: WARNING:     /" >&2
8164    ;;
8165esac
8166echo "$as_me:$LINENO: checking for $ac_header" >&5
8167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8168if eval "test \"\${$as_ac_Header+set}\" = set"; then
8169  echo $ECHO_N "(cached) $ECHO_C" >&6
8170else
8171  eval "$as_ac_Header=\$ac_header_preproc"
8172fi
8173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8175
8176fi
8177if test `eval echo '${'$as_ac_Header'}'` = yes; then
8178  cat >>confdefs.h <<_ACEOF
8179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8180_ACEOF
8181
8182else
8183  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
8184echo "$as_me: error: cannot find SDL headers" >&2;}
8185   { (exit 1); exit 1; }; }
8186fi
8187
8188done
8189
8190   HAVE_SDL=yes
8191#   LIBS="$LIBS -framework SDL"
8192
8193# checking for SDL-headers
8194#    AC_CHECK_HEADERS(SDL/SDL.h ,,
8195#      [AC_MSG_ERROR([cannot find SDL headers]) ])
8196
8197## checking for SDL
8198#    SDL_VERSION=1.2.7
8199#    AM_PATH_SDL($SDL_VERSION,
8200#      :,
8201#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
8202#      )
8203
8204
8205    ;;
8206
8207  *)
8208    ;;
8209esac
8210
8211
8212
8213###################################
8214## CHECKING FOR HEADERS AND LIBS ##
8215###################################
8216
8217#---------#
8218# SDL_ttf #
8219#---------#
8220# checking for SDL_ttf-headers
8221
8222for ac_header in SDL_ttf.h
8223do
8224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226  echo "$as_me:$LINENO: checking for $ac_header" >&5
8227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8228if eval "test \"\${$as_ac_Header+set}\" = set"; then
8229  echo $ECHO_N "(cached) $ECHO_C" >&6
8230fi
8231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8233else
8234  # Is the header compilable?
8235echo "$as_me:$LINENO: checking $ac_header usability" >&5
8236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8237cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h.  */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h.  */
8243$ac_includes_default
8244#include <$ac_header>
8245_ACEOF
8246rm -f conftest.$ac_objext
8247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248  (eval $ac_compile) 2>conftest.er1
8249  ac_status=$?
8250  grep -v '^ *+' conftest.er1 >conftest.err
8251  rm -f conftest.er1
8252  cat conftest.err >&5
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); } &&
8255         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257  (eval $ac_try) 2>&5
8258  ac_status=$?
8259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260  (exit $ac_status); }; } &&
8261         { ac_try='test -s conftest.$ac_objext'
8262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263  (eval $ac_try) 2>&5
8264  ac_status=$?
8265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266  (exit $ac_status); }; }; then
8267  ac_header_compiler=yes
8268else
8269  echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272ac_header_compiler=no
8273fi
8274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8276echo "${ECHO_T}$ac_header_compiler" >&6
8277
8278# Is the header present?
8279echo "$as_me:$LINENO: checking $ac_header presence" >&5
8280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8281cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287#include <$ac_header>
8288_ACEOF
8289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8290  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8291  ac_status=$?
8292  grep -v '^ *+' conftest.er1 >conftest.err
8293  rm -f conftest.er1
8294  cat conftest.err >&5
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); } >/dev/null; then
8297  if test -s conftest.err; then
8298    ac_cpp_err=$ac_c_preproc_warn_flag
8299    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8300  else
8301    ac_cpp_err=
8302  fi
8303else
8304  ac_cpp_err=yes
8305fi
8306if test -z "$ac_cpp_err"; then
8307  ac_header_preproc=yes
8308else
8309  echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
8311
8312  ac_header_preproc=no
8313fi
8314rm -f conftest.err conftest.$ac_ext
8315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8316echo "${ECHO_T}$ac_header_preproc" >&6
8317
8318# So?  What about this header?
8319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8320  yes:no: )
8321    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8323    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8324echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8325    ac_header_preproc=yes
8326    ;;
8327  no:yes:* )
8328    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8330    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8331echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8332    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8333echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8334    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8335echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8336    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8338    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8339echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8340    (
8341      cat <<\_ASBOX
8342## ---------------------------------------------- ##
8343## Report this to orxonox-dev at mail.datacore.ch ##
8344## ---------------------------------------------- ##
8345_ASBOX
8346    ) |
8347      sed "s/^/$as_me: WARNING:     /" >&2
8348    ;;
8349esac
8350echo "$as_me:$LINENO: checking for $ac_header" >&5
8351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8352if eval "test \"\${$as_ac_Header+set}\" = set"; then
8353  echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355  eval "$as_ac_Header=\$ac_header_preproc"
8356fi
8357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8359
8360fi
8361if test `eval echo '${'$as_ac_Header'}'` = yes; then
8362  cat >>confdefs.h <<_ACEOF
8363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8364_ACEOF
8365
8366else
8367
8368for ac_header in SDL/SDL_ttf.h
8369do
8370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8371if eval "test \"\${$as_ac_Header+set}\" = set"; then
8372  echo "$as_me:$LINENO: checking for $ac_header" >&5
8373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8374if eval "test \"\${$as_ac_Header+set}\" = set"; then
8375  echo $ECHO_N "(cached) $ECHO_C" >&6
8376fi
8377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8379else
8380  # Is the header compilable?
8381echo "$as_me:$LINENO: checking $ac_header usability" >&5
8382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8383cat >conftest.$ac_ext <<_ACEOF
8384/* confdefs.h.  */
8385_ACEOF
8386cat confdefs.h >>conftest.$ac_ext
8387cat >>conftest.$ac_ext <<_ACEOF
8388/* end confdefs.h.  */
8389$ac_includes_default
8390#include <$ac_header>
8391_ACEOF
8392rm -f conftest.$ac_objext
8393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8394  (eval $ac_compile) 2>conftest.er1
8395  ac_status=$?
8396  grep -v '^ *+' conftest.er1 >conftest.err
8397  rm -f conftest.er1
8398  cat conftest.err >&5
8399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400  (exit $ac_status); } &&
8401         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403  (eval $ac_try) 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; } &&
8407         { ac_try='test -s conftest.$ac_objext'
8408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409  (eval $ac_try) 2>&5
8410  ac_status=$?
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); }; }; then
8413  ac_header_compiler=yes
8414else
8415  echo "$as_me: failed program was:" >&5
8416sed 's/^/| /' conftest.$ac_ext >&5
8417
8418ac_header_compiler=no
8419fi
8420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8422echo "${ECHO_T}$ac_header_compiler" >&6
8423
8424# Is the header present?
8425echo "$as_me:$LINENO: checking $ac_header presence" >&5
8426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8427cat >conftest.$ac_ext <<_ACEOF
8428/* confdefs.h.  */
8429_ACEOF
8430cat confdefs.h >>conftest.$ac_ext
8431cat >>conftest.$ac_ext <<_ACEOF
8432/* end confdefs.h.  */
8433#include <$ac_header>
8434_ACEOF
8435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8437  ac_status=$?
8438  grep -v '^ *+' conftest.er1 >conftest.err
8439  rm -f conftest.er1
8440  cat conftest.err >&5
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); } >/dev/null; then
8443  if test -s conftest.err; then
8444    ac_cpp_err=$ac_c_preproc_warn_flag
8445    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446  else
8447    ac_cpp_err=
8448  fi
8449else
8450  ac_cpp_err=yes
8451fi
8452if test -z "$ac_cpp_err"; then
8453  ac_header_preproc=yes
8454else
8455  echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458  ac_header_preproc=no
8459fi
8460rm -f conftest.err conftest.$ac_ext
8461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462echo "${ECHO_T}$ac_header_preproc" >&6
8463
8464# So?  What about this header?
8465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8466  yes:no: )
8467    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8471    ac_header_preproc=yes
8472    ;;
8473  no:yes:* )
8474    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8476    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8477echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8478    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8480    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8481echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8482    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8486    (
8487      cat <<\_ASBOX
8488## ---------------------------------------------- ##
8489## Report this to orxonox-dev at mail.datacore.ch ##
8490## ---------------------------------------------- ##
8491_ASBOX
8492    ) |
8493      sed "s/^/$as_me: WARNING:     /" >&2
8494    ;;
8495esac
8496echo "$as_me:$LINENO: checking for $ac_header" >&5
8497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8498if eval "test \"\${$as_ac_Header+set}\" = set"; then
8499  echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501  eval "$as_ac_Header=\$ac_header_preproc"
8502fi
8503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8505
8506fi
8507if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508  cat >>confdefs.h <<_ACEOF
8509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510_ACEOF
8511
8512else
8513  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
8514echo "$as_me: error: cannot find SDL_ttf header." >&2;}
8515   { (exit 1); exit 1; }; }
8516fi
8517
8518done
8519
8520fi
8521
8522done
8523
8524# checking for SDL_ttf-lib
8525  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
8526echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
8527if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
8528  echo $ECHO_N "(cached) $ECHO_C" >&6
8529else
8530  ac_check_lib_save_LIBS=$LIBS
8531LIBS="-lSDL_ttf  $LIBS"
8532cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h.  */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h.  */
8538
8539/* Override any gcc2 internal prototype to avoid an error.  */
8540#ifdef __cplusplus
8541extern "C"
8542#endif
8543/* We use char because int might match the return type of a gcc2
8544   builtin and then its argument prototype would still apply.  */
8545char TTF_OpenFont ();
8546int
8547main ()
8548{
8549TTF_OpenFont ();
8550  ;
8551  return 0;
8552}
8553_ACEOF
8554rm -f conftest.$ac_objext conftest$ac_exeext
8555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556  (eval $ac_link) 2>conftest.er1
8557  ac_status=$?
8558  grep -v '^ *+' conftest.er1 >conftest.err
8559  rm -f conftest.er1
8560  cat conftest.err >&5
8561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); } &&
8563         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565  (eval $ac_try) 2>&5
8566  ac_status=$?
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); }; } &&
8569         { ac_try='test -s conftest$ac_exeext'
8570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571  (eval $ac_try) 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
8576else
8577  echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580ac_cv_lib_SDL_ttf_TTF_OpenFont=no
8581fi
8582rm -f conftest.err conftest.$ac_objext \
8583      conftest$ac_exeext conftest.$ac_ext
8584LIBS=$ac_check_lib_save_LIBS
8585fi
8586echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8587echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8588if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
8589  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
8590fi
8591
8592     if test x$FOUND_SDL_ttf != xyes ; then
8593        echo "------------------"
8594        echo "SDL_ttf library not found."
8595        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8596        echo "------------------"
8597        exit -1
8598     fi
8599
8600#-----------#
8601# SDL_Image #
8602#-----------#
8603# checking for SDL_image-headers
8604
8605for ac_header in SDL_image.h
8606do
8607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8608if eval "test \"\${$as_ac_Header+set}\" = set"; then
8609  echo "$as_me:$LINENO: checking for $ac_header" >&5
8610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8611if eval "test \"\${$as_ac_Header+set}\" = set"; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613fi
8614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8616else
8617  # Is the header compilable?
8618echo "$as_me:$LINENO: checking $ac_header usability" >&5
8619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8620cat >conftest.$ac_ext <<_ACEOF
8621/* confdefs.h.  */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h.  */
8626$ac_includes_default
8627#include <$ac_header>
8628_ACEOF
8629rm -f conftest.$ac_objext
8630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8631  (eval $ac_compile) 2>conftest.er1
8632  ac_status=$?
8633  grep -v '^ *+' conftest.er1 >conftest.err
8634  rm -f conftest.er1
8635  cat conftest.err >&5
8636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637  (exit $ac_status); } &&
8638         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640  (eval $ac_try) 2>&5
8641  ac_status=$?
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); }; } &&
8644         { ac_try='test -s conftest.$ac_objext'
8645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646  (eval $ac_try) 2>&5
8647  ac_status=$?
8648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); }; }; then
8650  ac_header_compiler=yes
8651else
8652  echo "$as_me: failed program was:" >&5
8653sed 's/^/| /' conftest.$ac_ext >&5
8654
8655ac_header_compiler=no
8656fi
8657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8659echo "${ECHO_T}$ac_header_compiler" >&6
8660
8661# Is the header present?
8662echo "$as_me:$LINENO: checking $ac_header presence" >&5
8663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8664cat >conftest.$ac_ext <<_ACEOF
8665/* confdefs.h.  */
8666_ACEOF
8667cat confdefs.h >>conftest.$ac_ext
8668cat >>conftest.$ac_ext <<_ACEOF
8669/* end confdefs.h.  */
8670#include <$ac_header>
8671_ACEOF
8672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8673  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8674  ac_status=$?
8675  grep -v '^ *+' conftest.er1 >conftest.err
8676  rm -f conftest.er1
8677  cat conftest.err >&5
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); } >/dev/null; then
8680  if test -s conftest.err; then
8681    ac_cpp_err=$ac_c_preproc_warn_flag
8682    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8683  else
8684    ac_cpp_err=
8685  fi
8686else
8687  ac_cpp_err=yes
8688fi
8689if test -z "$ac_cpp_err"; then
8690  ac_header_preproc=yes
8691else
8692  echo "$as_me: failed program was:" >&5
8693sed 's/^/| /' conftest.$ac_ext >&5
8694
8695  ac_header_preproc=no
8696fi
8697rm -f conftest.err conftest.$ac_ext
8698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8699echo "${ECHO_T}$ac_header_preproc" >&6
8700
8701# So?  What about this header?
8702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8703  yes:no: )
8704    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8706    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8708    ac_header_preproc=yes
8709    ;;
8710  no:yes:* )
8711    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8713    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8714echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8715    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8717    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8718echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8719    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8721    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8723    (
8724      cat <<\_ASBOX
8725## ---------------------------------------------- ##
8726## Report this to orxonox-dev at mail.datacore.ch ##
8727## ---------------------------------------------- ##
8728_ASBOX
8729    ) |
8730      sed "s/^/$as_me: WARNING:     /" >&2
8731    ;;
8732esac
8733echo "$as_me:$LINENO: checking for $ac_header" >&5
8734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736  echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738  eval "$as_ac_Header=\$ac_header_preproc"
8739fi
8740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8742
8743fi
8744if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745  cat >>confdefs.h <<_ACEOF
8746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8747_ACEOF
8748
8749else
8750
8751for ac_header in SDL/SDL_image.h
8752do
8753as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8754if eval "test \"\${$as_ac_Header+set}\" = set"; then
8755  echo "$as_me:$LINENO: checking for $ac_header" >&5
8756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8757if eval "test \"\${$as_ac_Header+set}\" = set"; then
8758  echo $ECHO_N "(cached) $ECHO_C" >&6
8759fi
8760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8762else
8763  # Is the header compilable?
8764echo "$as_me:$LINENO: checking $ac_header usability" >&5
8765echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8766cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h.  */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h.  */
8772$ac_includes_default
8773#include <$ac_header>
8774_ACEOF
8775rm -f conftest.$ac_objext
8776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777  (eval $ac_compile) 2>conftest.er1
8778  ac_status=$?
8779  grep -v '^ *+' conftest.er1 >conftest.err
8780  rm -f conftest.er1
8781  cat conftest.err >&5
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); } &&
8784         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
8790         { ac_try='test -s conftest.$ac_objext'
8791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792  (eval $ac_try) 2>&5
8793  ac_status=$?
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); }; }; then
8796  ac_header_compiler=yes
8797else
8798  echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801ac_header_compiler=no
8802fi
8803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8805echo "${ECHO_T}$ac_header_compiler" >&6
8806
8807# Is the header present?
8808echo "$as_me:$LINENO: checking $ac_header presence" >&5
8809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8810cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h.  */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h.  */
8816#include <$ac_header>
8817_ACEOF
8818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8819  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8820  ac_status=$?
8821  grep -v '^ *+' conftest.er1 >conftest.err
8822  rm -f conftest.er1
8823  cat conftest.err >&5
8824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825  (exit $ac_status); } >/dev/null; then
8826  if test -s conftest.err; then
8827    ac_cpp_err=$ac_c_preproc_warn_flag
8828    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8829  else
8830    ac_cpp_err=
8831  fi
8832else
8833  ac_cpp_err=yes
8834fi
8835if test -z "$ac_cpp_err"; then
8836  ac_header_preproc=yes
8837else
8838  echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841  ac_header_preproc=no
8842fi
8843rm -f conftest.err conftest.$ac_ext
8844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8845echo "${ECHO_T}$ac_header_preproc" >&6
8846
8847# So?  What about this header?
8848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8849  yes:no: )
8850    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8852    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8854    ac_header_preproc=yes
8855    ;;
8856  no:yes:* )
8857    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8859    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8860echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8861    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8863    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8864echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8865    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8867    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8869    (
8870      cat <<\_ASBOX
8871## ---------------------------------------------- ##
8872## Report this to orxonox-dev at mail.datacore.ch ##
8873## ---------------------------------------------- ##
8874_ASBOX
8875    ) |
8876      sed "s/^/$as_me: WARNING:     /" >&2
8877    ;;
8878esac
8879echo "$as_me:$LINENO: checking for $ac_header" >&5
8880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8881if eval "test \"\${$as_ac_Header+set}\" = set"; then
8882  echo $ECHO_N "(cached) $ECHO_C" >&6
8883else
8884  eval "$as_ac_Header=\$ac_header_preproc"
8885fi
8886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8888
8889fi
8890if test `eval echo '${'$as_ac_Header'}'` = yes; then
8891  cat >>confdefs.h <<_ACEOF
8892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8893_ACEOF
8894
8895else
8896  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8897echo "$as_me: error: SDL_image header not found." >&2;}
8898   { (exit 1); exit 1; }; }
8899fi
8900
8901done
8902
8903fi
8904
8905done
8906
8907# checking for SDL_image-lib
8908echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8909echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8910if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8911  echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913  ac_check_lib_save_LIBS=$LIBS
8914LIBS="-lSDL_image  $LIBS"
8915cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h.  */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h.  */
8921
8922
8923int
8924main ()
8925{
8926main ();
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext conftest$ac_exeext
8932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933  (eval $ac_link) 2>conftest.er1
8934  ac_status=$?
8935  grep -v '^ *+' conftest.er1 >conftest.err
8936  rm -f conftest.er1
8937  cat conftest.err >&5
8938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939  (exit $ac_status); } &&
8940         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942  (eval $ac_try) 2>&5
8943  ac_status=$?
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); }; } &&
8946         { ac_try='test -s conftest$ac_exeext'
8947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948  (eval $ac_try) 2>&5
8949  ac_status=$?
8950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951  (exit $ac_status); }; }; then
8952  ac_cv_lib_SDL_image_main=yes
8953else
8954  echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957ac_cv_lib_SDL_image_main=no
8958fi
8959rm -f conftest.err conftest.$ac_objext \
8960      conftest$ac_exeext conftest.$ac_ext
8961LIBS=$ac_check_lib_save_LIBS
8962fi
8963echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8964echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8965if test $ac_cv_lib_SDL_image_main = yes; then
8966  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
8967fi
8968
8969   if test x$FOUND_SDL_image != xyes ; then
8970      echo "------------------"
8971      echo "SDL_image library not found."
8972      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
8973      echo "------------------"
8974      exit -1
8975   fi
8976
8977#---------#
8978# SDL_Net #
8979#---------#
8980# checking for SDL_net-headers
8981
8982for ac_header in SDL_net.h
8983do
8984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8985if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986  echo "$as_me:$LINENO: checking for $ac_header" >&5
8987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8988if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989  echo $ECHO_N "(cached) $ECHO_C" >&6
8990fi
8991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8993else
8994  # Is the header compilable?
8995echo "$as_me:$LINENO: checking $ac_header usability" >&5
8996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8997cat >conftest.$ac_ext <<_ACEOF
8998/* confdefs.h.  */
8999_ACEOF
9000cat confdefs.h >>conftest.$ac_ext
9001cat >>conftest.$ac_ext <<_ACEOF
9002/* end confdefs.h.  */
9003$ac_includes_default
9004#include <$ac_header>
9005_ACEOF
9006rm -f conftest.$ac_objext
9007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008  (eval $ac_compile) 2>conftest.er1
9009  ac_status=$?
9010  grep -v '^ *+' conftest.er1 >conftest.err
9011  rm -f conftest.er1
9012  cat conftest.err >&5
9013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); } &&
9015         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017  (eval $ac_try) 2>&5
9018  ac_status=$?
9019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020  (exit $ac_status); }; } &&
9021         { ac_try='test -s conftest.$ac_objext'
9022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023  (eval $ac_try) 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; }; then
9027  ac_header_compiler=yes
9028else
9029  echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032ac_header_compiler=no
9033fi
9034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9036echo "${ECHO_T}$ac_header_compiler" >&6
9037
9038# Is the header present?
9039echo "$as_me:$LINENO: checking $ac_header presence" >&5
9040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h.  */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h.  */
9047#include <$ac_header>
9048_ACEOF
9049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9050  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9051  ac_status=$?
9052  grep -v '^ *+' conftest.er1 >conftest.err
9053  rm -f conftest.er1
9054  cat conftest.err >&5
9055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056  (exit $ac_status); } >/dev/null; then
9057  if test -s conftest.err; then
9058    ac_cpp_err=$ac_c_preproc_warn_flag
9059    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9060  else
9061    ac_cpp_err=
9062  fi
9063else
9064  ac_cpp_err=yes
9065fi
9066if test -z "$ac_cpp_err"; then
9067  ac_header_preproc=yes
9068else
9069  echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072  ac_header_preproc=no
9073fi
9074rm -f conftest.err conftest.$ac_ext
9075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9076echo "${ECHO_T}$ac_header_preproc" >&6
9077
9078# So?  What about this header?
9079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9080  yes:no: )
9081    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9083    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9085    ac_header_preproc=yes
9086    ;;
9087  no:yes:* )
9088    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9090    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9091echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9092    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9094    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9095echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9096    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9098    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9100    (
9101      cat <<\_ASBOX
9102## ---------------------------------------------- ##
9103## Report this to orxonox-dev at mail.datacore.ch ##
9104## ---------------------------------------------- ##
9105_ASBOX
9106    ) |
9107      sed "s/^/$as_me: WARNING:     /" >&2
9108    ;;
9109esac
9110echo "$as_me:$LINENO: checking for $ac_header" >&5
9111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9112if eval "test \"\${$as_ac_Header+set}\" = set"; then
9113  echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
9115  eval "$as_ac_Header=\$ac_header_preproc"
9116fi
9117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9119
9120fi
9121if test `eval echo '${'$as_ac_Header'}'` = yes; then
9122  cat >>confdefs.h <<_ACEOF
9123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9124_ACEOF
9125
9126else
9127
9128for ac_header in SDL/SDL_net.h
9129do
9130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9131if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132  echo "$as_me:$LINENO: checking for $ac_header" >&5
9133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9134if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135  echo $ECHO_N "(cached) $ECHO_C" >&6
9136fi
9137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9139else
9140  # Is the header compilable?
9141echo "$as_me:$LINENO: checking $ac_header usability" >&5
9142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9143cat >conftest.$ac_ext <<_ACEOF
9144/* confdefs.h.  */
9145_ACEOF
9146cat confdefs.h >>conftest.$ac_ext
9147cat >>conftest.$ac_ext <<_ACEOF
9148/* end confdefs.h.  */
9149$ac_includes_default
9150#include <$ac_header>
9151_ACEOF
9152rm -f conftest.$ac_objext
9153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154  (eval $ac_compile) 2>conftest.er1
9155  ac_status=$?
9156  grep -v '^ *+' conftest.er1 >conftest.err
9157  rm -f conftest.er1
9158  cat conftest.err >&5
9159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160  (exit $ac_status); } &&
9161         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163  (eval $ac_try) 2>&5
9164  ac_status=$?
9165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166  (exit $ac_status); }; } &&
9167         { ac_try='test -s conftest.$ac_objext'
9168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169  (eval $ac_try) 2>&5
9170  ac_status=$?
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); }; }; then
9173  ac_header_compiler=yes
9174else
9175  echo "$as_me: failed program was:" >&5
9176sed 's/^/| /' conftest.$ac_ext >&5
9177
9178ac_header_compiler=no
9179fi
9180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9182echo "${ECHO_T}$ac_header_compiler" >&6
9183
9184# Is the header present?
9185echo "$as_me:$LINENO: checking $ac_header presence" >&5
9186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9187cat >conftest.$ac_ext <<_ACEOF
9188/* confdefs.h.  */
9189_ACEOF
9190cat confdefs.h >>conftest.$ac_ext
9191cat >>conftest.$ac_ext <<_ACEOF
9192/* end confdefs.h.  */
9193#include <$ac_header>
9194_ACEOF
9195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9196  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9197  ac_status=$?
9198  grep -v '^ *+' conftest.er1 >conftest.err
9199  rm -f conftest.er1
9200  cat conftest.err >&5
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); } >/dev/null; then
9203  if test -s conftest.err; then
9204    ac_cpp_err=$ac_c_preproc_warn_flag
9205    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9206  else
9207    ac_cpp_err=
9208  fi
9209else
9210  ac_cpp_err=yes
9211fi
9212if test -z "$ac_cpp_err"; then
9213  ac_header_preproc=yes
9214else
9215  echo "$as_me: failed program was:" >&5
9216sed 's/^/| /' conftest.$ac_ext >&5
9217
9218  ac_header_preproc=no
9219fi
9220rm -f conftest.err conftest.$ac_ext
9221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9222echo "${ECHO_T}$ac_header_preproc" >&6
9223
9224# So?  What about this header?
9225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9226  yes:no: )
9227    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9229    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9231    ac_header_preproc=yes
9232    ;;
9233  no:yes:* )
9234    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9236    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9237echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9238    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9240    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9241echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9242    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9244    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9246    (
9247      cat <<\_ASBOX
9248## ---------------------------------------------- ##
9249## Report this to orxonox-dev at mail.datacore.ch ##
9250## ---------------------------------------------- ##
9251_ASBOX
9252    ) |
9253      sed "s/^/$as_me: WARNING:     /" >&2
9254    ;;
9255esac
9256echo "$as_me:$LINENO: checking for $ac_header" >&5
9257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9258if eval "test \"\${$as_ac_Header+set}\" = set"; then
9259  echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261  eval "$as_ac_Header=\$ac_header_preproc"
9262fi
9263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9265
9266fi
9267if test `eval echo '${'$as_ac_Header'}'` = yes; then
9268  cat >>confdefs.h <<_ACEOF
9269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9270_ACEOF
9271
9272else
9273  { { echo "$as_me:$LINENO: error: SDL_net header not found." >&5
9274echo "$as_me: error: SDL_net header not found." >&2;}
9275   { (exit 1); exit 1; }; }
9276fi
9277
9278done
9279
9280fi
9281
9282done
9283
9284# checking for SDL_net-lib
9285echo "$as_me:$LINENO: checking for main in -lSDL_net" >&5
9286echo $ECHO_N "checking for main in -lSDL_net... $ECHO_C" >&6
9287if test "${ac_cv_lib_SDL_net_main+set}" = set; then
9288  echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290  ac_check_lib_save_LIBS=$LIBS
9291LIBS="-lSDL_net  $LIBS"
9292cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h.  */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h.  */
9298
9299
9300int
9301main ()
9302{
9303main ();
9304  ;
9305  return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext conftest$ac_exeext
9309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310  (eval $ac_link) 2>conftest.er1
9311  ac_status=$?
9312  grep -v '^ *+' conftest.er1 >conftest.err
9313  rm -f conftest.er1
9314  cat conftest.err >&5
9315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316  (exit $ac_status); } &&
9317         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319  (eval $ac_try) 2>&5
9320  ac_status=$?
9321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322  (exit $ac_status); }; } &&
9323         { ac_try='test -s conftest$ac_exeext'
9324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325  (eval $ac_try) 2>&5
9326  ac_status=$?
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); }; }; then
9329  ac_cv_lib_SDL_net_main=yes
9330else
9331  echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
9334ac_cv_lib_SDL_net_main=no
9335fi
9336rm -f conftest.err conftest.$ac_objext \
9337      conftest$ac_exeext conftest.$ac_ext
9338LIBS=$ac_check_lib_save_LIBS
9339fi
9340echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_main" >&5
9341echo "${ECHO_T}$ac_cv_lib_SDL_net_main" >&6
9342if test $ac_cv_lib_SDL_net_main = yes; then
9343  FOUND_SDL_net=yes; LIBS="$LIBS -lSDL_net"
9344fi
9345
9346   if test x$FOUND_SDL_net != xyes ; then
9347      echo "------------------"
9348      echo "SDL_net library not found."
9349      echo "please install the SDL_net library, which can be found at http://www.libsdl.org/projects/SDL_net/"
9350      echo "------------------"
9351      exit -1
9352   fi
9353
9354
9355#-----#
9356# ogg #
9357#-----#
9358# checking for ogg-headers
9359
9360for ac_header in ogg/ogg.h
9361do
9362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363if eval "test \"\${$as_ac_Header+set}\" = set"; then
9364  echo "$as_me:$LINENO: checking for $ac_header" >&5
9365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9366if eval "test \"\${$as_ac_Header+set}\" = set"; then
9367  echo $ECHO_N "(cached) $ECHO_C" >&6
9368fi
9369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9371else
9372  # Is the header compilable?
9373echo "$as_me:$LINENO: checking $ac_header usability" >&5
9374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9375cat >conftest.$ac_ext <<_ACEOF
9376/* confdefs.h.  */
9377_ACEOF
9378cat confdefs.h >>conftest.$ac_ext
9379cat >>conftest.$ac_ext <<_ACEOF
9380/* end confdefs.h.  */
9381$ac_includes_default
9382#include <$ac_header>
9383_ACEOF
9384rm -f conftest.$ac_objext
9385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386  (eval $ac_compile) 2>conftest.er1
9387  ac_status=$?
9388  grep -v '^ *+' conftest.er1 >conftest.err
9389  rm -f conftest.er1
9390  cat conftest.err >&5
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); } &&
9393         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395  (eval $ac_try) 2>&5
9396  ac_status=$?
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); }; } &&
9399         { ac_try='test -s conftest.$ac_objext'
9400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401  (eval $ac_try) 2>&5
9402  ac_status=$?
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); }; }; then
9405  ac_header_compiler=yes
9406else
9407  echo "$as_me: failed program was:" >&5
9408sed 's/^/| /' conftest.$ac_ext >&5
9409
9410ac_header_compiler=no
9411fi
9412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9414echo "${ECHO_T}$ac_header_compiler" >&6
9415
9416# Is the header present?
9417echo "$as_me:$LINENO: checking $ac_header presence" >&5
9418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9419cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h.  */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h.  */
9425#include <$ac_header>
9426_ACEOF
9427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429  ac_status=$?
9430  grep -v '^ *+' conftest.er1 >conftest.err
9431  rm -f conftest.er1
9432  cat conftest.err >&5
9433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434  (exit $ac_status); } >/dev/null; then
9435  if test -s conftest.err; then
9436    ac_cpp_err=$ac_c_preproc_warn_flag
9437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9438  else
9439    ac_cpp_err=
9440  fi
9441else
9442  ac_cpp_err=yes
9443fi
9444if test -z "$ac_cpp_err"; then
9445  ac_header_preproc=yes
9446else
9447  echo "$as_me: failed program was:" >&5
9448sed 's/^/| /' conftest.$ac_ext >&5
9449
9450  ac_header_preproc=no
9451fi
9452rm -f conftest.err conftest.$ac_ext
9453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9454echo "${ECHO_T}$ac_header_preproc" >&6
9455
9456# So?  What about this header?
9457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9458  yes:no: )
9459    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9463    ac_header_preproc=yes
9464    ;;
9465  no:yes:* )
9466    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9468    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9469echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9470    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9472    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9473echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9474    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9476    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9478    (
9479      cat <<\_ASBOX
9480## ---------------------------------------------- ##
9481## Report this to orxonox-dev at mail.datacore.ch ##
9482## ---------------------------------------------- ##
9483_ASBOX
9484    ) |
9485      sed "s/^/$as_me: WARNING:     /" >&2
9486    ;;
9487esac
9488echo "$as_me:$LINENO: checking for $ac_header" >&5
9489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491  echo $ECHO_N "(cached) $ECHO_C" >&6
9492else
9493  eval "$as_ac_Header=\$ac_header_preproc"
9494fi
9495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9497
9498fi
9499if test `eval echo '${'$as_ac_Header'}'` = yes; then
9500  cat >>confdefs.h <<_ACEOF
9501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502_ACEOF
9503
9504else
9505  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
9506echo "$as_me: error: cannot find ogg header." >&2;}
9507   { (exit 1); exit 1; }; }
9508fi
9509
9510done
9511
9512# checking for ogg-lib
9513  echo "$as_me:$LINENO: checking for main in -logg" >&5
9514echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
9515if test "${ac_cv_lib_ogg_main+set}" = set; then
9516  echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518  ac_check_lib_save_LIBS=$LIBS
9519LIBS="-logg  $LIBS"
9520cat >conftest.$ac_ext <<_ACEOF
9521/* confdefs.h.  */
9522_ACEOF
9523cat confdefs.h >>conftest.$ac_ext
9524cat >>conftest.$ac_ext <<_ACEOF
9525/* end confdefs.h.  */
9526
9527
9528int
9529main ()
9530{
9531main ();
9532  ;
9533  return 0;
9534}
9535_ACEOF
9536rm -f conftest.$ac_objext conftest$ac_exeext
9537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538  (eval $ac_link) 2>conftest.er1
9539  ac_status=$?
9540  grep -v '^ *+' conftest.er1 >conftest.err
9541  rm -f conftest.er1
9542  cat conftest.err >&5
9543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544  (exit $ac_status); } &&
9545         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547  (eval $ac_try) 2>&5
9548  ac_status=$?
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); }; } &&
9551         { ac_try='test -s conftest$ac_exeext'
9552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553  (eval $ac_try) 2>&5
9554  ac_status=$?
9555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556  (exit $ac_status); }; }; then
9557  ac_cv_lib_ogg_main=yes
9558else
9559  echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562ac_cv_lib_ogg_main=no
9563fi
9564rm -f conftest.err conftest.$ac_objext \
9565      conftest$ac_exeext conftest.$ac_ext
9566LIBS=$ac_check_lib_save_LIBS
9567fi
9568echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
9569echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
9570if test $ac_cv_lib_ogg_main = yes; then
9571  FOUND_ogg=yes; LIBS="$LIBS -logg"
9572fi
9573
9574     if test x$FOUND_ogg != xyes ; then
9575        echo "------------------"
9576        echo "ogg library not found."
9577        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9578        echo "------------------"
9579        exit -1
9580     fi
9581
9582#--------#
9583# vorbis #
9584#--------#
9585# checking for vorbis-lib
9586  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
9587echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
9588if test "${ac_cv_lib_vorbis_main+set}" = set; then
9589  echo $ECHO_N "(cached) $ECHO_C" >&6
9590else
9591  ac_check_lib_save_LIBS=$LIBS
9592LIBS="-lvorbis  $LIBS"
9593cat >conftest.$ac_ext <<_ACEOF
9594/* confdefs.h.  */
9595_ACEOF
9596cat confdefs.h >>conftest.$ac_ext
9597cat >>conftest.$ac_ext <<_ACEOF
9598/* end confdefs.h.  */
9599
9600
9601int
9602main ()
9603{
9604main ();
9605  ;
9606  return 0;
9607}
9608_ACEOF
9609rm -f conftest.$ac_objext conftest$ac_exeext
9610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611  (eval $ac_link) 2>conftest.er1
9612  ac_status=$?
9613  grep -v '^ *+' conftest.er1 >conftest.err
9614  rm -f conftest.er1
9615  cat conftest.err >&5
9616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617  (exit $ac_status); } &&
9618         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620  (eval $ac_try) 2>&5
9621  ac_status=$?
9622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623  (exit $ac_status); }; } &&
9624         { ac_try='test -s conftest$ac_exeext'
9625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626  (eval $ac_try) 2>&5
9627  ac_status=$?
9628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629  (exit $ac_status); }; }; then
9630  ac_cv_lib_vorbis_main=yes
9631else
9632  echo "$as_me: failed program was:" >&5
9633sed 's/^/| /' conftest.$ac_ext >&5
9634
9635ac_cv_lib_vorbis_main=no
9636fi
9637rm -f conftest.err conftest.$ac_objext \
9638      conftest$ac_exeext conftest.$ac_ext
9639LIBS=$ac_check_lib_save_LIBS
9640fi
9641echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
9642echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
9643if test $ac_cv_lib_vorbis_main = yes; then
9644  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
9645fi
9646
9647     if test x$FOUND_vorbis != xyes ; then
9648        echo "------------------"
9649        echo "vorbis library not found."
9650        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9651        echo "------------------"
9652        exit -1
9653     fi
9654
9655#------------#
9656# vorbisfile #
9657#------------#
9658# checking for vorbis-headers
9659
9660for ac_header in vorbis/vorbisfile.h
9661do
9662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9663if eval "test \"\${$as_ac_Header+set}\" = set"; then
9664  echo "$as_me:$LINENO: checking for $ac_header" >&5
9665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9666if eval "test \"\${$as_ac_Header+set}\" = set"; then
9667  echo $ECHO_N "(cached) $ECHO_C" >&6
9668fi
9669echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9670echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671else
9672  # Is the header compilable?
9673echo "$as_me:$LINENO: checking $ac_header usability" >&5
9674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9675cat >conftest.$ac_ext <<_ACEOF
9676/* confdefs.h.  */
9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h.  */
9681$ac_includes_default
9682#include <$ac_header>
9683_ACEOF
9684rm -f conftest.$ac_objext
9685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9686  (eval $ac_compile) 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"                   || test ! -s conftest.err'
9694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695  (eval $ac_try) 2>&5
9696  ac_status=$?
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); }; } &&
9699         { ac_try='test -s conftest.$ac_objext'
9700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701  (eval $ac_try) 2>&5
9702  ac_status=$?
9703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704  (exit $ac_status); }; }; then
9705  ac_header_compiler=yes
9706else
9707  echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710ac_header_compiler=no
9711fi
9712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9714echo "${ECHO_T}$ac_header_compiler" >&6
9715
9716# Is the header present?
9717echo "$as_me:$LINENO: checking $ac_header presence" >&5
9718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9719cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h.  */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h.  */
9725#include <$ac_header>
9726_ACEOF
9727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9728  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9729  ac_status=$?
9730  grep -v '^ *+' conftest.er1 >conftest.err
9731  rm -f conftest.er1
9732  cat conftest.err >&5
9733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734  (exit $ac_status); } >/dev/null; then
9735  if test -s conftest.err; then
9736    ac_cpp_err=$ac_c_preproc_warn_flag
9737    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9738  else
9739    ac_cpp_err=
9740  fi
9741else
9742  ac_cpp_err=yes
9743fi
9744if test -z "$ac_cpp_err"; then
9745  ac_header_preproc=yes
9746else
9747  echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750  ac_header_preproc=no
9751fi
9752rm -f conftest.err conftest.$ac_ext
9753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9754echo "${ECHO_T}$ac_header_preproc" >&6
9755
9756# So?  What about this header?
9757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9758  yes:no: )
9759    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9761    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9763    ac_header_preproc=yes
9764    ;;
9765  no:yes:* )
9766    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9768    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9769echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9770    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9772    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9773echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9774    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9776    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9778    (
9779      cat <<\_ASBOX
9780## ---------------------------------------------- ##
9781## Report this to orxonox-dev at mail.datacore.ch ##
9782## ---------------------------------------------- ##
9783_ASBOX
9784    ) |
9785      sed "s/^/$as_me: WARNING:     /" >&2
9786    ;;
9787esac
9788echo "$as_me:$LINENO: checking for $ac_header" >&5
9789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9790if eval "test \"\${$as_ac_Header+set}\" = set"; then
9791  echo $ECHO_N "(cached) $ECHO_C" >&6
9792else
9793  eval "$as_ac_Header=\$ac_header_preproc"
9794fi
9795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9797
9798fi
9799if test `eval echo '${'$as_ac_Header'}'` = yes; then
9800  cat >>confdefs.h <<_ACEOF
9801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9802_ACEOF
9803
9804else
9805  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
9806echo "$as_me: error: cannot find vorbisfile header." >&2;}
9807   { (exit 1); exit 1; }; }
9808fi
9809
9810done
9811
9812# checking for vorbisfile-lib
9813  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
9814echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
9815if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
9816  echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818  ac_check_lib_save_LIBS=$LIBS
9819LIBS="-lvorbisfile  $LIBS"
9820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h.  */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h.  */
9826
9827
9828int
9829main ()
9830{
9831main ();
9832  ;
9833  return 0;
9834}
9835_ACEOF
9836rm -f conftest.$ac_objext conftest$ac_exeext
9837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838  (eval $ac_link) 2>conftest.er1
9839  ac_status=$?
9840  grep -v '^ *+' conftest.er1 >conftest.err
9841  rm -f conftest.er1
9842  cat conftest.err >&5
9843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844  (exit $ac_status); } &&
9845         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847  (eval $ac_try) 2>&5
9848  ac_status=$?
9849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850  (exit $ac_status); }; } &&
9851         { ac_try='test -s conftest$ac_exeext'
9852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853  (eval $ac_try) 2>&5
9854  ac_status=$?
9855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856  (exit $ac_status); }; }; then
9857  ac_cv_lib_vorbisfile_main=yes
9858else
9859  echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862ac_cv_lib_vorbisfile_main=no
9863fi
9864rm -f conftest.err conftest.$ac_objext \
9865      conftest$ac_exeext conftest.$ac_ext
9866LIBS=$ac_check_lib_save_LIBS
9867fi
9868echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
9869echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
9870if test $ac_cv_lib_vorbisfile_main = yes; then
9871  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
9872fi
9873
9874     if test x$FOUND_vorbisfile != xyes ; then
9875        echo "------------------"
9876        echo "vorbisfile library not found."
9877        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9878        echo "------------------"
9879        exit -1
9880     fi
9881
9882
9883#---------#
9884# libcURL #
9885#---------#
9886if test x$def_curl = xyes; then
9887
9888for ac_header in curl/curl.h
9889do
9890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9891if eval "test \"\${$as_ac_Header+set}\" = set"; then
9892  echo "$as_me:$LINENO: checking for $ac_header" >&5
9893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9894if eval "test \"\${$as_ac_Header+set}\" = set"; then
9895  echo $ECHO_N "(cached) $ECHO_C" >&6
9896fi
9897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899else
9900  # Is the header compilable?
9901echo "$as_me:$LINENO: checking $ac_header usability" >&5
9902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9903cat >conftest.$ac_ext <<_ACEOF
9904/* confdefs.h.  */
9905_ACEOF
9906cat confdefs.h >>conftest.$ac_ext
9907cat >>conftest.$ac_ext <<_ACEOF
9908/* end confdefs.h.  */
9909$ac_includes_default
9910#include <$ac_header>
9911_ACEOF
9912rm -f conftest.$ac_objext
9913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914  (eval $ac_compile) 2>conftest.er1
9915  ac_status=$?
9916  grep -v '^ *+' conftest.er1 >conftest.err
9917  rm -f conftest.er1
9918  cat conftest.err >&5
9919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920  (exit $ac_status); } &&
9921         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923  (eval $ac_try) 2>&5
9924  ac_status=$?
9925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926  (exit $ac_status); }; } &&
9927         { ac_try='test -s conftest.$ac_objext'
9928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929  (eval $ac_try) 2>&5
9930  ac_status=$?
9931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932  (exit $ac_status); }; }; then
9933  ac_header_compiler=yes
9934else
9935  echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938ac_header_compiler=no
9939fi
9940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9942echo "${ECHO_T}$ac_header_compiler" >&6
9943
9944# Is the header present?
9945echo "$as_me:$LINENO: checking $ac_header presence" >&5
9946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9947cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h.  */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h.  */
9953#include <$ac_header>
9954_ACEOF
9955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9957  ac_status=$?
9958  grep -v '^ *+' conftest.er1 >conftest.err
9959  rm -f conftest.er1
9960  cat conftest.err >&5
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); } >/dev/null; then
9963  if test -s conftest.err; then
9964    ac_cpp_err=$ac_c_preproc_warn_flag
9965    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9966  else
9967    ac_cpp_err=
9968  fi
9969else
9970  ac_cpp_err=yes
9971fi
9972if test -z "$ac_cpp_err"; then
9973  ac_header_preproc=yes
9974else
9975  echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978  ac_header_preproc=no
9979fi
9980rm -f conftest.err conftest.$ac_ext
9981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9982echo "${ECHO_T}$ac_header_preproc" >&6
9983
9984# So?  What about this header?
9985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9986  yes:no: )
9987    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9989    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9991    ac_header_preproc=yes
9992    ;;
9993  no:yes:* )
9994    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9996    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9997echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9998    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10000    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10001echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10002    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10004    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10006    (
10007      cat <<\_ASBOX
10008## ---------------------------------------------- ##
10009## Report this to orxonox-dev at mail.datacore.ch ##
10010## ---------------------------------------------- ##
10011_ASBOX
10012    ) |
10013      sed "s/^/$as_me: WARNING:     /" >&2
10014    ;;
10015esac
10016echo "$as_me:$LINENO: checking for $ac_header" >&5
10017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10018if eval "test \"\${$as_ac_Header+set}\" = set"; then
10019  echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021  eval "$as_ac_Header=\$ac_header_preproc"
10022fi
10023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10025
10026fi
10027if test `eval echo '${'$as_ac_Header'}'` = yes; then
10028  cat >>confdefs.h <<_ACEOF
10029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10030_ACEOF
10031 curlHeader=yes
10032else
10033  curlHeader=no
10034fi
10035
10036done
10037
10038 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
10039echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
10040if test "${ac_cv_lib_curl_main+set}" = set; then
10041  echo $ECHO_N "(cached) $ECHO_C" >&6
10042else
10043  ac_check_lib_save_LIBS=$LIBS
10044LIBS="-lcurl  $LIBS"
10045cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h.  */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h.  */
10051
10052
10053int
10054main ()
10055{
10056main ();
10057  ;
10058  return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063  (eval $ac_link) 2>conftest.er1
10064  ac_status=$?
10065  grep -v '^ *+' conftest.er1 >conftest.err
10066  rm -f conftest.er1
10067  cat conftest.err >&5
10068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069  (exit $ac_status); } &&
10070         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072  (eval $ac_try) 2>&5
10073  ac_status=$?
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); }; } &&
10076         { ac_try='test -s conftest$ac_exeext'
10077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078  (eval $ac_try) 2>&5
10079  ac_status=$?
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); }; }; then
10082  ac_cv_lib_curl_main=yes
10083else
10084  echo "$as_me: failed program was:" >&5
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
10087ac_cv_lib_curl_main=no
10088fi
10089rm -f conftest.err conftest.$ac_objext \
10090      conftest$ac_exeext conftest.$ac_ext
10091LIBS=$ac_check_lib_save_LIBS
10092fi
10093echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
10094echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
10095if test $ac_cv_lib_curl_main = yes; then
10096  FOUND_curl=yes
10097fi
10098
10099 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
10100  have_curl=yes
10101  CURL_LIBS=`curl-config --libs`
10102  CURLCFLAGS=`curl-config --cflags`
10103
10104cat >>confdefs.h <<_ACEOF
10105#define HAVE_CURL 1
10106_ACEOF
10107
10108 else
10109  have_curl=no
10110 fi
10111
10112fi
10113
10114
10115
10116
10117if test x$have_curl = xyes; then
10118  HAVE_CURL_TRUE=
10119  HAVE_CURL_FALSE='#'
10120else
10121  HAVE_CURL_TRUE='#'
10122  HAVE_CURL_FALSE=
10123fi
10124
10125
10126#--------#
10127# efence #
10128#--------#
10129if test x$def_efence = xyes ; then
10130  echo "$as_me:$LINENO: checking for main in -lefence" >&5
10131echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10132if test "${ac_cv_lib_efence_main+set}" = set; then
10133  echo $ECHO_N "(cached) $ECHO_C" >&6
10134else
10135  ac_check_lib_save_LIBS=$LIBS
10136LIBS="-lefence  $LIBS"
10137cat >conftest.$ac_ext <<_ACEOF
10138/* confdefs.h.  */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h.  */
10143
10144
10145int
10146main ()
10147{
10148main ();
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153rm -f conftest.$ac_objext conftest$ac_exeext
10154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155  (eval $ac_link) 2>conftest.er1
10156  ac_status=$?
10157  grep -v '^ *+' conftest.er1 >conftest.err
10158  rm -f conftest.er1
10159  cat conftest.err >&5
10160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); } &&
10162         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164  (eval $ac_try) 2>&5
10165  ac_status=$?
10166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167  (exit $ac_status); }; } &&
10168         { ac_try='test -s conftest$ac_exeext'
10169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170  (eval $ac_try) 2>&5
10171  ac_status=$?
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); }; }; then
10174  ac_cv_lib_efence_main=yes
10175else
10176  echo "$as_me: failed program was:" >&5
10177sed 's/^/| /' conftest.$ac_ext >&5
10178
10179ac_cv_lib_efence_main=no
10180fi
10181rm -f conftest.err conftest.$ac_objext \
10182      conftest$ac_exeext conftest.$ac_ext
10183LIBS=$ac_check_lib_save_LIBS
10184fi
10185echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10186echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10187if test $ac_cv_lib_efence_main = yes; then
10188  FOUND_efence=yes; LIBS="$LIBS -lefence"
10189fi
10190
10191   if test x$FOUND_efence != xyes ; then
10192     echo "efence was requested, but is not installed!! going on"
10193   fi
10194
10195fi
10196
10197#-----#
10198# GTK #
10199#-----#
10200if test x$def_gtk = xyes; then
10201#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
10202        echo "$as_me:$LINENO: checking for gtk2.0" >&5
10203echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
10204        if `$PKG_CONFIG --exists gtk+-2.0`; then
10205                echo "yes"
10206                have_gtk2=yes
10207                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
10208                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
10209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_GTK2 1
10212_ACEOF
10213
10214                if test $DEBUG -ge 3; then
10215                 echo "cflags: $GTK2_CFLAGS"
10216                 echo "libs: $GTK2_LIBS"
10217                fi
10218        else
10219                echo "no"
10220        fi
10221
10222fi
10223
10224
10225
10226
10227if test x$have_gtk2 = xyes; then
10228  HAVE_GTK2_TRUE=
10229  HAVE_GTK2_FALSE='#'
10230else
10231  HAVE_GTK2_TRUE='#'
10232  HAVE_GTK2_FALSE=
10233fi
10234
10235
10236
10237# FIXME: Replace `main' with a function in `-lm':
10238
10239echo "$as_me:$LINENO: checking for main in -lm" >&5
10240echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10241if test "${ac_cv_lib_m_main+set}" = set; then
10242  echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
10244  ac_check_lib_save_LIBS=$LIBS
10245LIBS="-lm  $LIBS"
10246cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h.  */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h.  */
10252
10253
10254int
10255main ()
10256{
10257main ();
10258  ;
10259  return 0;
10260}
10261_ACEOF
10262rm -f conftest.$ac_objext conftest$ac_exeext
10263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264  (eval $ac_link) 2>conftest.er1
10265  ac_status=$?
10266  grep -v '^ *+' conftest.er1 >conftest.err
10267  rm -f conftest.er1
10268  cat conftest.err >&5
10269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270  (exit $ac_status); } &&
10271         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273  (eval $ac_try) 2>&5
10274  ac_status=$?
10275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276  (exit $ac_status); }; } &&
10277         { ac_try='test -s conftest$ac_exeext'
10278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279  (eval $ac_try) 2>&5
10280  ac_status=$?
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); }; }; then
10283  ac_cv_lib_m_main=yes
10284else
10285  echo "$as_me: failed program was:" >&5
10286sed 's/^/| /' conftest.$ac_ext >&5
10287
10288ac_cv_lib_m_main=no
10289fi
10290rm -f conftest.err conftest.$ac_objext \
10291      conftest$ac_exeext conftest.$ac_ext
10292LIBS=$ac_check_lib_save_LIBS
10293fi
10294echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10295echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10296if test $ac_cv_lib_m_main = yes; then
10297  cat >>confdefs.h <<_ACEOF
10298#define HAVE_LIBM 1
10299_ACEOF
10300
10301  LIBS="-lm $LIBS"
10302
10303fi
10304
10305
10306
10307# Checks for header files.
10308echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10309echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10310if test "${ac_cv_header_stdc+set}" = set; then
10311  echo $ECHO_N "(cached) $ECHO_C" >&6
10312else
10313  cat >conftest.$ac_ext <<_ACEOF
10314/* confdefs.h.  */
10315_ACEOF
10316cat confdefs.h >>conftest.$ac_ext
10317cat >>conftest.$ac_ext <<_ACEOF
10318/* end confdefs.h.  */
10319#include <stdlib.h>
10320#include <stdarg.h>
10321#include <string.h>
10322#include <float.h>
10323
10324int
10325main ()
10326{
10327
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext
10333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334  (eval $ac_compile) 2>conftest.er1
10335  ac_status=$?
10336  grep -v '^ *+' conftest.er1 >conftest.err
10337  rm -f conftest.er1
10338  cat conftest.err >&5
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); } &&
10341         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343  (eval $ac_try) 2>&5
10344  ac_status=$?
10345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); }; } &&
10347         { ac_try='test -s conftest.$ac_objext'
10348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349  (eval $ac_try) 2>&5
10350  ac_status=$?
10351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352  (exit $ac_status); }; }; then
10353  ac_cv_header_stdc=yes
10354else
10355  echo "$as_me: failed program was:" >&5
10356sed 's/^/| /' conftest.$ac_ext >&5
10357
10358ac_cv_header_stdc=no
10359fi
10360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361
10362if test $ac_cv_header_stdc = yes; then
10363  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10364  cat >conftest.$ac_ext <<_ACEOF
10365/* confdefs.h.  */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h.  */
10370#include <string.h>
10371
10372_ACEOF
10373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10374  $EGREP "memchr" >/dev/null 2>&1; then
10375  :
10376else
10377  ac_cv_header_stdc=no
10378fi
10379rm -f conftest*
10380
10381fi
10382
10383if test $ac_cv_header_stdc = yes; then
10384  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10385  cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h.  */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h.  */
10391#include <stdlib.h>
10392
10393_ACEOF
10394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10395  $EGREP "free" >/dev/null 2>&1; then
10396  :
10397else
10398  ac_cv_header_stdc=no
10399fi
10400rm -f conftest*
10401
10402fi
10403
10404if test $ac_cv_header_stdc = yes; then
10405  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10406  if test "$cross_compiling" = yes; then
10407  :
10408else
10409  cat >conftest.$ac_ext <<_ACEOF
10410/* confdefs.h.  */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h.  */
10415#include <ctype.h>
10416#if ((' ' & 0x0FF) == 0x020)
10417# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10418# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10419#else
10420# define ISLOWER(c) \
10421                   (('a' <= (c) && (c) <= 'i') \
10422                     || ('j' <= (c) && (c) <= 'r') \
10423                     || ('s' <= (c) && (c) <= 'z'))
10424# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10425#endif
10426
10427#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10428int
10429main ()
10430{
10431  int i;
10432  for (i = 0; i < 256; i++)
10433    if (XOR (islower (i), ISLOWER (i))
10434        || toupper (i) != TOUPPER (i))
10435      exit(2);
10436  exit (0);
10437}
10438_ACEOF
10439rm -f conftest$ac_exeext
10440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441  (eval $ac_link) 2>&5
10442  ac_status=$?
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446  (eval $ac_try) 2>&5
10447  ac_status=$?
10448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); }; }; then
10450  :
10451else
10452  echo "$as_me: program exited with status $ac_status" >&5
10453echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456( exit $ac_status )
10457ac_cv_header_stdc=no
10458fi
10459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10460fi
10461fi
10462fi
10463echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10464echo "${ECHO_T}$ac_cv_header_stdc" >&6
10465if test $ac_cv_header_stdc = yes; then
10466
10467cat >>confdefs.h <<\_ACEOF
10468#define STDC_HEADERS 1
10469_ACEOF
10470
10471fi
10472
10473
10474
10475for ac_header in stdlib.h string.h
10476do
10477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10478if eval "test \"\${$as_ac_Header+set}\" = set"; then
10479  echo "$as_me:$LINENO: checking for $ac_header" >&5
10480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10481if eval "test \"\${$as_ac_Header+set}\" = set"; then
10482  echo $ECHO_N "(cached) $ECHO_C" >&6
10483fi
10484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10486else
10487  # Is the header compilable?
10488echo "$as_me:$LINENO: checking $ac_header usability" >&5
10489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10490cat >conftest.$ac_ext <<_ACEOF
10491/* confdefs.h.  */
10492_ACEOF
10493cat confdefs.h >>conftest.$ac_ext
10494cat >>conftest.$ac_ext <<_ACEOF
10495/* end confdefs.h.  */
10496$ac_includes_default
10497#include <$ac_header>
10498_ACEOF
10499rm -f conftest.$ac_objext
10500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501  (eval $ac_compile) 2>conftest.er1
10502  ac_status=$?
10503  grep -v '^ *+' conftest.er1 >conftest.err
10504  rm -f conftest.er1
10505  cat conftest.err >&5
10506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507  (exit $ac_status); } &&
10508         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510  (eval $ac_try) 2>&5
10511  ac_status=$?
10512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513  (exit $ac_status); }; } &&
10514         { ac_try='test -s conftest.$ac_objext'
10515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516  (eval $ac_try) 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; }; then
10520  ac_header_compiler=yes
10521else
10522  echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
10524
10525ac_header_compiler=no
10526fi
10527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10529echo "${ECHO_T}$ac_header_compiler" >&6
10530
10531# Is the header present?
10532echo "$as_me:$LINENO: checking $ac_header presence" >&5
10533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h.  */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h.  */
10540#include <$ac_header>
10541_ACEOF
10542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10544  ac_status=$?
10545  grep -v '^ *+' conftest.er1 >conftest.err
10546  rm -f conftest.er1
10547  cat conftest.err >&5
10548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549  (exit $ac_status); } >/dev/null; then
10550  if test -s conftest.err; then
10551    ac_cpp_err=$ac_c_preproc_warn_flag
10552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10553  else
10554    ac_cpp_err=
10555  fi
10556else
10557  ac_cpp_err=yes
10558fi
10559if test -z "$ac_cpp_err"; then
10560  ac_header_preproc=yes
10561else
10562  echo "$as_me: failed program was:" >&5
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
10565  ac_header_preproc=no
10566fi
10567rm -f conftest.err conftest.$ac_ext
10568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10569echo "${ECHO_T}$ac_header_preproc" >&6
10570
10571# So?  What about this header?
10572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10573  yes:no: )
10574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10578    ac_header_preproc=yes
10579    ;;
10580  no:yes:* )
10581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10593    (
10594      cat <<\_ASBOX
10595## ---------------------------------------------- ##
10596## Report this to orxonox-dev at mail.datacore.ch ##
10597## ---------------------------------------------- ##
10598_ASBOX
10599    ) |
10600      sed "s/^/$as_me: WARNING:     /" >&2
10601    ;;
10602esac
10603echo "$as_me:$LINENO: checking for $ac_header" >&5
10604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10605if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606  echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608  eval "$as_ac_Header=\$ac_header_preproc"
10609fi
10610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10612
10613fi
10614if test `eval echo '${'$as_ac_Header'}'` = yes; then
10615  cat >>confdefs.h <<_ACEOF
10616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10617_ACEOF
10618
10619fi
10620
10621done
10622
10623
10624# Checks for typedefs, structures, and compiler characteristics.
10625echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10626echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10627if test "${ac_cv_header_stdbool_h+set}" = set; then
10628  echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630  cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h.  */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h.  */
10636
10637#include <stdbool.h>
10638#ifndef bool
10639# error bool is not defined
10640#endif
10641#ifndef false
10642# error false is not defined
10643#endif
10644#if false
10645# error false is not 0
10646#endif
10647#ifndef true
10648# error true is not defined
10649#endif
10650#if true != 1
10651# error true is not 1
10652#endif
10653#ifndef __bool_true_false_are_defined
10654# error __bool_true_false_are_defined is not defined
10655#endif
10656
10657        struct s { _Bool s: 1; _Bool t; } s;
10658
10659        char a[true == 1 ? 1 : -1];
10660        char b[false == 0 ? 1 : -1];
10661        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10662        char d[(bool) -0.5 == true ? 1 : -1];
10663        bool e = &s;
10664        char f[(_Bool) -0.0 == false ? 1 : -1];
10665        char g[true];
10666        char h[sizeof (_Bool)];
10667        char i[sizeof s.t];
10668
10669int
10670main ()
10671{
10672 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10673  ;
10674  return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext
10678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679  (eval $ac_compile) 2>conftest.er1
10680  ac_status=$?
10681  grep -v '^ *+' conftest.er1 >conftest.err
10682  rm -f conftest.er1
10683  cat conftest.err >&5
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); } &&
10686         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688  (eval $ac_try) 2>&5
10689  ac_status=$?
10690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); }; } &&
10692         { ac_try='test -s conftest.$ac_objext'
10693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694  (eval $ac_try) 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); }; }; then
10698  ac_cv_header_stdbool_h=yes
10699else
10700  echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703ac_cv_header_stdbool_h=no
10704fi
10705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10706fi
10707echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10708echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10709echo "$as_me:$LINENO: checking for _Bool" >&5
10710echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10711if test "${ac_cv_type__Bool+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h.  */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h.  */
10720$ac_includes_default
10721int
10722main ()
10723{
10724if ((_Bool *) 0)
10725  return 0;
10726if (sizeof (_Bool))
10727  return 0;
10728  ;
10729  return 0;
10730}
10731_ACEOF
10732rm -f conftest.$ac_objext
10733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10734  (eval $ac_compile) 2>conftest.er1
10735  ac_status=$?
10736  grep -v '^ *+' conftest.er1 >conftest.err
10737  rm -f conftest.er1
10738  cat conftest.err >&5
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); } &&
10741         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743  (eval $ac_try) 2>&5
10744  ac_status=$?
10745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746  (exit $ac_status); }; } &&
10747         { ac_try='test -s conftest.$ac_objext'
10748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749  (eval $ac_try) 2>&5
10750  ac_status=$?
10751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752  (exit $ac_status); }; }; then
10753  ac_cv_type__Bool=yes
10754else
10755  echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
10758ac_cv_type__Bool=no
10759fi
10760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10761fi
10762echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10763echo "${ECHO_T}$ac_cv_type__Bool" >&6
10764if test $ac_cv_type__Bool = yes; then
10765
10766cat >>confdefs.h <<_ACEOF
10767#define HAVE__BOOL 1
10768_ACEOF
10769
10770
10771fi
10772
10773if test $ac_cv_header_stdbool_h = yes; then
10774
10775cat >>confdefs.h <<\_ACEOF
10776#define HAVE_STDBOOL_H 1
10777_ACEOF
10778
10779fi
10780
10781
10782# Checks for library functions.
10783
10784for ac_header in stdlib.h
10785do
10786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10787if eval "test \"\${$as_ac_Header+set}\" = set"; then
10788  echo "$as_me:$LINENO: checking for $ac_header" >&5
10789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10790if eval "test \"\${$as_ac_Header+set}\" = set"; then
10791  echo $ECHO_N "(cached) $ECHO_C" >&6
10792fi
10793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10795else
10796  # Is the header compilable?
10797echo "$as_me:$LINENO: checking $ac_header usability" >&5
10798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10799cat >conftest.$ac_ext <<_ACEOF
10800/* confdefs.h.  */
10801_ACEOF
10802cat confdefs.h >>conftest.$ac_ext
10803cat >>conftest.$ac_ext <<_ACEOF
10804/* end confdefs.h.  */
10805$ac_includes_default
10806#include <$ac_header>
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810  (eval $ac_compile) 2>conftest.er1
10811  ac_status=$?
10812  grep -v '^ *+' conftest.er1 >conftest.err
10813  rm -f conftest.er1
10814  cat conftest.err >&5
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); } &&
10817         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819  (eval $ac_try) 2>&5
10820  ac_status=$?
10821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822  (exit $ac_status); }; } &&
10823         { ac_try='test -s conftest.$ac_objext'
10824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825  (eval $ac_try) 2>&5
10826  ac_status=$?
10827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828  (exit $ac_status); }; }; then
10829  ac_header_compiler=yes
10830else
10831  echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834ac_header_compiler=no
10835fi
10836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838echo "${ECHO_T}$ac_header_compiler" >&6
10839
10840# Is the header present?
10841echo "$as_me:$LINENO: checking $ac_header presence" >&5
10842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h.  */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h.  */
10849#include <$ac_header>
10850_ACEOF
10851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10852  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10853  ac_status=$?
10854  grep -v '^ *+' conftest.er1 >conftest.err
10855  rm -f conftest.er1
10856  cat conftest.err >&5
10857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858  (exit $ac_status); } >/dev/null; then
10859  if test -s conftest.err; then
10860    ac_cpp_err=$ac_c_preproc_warn_flag
10861    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10862  else
10863    ac_cpp_err=
10864  fi
10865else
10866  ac_cpp_err=yes
10867fi
10868if test -z "$ac_cpp_err"; then
10869  ac_header_preproc=yes
10870else
10871  echo "$as_me: failed program was:" >&5
10872sed 's/^/| /' conftest.$ac_ext >&5
10873
10874  ac_header_preproc=no
10875fi
10876rm -f conftest.err conftest.$ac_ext
10877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10878echo "${ECHO_T}$ac_header_preproc" >&6
10879
10880# So?  What about this header?
10881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10882  yes:no: )
10883    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10885    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10887    ac_header_preproc=yes
10888    ;;
10889  no:yes:* )
10890    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10892    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10893echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10894    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10896    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10897echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10898    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10900    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10902    (
10903      cat <<\_ASBOX
10904## ---------------------------------------------- ##
10905## Report this to orxonox-dev at mail.datacore.ch ##
10906## ---------------------------------------------- ##
10907_ASBOX
10908    ) |
10909      sed "s/^/$as_me: WARNING:     /" >&2
10910    ;;
10911esac
10912echo "$as_me:$LINENO: checking for $ac_header" >&5
10913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10914if eval "test \"\${$as_ac_Header+set}\" = set"; then
10915  echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917  eval "$as_ac_Header=\$ac_header_preproc"
10918fi
10919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10921
10922fi
10923if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924  cat >>confdefs.h <<_ACEOF
10925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10926_ACEOF
10927
10928fi
10929
10930done
10931
10932echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10933echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
10934if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10935  echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937  if test "$cross_compiling" = yes; then
10938  ac_cv_func_malloc_0_nonnull=no
10939else
10940  cat >conftest.$ac_ext <<_ACEOF
10941/* confdefs.h.  */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h.  */
10946#if STDC_HEADERS || HAVE_STDLIB_H
10947# include <stdlib.h>
10948#else
10949char *malloc ();
10950#endif
10951
10952int
10953main ()
10954{
10955exit (malloc (0) ? 0 : 1);
10956  ;
10957  return 0;
10958}
10959_ACEOF
10960rm -f conftest$ac_exeext
10961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962  (eval $ac_link) 2>&5
10963  ac_status=$?
10964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967  (eval $ac_try) 2>&5
10968  ac_status=$?
10969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970  (exit $ac_status); }; }; then
10971  ac_cv_func_malloc_0_nonnull=yes
10972else
10973  echo "$as_me: program exited with status $ac_status" >&5
10974echo "$as_me: failed program was:" >&5
10975sed 's/^/| /' conftest.$ac_ext >&5
10976
10977( exit $ac_status )
10978ac_cv_func_malloc_0_nonnull=no
10979fi
10980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10981fi
10982fi
10983echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10984echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10985if test $ac_cv_func_malloc_0_nonnull = yes; then
10986
10987cat >>confdefs.h <<\_ACEOF
10988#define HAVE_MALLOC 1
10989_ACEOF
10990
10991else
10992  cat >>confdefs.h <<\_ACEOF
10993#define HAVE_MALLOC 0
10994_ACEOF
10995
10996   case $LIBOBJS in
10997    "malloc.$ac_objext"   | \
10998  *" malloc.$ac_objext"   | \
10999    "malloc.$ac_objext "* | \
11000  *" malloc.$ac_objext "* ) ;;
11001  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
11002esac
11003
11004
11005cat >>confdefs.h <<\_ACEOF
11006#define malloc rpl_malloc
11007_ACEOF
11008
11009fi
11010
11011
11012
11013
11014
11015for ac_func in bzero sqrt
11016do
11017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11018echo "$as_me:$LINENO: checking for $ac_func" >&5
11019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11020if eval "test \"\${$as_ac_var+set}\" = set"; then
11021  echo $ECHO_N "(cached) $ECHO_C" >&6
11022else
11023  cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h.  */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h.  */
11029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11030   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11031#define $ac_func innocuous_$ac_func
11032
11033/* System header to define __stub macros and hopefully few prototypes,
11034    which can conflict with char $ac_func (); below.
11035    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036    <limits.h> exists even on freestanding compilers.  */
11037
11038#ifdef __STDC__
11039# include <limits.h>
11040#else
11041# include <assert.h>
11042#endif
11043
11044#undef $ac_func
11045
11046/* Override any gcc2 internal prototype to avoid an error.  */
11047#ifdef __cplusplus
11048extern "C"
11049{
11050#endif
11051/* We use char because int might match the return type of a gcc2
11052   builtin and then its argument prototype would still apply.  */
11053char $ac_func ();
11054/* The GNU C library defines this for functions which it implements
11055    to always fail with ENOSYS.  Some functions are actually named
11056    something starting with __ and the normal name is an alias.  */
11057#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11058choke me
11059#else
11060char (*f) () = $ac_func;
11061#endif
11062#ifdef __cplusplus
11063}
11064#endif
11065
11066int
11067main ()
11068{
11069return f != $ac_func;
11070  ;
11071  return 0;
11072}
11073_ACEOF
11074rm -f conftest.$ac_objext conftest$ac_exeext
11075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076  (eval $ac_link) 2>conftest.er1
11077  ac_status=$?
11078  grep -v '^ *+' conftest.er1 >conftest.err
11079  rm -f conftest.er1
11080  cat conftest.err >&5
11081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082  (exit $ac_status); } &&
11083         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085  (eval $ac_try) 2>&5
11086  ac_status=$?
11087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088  (exit $ac_status); }; } &&
11089         { ac_try='test -s conftest$ac_exeext'
11090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091  (eval $ac_try) 2>&5
11092  ac_status=$?
11093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094  (exit $ac_status); }; }; then
11095  eval "$as_ac_var=yes"
11096else
11097  echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100eval "$as_ac_var=no"
11101fi
11102rm -f conftest.err conftest.$ac_objext \
11103      conftest$ac_exeext conftest.$ac_ext
11104fi
11105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11107if test `eval echo '${'$as_ac_var'}'` = yes; then
11108  cat >>confdefs.h <<_ACEOF
11109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110_ACEOF
11111
11112fi
11113done
11114
11115
11116######################
11117## OUTPUT CONFIGURE ##
11118######################
11119                                                                                                                                                                                                                                                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/network/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 src/subprojects/network/Makefile"
11120
11121
11122cat >confcache <<\_ACEOF
11123# This file is a shell script that caches the results of configure
11124# tests run on this system so they can be shared between configure
11125# scripts and configure runs, see configure's option --config-cache.
11126# It is not useful on other systems.  If it contains results you don't
11127# want to keep, you may remove or edit it.
11128#
11129# config.status only pays attention to the cache file if you give it
11130# the --recheck option to rerun configure.
11131#
11132# `ac_cv_env_foo' variables (set or unset) will be overridden when
11133# loading this file, other *unset* `ac_cv_foo' will be assigned the
11134# following values.
11135
11136_ACEOF
11137
11138# The following way of writing the cache mishandles newlines in values,
11139# but we know of no workaround that is simple, portable, and efficient.
11140# So, don't put newlines in cache variables' values.
11141# Ultrix sh set writes to stderr and can't be redirected directly,
11142# and sets the high bit in the cache file unless we assign to the vars.
11143{
11144  (set) 2>&1 |
11145    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11146    *ac_space=\ *)
11147      # `set' does not quote correctly, so add quotes (double-quote
11148      # substitution turns \\\\ into \\, and sed turns \\ into \).
11149      sed -n \
11150        "s/'/'\\\\''/g;
11151          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11152      ;;
11153    *)
11154      # `set' quotes correctly as required by POSIX, so do not add quotes.
11155      sed -n \
11156        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11157      ;;
11158    esac;
11159} |
11160  sed '
11161     t clear
11162     : clear
11163     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11164     t end
11165     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11166     : end' >>confcache
11167if diff $cache_file confcache >/dev/null 2>&1; then :; else
11168  if test -w $cache_file; then
11169    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11170    cat confcache >$cache_file
11171  else
11172    echo "not updating unwritable cache $cache_file"
11173  fi
11174fi
11175rm -f confcache
11176
11177test "x$prefix" = xNONE && prefix=$ac_default_prefix
11178# Let make expand exec_prefix.
11179test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11180
11181# VPATH may cause trouble with some makes, so we remove $(srcdir),
11182# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11183# trailing colons and then remove the whole line if VPATH becomes empty
11184# (actually we leave an empty line to preserve line numbers).
11185if test "x$srcdir" = x.; then
11186  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11187s/:*\$(srcdir):*/:/;
11188s/:*\${srcdir}:*/:/;
11189s/:*@srcdir@:*/:/;
11190s/^\([^=]*=[     ]*\):*/\1/;
11191s/:*$//;
11192s/^[^=]*=[       ]*$//;
11193}'
11194fi
11195
11196DEFS=-DHAVE_CONFIG_H
11197
11198ac_libobjs=
11199ac_ltlibobjs=
11200for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11201  # 1. Remove the extension, and $U if already installed.
11202  ac_i=`echo "$ac_i" |
11203         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11204  # 2. Add them.
11205  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11206  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11207done
11208LIBOBJS=$ac_libobjs
11209
11210LTLIBOBJS=$ac_ltlibobjs
11211
11212
11213if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11214  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11215Usually this means the macro was only invoked conditionally." >&5
11216echo "$as_me: error: conditional \"AMDEP\" was never defined.
11217Usually this means the macro was only invoked conditionally." >&2;}
11218   { (exit 1); exit 1; }; }
11219fi
11220if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11221  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11222Usually this means the macro was only invoked conditionally." >&5
11223echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11224Usually this means the macro was only invoked conditionally." >&2;}
11225   { (exit 1); exit 1; }; }
11226fi
11227if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11228  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11229Usually this means the macro was only invoked conditionally." >&5
11230echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11231Usually this means the macro was only invoked conditionally." >&2;}
11232   { (exit 1); exit 1; }; }
11233fi
11234if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
11235  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
11236Usually this means the macro was only invoked conditionally." >&5
11237echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
11238Usually this means the macro was only invoked conditionally." >&2;}
11239   { (exit 1); exit 1; }; }
11240fi
11241if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
11242  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
11243Usually this means the macro was only invoked conditionally." >&5
11244echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
11245Usually this means the macro was only invoked conditionally." >&2;}
11246   { (exit 1); exit 1; }; }
11247fi
11248if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
11249  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
11250Usually this means the macro was only invoked conditionally." >&5
11251echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
11252Usually this means the macro was only invoked conditionally." >&2;}
11253   { (exit 1); exit 1; }; }
11254fi
11255if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
11256  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
11257Usually this means the macro was only invoked conditionally." >&5
11258echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
11259Usually this means the macro was only invoked conditionally." >&2;}
11260   { (exit 1); exit 1; }; }
11261fi
11262if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
11263  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
11264Usually this means the macro was only invoked conditionally." >&5
11265echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
11266Usually this means the macro was only invoked conditionally." >&2;}
11267   { (exit 1); exit 1; }; }
11268fi
11269
11270: ${CONFIG_STATUS=./config.status}
11271ac_clean_files_save=$ac_clean_files
11272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11273{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11274echo "$as_me: creating $CONFIG_STATUS" >&6;}
11275cat >$CONFIG_STATUS <<_ACEOF
11276#! $SHELL
11277# Generated by $as_me.
11278# Run this file to recreate the current configuration.
11279# Compiler output produced by configure, useful for debugging
11280# configure, is in config.log if it exists.
11281
11282debug=false
11283ac_cs_recheck=false
11284ac_cs_silent=false
11285SHELL=\${CONFIG_SHELL-$SHELL}
11286_ACEOF
11287
11288cat >>$CONFIG_STATUS <<\_ACEOF
11289## --------------------- ##
11290## M4sh Initialization.  ##
11291## --------------------- ##
11292
11293# Be Bourne compatible
11294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11295  emulate sh
11296  NULLCMD=:
11297  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11298  # is contrary to our usage.  Disable this feature.
11299  alias -g '${1+"$@"}'='"$@"'
11300elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11301  set -o posix
11302fi
11303DUALCASE=1; export DUALCASE # for MKS sh
11304
11305# Support unset when possible.
11306if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11307  as_unset=unset
11308else
11309  as_unset=false
11310fi
11311
11312
11313# Work around bugs in pre-3.0 UWIN ksh.
11314$as_unset ENV MAIL MAILPATH
11315PS1='$ '
11316PS2='> '
11317PS4='+ '
11318
11319# NLS nuisances.
11320for as_var in \
11321  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11322  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11323  LC_TELEPHONE LC_TIME
11324do
11325  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11326    eval $as_var=C; export $as_var
11327  else
11328    $as_unset $as_var
11329  fi
11330done
11331
11332# Required to use basename.
11333if expr a : '\(a\)' >/dev/null 2>&1; then
11334  as_expr=expr
11335else
11336  as_expr=false
11337fi
11338
11339if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11340  as_basename=basename
11341else
11342  as_basename=false
11343fi
11344
11345
11346# Name of the executable.
11347as_me=`$as_basename "$0" ||
11348$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11349         X"$0" : 'X\(//\)$' \| \
11350         X"$0" : 'X\(/\)$' \| \
11351         .     : '\(.\)' 2>/dev/null ||
11352echo X/"$0" |
11353    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11354          /^X\/\(\/\/\)$/{ s//\1/; q; }
11355          /^X\/\(\/\).*/{ s//\1/; q; }
11356          s/.*/./; q'`
11357
11358
11359# PATH needs CR, and LINENO needs CR and PATH.
11360# Avoid depending upon Character Ranges.
11361as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11362as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11363as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11364as_cr_digits='0123456789'
11365as_cr_alnum=$as_cr_Letters$as_cr_digits
11366
11367# The user is always right.
11368if test "${PATH_SEPARATOR+set}" != set; then
11369  echo "#! /bin/sh" >conf$$.sh
11370  echo  "exit 0"   >>conf$$.sh
11371  chmod +x conf$$.sh
11372  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11373    PATH_SEPARATOR=';'
11374  else
11375    PATH_SEPARATOR=:
11376  fi
11377  rm -f conf$$.sh
11378fi
11379
11380
11381  as_lineno_1=$LINENO
11382  as_lineno_2=$LINENO
11383  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11384  test "x$as_lineno_1" != "x$as_lineno_2" &&
11385  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11386  # Find who we are.  Look in the path if we contain no path at all
11387  # relative or not.
11388  case $0 in
11389    *[\\/]* ) as_myself=$0 ;;
11390    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393  IFS=$as_save_IFS
11394  test -z "$as_dir" && as_dir=.
11395  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11396done
11397
11398       ;;
11399  esac
11400  # We did not find ourselves, most probably we were run as `sh COMMAND'
11401  # in which case we are not to be found in the path.
11402  if test "x$as_myself" = x; then
11403    as_myself=$0
11404  fi
11405  if test ! -f "$as_myself"; then
11406    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11407echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11408   { (exit 1); exit 1; }; }
11409  fi
11410  case $CONFIG_SHELL in
11411  '')
11412    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11414do
11415  IFS=$as_save_IFS
11416  test -z "$as_dir" && as_dir=.
11417  for as_base in sh bash ksh sh5; do
11418         case $as_dir in
11419         /*)
11420           if ("$as_dir/$as_base" -c '
11421  as_lineno_1=$LINENO
11422  as_lineno_2=$LINENO
11423  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11424  test "x$as_lineno_1" != "x$as_lineno_2" &&
11425  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11426             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11427             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11428             CONFIG_SHELL=$as_dir/$as_base
11429             export CONFIG_SHELL
11430             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11431           fi;;
11432         esac
11433       done
11434done
11435;;
11436  esac
11437
11438  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11439  # uniformly replaced by the line number.  The first 'sed' inserts a
11440  # line-number line before each line; the second 'sed' does the real
11441  # work.  The second script uses 'N' to pair each line-number line
11442  # with the numbered line, and appends trailing '-' during
11443  # substitution so that $LINENO is not a special case at line end.
11444  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11445  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11446  sed '=' <$as_myself |
11447    sed '
11448      N
11449      s,$,-,
11450      : loop
11451      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11452      t loop
11453      s,-$,,
11454      s,^['$as_cr_digits']*\n,,
11455    ' >$as_me.lineno &&
11456  chmod +x $as_me.lineno ||
11457    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11458echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11459   { (exit 1); exit 1; }; }
11460
11461  # Don't try to exec as it changes $[0], causing all sort of problems
11462  # (the dirname of $[0] is not the place where we might find the
11463  # original and so on.  Autoconf is especially sensible to this).
11464  . ./$as_me.lineno
11465  # Exit status is that of the last command.
11466  exit
11467}
11468
11469
11470case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11471  *c*,-n*) ECHO_N= ECHO_C='
11472' ECHO_T='      ' ;;
11473  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11474  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11475esac
11476
11477if expr a : '\(a\)' >/dev/null 2>&1; then
11478  as_expr=expr
11479else
11480  as_expr=false
11481fi
11482
11483rm -f conf$$ conf$$.exe conf$$.file
11484echo >conf$$.file
11485if ln -s conf$$.file conf$$ 2>/dev/null; then
11486  # We could just check for DJGPP; but this test a) works b) is more generic
11487  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11488  if test -f conf$$.exe; then
11489    # Don't use ln at all; we don't have any links
11490    as_ln_s='cp -p'
11491  else
11492    as_ln_s='ln -s'
11493  fi
11494elif ln conf$$.file conf$$ 2>/dev/null; then
11495  as_ln_s=ln
11496else
11497  as_ln_s='cp -p'
11498fi
11499rm -f conf$$ conf$$.exe conf$$.file
11500
11501if mkdir -p . 2>/dev/null; then
11502  as_mkdir_p=:
11503else
11504  test -d ./-p && rmdir ./-p
11505  as_mkdir_p=false
11506fi
11507
11508as_executable_p="test -f"
11509
11510# Sed expression to map a string onto a valid CPP name.
11511as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11512
11513# Sed expression to map a string onto a valid variable name.
11514as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11515
11516
11517# IFS
11518# We need space, tab and new line, in precisely that order.
11519as_nl='
11520'
11521IFS="   $as_nl"
11522
11523# CDPATH.
11524$as_unset CDPATH
11525
11526exec 6>&1
11527
11528# Open the log real soon, to keep \$[0] and so on meaningful, and to
11529# report actual input values of CONFIG_FILES etc. instead of their
11530# values after options handling.  Logging --version etc. is OK.
11531exec 5>>config.log
11532{
11533  echo
11534  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11535## Running $as_me. ##
11536_ASBOX
11537} >&5
11538cat >&5 <<_CSEOF
11539
11540This file was extended by orxonox $as_me 0.3.2_alpha, which was
11541generated by GNU Autoconf 2.59.  Invocation command line was
11542
11543  CONFIG_FILES    = $CONFIG_FILES
11544  CONFIG_HEADERS  = $CONFIG_HEADERS
11545  CONFIG_LINKS    = $CONFIG_LINKS
11546  CONFIG_COMMANDS = $CONFIG_COMMANDS
11547  $ $0 $@
11548
11549_CSEOF
11550echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11551echo >&5
11552_ACEOF
11553
11554# Files that config.status was made for.
11555if test -n "$ac_config_files"; then
11556  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11557fi
11558
11559if test -n "$ac_config_headers"; then
11560  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11561fi
11562
11563if test -n "$ac_config_links"; then
11564  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11565fi
11566
11567if test -n "$ac_config_commands"; then
11568  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11569fi
11570
11571cat >>$CONFIG_STATUS <<\_ACEOF
11572
11573ac_cs_usage="\
11574\`$as_me' instantiates files from templates according to the
11575current configuration.
11576
11577Usage: $0 [OPTIONS] [FILE]...
11578
11579  -h, --help       print this help, then exit
11580  -V, --version    print version number, then exit
11581  -q, --quiet      do not print progress messages
11582  -d, --debug      don't remove temporary files
11583      --recheck    update $as_me by reconfiguring in the same conditions
11584  --file=FILE[:TEMPLATE]
11585                   instantiate the configuration file FILE
11586  --header=FILE[:TEMPLATE]
11587                   instantiate the configuration header FILE
11588
11589Configuration files:
11590$config_files
11591
11592Configuration headers:
11593$config_headers
11594
11595Configuration commands:
11596$config_commands
11597
11598Report bugs to <bug-autoconf@gnu.org>."
11599_ACEOF
11600
11601cat >>$CONFIG_STATUS <<_ACEOF
11602ac_cs_version="\\
11603orxonox config.status 0.3.2_alpha
11604configured by $0, generated by GNU Autoconf 2.59,
11605  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11606
11607Copyright (C) 2003 Free Software Foundation, Inc.
11608This config.status script is free software; the Free Software Foundation
11609gives unlimited permission to copy, distribute and modify it."
11610srcdir=$srcdir
11611INSTALL="$INSTALL"
11612_ACEOF
11613
11614cat >>$CONFIG_STATUS <<\_ACEOF
11615# If no file are specified by the user, then we need to provide default
11616# value.  By we need to know if files were specified by the user.
11617ac_need_defaults=:
11618while test $# != 0
11619do
11620  case $1 in
11621  --*=*)
11622    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11623    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11624    ac_shift=:
11625    ;;
11626  -*)
11627    ac_option=$1
11628    ac_optarg=$2
11629    ac_shift=shift
11630    ;;
11631  *) # This is not an option, so the user has probably given explicit
11632     # arguments.
11633     ac_option=$1
11634     ac_need_defaults=false;;
11635  esac
11636
11637  case $ac_option in
11638  # Handling of the options.
11639_ACEOF
11640cat >>$CONFIG_STATUS <<\_ACEOF
11641  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11642    ac_cs_recheck=: ;;
11643  --version | --vers* | -V )
11644    echo "$ac_cs_version"; exit 0 ;;
11645  --he | --h)
11646    # Conflict between --help and --header
11647    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11648Try \`$0 --help' for more information." >&5
11649echo "$as_me: error: ambiguous option: $1
11650Try \`$0 --help' for more information." >&2;}
11651   { (exit 1); exit 1; }; };;
11652  --help | --hel | -h )
11653    echo "$ac_cs_usage"; exit 0 ;;
11654  --debug | --d* | -d )
11655    debug=: ;;
11656  --file | --fil | --fi | --f )
11657    $ac_shift
11658    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11659    ac_need_defaults=false;;
11660  --header | --heade | --head | --hea )
11661    $ac_shift
11662    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11663    ac_need_defaults=false;;
11664  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11665  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11666    ac_cs_silent=: ;;
11667
11668  # This is an error.
11669  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11670Try \`$0 --help' for more information." >&5
11671echo "$as_me: error: unrecognized option: $1
11672Try \`$0 --help' for more information." >&2;}
11673   { (exit 1); exit 1; }; } ;;
11674
11675  *) ac_config_targets="$ac_config_targets $1" ;;
11676
11677  esac
11678  shift
11679done
11680
11681ac_configure_extra_args=
11682
11683if $ac_cs_silent; then
11684  exec 6>/dev/null
11685  ac_configure_extra_args="$ac_configure_extra_args --silent"
11686fi
11687
11688_ACEOF
11689cat >>$CONFIG_STATUS <<_ACEOF
11690if \$ac_cs_recheck; then
11691  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11692  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11693fi
11694
11695_ACEOF
11696
11697cat >>$CONFIG_STATUS <<_ACEOF
11698#
11699# INIT-COMMANDS section.
11700#
11701
11702AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11703
11704_ACEOF
11705
11706
11707
11708cat >>$CONFIG_STATUS <<\_ACEOF
11709for ac_config_target in $ac_config_targets
11710do
11711  case "$ac_config_target" in
11712  # Handling of arguments.
11713  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11714  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11715  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11716  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
11717  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
11718  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
11719  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
11720  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
11721  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
11722  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
11723  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
11724  "src/lib/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/network/Makefile" ;;
11725  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
11726  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
11727  "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;;
11728  "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;;
11729  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
11730  "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
11731  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
11732  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
11733  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
11734  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
11735  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
11736  "src/subprojects/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/network/Makefile" ;;
11737  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11738  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11739  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11740echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11741   { (exit 1); exit 1; }; };;
11742  esac
11743done
11744
11745# If the user did not use the arguments to specify the items to instantiate,
11746# then the envvar interface is used.  Set only those that are not.
11747# We use the long form for the default assignment because of an extremely
11748# bizarre bug on SunOS 4.1.3.
11749if $ac_need_defaults; then
11750  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11751  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11752  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11753fi
11754
11755# Have a temporary directory for convenience.  Make it in the build tree
11756# simply because there is no reason to put it here, and in addition,
11757# creating and moving files from /tmp can sometimes cause problems.
11758# Create a temporary directory, and hook for its removal unless debugging.
11759$debug ||
11760{
11761  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11762  trap '{ (exit 1); exit 1; }' 1 2 13 15
11763}
11764
11765# Create a (secure) tmp directory for tmp files.
11766
11767{
11768  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11769  test -n "$tmp" && test -d "$tmp"
11770}  ||
11771{
11772  tmp=./confstat$$-$RANDOM
11773  (umask 077 && mkdir $tmp)
11774} ||
11775{
11776   echo "$me: cannot create a temporary directory in ." >&2
11777   { (exit 1); exit 1; }
11778}
11779
11780_ACEOF
11781
11782cat >>$CONFIG_STATUS <<_ACEOF
11783
11784#
11785# CONFIG_FILES section.
11786#
11787
11788# No need to generate the scripts if there are no CONFIG_FILES.
11789# This happens for instance when ./config.status config.h
11790if test -n "\$CONFIG_FILES"; then
11791  # Protect against being on the right side of a sed subst in config.status.
11792  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11793   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11794s,@SHELL@,$SHELL,;t t
11795s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11796s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11797s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11798s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11799s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11800s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11801s,@exec_prefix@,$exec_prefix,;t t
11802s,@prefix@,$prefix,;t t
11803s,@program_transform_name@,$program_transform_name,;t t
11804s,@bindir@,$bindir,;t t
11805s,@sbindir@,$sbindir,;t t
11806s,@libexecdir@,$libexecdir,;t t
11807s,@datadir@,$datadir,;t t
11808s,@sysconfdir@,$sysconfdir,;t t
11809s,@sharedstatedir@,$sharedstatedir,;t t
11810s,@localstatedir@,$localstatedir,;t t
11811s,@libdir@,$libdir,;t t
11812s,@includedir@,$includedir,;t t
11813s,@oldincludedir@,$oldincludedir,;t t
11814s,@infodir@,$infodir,;t t
11815s,@mandir@,$mandir,;t t
11816s,@build_alias@,$build_alias,;t t
11817s,@host_alias@,$host_alias,;t t
11818s,@target_alias@,$target_alias,;t t
11819s,@DEFS@,$DEFS,;t t
11820s,@ECHO_C@,$ECHO_C,;t t
11821s,@ECHO_N@,$ECHO_N,;t t
11822s,@ECHO_T@,$ECHO_T,;t t
11823s,@LIBS@,$LIBS,;t t
11824s,@build@,$build,;t t
11825s,@build_cpu@,$build_cpu,;t t
11826s,@build_vendor@,$build_vendor,;t t
11827s,@build_os@,$build_os,;t t
11828s,@host@,$host,;t t
11829s,@host_cpu@,$host_cpu,;t t
11830s,@host_vendor@,$host_vendor,;t t
11831s,@host_os@,$host_os,;t t
11832s,@target@,$target,;t t
11833s,@target_cpu@,$target_cpu,;t t
11834s,@target_vendor@,$target_vendor,;t t
11835s,@target_os@,$target_os,;t t
11836s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11837s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11838s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11839s,@CYGPATH_W@,$CYGPATH_W,;t t
11840s,@PACKAGE@,$PACKAGE,;t t
11841s,@VERSION@,$VERSION,;t t
11842s,@ACLOCAL@,$ACLOCAL,;t t
11843s,@AUTOCONF@,$AUTOCONF,;t t
11844s,@AUTOMAKE@,$AUTOMAKE,;t t
11845s,@AUTOHEADER@,$AUTOHEADER,;t t
11846s,@MAKEINFO@,$MAKEINFO,;t t
11847s,@install_sh@,$install_sh,;t t
11848s,@STRIP@,$STRIP,;t t
11849s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11850s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11851s,@mkdir_p@,$mkdir_p,;t t
11852s,@AWK@,$AWK,;t t
11853s,@SET_MAKE@,$SET_MAKE,;t t
11854s,@am__leading_dot@,$am__leading_dot,;t t
11855s,@AMTAR@,$AMTAR,;t t
11856s,@am__tar@,$am__tar,;t t
11857s,@am__untar@,$am__untar,;t t
11858s,@CXX@,$CXX,;t t
11859s,@CXXFLAGS@,$CXXFLAGS,;t t
11860s,@LDFLAGS@,$LDFLAGS,;t t
11861s,@CPPFLAGS@,$CPPFLAGS,;t t
11862s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11863s,@EXEEXT@,$EXEEXT,;t t
11864s,@OBJEXT@,$OBJEXT,;t t
11865s,@DEPDIR@,$DEPDIR,;t t
11866s,@am__include@,$am__include,;t t
11867s,@am__quote@,$am__quote,;t t
11868s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11869s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11870s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11871s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11872s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11873s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
11874s,@RANLIB@,$RANLIB,;t t
11875s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11876s,@CC@,$CC,;t t
11877s,@CFLAGS@,$CFLAGS,;t t
11878s,@ac_ct_CC@,$ac_ct_CC,;t t
11879s,@CCDEPMODE@,$CCDEPMODE,;t t
11880s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11881s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11882s,@CPP@,$CPP,;t t
11883s,@EGREP@,$EGREP,;t t
11884s,@DEBUG@,$DEBUG,;t t
11885s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
11886s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
11887s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
11888s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
11889s,@DOXYGEN@,$DOXYGEN,;t t
11890s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
11891s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
11892s,@GPROF@,$GPROF,;t t
11893s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11894s,@MSBITFIELDS@,$MSBITFIELDS,;t t
11895s,@CURL_LIBS@,$CURL_LIBS,;t t
11896s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
11897s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
11898s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
11899s,@GTK2_LIBS@,$GTK2_LIBS,;t t
11900s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
11901s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
11902s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
11903s,@LIBOBJS@,$LIBOBJS,;t t
11904s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11905CEOF
11906
11907_ACEOF
11908
11909  cat >>$CONFIG_STATUS <<\_ACEOF
11910  # Split the substitutions into bite-sized pieces for seds with
11911  # small command number limits, like on Digital OSF/1 and HP-UX.
11912  ac_max_sed_lines=48
11913  ac_sed_frag=1 # Number of current file.
11914  ac_beg=1 # First line for current file.
11915  ac_end=$ac_max_sed_lines # Line after last line for current file.
11916  ac_more_lines=:
11917  ac_sed_cmds=
11918  while $ac_more_lines; do
11919    if test $ac_beg -gt 1; then
11920      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11921    else
11922      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11923    fi
11924    if test ! -s $tmp/subs.frag; then
11925      ac_more_lines=false
11926    else
11927      # The purpose of the label and of the branching condition is to
11928      # speed up the sed processing (if there are no `@' at all, there
11929      # is no need to browse any of the substitutions).
11930      # These are the two extra sed commands mentioned above.
11931      (echo ':t
11932  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11933      if test -z "$ac_sed_cmds"; then
11934        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11935      else
11936        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11937      fi
11938      ac_sed_frag=`expr $ac_sed_frag + 1`
11939      ac_beg=$ac_end
11940      ac_end=`expr $ac_end + $ac_max_sed_lines`
11941    fi
11942  done
11943  if test -z "$ac_sed_cmds"; then
11944    ac_sed_cmds=cat
11945  fi
11946fi # test -n "$CONFIG_FILES"
11947
11948_ACEOF
11949cat >>$CONFIG_STATUS <<\_ACEOF
11950for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11951  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11952  case $ac_file in
11953  - | *:- | *:-:* ) # input from stdin
11954        cat >$tmp/stdin
11955        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11956        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11957  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11958        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11959  * )   ac_file_in=$ac_file.in ;;
11960  esac
11961
11962  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11963  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11964$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11965         X"$ac_file" : 'X\(//\)[^/]' \| \
11966         X"$ac_file" : 'X\(//\)$' \| \
11967         X"$ac_file" : 'X\(/\)' \| \
11968         .     : '\(.\)' 2>/dev/null ||
11969echo X"$ac_file" |
11970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11971          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11972          /^X\(\/\/\)$/{ s//\1/; q; }
11973          /^X\(\/\).*/{ s//\1/; q; }
11974          s/.*/./; q'`
11975  { if $as_mkdir_p; then
11976    mkdir -p "$ac_dir"
11977  else
11978    as_dir="$ac_dir"
11979    as_dirs=
11980    while test ! -d "$as_dir"; do
11981      as_dirs="$as_dir $as_dirs"
11982      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11983$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11984         X"$as_dir" : 'X\(//\)[^/]' \| \
11985         X"$as_dir" : 'X\(//\)$' \| \
11986         X"$as_dir" : 'X\(/\)' \| \
11987         .     : '\(.\)' 2>/dev/null ||
11988echo X"$as_dir" |
11989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11990          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11991          /^X\(\/\/\)$/{ s//\1/; q; }
11992          /^X\(\/\).*/{ s//\1/; q; }
11993          s/.*/./; q'`
11994    done
11995    test ! -n "$as_dirs" || mkdir $as_dirs
11996  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11997echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11998   { (exit 1); exit 1; }; }; }
11999
12000  ac_builddir=.
12001
12002if test "$ac_dir" != .; then
12003  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12004  # A "../" for each directory in $ac_dir_suffix.
12005  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12006else
12007  ac_dir_suffix= ac_top_builddir=
12008fi
12009
12010case $srcdir in
12011  .)  # No --srcdir option.  We are building in place.
12012    ac_srcdir=.
12013    if test -z "$ac_top_builddir"; then
12014       ac_top_srcdir=.
12015    else
12016       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12017    fi ;;
12018  [\\/]* | ?:[\\/]* )  # Absolute path.
12019    ac_srcdir=$srcdir$ac_dir_suffix;
12020    ac_top_srcdir=$srcdir ;;
12021  *) # Relative path.
12022    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12023    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12024esac
12025
12026# Do not use `cd foo && pwd` to compute absolute paths, because
12027# the directories may not exist.
12028case `pwd` in
12029.) ac_abs_builddir="$ac_dir";;
12030*)
12031  case "$ac_dir" in
12032  .) ac_abs_builddir=`pwd`;;
12033  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12034  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12035  esac;;
12036esac
12037case $ac_abs_builddir in
12038.) ac_abs_top_builddir=${ac_top_builddir}.;;
12039*)
12040  case ${ac_top_builddir}. in
12041  .) ac_abs_top_builddir=$ac_abs_builddir;;
12042  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12043  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12044  esac;;
12045esac
12046case $ac_abs_builddir in
12047.) ac_abs_srcdir=$ac_srcdir;;
12048*)
12049  case $ac_srcdir in
12050  .) ac_abs_srcdir=$ac_abs_builddir;;
12051  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12052  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12053  esac;;
12054esac
12055case $ac_abs_builddir in
12056.) ac_abs_top_srcdir=$ac_top_srcdir;;
12057*)
12058  case $ac_top_srcdir in
12059  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12060  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12061  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12062  esac;;
12063esac
12064
12065
12066  case $INSTALL in
12067  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12068  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12069  esac
12070
12071  # Let's still pretend it is `configure' which instantiates (i.e., don't
12072  # use $as_me), people would be surprised to read:
12073  #    /* config.h.  Generated by config.status.  */
12074  if test x"$ac_file" = x-; then
12075    configure_input=
12076  else
12077    configure_input="$ac_file.  "
12078  fi
12079  configure_input=$configure_input"Generated from `echo $ac_file_in |
12080                                     sed 's,.*/,,'` by configure."
12081
12082  # First look for the input files in the build tree, otherwise in the
12083  # src tree.
12084  ac_file_inputs=`IFS=:
12085    for f in $ac_file_in; do
12086      case $f in
12087      -) echo $tmp/stdin ;;
12088      [\\/$]*)
12089         # Absolute (can't be DOS-style, as IFS=:)
12090         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12091echo "$as_me: error: cannot find input file: $f" >&2;}
12092   { (exit 1); exit 1; }; }
12093         echo "$f";;
12094      *) # Relative
12095         if test -f "$f"; then
12096           # Build tree
12097           echo "$f"
12098         elif test -f "$srcdir/$f"; then
12099           # Source tree
12100           echo "$srcdir/$f"
12101         else
12102           # /dev/null tree
12103           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12104echo "$as_me: error: cannot find input file: $f" >&2;}
12105   { (exit 1); exit 1; }; }
12106         fi;;
12107      esac
12108    done` || { (exit 1); exit 1; }
12109
12110  if test x"$ac_file" != x-; then
12111    { echo "$as_me:$LINENO: creating $ac_file" >&5
12112echo "$as_me: creating $ac_file" >&6;}
12113    rm -f "$ac_file"
12114  fi
12115_ACEOF
12116cat >>$CONFIG_STATUS <<_ACEOF
12117  sed "$ac_vpsub
12118$extrasub
12119_ACEOF
12120cat >>$CONFIG_STATUS <<\_ACEOF
12121:t
12122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12123s,@configure_input@,$configure_input,;t t
12124s,@srcdir@,$ac_srcdir,;t t
12125s,@abs_srcdir@,$ac_abs_srcdir,;t t
12126s,@top_srcdir@,$ac_top_srcdir,;t t
12127s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12128s,@builddir@,$ac_builddir,;t t
12129s,@abs_builddir@,$ac_abs_builddir,;t t
12130s,@top_builddir@,$ac_top_builddir,;t t
12131s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12132s,@INSTALL@,$ac_INSTALL,;t t
12133" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12134  rm -f $tmp/stdin
12135  if test x"$ac_file" != x-; then
12136    mv $tmp/out $ac_file
12137  else
12138    cat $tmp/out
12139    rm -f $tmp/out
12140  fi
12141
12142done
12143_ACEOF
12144cat >>$CONFIG_STATUS <<\_ACEOF
12145
12146#
12147# CONFIG_HEADER section.
12148#
12149
12150# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12151# NAME is the cpp macro being defined and VALUE is the value it is being given.
12152#
12153# ac_d sets the value in "#define NAME VALUE" lines.
12154ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12155ac_dB='[         ].*$,\1#\2'
12156ac_dC=' '
12157ac_dD=',;t'
12158# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12159ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12160ac_uB='$,\1#\2define\3'
12161ac_uC=' '
12162ac_uD=',;t'
12163
12164for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12165  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12166  case $ac_file in
12167  - | *:- | *:-:* ) # input from stdin
12168        cat >$tmp/stdin
12169        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12170        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12171  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12172        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12173  * )   ac_file_in=$ac_file.in ;;
12174  esac
12175
12176  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12177echo "$as_me: creating $ac_file" >&6;}
12178
12179  # First look for the input files in the build tree, otherwise in the
12180  # src tree.
12181  ac_file_inputs=`IFS=:
12182    for f in $ac_file_in; do
12183      case $f in
12184      -) echo $tmp/stdin ;;
12185      [\\/$]*)
12186         # Absolute (can't be DOS-style, as IFS=:)
12187         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12188echo "$as_me: error: cannot find input file: $f" >&2;}
12189   { (exit 1); exit 1; }; }
12190         # Do quote $f, to prevent DOS paths from being IFS'd.
12191         echo "$f";;
12192      *) # Relative
12193         if test -f "$f"; then
12194           # Build tree
12195           echo "$f"
12196         elif test -f "$srcdir/$f"; then
12197           # Source tree
12198           echo "$srcdir/$f"
12199         else
12200           # /dev/null tree
12201           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12202echo "$as_me: error: cannot find input file: $f" >&2;}
12203   { (exit 1); exit 1; }; }
12204         fi;;
12205      esac
12206    done` || { (exit 1); exit 1; }
12207  # Remove the trailing spaces.
12208  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12209
12210_ACEOF
12211
12212# Transform confdefs.h into two sed scripts, `conftest.defines' and
12213# `conftest.undefs', that substitutes the proper values into
12214# config.h.in to produce config.h.  The first handles `#define'
12215# templates, and the second `#undef' templates.
12216# And first: Protect against being on the right side of a sed subst in
12217# config.status.  Protect against being in an unquoted here document
12218# in config.status.
12219rm -f conftest.defines conftest.undefs
12220# Using a here document instead of a string reduces the quoting nightmare.
12221# Putting comments in sed scripts is not portable.
12222#
12223# `end' is used to avoid that the second main sed command (meant for
12224# 0-ary CPP macros) applies to n-ary macro definitions.
12225# See the Autoconf documentation for `clear'.
12226cat >confdef2sed.sed <<\_ACEOF
12227s/[\\&,]/\\&/g
12228s,[\\$`],\\&,g
12229t clear
12230: clear
12231s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12232t end
12233s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12234: end
12235_ACEOF
12236# If some macros were called several times there might be several times
12237# the same #defines, which is useless.  Nevertheless, we may not want to
12238# sort them, since we want the *last* AC-DEFINE to be honored.
12239uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12240sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12241rm -f confdef2sed.sed
12242
12243# This sed command replaces #undef with comments.  This is necessary, for
12244# example, in the case of _POSIX_SOURCE, which is predefined and required
12245# on some systems where configure will not decide to define it.
12246cat >>conftest.undefs <<\_ACEOF
12247s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12248_ACEOF
12249
12250# Break up conftest.defines because some shells have a limit on the size
12251# of here documents, and old seds have small limits too (100 cmds).
12252echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12253echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12254echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12255echo '  :' >>$CONFIG_STATUS
12256rm -f conftest.tail
12257while grep . conftest.defines >/dev/null
12258do
12259  # Write a limited-size here document to $tmp/defines.sed.
12260  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12261  # Speed up: don't consider the non `#define' lines.
12262  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12263  # Work around the forget-to-reset-the-flag bug.
12264  echo 't clr' >>$CONFIG_STATUS
12265  echo ': clr' >>$CONFIG_STATUS
12266  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12267  echo 'CEOF
12268  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12269  rm -f $tmp/in
12270  mv $tmp/out $tmp/in
12271' >>$CONFIG_STATUS
12272  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12273  rm -f conftest.defines
12274  mv conftest.tail conftest.defines
12275done
12276rm -f conftest.defines
12277echo '  fi # grep' >>$CONFIG_STATUS
12278echo >>$CONFIG_STATUS
12279
12280# Break up conftest.undefs because some shells have a limit on the size
12281# of here documents, and old seds have small limits too (100 cmds).
12282echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12283rm -f conftest.tail
12284while grep . conftest.undefs >/dev/null
12285do
12286  # Write a limited-size here document to $tmp/undefs.sed.
12287  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12288  # Speed up: don't consider the non `#undef'
12289  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12290  # Work around the forget-to-reset-the-flag bug.
12291  echo 't clr' >>$CONFIG_STATUS
12292  echo ': clr' >>$CONFIG_STATUS
12293  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12294  echo 'CEOF
12295  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12296  rm -f $tmp/in
12297  mv $tmp/out $tmp/in
12298' >>$CONFIG_STATUS
12299  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12300  rm -f conftest.undefs
12301  mv conftest.tail conftest.undefs
12302done
12303rm -f conftest.undefs
12304
12305cat >>$CONFIG_STATUS <<\_ACEOF
12306  # Let's still pretend it is `configure' which instantiates (i.e., don't
12307  # use $as_me), people would be surprised to read:
12308  #    /* config.h.  Generated by config.status.  */
12309  if test x"$ac_file" = x-; then
12310    echo "/* Generated by configure.  */" >$tmp/config.h
12311  else
12312    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12313  fi
12314  cat $tmp/in >>$tmp/config.h
12315  rm -f $tmp/in
12316  if test x"$ac_file" != x-; then
12317    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12318      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12319echo "$as_me: $ac_file is unchanged" >&6;}
12320    else
12321      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12323         X"$ac_file" : 'X\(//\)[^/]' \| \
12324         X"$ac_file" : 'X\(//\)$' \| \
12325         X"$ac_file" : 'X\(/\)' \| \
12326         .     : '\(.\)' 2>/dev/null ||
12327echo X"$ac_file" |
12328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12329          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12330          /^X\(\/\/\)$/{ s//\1/; q; }
12331          /^X\(\/\).*/{ s//\1/; q; }
12332          s/.*/./; q'`
12333      { if $as_mkdir_p; then
12334    mkdir -p "$ac_dir"
12335  else
12336    as_dir="$ac_dir"
12337    as_dirs=
12338    while test ! -d "$as_dir"; do
12339      as_dirs="$as_dir $as_dirs"
12340      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12342         X"$as_dir" : 'X\(//\)[^/]' \| \
12343         X"$as_dir" : 'X\(//\)$' \| \
12344         X"$as_dir" : 'X\(/\)' \| \
12345         .     : '\(.\)' 2>/dev/null ||
12346echo X"$as_dir" |
12347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12348          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12349          /^X\(\/\/\)$/{ s//\1/; q; }
12350          /^X\(\/\).*/{ s//\1/; q; }
12351          s/.*/./; q'`
12352    done
12353    test ! -n "$as_dirs" || mkdir $as_dirs
12354  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12355echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12356   { (exit 1); exit 1; }; }; }
12357
12358      rm -f $ac_file
12359      mv $tmp/config.h $ac_file
12360    fi
12361  else
12362    cat $tmp/config.h
12363    rm -f $tmp/config.h
12364  fi
12365# Compute $ac_file's index in $config_headers.
12366_am_stamp_count=1
12367for _am_header in $config_headers :; do
12368  case $_am_header in
12369    $ac_file | $ac_file:* )
12370      break ;;
12371    * )
12372      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12373  esac
12374done
12375echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12376$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12377         X$ac_file : 'X\(//\)[^/]' \| \
12378         X$ac_file : 'X\(//\)$' \| \
12379         X$ac_file : 'X\(/\)' \| \
12380         .     : '\(.\)' 2>/dev/null ||
12381echo X$ac_file |
12382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12383          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12384          /^X\(\/\/\)$/{ s//\1/; q; }
12385          /^X\(\/\).*/{ s//\1/; q; }
12386          s/.*/./; q'`/stamp-h$_am_stamp_count
12387done
12388_ACEOF
12389cat >>$CONFIG_STATUS <<\_ACEOF
12390
12391#
12392# CONFIG_COMMANDS section.
12393#
12394for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12395  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12396  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12397  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12398$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12399         X"$ac_dest" : 'X\(//\)[^/]' \| \
12400         X"$ac_dest" : 'X\(//\)$' \| \
12401         X"$ac_dest" : 'X\(/\)' \| \
12402         .     : '\(.\)' 2>/dev/null ||
12403echo X"$ac_dest" |
12404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12405          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12406          /^X\(\/\/\)$/{ s//\1/; q; }
12407          /^X\(\/\).*/{ s//\1/; q; }
12408          s/.*/./; q'`
12409  { if $as_mkdir_p; then
12410    mkdir -p "$ac_dir"
12411  else
12412    as_dir="$ac_dir"
12413    as_dirs=
12414    while test ! -d "$as_dir"; do
12415      as_dirs="$as_dir $as_dirs"
12416      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12417$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12418         X"$as_dir" : 'X\(//\)[^/]' \| \
12419         X"$as_dir" : 'X\(//\)$' \| \
12420         X"$as_dir" : 'X\(/\)' \| \
12421         .     : '\(.\)' 2>/dev/null ||
12422echo X"$as_dir" |
12423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12424          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12425          /^X\(\/\/\)$/{ s//\1/; q; }
12426          /^X\(\/\).*/{ s//\1/; q; }
12427          s/.*/./; q'`
12428    done
12429    test ! -n "$as_dirs" || mkdir $as_dirs
12430  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12431echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12432   { (exit 1); exit 1; }; }; }
12433
12434  ac_builddir=.
12435
12436if test "$ac_dir" != .; then
12437  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12438  # A "../" for each directory in $ac_dir_suffix.
12439  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12440else
12441  ac_dir_suffix= ac_top_builddir=
12442fi
12443
12444case $srcdir in
12445  .)  # No --srcdir option.  We are building in place.
12446    ac_srcdir=.
12447    if test -z "$ac_top_builddir"; then
12448       ac_top_srcdir=.
12449    else
12450       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12451    fi ;;
12452  [\\/]* | ?:[\\/]* )  # Absolute path.
12453    ac_srcdir=$srcdir$ac_dir_suffix;
12454    ac_top_srcdir=$srcdir ;;
12455  *) # Relative path.
12456    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12457    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12458esac
12459
12460# Do not use `cd foo && pwd` to compute absolute paths, because
12461# the directories may not exist.
12462case `pwd` in
12463.) ac_abs_builddir="$ac_dir";;
12464*)
12465  case "$ac_dir" in
12466  .) ac_abs_builddir=`pwd`;;
12467  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12468  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12469  esac;;
12470esac
12471case $ac_abs_builddir in
12472.) ac_abs_top_builddir=${ac_top_builddir}.;;
12473*)
12474  case ${ac_top_builddir}. in
12475  .) ac_abs_top_builddir=$ac_abs_builddir;;
12476  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12477  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12478  esac;;
12479esac
12480case $ac_abs_builddir in
12481.) ac_abs_srcdir=$ac_srcdir;;
12482*)
12483  case $ac_srcdir in
12484  .) ac_abs_srcdir=$ac_abs_builddir;;
12485  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12486  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12487  esac;;
12488esac
12489case $ac_abs_builddir in
12490.) ac_abs_top_srcdir=$ac_top_srcdir;;
12491*)
12492  case $ac_top_srcdir in
12493  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12494  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12495  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12496  esac;;
12497esac
12498
12499
12500  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12501echo "$as_me: executing $ac_dest commands" >&6;}
12502  case $ac_dest in
12503    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12504  # Strip MF so we end up with the name of the file.
12505  mf=`echo "$mf" | sed -e 's/:.*$//'`
12506  # Check whether this is an Automake generated Makefile or not.
12507  # We used to match only the files named `Makefile.in', but
12508  # some people rename them; so instead we look at the file content.
12509  # Grep'ing the first line is not enough: some people post-process
12510  # each Makefile.in and add a new line on top of each file to say so.
12511  # So let's grep whole file.
12512  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12513    dirpart=`(dirname "$mf") 2>/dev/null ||
12514$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12515         X"$mf" : 'X\(//\)[^/]' \| \
12516         X"$mf" : 'X\(//\)$' \| \
12517         X"$mf" : 'X\(/\)' \| \
12518         .     : '\(.\)' 2>/dev/null ||
12519echo X"$mf" |
12520    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12521          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12522          /^X\(\/\/\)$/{ s//\1/; q; }
12523          /^X\(\/\).*/{ s//\1/; q; }
12524          s/.*/./; q'`
12525  else
12526    continue
12527  fi
12528  # Extract the definition of DEPDIR, am__include, and am__quote
12529  # from the Makefile without running `make'.
12530  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12531  test -z "$DEPDIR" && continue
12532  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12533  test -z "am__include" && continue
12534  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12535  # When using ansi2knr, U may be empty or an underscore; expand it
12536  U=`sed -n 's/^U = //p' < "$mf"`
12537  # Find all dependency output files, they are included files with
12538  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12539  # simplest approach to changing $(DEPDIR) to its actual value in the
12540  # expansion.
12541  for file in `sed -n "
12542    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12543       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12544    # Make sure the directory exists.
12545    test -f "$dirpart/$file" && continue
12546    fdir=`(dirname "$file") 2>/dev/null ||
12547$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548         X"$file" : 'X\(//\)[^/]' \| \
12549         X"$file" : 'X\(//\)$' \| \
12550         X"$file" : 'X\(/\)' \| \
12551         .     : '\(.\)' 2>/dev/null ||
12552echo X"$file" |
12553    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12554          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12555          /^X\(\/\/\)$/{ s//\1/; q; }
12556          /^X\(\/\).*/{ s//\1/; q; }
12557          s/.*/./; q'`
12558    { if $as_mkdir_p; then
12559    mkdir -p $dirpart/$fdir
12560  else
12561    as_dir=$dirpart/$fdir
12562    as_dirs=
12563    while test ! -d "$as_dir"; do
12564      as_dirs="$as_dir $as_dirs"
12565      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12567         X"$as_dir" : 'X\(//\)[^/]' \| \
12568         X"$as_dir" : 'X\(//\)$' \| \
12569         X"$as_dir" : 'X\(/\)' \| \
12570         .     : '\(.\)' 2>/dev/null ||
12571echo X"$as_dir" |
12572    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12573          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12574          /^X\(\/\/\)$/{ s//\1/; q; }
12575          /^X\(\/\).*/{ s//\1/; q; }
12576          s/.*/./; q'`
12577    done
12578    test ! -n "$as_dirs" || mkdir $as_dirs
12579  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12580echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12581   { (exit 1); exit 1; }; }; }
12582
12583    # echo "creating $dirpart/$file"
12584    echo '# dummy' > "$dirpart/$file"
12585  done
12586done
12587 ;;
12588  esac
12589done
12590_ACEOF
12591
12592cat >>$CONFIG_STATUS <<\_ACEOF
12593
12594{ (exit 0); exit 0; }
12595_ACEOF
12596chmod +x $CONFIG_STATUS
12597ac_clean_files=$ac_clean_files_save
12598
12599
12600# configure is writing to config.log, and then calls config.status.
12601# config.status does its own redirection, appending to config.log.
12602# Unfortunately, on DOS this fails, as config.log is still kept open
12603# by configure, so config.status won't be able to write to it; its
12604# output is simply discarded.  So we exec the FD to /dev/null,
12605# effectively closing config.log, so it can be properly (re)opened and
12606# appended to by config.status.  When coming back to configure, we
12607# need to make the FD available again.
12608if test "$no_create" != yes; then
12609  ac_cs_success=:
12610  ac_config_status_args=
12611  test "$silent" = yes &&
12612    ac_config_status_args="$ac_config_status_args --quiet"
12613  exec 5>/dev/null
12614  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12615  exec 5>>config.log
12616  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12617  # would make configure fail if this is the last instruction.
12618  $ac_cs_success || { (exit 1); exit 1; }
12619fi
12620
Note: See TracBrowser for help on using the repository browser.