Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5721 was 5588, checked in by patrick, 19 years ago

network: added the network definitions

  • Property svn:executable set to *
File size: 387.2 KB
RevLine 
[1956]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[5502]3# Generated by GNU Autoconf 2.59 for orxonox 0.3.2_alpha.
[1956]4#
[3240]5# Report bugs to <orxonox-dev at mail.datacore.ch>.
[1956]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## --------------------- ##
[1853]13
[1956]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
[1853]25
[1956]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
[1853]32
33
[1956]34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
[1853]39
[1956]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
[1853]52
[1956]53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
[1853]59
[1956]60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
[1853]65
[1956]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
[1853]198else
[1956]199  as_expr=false
[1853]200fi
201
[1956]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'
[1853]217fi
[1956]218rm -f conf$$ conf$$.exe conf$$.file
[1853]219
[1956]220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
[1853]226
[1956]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'
[5502]272PACKAGE_VERSION='0.3.2_alpha'
273PACKAGE_STRING='orxonox 0.3.2_alpha'
[3240]274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
[1956]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
[5475]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'
[1956]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; }; }
[1853]658fi
659
[1956]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
[1853]670
[1956]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
[1853]699fi
700
[1956]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
[5502]791\`configure' configures orxonox 0.3.2_alpha to adapt to many kinds of systems.
[1956]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
[2980]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]
[1956]853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
[5502]858     short | recursive ) echo "Configuration of orxonox 0.3.2_alpha:";;
[1956]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]
[2706]865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
[3205]867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
[5479]869  --disable-modular-debug                            compiles in modular-debug
870that logs differently on the many modules of orxonox.mode
[4774]871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
[3788]873  --enable-profile        builds orxonox with profiling support
[3863]874  --enable-efence         builds orxonox with efence support
[3558]875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
[1956]877
[3173]878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
[5479]881  --with-shared-lib-path               Tells the executable
[4774]882  --with-sub-projects     also builds the subProjects while make from srcdir
[5467]883  --with-tardis           sets all the necesary environment flags for
884                          linux-TARDIS boxes at the ETH Zurich
[3173]885
[1956]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
[3240]900Report bugs to <orxonox-dev at mail.datacore.ch>.
[1956]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
[5588]989    cd $ac_popdir
[1956]990  done
991fi
992
993test -n "$ac_init_help" && exit 0
994if $ac_init_version; then
995  cat <<\_ACEOF
[5502]996orxonox configure 0.3.2_alpha
[1956]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
[5502]1010It was created by orxonox $as_me 0.3.2_alpha, which was
[1956]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
[2980]1346
[3424]1347## Detect the canonical host and target build environment.
[1956]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
[2980]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
[5475]1456am__api_version="1.9"
[1956]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
[1853]1506        fi
[1956]1507      done
1508    done
1509    ;;
1510esac
1511done
1512
1513
[1853]1514fi
[1956]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   :
[1853]1572else
[1956]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; }; }
[1853]1578fi
[1956]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
[1853]1593
[1956]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
[4826]1607if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
[5475]1608  # We used to keeping the `.' as first argument, in order to
1609  # allow $(mkdir_p) to be used without argument.  As in
[2706]1610  #   $(mkdir_p) $(somedir)
[5475]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 --'
[2706]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.
[4826]1628  for d in ./-p ./--version;
[2706]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
[1956]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
[2706]1718# test to see if srcdir already configured
[1956]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'
[5502]1738 VERSION='0.3.2_alpha'
[1956]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.
[5475]1858# Always define AMTAR for backward compatibility.
[1956]1859
[5475]1860AMTAR=${AMTAR-"${am_missing_run}tar"}
[1956]1861
[5475]1862am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
[1956]1863
1864
[2627]1865
[5475]1866
1867
1868
1869
[1959]1870          ac_config_headers="$ac_config_headers config.h"
1871
1872
[3424]1873#########################
1874## Checks for programs ##
1875#########################
[1956]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); } &&
[5588]2222         { ac_try='test -z "$ac_cxx_werror_flag"
2223                         || test ! -s conftest.err'
[1956]2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  ac_compiler_gnu=yes
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240ac_compiler_gnu=no
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2244
2245fi
2246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2248GXX=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CXXFLAGS=${CXXFLAGS+set}
2250ac_save_CXXFLAGS=$CXXFLAGS
2251CXXFLAGS="-g"
2252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cxx_g+set}" = set; then
2255  echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257  cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263
2264int
2265main ()
2266{
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274  (eval $ac_compile) 2>conftest.er1
2275  ac_status=$?
2276  grep -v '^ *+' conftest.er1 >conftest.err
2277  rm -f conftest.er1
2278  cat conftest.err >&5
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); } &&
[5588]2281         { ac_try='test -z "$ac_cxx_werror_flag"
2282                         || test ! -s conftest.err'
[1956]2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; } &&
2288         { ac_try='test -s conftest.$ac_objext'
2289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290  (eval $ac_try) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; }; then
2294  ac_cv_prog_cxx_g=yes
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299ac_cv_prog_cxx_g=no
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2304echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2305if test "$ac_test_CXXFLAGS" = set; then
2306  CXXFLAGS=$ac_save_CXXFLAGS
2307elif test $ac_cv_prog_cxx_g = yes; then
2308  if test "$GXX" = yes; then
2309    CXXFLAGS="-g -O2"
2310  else
2311    CXXFLAGS="-g"
2312  fi
2313else
2314  if test "$GXX" = yes; then
2315    CXXFLAGS="-O2"
2316  else
2317    CXXFLAGS=
2318  fi
2319fi
2320for ac_declaration in \
2321   '' \
2322   'extern "C" void std::exit (int) throw (); using std::exit;' \
2323   'extern "C" void std::exit (int); using std::exit;' \
2324   'extern "C" void exit (int) throw ();' \
2325   'extern "C" void exit (int);' \
2326   'void exit (int);'
2327do
2328  cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h.  */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h.  */
2334$ac_declaration
2335#include <stdlib.h>
2336int
2337main ()
2338{
2339exit (42);
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>conftest.er1
2347  ac_status=$?
2348  grep -v '^ *+' conftest.er1 >conftest.err
2349  rm -f conftest.er1
2350  cat conftest.err >&5
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); } &&
[5588]2353         { ac_try='test -z "$ac_cxx_werror_flag"
2354                         || test ! -s conftest.err'
[1956]2355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356  (eval $ac_try) 2>&5
2357  ac_status=$?
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); }; } &&
2360         { ac_try='test -s conftest.$ac_objext'
2361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362  (eval $ac_try) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; }; then
2366  :
2367else
2368  echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374  cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h.  */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h.  */
2380$ac_declaration
2381int
2382main ()
2383{
2384exit (42);
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
[5588]2398         { ac_try='test -z "$ac_cxx_werror_flag"
2399                         || test ! -s conftest.err'
[1956]2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  break
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418done
2419rm -f conftest*
2420if test -n "$ac_declaration"; then
2421  echo '#ifdef __cplusplus' >>confdefs.h
2422  echo $ac_declaration      >>confdefs.h
2423  echo '#endif'             >>confdefs.h
2424fi
2425
2426ac_ext=c
2427ac_cpp='$CPP $CPPFLAGS'
2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431DEPDIR="${am__leading_dot}deps"
2432
2433          ac_config_commands="$ac_config_commands depfiles"
2434
2435
2436am_make=${MAKE-make}
2437cat > confinc << 'END'
2438am__doit:
2439        @echo done
2440.PHONY: am__doit
2441END
2442# If we don't find an include directive, just comment out the code.
2443echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2444echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2445am__include="#"
2446am__quote=
2447_am_result=none
2448# First try GNU make style include.
2449echo "include confinc" > confmf
2450# We grep out `Entering directory' and `Leaving directory'
2451# messages which can occur if `w' ends up in MAKEFLAGS.
2452# In particular we don't look at `^make:' because GNU make might
2453# be invoked under some other name (usually "gmake"), in which
2454# case it prints its new name instead of `make'.
2455if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2456   am__include=include
2457   am__quote=
2458   _am_result=GNU
2459fi
2460# Now try BSD make style include.
2461if test "$am__include" = "#"; then
2462   echo '.include "confinc"' > confmf
2463   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2464      am__include=.include
2465      am__quote="\""
2466      _am_result=BSD
2467   fi
2468fi
2469
2470
2471echo "$as_me:$LINENO: result: $_am_result" >&5
2472echo "${ECHO_T}$_am_result" >&6
2473rm -f confinc confmf
2474
2475# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2476if test "${enable_dependency_tracking+set}" = set; then
2477  enableval="$enable_dependency_tracking"
2478
2479fi;
2480if test "x$enable_dependency_tracking" != xno; then
2481  am_depcomp="$ac_aux_dir/depcomp"
2482  AMDEPBACKSLASH='\'
2483fi
2484
2485
2486if test "x$enable_dependency_tracking" != xno; then
2487  AMDEP_TRUE=
2488  AMDEP_FALSE='#'
2489else
2490  AMDEP_TRUE='#'
2491  AMDEP_FALSE=
2492fi
2493
2494
2495
2496
2497depcc="$CXX"  am_compiler_list=
2498
2499echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2500echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2501if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2505  # We make a subdir and do the tests there.  Otherwise we can end up
2506  # making bogus files that we don't know about and never remove.  For
2507  # instance it was reported that on HP-UX the gcc test will end up
2508  # making a dummy file named `D' -- because `-MD' means `put the output
2509  # in D'.
2510  mkdir conftest.dir
2511  # Copy depcomp to subdir because otherwise we won't find it if we're
2512  # using a relative directory.
2513  cp "$am_depcomp" conftest.dir
2514  cd conftest.dir
2515  # We will build objects and dependencies in a subdirectory because
2516  # it helps to detect inapplicable dependency modes.  For instance
2517  # both Tru64's cc and ICC support -MD to output dependencies as a
2518  # side effect of compilation, but ICC will put the dependencies in
2519  # the current directory while Tru64 will put them in the object
2520  # directory.
2521  mkdir sub
2522
2523  am_cv_CXX_dependencies_compiler_type=none
2524  if test "$am_compiler_list" = ""; then
2525     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2526  fi
2527  for depmode in $am_compiler_list; do
2528    # Setup a source with many dependencies, because some compilers
2529    # like to wrap large dependency lists on column 80 (with \), and
2530    # we should not choose a depcomp mode which is confused by this.
2531    #
2532    # We need to recreate these files for each test, as the compiler may
2533    # overwrite some of them when testing with obscure command lines.
2534    # This happens at least with the AIX C compiler.
2535    : > sub/conftest.c
2536    for i in 1 2 3 4 5 6; do
2537      echo '#include "conftst'$i'.h"' >> sub/conftest.c
[4826]2538      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2539      # Solaris 8's {/usr,}/bin/sh.
2540      touch sub/conftst$i.h
[1956]2541    done
2542    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2543
2544    case $depmode in
2545    nosideeffect)
2546      # after this tag, mechanisms are not by side-effect, so they'll
2547      # only be used when explicitly requested
2548      if test "x$enable_dependency_tracking" = xyes; then
2549        continue
2550      else
2551        break
2552      fi
2553      ;;
2554    none) break ;;
2555    esac
2556    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2557    # mode.  It turns out that the SunPro C++ compiler does not properly
2558    # handle `-M -o', and we need to detect this.
2559    if depmode=$depmode \
2560       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2561       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2562       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2563         >/dev/null 2>conftest.err &&
2564       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2565       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2566       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2567      # icc doesn't choke on unknown options, it will just issue warnings
[4826]2568      # or remarks (even with -Werror).  So we grep stderr for any message
2569      # that says an option was ignored or not supported.
2570      # When given -MP, icc 7.0 and 7.1 complain thusly:
2571      #   icc: Command line warning: ignoring option '-M'; no argument required
2572      # The diagnosis changed in icc 8.0:
2573      #   icc: Command line remark: option '-MP' not supported
2574      if (grep 'ignoring option' conftest.err ||
2575          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
[1956]2576        am_cv_CXX_dependencies_compiler_type=$depmode
2577        break
2578      fi
2579    fi
2580  done
2581
2582  cd ..
2583  rm -rf conftest.dir
2584else
2585  am_cv_CXX_dependencies_compiler_type=none
2586fi
2587
2588fi
2589echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2590echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2591CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2592
2593
2594
2595if
2596  test "x$enable_dependency_tracking" != xno \
2597  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2598  am__fastdepCXX_TRUE=
2599  am__fastdepCXX_FALSE='#'
2600else
2601  am__fastdepCXX_TRUE='#'
2602  am__fastdepCXX_FALSE=
2603fi
2604
2605
[5463]2606if test -n "$ac_tool_prefix"; then
2607  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2608set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2609echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2611if test "${ac_cv_prog_RANLIB+set}" = set; then
2612  echo $ECHO_N "(cached) $ECHO_C" >&6
[4054]2613else
[5463]2614  if test -n "$RANLIB"; then
2615  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622  for ac_exec_ext in '' $ac_executable_extensions; do
2623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626    break 2
2627  fi
2628done
2629done
[4054]2630
[5463]2631fi
2632fi
2633RANLIB=$ac_cv_prog_RANLIB
2634if test -n "$RANLIB"; then
2635  echo "$as_me:$LINENO: result: $RANLIB" >&5
2636echo "${ECHO_T}$RANLIB" >&6
[4054]2637else
[5463]2638  echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6
2640fi
[4054]2641
[5463]2642fi
2643if test -z "$ac_cv_prog_RANLIB"; then
2644  ac_ct_RANLIB=$RANLIB
2645  # Extract the first word of "ranlib", so it can be a program name with args.
2646set dummy ranlib; ac_word=$2
2647echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2649if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2650  echo $ECHO_N "(cached) $ECHO_C" >&6
[4054]2651else
[5463]2652  if test -n "$ac_ct_RANLIB"; then
2653  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660  for ac_exec_ext in '' $ac_executable_extensions; do
2661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662    ac_cv_prog_ac_ct_RANLIB="ranlib"
2663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667done
[4054]2668
[5463]2669  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2670fi
2671fi
2672ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2673if test -n "$ac_ct_RANLIB"; then
2674  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2675echo "${ECHO_T}$ac_ct_RANLIB" >&6
2676else
2677  echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6
2679fi
2680
2681  RANLIB=$ac_ct_RANLIB
2682else
2683  RANLIB="$ac_cv_prog_RANLIB"
2684fi
2685
[1956]2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691if test -n "$ac_tool_prefix"; then
2692  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696if test "${ac_cv_prog_CC+set}" = set; then
2697  echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707  for ac_exec_ext in '' $ac_executable_extensions; do
2708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714done
2715
2716fi
2717fi
2718CC=$ac_cv_prog_CC
2719if test -n "$CC"; then
2720  echo "$as_me:$LINENO: result: $CC" >&5
2721echo "${ECHO_T}$CC" >&6
2722else
2723  echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725fi
2726
2727fi
2728if test -z "$ac_cv_prog_CC"; then
2729  ac_ct_CC=$CC
2730  # Extract the first word of "gcc", so it can be a program name with args.
2731set dummy gcc; ac_word=$2
2732echo "$as_me:$LINENO: checking for $ac_word" >&5
2733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735  echo $ECHO_N "(cached) $ECHO_C" >&6
2736else
2737  if test -n "$ac_ct_CC"; then
2738  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743  IFS=$as_save_IFS
2744  test -z "$as_dir" && as_dir=.
2745  for ac_exec_ext in '' $ac_executable_extensions; do
2746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747    ac_cv_prog_ac_ct_CC="gcc"
2748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752done
2753
2754fi
2755fi
2756ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757if test -n "$ac_ct_CC"; then
2758  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759echo "${ECHO_T}$ac_ct_CC" >&6
2760else
2761  echo "$as_me:$LINENO: result: no" >&5
2762echo "${ECHO_T}no" >&6
2763fi
2764
2765  CC=$ac_ct_CC
2766else
2767  CC="$ac_cv_prog_CC"
2768fi
2769
2770if test -z "$CC"; then
2771  if test -n "$ac_tool_prefix"; then
2772  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2773set dummy ${ac_tool_prefix}cc; ac_word=$2
2774echo "$as_me:$LINENO: checking for $ac_word" >&5
2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776if test "${ac_cv_prog_CC+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  if test -n "$CC"; then
2780  ac_cv_prog_CC="$CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787  for ac_exec_ext in '' $ac_executable_extensions; do
2788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789    ac_cv_prog_CC="${ac_tool_prefix}cc"
2790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794done
2795
2796fi
2797fi
2798CC=$ac_cv_prog_CC
2799if test -n "$CC"; then
2800  echo "$as_me:$LINENO: result: $CC" >&5
2801echo "${ECHO_T}$CC" >&6
2802else
2803  echo "$as_me:$LINENO: result: no" >&5
2804echo "${ECHO_T}no" >&6
2805fi
2806
2807fi
2808if test -z "$ac_cv_prog_CC"; then
2809  ac_ct_CC=$CC
2810  # Extract the first word of "cc", so it can be a program name with args.
2811set dummy cc; ac_word=$2
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815  echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817  if test -n "$ac_ct_CC"; then
2818  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825  for ac_exec_ext in '' $ac_executable_extensions; do
2826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_ac_ct_CC="cc"
2828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832done
2833
2834fi
2835fi
2836ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837if test -n "$ac_ct_CC"; then
2838  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2839echo "${ECHO_T}$ac_ct_CC" >&6
2840else
2841  echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843fi
2844
2845  CC=$ac_ct_CC
2846else
2847  CC="$ac_cv_prog_CC"
2848fi
2849
2850fi
2851if test -z "$CC"; then
2852  # Extract the first word of "cc", so it can be a program name with args.
2853set dummy cc; ac_word=$2
2854echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856if test "${ac_cv_prog_CC+set}" = set; then
2857  echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859  if test -n "$CC"; then
2860  ac_cv_prog_CC="$CC" # Let the user override the test.
2861else
2862  ac_prog_rejected=no
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868  for ac_exec_ext in '' $ac_executable_extensions; do
2869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871       ac_prog_rejected=yes
2872       continue
2873     fi
2874    ac_cv_prog_CC="cc"
2875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876    break 2
2877  fi
2878done
2879done
2880
2881if test $ac_prog_rejected = yes; then
2882  # We found a bogon in the path, so make sure we never use it.
2883  set dummy $ac_cv_prog_CC
2884  shift
2885  if test $# != 0; then
2886    # We chose a different compiler from the bogus one.
2887    # However, it has the same basename, so the bogon will be chosen
2888    # first if we set CC to just the basename; use the full file name.
2889    shift
2890    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891  fi
2892fi
2893fi
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897  echo "$as_me:$LINENO: result: $CC" >&5
2898echo "${ECHO_T}$CC" >&6
2899else
2900  echo "$as_me:$LINENO: result: no" >&5
2901echo "${ECHO_T}no" >&6
2902fi
2903
2904fi
2905if test -z "$CC"; then
2906  if test -n "$ac_tool_prefix"; then
2907  for ac_prog in cl
2908  do
2909    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911echo "$as_me:$LINENO: checking for $ac_word" >&5
2912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913if test "${ac_cv_prog_CC+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915else
2916  if test -n "$CC"; then
2917  ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924  for ac_exec_ext in '' $ac_executable_extensions; do
2925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931done
2932
2933fi
2934fi
2935CC=$ac_cv_prog_CC
2936if test -n "$CC"; then
2937  echo "$as_me:$LINENO: result: $CC" >&5
2938echo "${ECHO_T}$CC" >&6
2939else
2940  echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942fi
2943
2944    test -n "$CC" && break
2945  done
2946fi
2947if test -z "$CC"; then
2948  ac_ct_CC=$CC
2949  for ac_prog in cl
2950do
2951  # Extract the first word of "$ac_prog", so it can be a program name with args.
2952set dummy $ac_prog; ac_word=$2
2953echo "$as_me:$LINENO: checking for $ac_word" >&5
2954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2955if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956  echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958  if test -n "$ac_ct_CC"; then
2959  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  test -z "$as_dir" && as_dir=.
2966  for ac_exec_ext in '' $ac_executable_extensions; do
2967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968    ac_cv_prog_ac_ct_CC="$ac_prog"
2969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970    break 2
2971  fi
2972done
2973done
2974
2975fi
2976fi
2977ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978if test -n "$ac_ct_CC"; then
2979  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980echo "${ECHO_T}$ac_ct_CC" >&6
2981else
2982  echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984fi
2985
2986  test -n "$ac_ct_CC" && break
2987done
2988
2989  CC=$ac_ct_CC
2990fi
2991
2992fi
2993
2994
2995test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2996See \`config.log' for more details." >&5
2997echo "$as_me: error: no acceptable C compiler found in \$PATH
2998See \`config.log' for more details." >&2;}
2999   { (exit 1); exit 1; }; }
3000
3001# Provide some information about the compiler.
3002echo "$as_me:$LINENO:" \
3003     "checking for C compiler version" >&5
3004ac_compiler=`set X $ac_compile; echo $2`
3005{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3006  (eval $ac_compiler --version </dev/null >&5) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }
3010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3011  (eval $ac_compiler -v </dev/null >&5) 2>&5
3012  ac_status=$?
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }
3015{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3016  (eval $ac_compiler -V </dev/null >&5) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }
3020
3021echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3023if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036#ifndef __GNUC__
3037       choke me
3038#endif
3039
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext
3045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046  (eval $ac_compile) 2>conftest.er1
3047  ac_status=$?
3048  grep -v '^ *+' conftest.er1 >conftest.err
3049  rm -f conftest.er1
3050  cat conftest.err >&5
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); } &&
[5588]3053         { ac_try='test -z "$ac_c_werror_flag"
3054                         || test ! -s conftest.err'
[1956]3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; } &&
3060         { ac_try='test -s conftest.$ac_objext'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; }; then
3066  ac_compiler_gnu=yes
3067else
3068  echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071ac_compiler_gnu=no
3072fi
3073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075
3076fi
3077echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3079GCC=`test $ac_compiler_gnu = yes && echo yes`
3080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
3082CFLAGS="-g"
3083echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3084echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3085if test "${ac_cv_prog_cc_g+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext
3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105  (eval $ac_compile) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
[5588]3112         { ac_try='test -z "$ac_c_werror_flag"
3113                         || test ! -s conftest.err'
[1956]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); }; } &&
3119         { ac_try='test -s conftest.$ac_objext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  ac_cv_prog_cc_g=yes
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130ac_cv_prog_cc_g=no
3131fi
3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133fi
3134echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3135echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3136if test "$ac_test_CFLAGS" = set; then
3137  CFLAGS=$ac_save_CFLAGS
3138elif test $ac_cv_prog_cc_g = yes; then
3139  if test "$GCC" = yes; then
3140    CFLAGS="-g -O2"
3141  else
3142    CFLAGS="-g"
3143  fi
3144else
3145  if test "$GCC" = yes; then
3146    CFLAGS="-O2"
3147  else
3148    CFLAGS=
3149  fi
3150fi
3151echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3152echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3153if test "${ac_cv_prog_cc_stdc+set}" = set; then
3154  echo $ECHO_N "(cached) $ECHO_C" >&6
3155else
3156  ac_cv_prog_cc_stdc=no
3157ac_save_CC=$CC
3158cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164#include <stdarg.h>
3165#include <stdio.h>
3166#include <sys/types.h>
3167#include <sys/stat.h>
3168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3169struct buf { int x; };
3170FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171static char *e (p, i)
3172     char **p;
3173     int i;
3174{
3175  return p[i];
3176}
3177static char *f (char * (*g) (char **, int), char **p, ...)
3178{
3179  char *s;
3180  va_list v;
3181  va_start (v,p);
3182  s = g (p, va_arg (v,int));
3183  va_end (v);
3184  return s;
3185}
3186
3187/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3188   function prototypes and stuff, but not '\xHH' hex character constants.
3189   These don't provoke an error unfortunately, instead are silently treated
3190   as 'x'.  The following induces an error, until -std1 is added to get
3191   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3192   array size at least.  It's necessary to write '\x00'==0 to get something
3193   that's true only with -std1.  */
3194int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3195
3196int test (int i, double x);
3197struct s1 {int (*f) (int a);};
3198struct s2 {int (*f) (double a);};
3199int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200int argc;
3201char **argv;
3202int
3203main ()
3204{
3205return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210# Don't try gcc -ansi; that turns off useful extensions and
3211# breaks some systems' header files.
3212# AIX                   -qlanglvl=ansi
3213# Ultrix and OSF/1      -std1
3214# HP-UX 10.20 and later -Ae
3215# HP-UX older versions  -Aa -D_HPUX_SOURCE
3216# SVR4                  -Xc -D__EXTENSIONS__
3217for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218do
3219  CC="$ac_save_CC $ac_arg"
3220  rm -f conftest.$ac_objext
3221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222  (eval $ac_compile) 2>conftest.er1
3223  ac_status=$?
3224  grep -v '^ *+' conftest.er1 >conftest.err
3225  rm -f conftest.er1
3226  cat conftest.err >&5
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); } &&
[5588]3229         { ac_try='test -z "$ac_c_werror_flag"
3230                         || test ! -s conftest.err'
[1956]3231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232  (eval $ac_try) 2>&5
3233  ac_status=$?
3234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); }; } &&
3236         { ac_try='test -s conftest.$ac_objext'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; }; then
3242  ac_cv_prog_cc_stdc=$ac_arg
3243break
3244else
3245  echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248fi
3249rm -f conftest.err conftest.$ac_objext
3250done
3251rm -f conftest.$ac_ext conftest.$ac_objext
3252CC=$ac_save_CC
3253
3254fi
3255
3256case "x$ac_cv_prog_cc_stdc" in
3257  x|xno)
3258    echo "$as_me:$LINENO: result: none needed" >&5
3259echo "${ECHO_T}none needed" >&6 ;;
3260  *)
3261    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3262echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3263    CC="$CC $ac_cv_prog_cc_stdc" ;;
3264esac
3265
3266# Some people use a C++ compiler to compile C.  Since we use `exit',
3267# in C++ we need to declare it.  In case someone uses the same compiler
3268# for both compiling C and C++ we need to have the C++ compiler decide
3269# the declaration of exit, since it's the most demanding environment.
3270cat >conftest.$ac_ext <<_ACEOF
3271#ifndef __cplusplus
3272  choke me
3273#endif
3274_ACEOF
3275rm -f conftest.$ac_objext
3276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277  (eval $ac_compile) 2>conftest.er1
3278  ac_status=$?
3279  grep -v '^ *+' conftest.er1 >conftest.err
3280  rm -f conftest.er1
3281  cat conftest.err >&5
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); } &&
[5588]3284         { ac_try='test -z "$ac_c_werror_flag"
3285                         || test ! -s conftest.err'
[1956]3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; } &&
3291         { ac_try='test -s conftest.$ac_objext'
3292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293  (eval $ac_try) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }; }; then
3297  for ac_declaration in \
3298   '' \
3299   'extern "C" void std::exit (int) throw (); using std::exit;' \
3300   'extern "C" void std::exit (int); using std::exit;' \
3301   'extern "C" void exit (int) throw ();' \
3302   'extern "C" void exit (int);' \
3303   'void exit (int);'
3304do
3305  cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h.  */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h.  */
3311$ac_declaration
3312#include <stdlib.h>
3313int
3314main ()
3315{
3316exit (42);
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321rm -f conftest.$ac_objext
3322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323  (eval $ac_compile) 2>conftest.er1
3324  ac_status=$?
3325  grep -v '^ *+' conftest.er1 >conftest.err
3326  rm -f conftest.er1
3327  cat conftest.err >&5
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); } &&
[5588]3330         { ac_try='test -z "$ac_c_werror_flag"
3331                         || test ! -s conftest.err'
[1956]3332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333  (eval $ac_try) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }; } &&
3337         { ac_try='test -s conftest.$ac_objext'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; }; then
3343  :
3344else
3345  echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348continue
3349fi
3350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351  cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h.  */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h.  */
3357$ac_declaration
3358int
3359main ()
3360{
3361exit (42);
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368  (eval $ac_compile) 2>conftest.er1
3369  ac_status=$?
3370  grep -v '^ *+' conftest.er1 >conftest.err
3371  rm -f conftest.er1
3372  cat conftest.err >&5
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); } &&
[5588]3375         { ac_try='test -z "$ac_c_werror_flag"
3376                         || test ! -s conftest.err'
[1956]3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; } &&
3382         { ac_try='test -s conftest.$ac_objext'
3383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384  (eval $ac_try) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }; }; then
3388  break
3389else
3390  echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393fi
3394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395done
3396rm -f conftest*
3397if test -n "$ac_declaration"; then
3398  echo '#ifdef __cplusplus' >>confdefs.h
3399  echo $ac_declaration      >>confdefs.h
3400  echo '#endif'             >>confdefs.h
3401fi
3402
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409ac_ext=c
3410ac_cpp='$CPP $CPPFLAGS'
3411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414
3415depcc="$CC"   am_compiler_list=
3416
3417echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3418echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3419if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3423  # We make a subdir and do the tests there.  Otherwise we can end up
3424  # making bogus files that we don't know about and never remove.  For
3425  # instance it was reported that on HP-UX the gcc test will end up
3426  # making a dummy file named `D' -- because `-MD' means `put the output
3427  # in D'.
3428  mkdir conftest.dir
3429  # Copy depcomp to subdir because otherwise we won't find it if we're
3430  # using a relative directory.
3431  cp "$am_depcomp" conftest.dir
3432  cd conftest.dir
3433  # We will build objects and dependencies in a subdirectory because
3434  # it helps to detect inapplicable dependency modes.  For instance
3435  # both Tru64's cc and ICC support -MD to output dependencies as a
3436  # side effect of compilation, but ICC will put the dependencies in
3437  # the current directory while Tru64 will put them in the object
3438  # directory.
3439  mkdir sub
3440
3441  am_cv_CC_dependencies_compiler_type=none
3442  if test "$am_compiler_list" = ""; then
3443     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3444  fi
3445  for depmode in $am_compiler_list; do
3446    # Setup a source with many dependencies, because some compilers
3447    # like to wrap large dependency lists on column 80 (with \), and
3448    # we should not choose a depcomp mode which is confused by this.
3449    #
3450    # We need to recreate these files for each test, as the compiler may
3451    # overwrite some of them when testing with obscure command lines.
3452    # This happens at least with the AIX C compiler.
3453    : > sub/conftest.c
3454    for i in 1 2 3 4 5 6; do
3455      echo '#include "conftst'$i'.h"' >> sub/conftest.c
[4826]3456      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3457      # Solaris 8's {/usr,}/bin/sh.
3458      touch sub/conftst$i.h
[1956]3459    done
3460    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3461
3462    case $depmode in
3463    nosideeffect)
3464      # after this tag, mechanisms are not by side-effect, so they'll
3465      # only be used when explicitly requested
3466      if test "x$enable_dependency_tracking" = xyes; then
3467        continue
3468      else
3469        break
3470      fi
3471      ;;
3472    none) break ;;
3473    esac
3474    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3475    # mode.  It turns out that the SunPro C++ compiler does not properly
3476    # handle `-M -o', and we need to detect this.
3477    if depmode=$depmode \
3478       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3479       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3480       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3481         >/dev/null 2>conftest.err &&
3482       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3483       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3484       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3485      # icc doesn't choke on unknown options, it will just issue warnings
[4826]3486      # or remarks (even with -Werror).  So we grep stderr for any message
3487      # that says an option was ignored or not supported.
3488      # When given -MP, icc 7.0 and 7.1 complain thusly:
3489      #   icc: Command line warning: ignoring option '-M'; no argument required
3490      # The diagnosis changed in icc 8.0:
3491      #   icc: Command line remark: option '-MP' not supported
3492      if (grep 'ignoring option' conftest.err ||
3493          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
[1956]3494        am_cv_CC_dependencies_compiler_type=$depmode
3495        break
3496      fi
3497    fi
3498  done
3499
3500  cd ..
3501  rm -rf conftest.dir
3502else
3503  am_cv_CC_dependencies_compiler_type=none
3504fi
3505
3506fi
3507echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3508echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3509CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3510
3511
3512
3513if
3514  test "x$enable_dependency_tracking" != xno \
3515  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3516  am__fastdepCC_TRUE=
3517  am__fastdepCC_FALSE='#'
3518else
3519  am__fastdepCC_TRUE='#'
3520  am__fastdepCC_FALSE=
3521fi
3522
3523
3524
[1971]3525ac_ext=c
3526ac_cpp='$CPP $CPPFLAGS'
3527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3531echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3532# On Suns, sometimes $CPP names a directory.
3533if test -n "$CPP" && test -d "$CPP"; then
3534  CPP=
3535fi
3536if test -z "$CPP"; then
3537  if test "${ac_cv_prog_CPP+set}" = set; then
[1956]3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
[1971]3540      # Double quotes because CPP needs to be expanded
3541    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542    do
3543      ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563                     Syntax error
3564_ACEOF
3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } >/dev/null; then
3573  if test -s conftest.err; then
3574    ac_cpp_err=$ac_c_preproc_warn_flag
3575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576  else
3577    ac_cpp_err=
3578  fi
3579else
3580  ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583  :
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588  # Broken: fails on valid input.
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether non-existent headers
3594  # can be detected and how.
3595  cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } >/dev/null; then
3611  if test -s conftest.err; then
3612    ac_cpp_err=$ac_c_preproc_warn_flag
3613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614  else
3615    ac_cpp_err=
3616  fi
3617else
3618  ac_cpp_err=yes
3619fi
3620if test -z "$ac_cpp_err"; then
3621  # Broken: success on invalid input.
3622continue
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627  # Passes both tests.
3628ac_preproc_ok=:
3629break
3630fi
3631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637  break
3638fi
3639
3640    done
3641    ac_cv_prog_CPP=$CPP
3642
3643fi
3644  CPP=$ac_cv_prog_CPP
3645else
3646  ac_cv_prog_CPP=$CPP
3647fi
3648echo "$as_me:$LINENO: result: $CPP" >&5
3649echo "${ECHO_T}$CPP" >&6
3650ac_preproc_ok=false
3651for ac_c_preproc_warn_flag in '' yes
3652do
3653  # Use a header file that comes with gcc, so configuring glibc
3654  # with a fresh cross-compiler works.
3655  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656  # <limits.h> exists even on freestanding compilers.
3657  # On the NeXT, cc -E runs the code through the compiler's parser,
3658  # not just through cpp. "Syntax error" is here to catch this case.
3659  cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665#ifdef __STDC__
3666# include <limits.h>
3667#else
3668# include <assert.h>
3669#endif
3670                     Syntax error
3671_ACEOF
3672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3673  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } >/dev/null; then
3680  if test -s conftest.err; then
3681    ac_cpp_err=$ac_c_preproc_warn_flag
3682    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3683  else
3684    ac_cpp_err=
3685  fi
3686else
3687  ac_cpp_err=yes
3688fi
3689if test -z "$ac_cpp_err"; then
3690  :
3691else
3692  echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695  # Broken: fails on valid input.
3696continue
3697fi
3698rm -f conftest.err conftest.$ac_ext
3699
3700  # OK, works on sane cases.  Now check whether non-existent headers
3701  # can be detected and how.
3702  cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h.  */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h.  */
3708#include <ac_nonexistent.h>
3709_ACEOF
3710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712  ac_status=$?
3713  grep -v '^ *+' conftest.er1 >conftest.err
3714  rm -f conftest.er1
3715  cat conftest.err >&5
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); } >/dev/null; then
3718  if test -s conftest.err; then
3719    ac_cpp_err=$ac_c_preproc_warn_flag
3720    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721  else
3722    ac_cpp_err=
3723  fi
3724else
3725  ac_cpp_err=yes
3726fi
3727if test -z "$ac_cpp_err"; then
3728  # Broken: success on invalid input.
3729continue
3730else
3731  echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734  # Passes both tests.
3735ac_preproc_ok=:
3736break
3737fi
3738rm -f conftest.err conftest.$ac_ext
3739
3740done
3741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742rm -f conftest.err conftest.$ac_ext
3743if $ac_preproc_ok; then
3744  :
3745else
3746  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747See \`config.log' for more details." >&5
3748echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749See \`config.log' for more details." >&2;}
3750   { (exit 1); exit 1; }; }
3751fi
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
[5463]3760echo "$as_me:$LINENO: checking for egrep" >&5
3761echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3762if test "${ac_cv_prog_egrep+set}" = set; then
[1971]3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
[5463]3765  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3766    then ac_cv_prog_egrep='grep -E'
3767    else ac_cv_prog_egrep='egrep'
[1971]3768    fi
3769fi
[5463]3770echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3771echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3772 EGREP=$ac_cv_prog_egrep
[1971]3773
3774
3775echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3776echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3777if test "${ac_cv_header_stdc+set}" = set; then
3778  echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780  cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h.  */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h.  */
3786#include <stdlib.h>
3787#include <stdarg.h>
3788#include <string.h>
3789#include <float.h>
3790
3791int
3792main ()
3793{
3794
3795  ;
3796  return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext
3800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801  (eval $ac_compile) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } &&
[5588]3808         { ac_try='test -z "$ac_c_werror_flag"
3809                         || test ! -s conftest.err'
[1971]3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; } &&
3815         { ac_try='test -s conftest.$ac_objext'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; }; then
3821  ac_cv_header_stdc=yes
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826ac_cv_header_stdc=no
3827fi
3828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3829
3830if test $ac_cv_header_stdc = yes; then
3831  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3832  cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h.  */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h.  */
3838#include <string.h>
3839
3840_ACEOF
3841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3842  $EGREP "memchr" >/dev/null 2>&1; then
3843  :
3844else
3845  ac_cv_header_stdc=no
3846fi
3847rm -f conftest*
3848
3849fi
3850
3851if test $ac_cv_header_stdc = yes; then
3852  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3853  cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h.  */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h.  */
3859#include <stdlib.h>
3860
3861_ACEOF
3862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3863  $EGREP "free" >/dev/null 2>&1; then
3864  :
3865else
3866  ac_cv_header_stdc=no
3867fi
3868rm -f conftest*
3869
3870fi
3871
3872if test $ac_cv_header_stdc = yes; then
3873  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3874  if test "$cross_compiling" = yes; then
3875  :
3876else
3877  cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h.  */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h.  */
3883#include <ctype.h>
3884#if ((' ' & 0x0FF) == 0x020)
3885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3887#else
3888# define ISLOWER(c) \
3889                   (('a' <= (c) && (c) <= 'i') \
3890                     || ('j' <= (c) && (c) <= 'r') \
3891                     || ('s' <= (c) && (c) <= 'z'))
3892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3893#endif
3894
3895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3896int
3897main ()
3898{
3899  int i;
3900  for (i = 0; i < 256; i++)
3901    if (XOR (islower (i), ISLOWER (i))
3902        || toupper (i) != TOUPPER (i))
3903      exit(2);
3904  exit (0);
3905}
3906_ACEOF
3907rm -f conftest$ac_exeext
3908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909  (eval $ac_link) 2>&5
3910  ac_status=$?
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914  (eval $ac_try) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; }; then
3918  :
3919else
3920  echo "$as_me: program exited with status $ac_status" >&5
3921echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924( exit $ac_status )
3925ac_cv_header_stdc=no
3926fi
3927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3928fi
3929fi
3930fi
3931echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3932echo "${ECHO_T}$ac_cv_header_stdc" >&6
3933if test $ac_cv_header_stdc = yes; then
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define STDC_HEADERS 1
3937_ACEOF
3938
3939fi
3940
3941
[4774]3942## THIS IS OUR DEFAULT-DATA-DIRECTORY
3943
[3424]3944##################################
3945## CHECKING  OPTIONAL ARGUMENTS ##
3946##################################
[4774]3947#----------------#
3948# Data-Directory #
3949#----------------#
3950DATA_DIR=$datadir
3951echo \$\{prefix\}
3952if test $DATA_DIR = \$\{prefix\}/share ; then
3953        echo "not given"
3954        DATA_DIR=/usr/share
3955else
3956        echo "given: $DATA_DIR"
3957fi
[3424]3958
[4774]3959cat >>confdefs.h <<_ACEOF
3960#define DATADIR "$DATA_DIR"
3961_ACEOF
3962
3963
[3424]3964#-----------------#
[5221]3965# shared-lib-path #
3966#-----------------#
3967SHARED_LIB_PATH=no
3968echo "$as_me:$LINENO: checking shared lib path" >&5
3969echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3970
3971# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3972if test "${with_shared_lib_path+set}" = set; then
3973  withval="$with_shared_lib_path"
[5224]3974  SHARED_LIB_PATH=$withval
[5221]3975fi;
[5224]3976if test x$SHARED_LIB_PATH != xno; then
[5265]3977        echo "set to $SHARED_LIB_PATH"
[5224]3978else
[5221]3979        echo "no"
3980fi
3981
3982
3983#-----------------#
[3424]3984# DEBUG-statement #
3985#-----------------#
[3173]3986DEBUG=no
3987echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3988echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
[3181]3989# Check whether --enable-debug or --disable-debug was given.
3990if test "${enable_debug+set}" = set; then
3991  enableval="$enable_debug"
[3205]3992  DEBUG=$enableval
[3173]3993fi;
3994
[3424]3995if test x$DEBUG = xno; then
[4556]3996        echo "no"
3997        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3998        DEBUG=4
[3424]3999elif test x$DEBUG = xyes; then
[4556]4000        echo "yes"
4001        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
4002        DEBUG=4
[3205]4003else
[4556]4004        echo "yes: setting debuglevel to to $DEBUG"
[3205]4005fi
4006
[3173]4007cat >>confdefs.h <<_ACEOF
[3205]4008#define DEBUG $DEBUG
[3173]4009_ACEOF
4010
4011
4012
[3592]4013#---------------#
4014# Modular Debug #
4015#---------------#
4016MODULAR_DEBUG=yes
4017echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4018echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4019# Check whether --enable-modular-debug or --disable-modular-debug was given.
4020if test "${enable_modular_debug+set}" = set; then
4021  enableval="$enable_modular_debug"
4022  MODULAR_DEBUG=$enableval
4023fi;
4024
4025if test x$MODULAR_DEBUG = xno; then
[4556]4026        echo "no"
[3592]4027elif test x$MODULAR_DEBUG = xyes; then
[4556]4028        echo "yes"
[3592]4029
4030cat >>confdefs.h <<_ACEOF
4031#define MODULAR_DEBUG 1
4032_ACEOF
4033
4034fi
4035
[3424]4036#--------------#
4037# GTK-disabled #
4038#--------------#
[3100]4039echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4040echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
[4774]4041# Check whether --enable-gtk or --disable-gtk was given.
4042if test "${enable_gtk+set}" = set; then
4043  enableval="$enable_gtk"
[3100]4044  def_gtk=no
[3205]4045else
4046  def_gtk=yes
[3100]4047fi;
[3424]4048if test x$def_gtk = xyes; then
[3100]4049  echo "yes"
4050fi
[3424]4051if test x$def_gtk = xno; then
[3100]4052  echo "no"
4053fi
[3423]4054
[3424]4055#------------------#
4056# libCurl-disabled #
4057#------------------#
[3423]4058echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4059echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
[4774]4060# Check whether --enable-curl or --disable-curl was given.
4061if test "${enable_curl+set}" = set; then
4062  enableval="$enable_curl"
[3423]4063  def_curl=no
4064else
4065  def_curl=yes
4066fi;
[3424]4067if test x$def_curl = xyes; then
[3423]4068  echo "yes"
4069fi
[3424]4070if test x$def_curl = xno; then
[3423]4071  echo "no"
4072fi
4073
[3424]4074#-------------------#
4075# SubProject-enable #
4076#-------------------#
4077def_sub_projects=no
[3377]4078echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4079echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
[4774]4080
4081# Check whether --with-sub-projects or --without-sub-projects was given.
4082if test "${with_sub_projects+set}" = set; then
4083  withval="$with_sub_projects"
[3377]4084  def_sub_projects=yes
4085fi;
[3424]4086if test x$def_sub_projects = xyes; then
[3377]4087  echo "yes"
4088fi
[3424]4089if test x$def_sub_projects = xno; then
[3377]4090  echo "no"
4091fi
4092
4093
4094if test x$def_sub_projects = xyes; then
4095  SUB_PROJECTS_TRUE=
4096  SUB_PROJECTS_FALSE='#'
4097else
4098  SUB_PROJECTS_TRUE='#'
4099  SUB_PROJECTS_FALSE=
4100fi
4101
4102
[3788]4103#-------------------#
4104# Profiling Enabled #
4105#-------------------#
4106def_profiling=no
4107echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4108echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4109# Check whether --enable-profile or --disable-profile was given.
4110if test "${enable_profile+set}" = set; then
4111  enableval="$enable_profile"
4112  def_profiling=yes
4113fi;
4114if test x$def_profiling = xyes; then
4115  echo "yes"
4116  CXXFLAGS="$CXXFLAGS -pg"
4117fi
4118if test x$def_profiling = xno; then
4119  echo "no"
4120fi
4121
[3863]4122#----------------#
4123# efence Enabled #
4124#----------------#
4125def_efence=no
4126echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4127echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4128# Check whether --enable-efence or --disable-efence was given.
4129if test "${enable_efence+set}" = set; then
4130  enableval="$enable_efence"
4131  def_efence=yes
4132fi;
4133if test x$def_efence = xyes; then
4134  echo "yes"
4135fi
4136if test x$def_efence = xno; then
4137  echo "no"
4138fi
4139
[3558]4140#----------------------#
4141# Documentation-enable #
4142#----------------------#
4143def_documentation=no
4144echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4145echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4146# Check whether --enable-documentation or --disable-documentation was given.
4147if test "${enable_documentation+set}" = set; then
4148  enableval="$enable_documentation"
4149  def_documentation=yes
4150fi;
4151if test x$def_documentation = xyes; then
4152  echo "yes"
4153fi
4154if test x$def_documentation = xno; then
4155  echo "no"
4156fi
4157
4158
4159if test x$def_documentation = xyes; then
4160  DOCUMENTATION_TRUE=
4161  DOCUMENTATION_FALSE='#'
4162else
4163  DOCUMENTATION_TRUE='#'
4164  DOCUMENTATION_FALSE=
4165fi
4166
[4774]4167
[5467]4168
4169
4170#---------------------------#
4171# WITH TARDIS (convenience) #
4172#---------------------------#
4173def_tardis=no
[5479]4174GTKPATH=""
[5467]4175echo "$as_me:$LINENO: checking convenience flag for working at the taris in the ETH zurich" >&5
4176echo $ECHO_N "checking convenience flag for working at the taris in the ETH zurich... $ECHO_C" >&6
4177
[5468]4178# Check whether --with-tardis or --without-tardis was given.
4179if test "${with_tardis+set}" = set; then
4180  withval="$with_tardis"
[5467]4181  def_tardis=yes
4182fi;
4183if test x$def_tardis = xyes; then
[5471]4184  ARCH=i686-debian-linux3.1
4185   ## GAMELIBS
[5467]4186  PREFIX=/usr/pack/gamelibs-1.0-to
[5471]4187  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
4188  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
4189  ## GTK
4190  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
[5479]4191  GTKPATH=${GTKPREFIX}/${ARCH}/bin
[5471]4192  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
4193  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
[5467]4194  echo "yes"
4195fi
4196if test x$def_tardis = xno; then
4197  echo "no"
4198fi
4199
[3424]4200#######################
4201## PROGRAMM CHECKING ##
4202## 3. party Programs ##
4203#######################
4204
4205#----------------------#
4206# checking for Doxygen #
4207#----------------------#
[3219]4208# Extract the first word of "doxygen", so it can be a program name with args.
4209set dummy doxygen; ac_word=$2
4210echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212if test "${ac_cv_path_DOXYGEN+set}" = set; then
4213  echo $ECHO_N "(cached) $ECHO_C" >&6
4214else
4215  case $DOXYGEN in
4216  [\\/]* | ?:[\\/]*)
4217  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4218  ;;
4219  *)
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  ;;
4235esac
4236fi
4237DOXYGEN=$ac_cv_path_DOXYGEN
4238
4239if test -n "$DOXYGEN"; then
4240  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4241echo "${ECHO_T}$DOXYGEN" >&6
4242else
4243  echo "$as_me:$LINENO: result: no" >&5
4244echo "${ECHO_T}no" >&6
4245fi
4246
4247
4248
4249if test $DOXYGEN; then
4250  DOXYGEN_TRUE=
4251  DOXYGEN_FALSE='#'
4252else
4253  DOXYGEN_TRUE='#'
4254  DOXYGEN_FALSE=
4255fi
4256
4257
[3789]4258#--------------------#
4259# checking for gprof #
4260#--------------------#
4261# Extract the first word of "gprof", so it can be a program name with args.
4262set dummy gprof; ac_word=$2
4263echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265if test "${ac_cv_path_GPROF+set}" = set; then
4266  echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268  case $GPROF in
4269  [\\/]* | ?:[\\/]*)
4270  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4271  ;;
4272  *)
4273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278  for ac_exec_ext in '' $ac_executable_extensions; do
4279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282    break 2
4283  fi
4284done
4285done
4286
4287  ;;
4288esac
4289fi
4290GPROF=$ac_cv_path_GPROF
4291
4292if test -n "$GPROF"; then
4293  echo "$as_me:$LINENO: result: $GPROF" >&5
4294echo "${ECHO_T}$GPROF" >&6
4295else
4296  echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
4298fi
4299
4300
[4130]4301#-------------------------#
4302# checking for pkg-config #
4303#-------------------------#
4304if test x$def_gtk = xyes; then
[5479]4305 if test x${GTKPATH} != x; then
4306   # Extract the first word of "pkg-config", so it can be a program name with args.
[4130]4307set dummy pkg-config; ac_word=$2
4308echo "$as_me:$LINENO: checking for $ac_word" >&5
4309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4310if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4311  echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313  case $PKG_CONFIG in
4314  [\\/]* | ?:[\\/]*)
4315  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4316  ;;
4317  *)
4318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
[5479]4319for as_dir in $GTKPATH
4320do
4321  IFS=$as_save_IFS
4322  test -z "$as_dir" && as_dir=.
4323  for ac_exec_ext in '' $ac_executable_extensions; do
4324  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327    break 2
4328  fi
4329done
4330done
4331
4332  ;;
4333esac
4334fi
4335PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4336
4337if test -n "$PKG_CONFIG"; then
4338  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4339echo "${ECHO_T}$PKG_CONFIG" >&6
4340else
4341  echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
4343fi
4344
4345 else
4346   # Extract the first word of "pkg-config ", so it can be a program name with args.
4347set dummy pkg-config ; ac_word=$2
4348echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  case $PKG_CONFIG in
4354  [\\/]* | ?:[\\/]*)
4355  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4356  ;;
4357  *)
4358  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
[4130]4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363  for ac_exec_ext in '' $ac_executable_extensions; do
4364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367    break 2
4368  fi
4369done
4370done
4371
4372  ;;
4373esac
4374fi
4375PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4376
4377if test -n "$PKG_CONFIG"; then
4378  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4379echo "${ECHO_T}$PKG_CONFIG" >&6
4380else
4381  echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383fi
4384
[5479]4385 fi
[4130]4386fi
4387
4388
[3424]4389#########################
4390## CHECKING FOR SYSTEM ##
4391#########################
4392## here the system is checked, and openGL is included
4393## also checking for SDL on differen Systems
[1971]4394
[2925]4395echo "$as_me:$LINENO: checking for System" >&5
4396echo $ECHO_N "checking for System... $ECHO_C" >&6
[2980]4397## checking for openGL-environment and other sys-specific parameters
4398case "$target" in
[4825]4399
4400###########
[3424]4401#---------#
4402# WINDOWS #
4403#---------#
[4825]4404###########
[2980]4405  *-*-mingw32*)
[2925]4406echo "mingw-WINDOWS detected"
[1971]4407
[5224]4408CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
[3790]4409
[2925]4410    mingw="yes"
4411    MSBITFIELDS="-mms-bitfields"
4412    MWINDOWS="-mwindows"
[1971]4413
[5276]4414#--------#
4415# MIN-GW #
4416#--------#
[4697]4417# checking for mingw32
4418    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4419echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4420if test "${ac_cv_lib_mingw32_main+set}" = set; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423  ac_check_lib_save_LIBS=$LIBS
4424LIBS="-lmingw32  $LIBS"
4425cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h.  */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h.  */
[1971]4431
4432
[4697]4433int
4434main ()
4435{
4436main ();
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441rm -f conftest.$ac_objext conftest$ac_exeext
4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443  (eval $ac_link) 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } &&
[5588]4450         { ac_try='test -z "$ac_c_werror_flag"
4451                         || test ! -s conftest.err'
[4697]4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453  (eval $ac_try) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; } &&
4457         { ac_try='test -s conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  ac_cv_lib_mingw32_main=yes
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
[1971]4467
[4697]4468ac_cv_lib_mingw32_main=no
4469fi
4470rm -f conftest.err conftest.$ac_objext \
4471      conftest$ac_exeext conftest.$ac_ext
4472LIBS=$ac_check_lib_save_LIBS
4473fi
4474echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4475echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4476if test $ac_cv_lib_mingw32_main = yes; then
4477  FOUND_mingw32=yes
4478fi
[2925]4479
[4697]4480    if test x$FOUND_mingw32 = xyes; then
4481        LIBS="$LIBS -lmingw32"
4482    fi
[2925]4483
[5276]4484#---------------#
4485# open-GL (win) #
4486#---------------#
4487# checking gl header
[5463]4488   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
[2925]4489
[5463]4490
4491
4492
4493
4494
4495
4496
4497
4498for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4499                  inttypes.h stdint.h unistd.h
4500do
4501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4502echo "$as_me:$LINENO: checking for $ac_header" >&5
4503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4504if eval "test \"\${$as_ac_Header+set}\" = set"; then
4505  echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507  cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513$ac_includes_default
4514
4515#include <$ac_header>
4516_ACEOF
4517rm -f conftest.$ac_objext
4518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519  (eval $ac_compile) 2>conftest.er1
4520  ac_status=$?
4521  grep -v '^ *+' conftest.er1 >conftest.err
4522  rm -f conftest.er1
4523  cat conftest.err >&5
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); } &&
[5588]4526         { ac_try='test -z "$ac_c_werror_flag"
4527                         || test ! -s conftest.err'
[5463]4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; } &&
4533         { ac_try='test -s conftest.$ac_objext'
4534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535  (eval $ac_try) 2>&5
4536  ac_status=$?
4537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538  (exit $ac_status); }; }; then
4539  eval "$as_ac_Header=yes"
4540else
4541  echo "$as_me: failed program was:" >&5
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
4544eval "$as_ac_Header=no"
4545fi
4546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547fi
4548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4550if test `eval echo '${'$as_ac_Header'}'` = yes; then
4551  cat >>confdefs.h <<_ACEOF
4552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4553_ACEOF
4554
4555fi
4556
4557done
4558
4559
4560
[5276]4561for ac_header in GL/gl.h
[2879]4562do
4563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564if eval "test \"\${$as_ac_Header+set}\" = set"; then
4565  echo "$as_me:$LINENO: checking for $ac_header" >&5
4566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4567if eval "test \"\${$as_ac_Header+set}\" = set"; then
4568  echo $ECHO_N "(cached) $ECHO_C" >&6
4569fi
4570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4572else
4573  # Is the header compilable?
4574echo "$as_me:$LINENO: checking $ac_header usability" >&5
4575echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4576cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h.  */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h.  */
4582$ac_includes_default
4583#include <$ac_header>
4584_ACEOF
4585rm -f conftest.$ac_objext
4586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587  (eval $ac_compile) 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } &&
[5588]4594         { ac_try='test -z "$ac_c_werror_flag"
4595                         || test ! -s conftest.err'
[2879]4596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597  (eval $ac_try) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; } &&
4601         { ac_try='test -s conftest.$ac_objext'
4602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603  (eval $ac_try) 2>&5
4604  ac_status=$?
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); }; }; then
4607  ac_header_compiler=yes
4608else
4609  echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612ac_header_compiler=no
4613fi
4614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4616echo "${ECHO_T}$ac_header_compiler" >&6
4617
4618# Is the header present?
4619echo "$as_me:$LINENO: checking $ac_header presence" >&5
4620echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4621cat >conftest.$ac_ext <<_ACEOF
4622/* confdefs.h.  */
4623_ACEOF
4624cat confdefs.h >>conftest.$ac_ext
4625cat >>conftest.$ac_ext <<_ACEOF
4626/* end confdefs.h.  */
4627#include <$ac_header>
4628_ACEOF
4629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4631  ac_status=$?
4632  grep -v '^ *+' conftest.er1 >conftest.err
4633  rm -f conftest.er1
4634  cat conftest.err >&5
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); } >/dev/null; then
4637  if test -s conftest.err; then
4638    ac_cpp_err=$ac_c_preproc_warn_flag
4639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4640  else
4641    ac_cpp_err=
4642  fi
4643else
4644  ac_cpp_err=yes
4645fi
4646if test -z "$ac_cpp_err"; then
4647  ac_header_preproc=yes
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652  ac_header_preproc=no
4653fi
4654rm -f conftest.err conftest.$ac_ext
4655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4656echo "${ECHO_T}$ac_header_preproc" >&6
4657
4658# So?  What about this header?
4659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4660  yes:no: )
4661    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4663    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4665    ac_header_preproc=yes
4666    ;;
4667  no:yes:* )
4668    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4670    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4671echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4672    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4674    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4675echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4676    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4678    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4680    (
4681      cat <<\_ASBOX
[3240]4682## ---------------------------------------------- ##
4683## Report this to orxonox-dev at mail.datacore.ch ##
4684## ---------------------------------------------- ##
[2879]4685_ASBOX
4686    ) |
4687      sed "s/^/$as_me: WARNING:     /" >&2
4688    ;;
4689esac
4690echo "$as_me:$LINENO: checking for $ac_header" >&5
4691echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695  eval "$as_ac_Header=\$ac_header_preproc"
4696fi
4697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4699
4700fi
4701if test `eval echo '${'$as_ac_Header'}'` = yes; then
4702  cat >>confdefs.h <<_ACEOF
4703#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704_ACEOF
4705
4706else
[5276]4707  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4708echo "$as_me: error: cannot find opengl headers" >&2;}
[2879]4709   { (exit 1); exit 1; }; }
4710fi
4711
4712done
4713
[5276]4714#   checking for Windows openGl library
4715    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4716echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4717if test "${ac_cv_lib_opengl32_main+set}" = set; then
[1959]4718  echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720  ac_check_lib_save_LIBS=$LIBS
[5276]4721LIBS="-lopengl32  $LIBS"
[1959]4722cat >conftest.$ac_ext <<_ACEOF
4723/* confdefs.h.  */
[1956]4724_ACEOF
[1959]4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h.  */
[1956]4728
[1971]4729
[1959]4730int
4731main ()
4732{
[1971]4733main ();
[1959]4734  ;
4735  return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext conftest$ac_exeext
4739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740  (eval $ac_link) 2>conftest.er1
4741  ac_status=$?
4742  grep -v '^ *+' conftest.er1 >conftest.err
4743  rm -f conftest.er1
4744  cat conftest.err >&5
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); } &&
[5588]4747         { ac_try='test -z "$ac_c_werror_flag"
4748                         || test ! -s conftest.err'
[1959]4749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750  (eval $ac_try) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); }; } &&
4754         { ac_try='test -s conftest$ac_exeext'
4755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756  (eval $ac_try) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; }; then
[5276]4760  ac_cv_lib_opengl32_main=yes
[1959]4761else
4762  echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
[1956]4764
[5276]4765ac_cv_lib_opengl32_main=no
[1956]4766fi
[1959]4767rm -f conftest.err conftest.$ac_objext \
4768      conftest$ac_exeext conftest.$ac_ext
4769LIBS=$ac_check_lib_save_LIBS
4770fi
[5276]4771echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4772echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4773if test $ac_cv_lib_opengl32_main = yes; then
4774  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
[4697]4775fi
4776
[5276]4777    if test x$FOUND_GL != xyes ; then
4778         echo "------------------"
4779         echo "opengl not found."
4780         echo "please install the opengl package which can be found at http://www.opengl.org"
4781         echo "------------------"
4782         exit -1
[4697]4783    fi
4784
[5276]4785# cheking for GLU-header
[4697]4786
[5276]4787for ac_header in GL/glu.h
[1971]4788do
4789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791  echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795fi
4796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798else
4799  # Is the header compilable?
4800echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4802cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808$ac_includes_default
4809#include <$ac_header>
4810_ACEOF
4811rm -f conftest.$ac_objext
4812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813  (eval $ac_compile) 2>conftest.er1
4814  ac_status=$?
4815  grep -v '^ *+' conftest.er1 >conftest.err
4816  rm -f conftest.er1
4817  cat conftest.err >&5
4818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819  (exit $ac_status); } &&
[5588]4820         { ac_try='test -z "$ac_c_werror_flag"
4821                         || test ! -s conftest.err'
[1971]4822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823  (eval $ac_try) 2>&5
4824  ac_status=$?
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); }; } &&
4827         { ac_try='test -s conftest.$ac_objext'
4828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829  (eval $ac_try) 2>&5
4830  ac_status=$?
4831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832  (exit $ac_status); }; }; then
4833  ac_header_compiler=yes
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838ac_header_compiler=no
4839fi
4840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4842echo "${ECHO_T}$ac_header_compiler" >&6
4843
4844# Is the header present?
4845echo "$as_me:$LINENO: checking $ac_header presence" >&5
4846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4847cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h.  */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h.  */
4853#include <$ac_header>
4854_ACEOF
4855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4856  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4857  ac_status=$?
4858  grep -v '^ *+' conftest.er1 >conftest.err
4859  rm -f conftest.er1
4860  cat conftest.err >&5
4861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862  (exit $ac_status); } >/dev/null; then
4863  if test -s conftest.err; then
4864    ac_cpp_err=$ac_c_preproc_warn_flag
4865    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4866  else
4867    ac_cpp_err=
4868  fi
4869else
4870  ac_cpp_err=yes
4871fi
4872if test -z "$ac_cpp_err"; then
4873  ac_header_preproc=yes
4874else
4875  echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878  ac_header_preproc=no
4879fi
4880rm -f conftest.err conftest.$ac_ext
4881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4882echo "${ECHO_T}$ac_header_preproc" >&6
4883
4884# So?  What about this header?
4885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4886  yes:no: )
4887    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4889    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4891    ac_header_preproc=yes
4892    ;;
4893  no:yes:* )
4894    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4896    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4897echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4898    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4900    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4901echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4906    (
4907      cat <<\_ASBOX
[3240]4908## ---------------------------------------------- ##
4909## Report this to orxonox-dev at mail.datacore.ch ##
4910## ---------------------------------------------- ##
[1971]4911_ASBOX
4912    ) |
4913      sed "s/^/$as_me: WARNING:     /" >&2
4914    ;;
4915esac
4916echo "$as_me:$LINENO: checking for $ac_header" >&5
4917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4918if eval "test \"\${$as_ac_Header+set}\" = set"; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921  eval "$as_ac_Header=\$ac_header_preproc"
4922fi
4923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4925
4926fi
4927if test `eval echo '${'$as_ac_Header'}'` = yes; then
4928  cat >>confdefs.h <<_ACEOF
4929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930_ACEOF
4931
4932else
4933  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4934echo "$as_me: error: cannot find opengl headers" >&2;}
4935   { (exit 1); exit 1; }; }
4936fi
4937
4938done
4939
[5276]4940
4941# checking for libGLU
4942    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4943echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4944if test "${ac_cv_lib_glu32_main+set}" = set; then
[1956]4945  echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947  ac_check_lib_save_LIBS=$LIBS
[5276]4948LIBS="-lglu32  $LIBS"
[1956]4949cat >conftest.$ac_ext <<_ACEOF
4950/* confdefs.h.  */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h.  */
4955
[2701]4956
[1956]4957int
4958main ()
4959{
[2701]4960main ();
[1956]4961  ;
4962  return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext conftest$ac_exeext
4966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967  (eval $ac_link) 2>conftest.er1
4968  ac_status=$?
4969  grep -v '^ *+' conftest.er1 >conftest.err
4970  rm -f conftest.er1
4971  cat conftest.err >&5
4972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973  (exit $ac_status); } &&
[5588]4974         { ac_try='test -z "$ac_c_werror_flag"
4975                         || test ! -s conftest.err'
[1956]4976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977  (eval $ac_try) 2>&5
4978  ac_status=$?
4979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); }; } &&
4981         { ac_try='test -s conftest$ac_exeext'
4982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983  (eval $ac_try) 2>&5
4984  ac_status=$?
4985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986  (exit $ac_status); }; }; then
[5276]4987  ac_cv_lib_glu32_main=yes
[1956]4988else
4989  echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
[5276]4992ac_cv_lib_glu32_main=no
[1956]4993fi
4994rm -f conftest.err conftest.$ac_objext \
4995      conftest$ac_exeext conftest.$ac_ext
4996LIBS=$ac_check_lib_save_LIBS
4997fi
[5276]4998echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4999echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5000if test $ac_cv_lib_glu32_main = yes; then
5001  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
[1959]5002fi
5003
[5276]5004    if test x$FOUND_GLU != xyes ; then
[4556]5005         echo "------------------"
[5276]5006         echo "GLU library not found."
5007         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
[4556]5008         echo "------------------"
5009         exit -1
[2701]5010    fi
5011
[5276]5012# checking glew header
[4697]5013
[5276]5014for ac_header in GL/glew.h
[4697]5015do
5016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017if eval "test \"\${$as_ac_Header+set}\" = set"; then
5018  echo "$as_me:$LINENO: checking for $ac_header" >&5
5019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5020if eval "test \"\${$as_ac_Header+set}\" = set"; then
[1959]5021  echo $ECHO_N "(cached) $ECHO_C" >&6
[4697]5022fi
5023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[1959]5025else
[4697]5026  # Is the header compilable?
5027echo "$as_me:$LINENO: checking $ac_header usability" >&5
5028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5029cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h.  */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h.  */
5035$ac_includes_default
5036#include <$ac_header>
5037_ACEOF
5038rm -f conftest.$ac_objext
5039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040  (eval $ac_compile) 2>conftest.er1
5041  ac_status=$?
5042  grep -v '^ *+' conftest.er1 >conftest.err
5043  rm -f conftest.er1
5044  cat conftest.err >&5
5045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046  (exit $ac_status); } &&
[5588]5047         { ac_try='test -z "$ac_c_werror_flag"
5048                         || test ! -s conftest.err'
[4697]5049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050  (eval $ac_try) 2>&5
5051  ac_status=$?
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); }; } &&
5054         { ac_try='test -s conftest.$ac_objext'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; }; then
5060  ac_header_compiler=yes
5061else
5062  echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065ac_header_compiler=no
5066fi
5067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069echo "${ECHO_T}$ac_header_compiler" >&6
5070
5071# Is the header present?
5072echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5074cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h.  */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h.  */
5080#include <$ac_header>
5081_ACEOF
5082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5083  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5084  ac_status=$?
5085  grep -v '^ *+' conftest.er1 >conftest.err
5086  rm -f conftest.er1
5087  cat conftest.err >&5
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } >/dev/null; then
5090  if test -s conftest.err; then
5091    ac_cpp_err=$ac_c_preproc_warn_flag
5092    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5093  else
5094    ac_cpp_err=
5095  fi
5096else
5097  ac_cpp_err=yes
5098fi
5099if test -z "$ac_cpp_err"; then
5100  ac_header_preproc=yes
5101else
5102  echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105  ac_header_preproc=no
5106fi
5107rm -f conftest.err conftest.$ac_ext
5108echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5109echo "${ECHO_T}$ac_header_preproc" >&6
5110
5111# So?  What about this header?
5112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5113  yes:no: )
5114    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5116    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5117echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5118    ac_header_preproc=yes
5119    ;;
5120  no:yes:* )
5121    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5124echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5125    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5126echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5127    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5128echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5129    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5131    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5132echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5133    (
5134      cat <<\_ASBOX
5135## ---------------------------------------------- ##
5136## Report this to orxonox-dev at mail.datacore.ch ##
5137## ---------------------------------------------- ##
5138_ASBOX
5139    ) |
5140      sed "s/^/$as_me: WARNING:     /" >&2
5141    ;;
5142esac
5143echo "$as_me:$LINENO: checking for $ac_header" >&5
5144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5145if eval "test \"\${$as_ac_Header+set}\" = set"; then
5146  echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148  eval "$as_ac_Header=\$ac_header_preproc"
5149fi
5150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5152
5153fi
5154if test `eval echo '${'$as_ac_Header'}'` = yes; then
5155  cat >>confdefs.h <<_ACEOF
5156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5157_ACEOF
5158
5159else
[5276]5160  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5161echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
[4697]5162   { (exit 1); exit 1; }; }
5163fi
5164
5165done
5166
[5276]5167#   checking for Windows glew library
5168    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5169echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5170if test "${ac_cv_lib_glew32_main+set}" = set; then
[4697]5171  echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
[1959]5173  ac_check_lib_save_LIBS=$LIBS
[5276]5174LIBS="-lglew32  $LIBS"
[1959]5175cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h.  */
[1956]5177_ACEOF
[1959]5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h.  */
[1956]5181
[1971]5182
[1959]5183int
5184main ()
5185{
[1971]5186main ();
[1959]5187  ;
5188  return 0;
5189}
5190_ACEOF
5191rm -f conftest.$ac_objext conftest$ac_exeext
5192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193  (eval $ac_link) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } &&
[5588]5200         { ac_try='test -z "$ac_c_werror_flag"
5201                         || test ! -s conftest.err'
[1959]5202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203  (eval $ac_try) 2>&5
5204  ac_status=$?
5205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206  (exit $ac_status); }; } &&
5207         { ac_try='test -s conftest$ac_exeext'
5208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209  (eval $ac_try) 2>&5
5210  ac_status=$?
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); }; }; then
[5276]5213  ac_cv_lib_glew32_main=yes
[1959]5214else
5215  echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
[1956]5217
[5276]5218ac_cv_lib_glew32_main=no
[1956]5219fi
[1959]5220rm -f conftest.err conftest.$ac_objext \
5221      conftest$ac_exeext conftest.$ac_ext
5222LIBS=$ac_check_lib_save_LIBS
5223fi
[5276]5224echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5225echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5226if test $ac_cv_lib_glew32_main = yes; then
5227  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
[1959]5228fi
[1956]5229
[5276]5230    if test x$FOUND_GLEW != xyes ; then
[4697]5231         echo "------------------"
[5276]5232         echo "opengl extension wrangler not found."
5233         echo "please install the glew package which can be found at http://glew.sourceforge.net"
[4697]5234         echo "------------------"
5235         exit -1
[2701]5236    fi
[1959]5237
[5276]5238#--------#
5239# openAL #
5240#--------#
5241# checking for openAL-headers
[5271]5242
[5276]5243for ac_header in AL/al.h
[5271]5244do
5245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5246if eval "test \"\${$as_ac_Header+set}\" = set"; then
5247  echo "$as_me:$LINENO: checking for $ac_header" >&5
5248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5249if eval "test \"\${$as_ac_Header+set}\" = set"; then
5250  echo $ECHO_N "(cached) $ECHO_C" >&6
5251fi
5252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5254else
5255  # Is the header compilable?
5256echo "$as_me:$LINENO: checking $ac_header usability" >&5
5257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5258cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h.  */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h.  */
5264$ac_includes_default
5265#include <$ac_header>
5266_ACEOF
5267rm -f conftest.$ac_objext
5268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269  (eval $ac_compile) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } &&
[5588]5276         { ac_try='test -z "$ac_c_werror_flag"
5277                         || test ! -s conftest.err'
[5271]5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279  (eval $ac_try) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; } &&
5283         { ac_try='test -s conftest.$ac_objext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289  ac_header_compiler=yes
5290else
5291  echo "$as_me: failed program was:" >&5
5292sed 's/^/| /' conftest.$ac_ext >&5
5293
5294ac_header_compiler=no
5295fi
5296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5298echo "${ECHO_T}$ac_header_compiler" >&6
5299
5300# Is the header present?
5301echo "$as_me:$LINENO: checking $ac_header presence" >&5
5302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5303cat >conftest.$ac_ext <<_ACEOF
5304/* confdefs.h.  */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h.  */
5309#include <$ac_header>
5310_ACEOF
5311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5312  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5313  ac_status=$?
5314  grep -v '^ *+' conftest.er1 >conftest.err
5315  rm -f conftest.er1
5316  cat conftest.err >&5
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); } >/dev/null; then
5319  if test -s conftest.err; then
5320    ac_cpp_err=$ac_c_preproc_warn_flag
5321    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5322  else
5323    ac_cpp_err=
5324  fi
5325else
5326  ac_cpp_err=yes
5327fi
5328if test -z "$ac_cpp_err"; then
5329  ac_header_preproc=yes
5330else
5331  echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334  ac_header_preproc=no
5335fi
5336rm -f conftest.err conftest.$ac_ext
5337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5338echo "${ECHO_T}$ac_header_preproc" >&6
5339
5340# So?  What about this header?
5341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5342  yes:no: )
5343    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5345    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5347    ac_header_preproc=yes
5348    ;;
5349  no:yes:* )
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5352    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5353echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5354    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5356    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5357echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5358    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5360    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5362    (
5363      cat <<\_ASBOX
5364## ---------------------------------------------- ##
5365## Report this to orxonox-dev at mail.datacore.ch ##
5366## ---------------------------------------------- ##
5367_ASBOX
5368    ) |
5369      sed "s/^/$as_me: WARNING:     /" >&2
5370    ;;
5371esac
5372echo "$as_me:$LINENO: checking for $ac_header" >&5
5373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5374if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  eval "$as_ac_Header=\$ac_header_preproc"
5378fi
5379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381
5382fi
5383if test `eval echo '${'$as_ac_Header'}'` = yes; then
5384  cat >>confdefs.h <<_ACEOF
5385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5386_ACEOF
5387
5388else
[5276]5389  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5390echo "$as_me: error: cannot find openAL header." >&2;}
[5271]5391   { (exit 1); exit 1; }; }
5392fi
5393
5394done
5395
[5276]5396# checking for openAL-lib
5397  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5398echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5399if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
[5271]5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  ac_check_lib_save_LIBS=$LIBS
[5276]5403LIBS="-lOpenAL32  $LIBS"
[5271]5404cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h.  */
5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h.  */
5410
5411
5412int
5413main ()
5414{
5415main ();
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext conftest$ac_exeext
5421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422  (eval $ac_link) 2>conftest.er1
5423  ac_status=$?
5424  grep -v '^ *+' conftest.er1 >conftest.err
5425  rm -f conftest.er1
5426  cat conftest.err >&5
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); } &&
[5588]5429         { ac_try='test -z "$ac_c_werror_flag"
5430                         || test ! -s conftest.err'
[5271]5431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432  (eval $ac_try) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; } &&
5436         { ac_try='test -s conftest$ac_exeext'
5437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438  (eval $ac_try) 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }; }; then
[5276]5442  ac_cv_lib_OpenAL32_main=yes
[5271]5443else
5444  echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
[5276]5447ac_cv_lib_OpenAL32_main=no
[5271]5448fi
5449rm -f conftest.err conftest.$ac_objext \
5450      conftest$ac_exeext conftest.$ac_ext
5451LIBS=$ac_check_lib_save_LIBS
5452fi
[5276]5453echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5454echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5455if test $ac_cv_lib_OpenAL32_main = yes; then
5456  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
[5271]5457fi
5458
[5276]5459  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5460echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5461if test "${ac_cv_lib_ALut_main+set}" = set; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  ac_check_lib_save_LIBS=$LIBS
5465LIBS="-lALut  $LIBS"
5466cat >conftest.$ac_ext <<_ACEOF
5467/* confdefs.h.  */
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h.  */
[5271]5472
[4697]5473
[5276]5474int
5475main ()
5476{
5477main ();
5478  ;
5479  return 0;
5480}
5481_ACEOF
5482rm -f conftest.$ac_objext conftest$ac_exeext
5483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484  (eval $ac_link) 2>conftest.er1
5485  ac_status=$?
5486  grep -v '^ *+' conftest.er1 >conftest.err
5487  rm -f conftest.er1
5488  cat conftest.err >&5
5489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490  (exit $ac_status); } &&
[5588]5491         { ac_try='test -z "$ac_c_werror_flag"
5492                         || test ! -s conftest.err'
[5276]5493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494  (eval $ac_try) 2>&5
5495  ac_status=$?
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); }; } &&
5498         { ac_try='test -s conftest$ac_exeext'
5499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500  (eval $ac_try) 2>&5
5501  ac_status=$?
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); }; }; then
5504  ac_cv_lib_ALut_main=yes
5505else
5506  echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509ac_cv_lib_ALut_main=no
5510fi
5511rm -f conftest.err conftest.$ac_objext \
5512      conftest$ac_exeext conftest.$ac_ext
5513LIBS=$ac_check_lib_save_LIBS
5514fi
5515echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5516echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5517if test $ac_cv_lib_ALut_main = yes; then
[5437]5518  FOUND_ALUT=yes; LIBS="-lALut $LIBS"
[5276]5519fi
5520
5521     if test x$FOUND_OPENAL != xyes ; then
5522        echo "------------------"
5523        echo "openal library not found."
5524        echo "please install the openal library, which can be found at http://www.openal.org"
5525        echo "------------------"
5526        exit -1
5527     fi
5528
5529
5530#-----------#
5531# SDL(win) #
5532#-----------#
5533# checking for SDL-headers
5534
5535for ac_header in SDL/SDL.h
[2989]5536do
5537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539  echo "$as_me:$LINENO: checking for $ac_header" >&5
5540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543fi
5544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546else
5547  # Is the header compilable?
5548echo "$as_me:$LINENO: checking $ac_header usability" >&5
5549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5550cat >conftest.$ac_ext <<_ACEOF
5551/* confdefs.h.  */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h.  */
5556$ac_includes_default
5557#include <$ac_header>
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561  (eval $ac_compile) 2>conftest.er1
5562  ac_status=$?
5563  grep -v '^ *+' conftest.er1 >conftest.err
5564  rm -f conftest.er1
5565  cat conftest.err >&5
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } &&
[5588]5568         { ac_try='test -z "$ac_c_werror_flag"
5569                         || test ! -s conftest.err'
[2989]5570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571  (eval $ac_try) 2>&5
5572  ac_status=$?
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); }; } &&
5575         { ac_try='test -s conftest.$ac_objext'
5576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577  (eval $ac_try) 2>&5
5578  ac_status=$?
5579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580  (exit $ac_status); }; }; then
5581  ac_header_compiler=yes
5582else
5583  echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586ac_header_compiler=no
5587fi
5588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5590echo "${ECHO_T}$ac_header_compiler" >&6
5591
5592# Is the header present?
5593echo "$as_me:$LINENO: checking $ac_header presence" >&5
5594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5595cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h.  */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h.  */
5601#include <$ac_header>
5602_ACEOF
5603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5605  ac_status=$?
5606  grep -v '^ *+' conftest.er1 >conftest.err
5607  rm -f conftest.er1
5608  cat conftest.err >&5
5609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610  (exit $ac_status); } >/dev/null; then
5611  if test -s conftest.err; then
5612    ac_cpp_err=$ac_c_preproc_warn_flag
5613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5614  else
5615    ac_cpp_err=
5616  fi
5617else
5618  ac_cpp_err=yes
5619fi
5620if test -z "$ac_cpp_err"; then
5621  ac_header_preproc=yes
5622else
5623  echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
5626  ac_header_preproc=no
5627fi
5628rm -f conftest.err conftest.$ac_ext
5629echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5630echo "${ECHO_T}$ac_header_preproc" >&6
5631
5632# So?  What about this header?
5633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5634  yes:no: )
5635    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5636echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5638echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5639    ac_header_preproc=yes
[2701]5640    ;;
[2989]5641  no:yes:* )
5642    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5643echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5644    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5645echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5646    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5647echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5648    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5649echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5650    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5651echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5652    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5653echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5654    (
5655      cat <<\_ASBOX
[3240]5656## ---------------------------------------------- ##
5657## Report this to orxonox-dev at mail.datacore.ch ##
5658## ---------------------------------------------- ##
[2989]5659_ASBOX
5660    ) |
5661      sed "s/^/$as_me: WARNING:     /" >&2
5662    ;;
5663esac
5664echo "$as_me:$LINENO: checking for $ac_header" >&5
5665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669  eval "$as_ac_Header=\$ac_header_preproc"
5670fi
5671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[2701]5673
[2989]5674fi
5675if test `eval echo '${'$as_ac_Header'}'` = yes; then
5676  cat >>confdefs.h <<_ACEOF
5677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678_ACEOF
5679
5680else
[5276]5681  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5682echo "$as_me: error: cannot find SDL headers" >&2;}
[2989]5683   { (exit 1); exit 1; }; }
5684fi
5685
5686done
5687
[5276]5688
5689#checking for libSDL
5690    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5691echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5692if test "${ac_cv_lib_sdlmain_main+set}" = set; then
[2989]5693  echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695  ac_check_lib_save_LIBS=$LIBS
[5276]5696LIBS="-lsdlmain  $LIBS"
[2989]5697cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h.  */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h.  */
5703
5704
5705int
5706main ()
5707{
5708main ();
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext conftest$ac_exeext
5714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5715  (eval $ac_link) 2>conftest.er1
5716  ac_status=$?
5717  grep -v '^ *+' conftest.er1 >conftest.err
5718  rm -f conftest.er1
5719  cat conftest.err >&5
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } &&
[5588]5722         { ac_try='test -z "$ac_c_werror_flag"
5723                         || test ! -s conftest.err'
[2989]5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; } &&
5729         { ac_try='test -s conftest$ac_exeext'
5730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731  (eval $ac_try) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; }; then
[5276]5735  ac_cv_lib_sdlmain_main=yes
[2989]5736else
5737  echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
[5276]5740ac_cv_lib_sdlmain_main=no
[2989]5741fi
5742rm -f conftest.err conftest.$ac_objext \
5743      conftest$ac_exeext conftest.$ac_ext
5744LIBS=$ac_check_lib_save_LIBS
5745fi
[5276]5746echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5747echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5748if test $ac_cv_lib_sdlmain_main = yes; then
5749  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
[2989]5750fi
5751
[5276]5752    if test x$FOUND_sdlmain != xyes ; then
5753        echo "------------------"
5754        echo "SDL library not found."
5755        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5756        echo "------------------"
5757        exit 1
5758    fi
5759    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5760echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5761if test "${ac_cv_lib_sdl_main+set}" = set; then
[2989]5762  echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764  ac_check_lib_save_LIBS=$LIBS
[5276]5765LIBS="-lsdl  $LIBS"
[2989]5766cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772
5773
5774int
5775main ()
5776{
5777main ();
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784  (eval $ac_link) 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); } &&
[5588]5791         { ac_try='test -z "$ac_c_werror_flag"
5792                         || test ! -s conftest.err'
[2989]5793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794  (eval $ac_try) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }; } &&
5798         { ac_try='test -s conftest$ac_exeext'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; }; then
[5276]5804  ac_cv_lib_sdl_main=yes
[2989]5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
[5276]5809ac_cv_lib_sdl_main=no
[2989]5810fi
5811rm -f conftest.err conftest.$ac_objext \
5812      conftest$ac_exeext conftest.$ac_ext
5813LIBS=$ac_check_lib_save_LIBS
5814fi
[5276]5815echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5816echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5817if test $ac_cv_lib_sdl_main = yes; then
5818  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
[2989]5819fi
5820
[5276]5821    if test x$FOUND_SDL != xyes ; then
[2989]5822        echo "------------------"
[5276]5823        echo "SDL library not found."
5824        echo "please install the SDL library, which can be found at http://www.libsdl.org"
[2989]5825        echo "------------------"
5826        exit -1
[5276]5827    fi
[4825]5828
[5276]5829  ;;
5830
[4825]5831#########
[3424]5832#-------#
5833# LINUX #
5834#-------#
[4825]5835#########
[2980]5836 *-*-linux*)
[2701]5837echo "Linux detected"
[1956]5838
[2701]5839 Linux="yes"
5840
[5224]5841##CPPFLAGS="-I/usr/include $CPPFLAGS"
5842##LDFLAGS="-L/usr/lib $LDFLAGS"
[5221]5843if test x$SHARED_LIB_PATH != xno; then
[5265]5844        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5845        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
[5221]5846fi
5847
[5277]5848#--------#
5849# openGL #
5850#--------#
[2968]5851# checking gl header
[2701]5852
[2879]5853for ac_header in GL/gl.h
5854do
5855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5856if eval "test \"\${$as_ac_Header+set}\" = set"; then
5857  echo "$as_me:$LINENO: checking for $ac_header" >&5
5858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5859if eval "test \"\${$as_ac_Header+set}\" = set"; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861fi
5862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5864else
5865  # Is the header compilable?
5866echo "$as_me:$LINENO: checking $ac_header usability" >&5
5867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5868cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h.  */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h.  */
5874$ac_includes_default
5875#include <$ac_header>
5876_ACEOF
5877rm -f conftest.$ac_objext
5878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879  (eval $ac_compile) 2>conftest.er1
5880  ac_status=$?
5881  grep -v '^ *+' conftest.er1 >conftest.err
5882  rm -f conftest.er1
5883  cat conftest.err >&5
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); } &&
[5588]5886         { ac_try='test -z "$ac_c_werror_flag"
5887                         || test ! -s conftest.err'
[2879]5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889  (eval $ac_try) 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; } &&
5893         { ac_try='test -s conftest.$ac_objext'
5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895  (eval $ac_try) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }; }; then
5899  ac_header_compiler=yes
5900else
5901  echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904ac_header_compiler=no
5905fi
5906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5908echo "${ECHO_T}$ac_header_compiler" >&6
5909
5910# Is the header present?
5911echo "$as_me:$LINENO: checking $ac_header presence" >&5
5912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5913cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h.  */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h.  */
5919#include <$ac_header>
5920_ACEOF
5921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5922  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5923  ac_status=$?
5924  grep -v '^ *+' conftest.er1 >conftest.err
5925  rm -f conftest.er1
5926  cat conftest.err >&5
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); } >/dev/null; then
5929  if test -s conftest.err; then
5930    ac_cpp_err=$ac_c_preproc_warn_flag
5931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5932  else
5933    ac_cpp_err=
5934  fi
5935else
5936  ac_cpp_err=yes
5937fi
5938if test -z "$ac_cpp_err"; then
5939  ac_header_preproc=yes
5940else
5941  echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944  ac_header_preproc=no
5945fi
5946rm -f conftest.err conftest.$ac_ext
5947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5948echo "${ECHO_T}$ac_header_preproc" >&6
5949
5950# So?  What about this header?
5951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5952  yes:no: )
5953    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5955    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5957    ac_header_preproc=yes
5958    ;;
5959  no:yes:* )
5960    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5962    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5963echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5964    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5966    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5967echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5968    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5970    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5972    (
5973      cat <<\_ASBOX
[3240]5974## ---------------------------------------------- ##
5975## Report this to orxonox-dev at mail.datacore.ch ##
5976## ---------------------------------------------- ##
[2879]5977_ASBOX
5978    ) |
5979      sed "s/^/$as_me: WARNING:     /" >&2
5980    ;;
5981esac
5982echo "$as_me:$LINENO: checking for $ac_header" >&5
5983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985  echo $ECHO_N "(cached) $ECHO_C" >&6
5986else
5987  eval "$as_ac_Header=\$ac_header_preproc"
5988fi
5989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5991
5992fi
5993if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994  cat >>confdefs.h <<_ACEOF
5995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996_ACEOF
5997
5998else
5999  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6000echo "$as_me: error: cannot find opengl headers" >&2;}
6001   { (exit 1); exit 1; }; }
6002fi
6003
6004done
6005
6006
[2701]6007#  checking for Unix GL
[5221]6008   echo "$as_me:$LINENO: checking for main in -lGL" >&5
6009echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
6010if test "${ac_cv_lib_GL_main+set}" = set; then
[1956]6011  echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013  ac_check_lib_save_LIBS=$LIBS
[2701]6014LIBS="-lGL  $LIBS"
[1956]6015cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h.  */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h.  */
6021
[5221]6022
[1956]6023int
6024main ()
6025{
[5221]6026main ();
[1956]6027  ;
6028  return 0;
6029}
6030_ACEOF
6031rm -f conftest.$ac_objext conftest$ac_exeext
6032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6033  (eval $ac_link) 2>conftest.er1
6034  ac_status=$?
6035  grep -v '^ *+' conftest.er1 >conftest.err
6036  rm -f conftest.er1
6037  cat conftest.err >&5
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); } &&
[5588]6040         { ac_try='test -z "$ac_c_werror_flag"
6041                         || test ! -s conftest.err'
[1956]6042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043  (eval $ac_try) 2>&5
6044  ac_status=$?
6045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046  (exit $ac_status); }; } &&
6047         { ac_try='test -s conftest$ac_exeext'
6048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049  (eval $ac_try) 2>&5
6050  ac_status=$?
6051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052  (exit $ac_status); }; }; then
[5221]6053  ac_cv_lib_GL_main=yes
[1956]6054else
6055  echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
[5221]6058ac_cv_lib_GL_main=no
[1956]6059fi
6060rm -f conftest.err conftest.$ac_objext \
6061      conftest$ac_exeext conftest.$ac_ext
6062LIBS=$ac_check_lib_save_LIBS
6063fi
[5221]6064echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
6065echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
6066if test $ac_cv_lib_GL_main = yes; then
[5280]6067  FOUND_GL=yes; LIBS="$LIBS -lGL"
[2701]6068fi
6069
[5276]6070   if test x$FOUND_GL != xyes ; then
[4556]6071         echo "------------------"
6072         echo "opengl not found."
6073         echo "please install the opengl package which can be found at http://www.opengl.org"
6074         echo "------------------"
6075         exit -1
[2701]6076   fi
6077
6078# cheking for GLU-header
6079
6080for ac_header in GL/glu.h
6081do
6082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6083if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084  echo "$as_me:$LINENO: checking for $ac_header" >&5
6085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6086if eval "test \"\${$as_ac_Header+set}\" = set"; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088fi
6089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6091else
6092  # Is the header compilable?
6093echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6095cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
[1956]6097_ACEOF
[2701]6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101$ac_includes_default
6102#include <$ac_header>
6103_ACEOF
6104rm -f conftest.$ac_objext
6105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106  (eval $ac_compile) 2>conftest.er1
6107  ac_status=$?
6108  grep -v '^ *+' conftest.er1 >conftest.err
6109  rm -f conftest.er1
6110  cat conftest.err >&5
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); } &&
[5588]6113         { ac_try='test -z "$ac_c_werror_flag"
6114                         || test ! -s conftest.err'
[2701]6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; } &&
6120         { ac_try='test -s conftest.$ac_objext'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; }; then
6126  ac_header_compiler=yes
6127else
6128  echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
[1956]6130
[2701]6131ac_header_compiler=no
6132fi
6133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6135echo "${ECHO_T}$ac_header_compiler" >&6
[1956]6136
[2701]6137# Is the header present?
6138echo "$as_me:$LINENO: checking $ac_header presence" >&5
6139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6140cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h.  */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h.  */
6146#include <$ac_header>
6147_ACEOF
6148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150  ac_status=$?
6151  grep -v '^ *+' conftest.er1 >conftest.err
6152  rm -f conftest.er1
6153  cat conftest.err >&5
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); } >/dev/null; then
6156  if test -s conftest.err; then
6157    ac_cpp_err=$ac_c_preproc_warn_flag
6158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159  else
6160    ac_cpp_err=
6161  fi
6162else
6163  ac_cpp_err=yes
[1956]6164fi
[2701]6165if test -z "$ac_cpp_err"; then
6166  ac_header_preproc=yes
6167else
6168  echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
[1956]6170
[2701]6171  ac_header_preproc=no
6172fi
6173rm -f conftest.err conftest.$ac_ext
6174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6175echo "${ECHO_T}$ac_header_preproc" >&6
[1956]6176
[2701]6177# So?  What about this header?
6178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6179  yes:no: )
6180    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6184    ac_header_preproc=yes
6185    ;;
6186  no:yes:* )
6187    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6189    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6190echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6191    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6193    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6194echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6197    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6199    (
6200      cat <<\_ASBOX
[3240]6201## ---------------------------------------------- ##
6202## Report this to orxonox-dev at mail.datacore.ch ##
6203## ---------------------------------------------- ##
[2701]6204_ASBOX
6205    ) |
6206      sed "s/^/$as_me: WARNING:     /" >&2
6207    ;;
6208esac
6209echo "$as_me:$LINENO: checking for $ac_header" >&5
6210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6211if eval "test \"\${$as_ac_Header+set}\" = set"; then
[2190]6212  echo $ECHO_N "(cached) $ECHO_C" >&6
6213else
[2701]6214  eval "$as_ac_Header=\$ac_header_preproc"
6215fi
6216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6218
6219fi
6220if test `eval echo '${'$as_ac_Header'}'` = yes; then
6221  cat >>confdefs.h <<_ACEOF
6222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223_ACEOF
6224
6225else
6226  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6227echo "$as_me: error: cannot find opengl headers" >&2;}
6228   { (exit 1); exit 1; }; }
6229fi
6230
6231done
6232
[5277]6233    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6234echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6235if test "${ac_cv_lib_GLU_main+set}" = set; then
6236  echo $ECHO_N "(cached) $ECHO_C" >&6
6237else
6238  ac_check_lib_save_LIBS=$LIBS
6239LIBS="-lGLU  $LIBS"
6240cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h.  */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h.  */
[5224]6246
[5277]6247
6248int
6249main ()
6250{
6251main ();
6252  ;
6253  return 0;
6254}
6255_ACEOF
6256rm -f conftest.$ac_objext conftest$ac_exeext
6257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258  (eval $ac_link) 2>conftest.er1
6259  ac_status=$?
6260  grep -v '^ *+' conftest.er1 >conftest.err
6261  rm -f conftest.er1
6262  cat conftest.err >&5
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); } &&
[5588]6265         { ac_try='test -z "$ac_c_werror_flag"
6266                         || test ! -s conftest.err'
[5277]6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; } &&
6272         { ac_try='test -s conftest$ac_exeext'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; }; then
6278  ac_cv_lib_GLU_main=yes
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283ac_cv_lib_GLU_main=no
6284fi
6285rm -f conftest.err conftest.$ac_objext \
6286      conftest$ac_exeext conftest.$ac_ext
6287LIBS=$ac_check_lib_save_LIBS
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6290echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6291if test $ac_cv_lib_GLU_main = yes; then
6292  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6293fi
6294
6295    if test x$FOUND_GLU != xyes ; then
6296         echo "------------------"
6297         echo "GLU library not found."
6298         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6299         echo "------------------"
6300         exit -1
6301    fi
6302
[5265]6303# checking for GLEW-headers
6304
6305for ac_header in GL/glew.h
6306do
6307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6308if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309  echo "$as_me:$LINENO: checking for $ac_header" >&5
6310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6311if eval "test \"\${$as_ac_Header+set}\" = set"; then
6312  echo $ECHO_N "(cached) $ECHO_C" >&6
6313fi
6314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316else
6317  # Is the header compilable?
6318echo "$as_me:$LINENO: checking $ac_header usability" >&5
6319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6320cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h.  */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h.  */
6326$ac_includes_default
6327#include <$ac_header>
6328_ACEOF
6329rm -f conftest.$ac_objext
6330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331  (eval $ac_compile) 2>conftest.er1
6332  ac_status=$?
6333  grep -v '^ *+' conftest.er1 >conftest.err
6334  rm -f conftest.er1
6335  cat conftest.err >&5
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); } &&
[5588]6338         { ac_try='test -z "$ac_c_werror_flag"
6339                         || test ! -s conftest.err'
[5265]6340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341  (eval $ac_try) 2>&5
6342  ac_status=$?
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); }; } &&
6345         { ac_try='test -s conftest.$ac_objext'
6346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347  (eval $ac_try) 2>&5
6348  ac_status=$?
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); }; }; then
6351  ac_header_compiler=yes
6352else
6353  echo "$as_me: failed program was:" >&5
6354sed 's/^/| /' conftest.$ac_ext >&5
6355
6356ac_header_compiler=no
6357fi
6358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6360echo "${ECHO_T}$ac_header_compiler" >&6
6361
6362# Is the header present?
6363echo "$as_me:$LINENO: checking $ac_header presence" >&5
6364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6365cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h.  */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h.  */
6371#include <$ac_header>
6372_ACEOF
6373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6375  ac_status=$?
6376  grep -v '^ *+' conftest.er1 >conftest.err
6377  rm -f conftest.er1
6378  cat conftest.err >&5
6379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380  (exit $ac_status); } >/dev/null; then
6381  if test -s conftest.err; then
6382    ac_cpp_err=$ac_c_preproc_warn_flag
6383    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6384  else
6385    ac_cpp_err=
6386  fi
6387else
6388  ac_cpp_err=yes
6389fi
6390if test -z "$ac_cpp_err"; then
6391  ac_header_preproc=yes
6392else
6393  echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
6396  ac_header_preproc=no
6397fi
6398rm -f conftest.err conftest.$ac_ext
6399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6400echo "${ECHO_T}$ac_header_preproc" >&6
6401
6402# So?  What about this header?
6403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6404  yes:no: )
6405    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6409    ac_header_preproc=yes
6410    ;;
6411  no:yes:* )
6412    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6414    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6415echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6416    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6418    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6419echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6422    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6424    (
6425      cat <<\_ASBOX
6426## ---------------------------------------------- ##
6427## Report this to orxonox-dev at mail.datacore.ch ##
6428## ---------------------------------------------- ##
6429_ASBOX
6430    ) |
6431      sed "s/^/$as_me: WARNING:     /" >&2
6432    ;;
6433esac
6434echo "$as_me:$LINENO: checking for $ac_header" >&5
6435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437  echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439  eval "$as_ac_Header=\$ac_header_preproc"
6440fi
6441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6443
6444fi
6445if test `eval echo '${'$as_ac_Header'}'` = yes; then
6446  cat >>confdefs.h <<_ACEOF
6447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6448_ACEOF
6449
6450else
6451  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6452echo "$as_me: error: cannot find glew headers" >&2;}
6453   { (exit 1); exit 1; }; }
6454fi
6455
6456done
6457
6458# checking for GLEW-lib
6459  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6460echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6461if test "${ac_cv_lib_GLEW_main+set}" = set; then
6462  echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464  ac_check_lib_save_LIBS=$LIBS
6465LIBS="-lGLEW  $LIBS"
6466cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472
6473
6474int
6475main ()
6476{
6477main ();
6478  ;
6479  return 0;
6480}
6481_ACEOF
6482rm -f conftest.$ac_objext conftest$ac_exeext
6483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484  (eval $ac_link) 2>conftest.er1
6485  ac_status=$?
6486  grep -v '^ *+' conftest.er1 >conftest.err
6487  rm -f conftest.er1
6488  cat conftest.err >&5
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); } &&
[5588]6491         { ac_try='test -z "$ac_c_werror_flag"
6492                         || test ! -s conftest.err'
[5265]6493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494  (eval $ac_try) 2>&5
6495  ac_status=$?
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }; } &&
6498         { ac_try='test -s conftest$ac_exeext'
6499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500  (eval $ac_try) 2>&5
6501  ac_status=$?
6502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503  (exit $ac_status); }; }; then
6504  ac_cv_lib_GLEW_main=yes
6505else
6506  echo "$as_me: failed program was:" >&5
6507sed 's/^/| /' conftest.$ac_ext >&5
6508
6509ac_cv_lib_GLEW_main=no
6510fi
6511rm -f conftest.err conftest.$ac_objext \
6512      conftest$ac_exeext conftest.$ac_ext
6513LIBS=$ac_check_lib_save_LIBS
6514fi
6515echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6516echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6517if test $ac_cv_lib_GLEW_main = yes; then
[5277]6518  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
[5265]6519fi
6520
[5277]6521   if test x$FOUND_GLEW != xyes ; then
[5265]6522         echo "------------------"
6523         echo "glew not found."
6524         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6525         echo "------------------"
6526         exit -1
6527   fi
6528
[5224]6529#--------#
6530# openAL #
6531#--------#
6532# checking for openAL-headers
6533
6534for ac_header in AL/al.h
6535do
6536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538  echo "$as_me:$LINENO: checking for $ac_header" >&5
6539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6540if eval "test \"\${$as_ac_Header+set}\" = set"; then
[2701]6541  echo $ECHO_N "(cached) $ECHO_C" >&6
[5224]6542fi
6543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[2701]6545else
[5224]6546  # Is the header compilable?
6547echo "$as_me:$LINENO: checking $ac_header usability" >&5
6548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6549cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h.  */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
6554/* end confdefs.h.  */
6555$ac_includes_default
6556#include <$ac_header>
6557_ACEOF
6558rm -f conftest.$ac_objext
6559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560  (eval $ac_compile) 2>conftest.er1
6561  ac_status=$?
6562  grep -v '^ *+' conftest.er1 >conftest.err
6563  rm -f conftest.er1
6564  cat conftest.err >&5
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); } &&
[5588]6567         { ac_try='test -z "$ac_c_werror_flag"
6568                         || test ! -s conftest.err'
[5224]6569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570  (eval $ac_try) 2>&5
6571  ac_status=$?
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); }; } &&
6574         { ac_try='test -s conftest.$ac_objext'
6575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576  (eval $ac_try) 2>&5
6577  ac_status=$?
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); }; }; then
6580  ac_header_compiler=yes
6581else
6582  echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585ac_header_compiler=no
6586fi
6587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6589echo "${ECHO_T}$ac_header_compiler" >&6
6590
6591# Is the header present?
6592echo "$as_me:$LINENO: checking $ac_header presence" >&5
6593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6594cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600#include <$ac_header>
6601_ACEOF
6602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6604  ac_status=$?
6605  grep -v '^ *+' conftest.er1 >conftest.err
6606  rm -f conftest.er1
6607  cat conftest.err >&5
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); } >/dev/null; then
6610  if test -s conftest.err; then
6611    ac_cpp_err=$ac_c_preproc_warn_flag
6612    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6613  else
6614    ac_cpp_err=
6615  fi
6616else
6617  ac_cpp_err=yes
6618fi
6619if test -z "$ac_cpp_err"; then
6620  ac_header_preproc=yes
6621else
6622  echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625  ac_header_preproc=no
6626fi
6627rm -f conftest.err conftest.$ac_ext
6628echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6629echo "${ECHO_T}$ac_header_preproc" >&6
6630
6631# So?  What about this header?
6632case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6633  yes:no: )
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6635echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6636    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6637echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6638    ac_header_preproc=yes
6639    ;;
6640  no:yes:* )
6641    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6644echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6645    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6646echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6647    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6648echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6651    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6652echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6653    (
6654      cat <<\_ASBOX
6655## ---------------------------------------------- ##
6656## Report this to orxonox-dev at mail.datacore.ch ##
6657## ---------------------------------------------- ##
6658_ASBOX
6659    ) |
6660      sed "s/^/$as_me: WARNING:     /" >&2
6661    ;;
6662esac
6663echo "$as_me:$LINENO: checking for $ac_header" >&5
6664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6665if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666  echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668  eval "$as_ac_Header=\$ac_header_preproc"
6669fi
6670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6672
6673fi
6674if test `eval echo '${'$as_ac_Header'}'` = yes; then
6675  cat >>confdefs.h <<_ACEOF
6676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6677_ACEOF
6678
6679else
6680  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6681echo "$as_me: error: cannot find openAL header." >&2;}
6682   { (exit 1); exit 1; }; }
6683fi
6684
6685done
6686
6687# checking for openAL-lib
6688  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6689echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6690if test "${ac_cv_lib_openal_main+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
[2190]6693  ac_check_lib_save_LIBS=$LIBS
[5224]6694LIBS="-lopenal  $LIBS"
[2190]6695cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h.  */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h.  */
6701
[5221]6702
[2190]6703int
6704main ()
6705{
[5221]6706main ();
[2190]6707  ;
6708  return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext conftest$ac_exeext
6712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713  (eval $ac_link) 2>conftest.er1
6714  ac_status=$?
6715  grep -v '^ *+' conftest.er1 >conftest.err
6716  rm -f conftest.er1
6717  cat conftest.err >&5
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); } &&
[5588]6720         { ac_try='test -z "$ac_c_werror_flag"
6721                         || test ! -s conftest.err'
[2190]6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; } &&
6727         { ac_try='test -s conftest$ac_exeext'
6728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729  (eval $ac_try) 2>&5
6730  ac_status=$?
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); }; }; then
[5224]6733  ac_cv_lib_openal_main=yes
[2190]6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
[5224]6738ac_cv_lib_openal_main=no
[2190]6739fi
6740rm -f conftest.err conftest.$ac_objext \
6741      conftest$ac_exeext conftest.$ac_ext
6742LIBS=$ac_check_lib_save_LIBS
6743fi
[5224]6744echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6745echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6746if test $ac_cv_lib_openal_main = yes; then
[5277]6747  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
[2190]6748fi
6749
[5277]6750     if test x$FOUND_OPENAL != xyes ; then
[5224]6751        echo "------------------"
6752        echo "openal library not found."
6753        echo "please install the openal library, which can be found at http://www.openal.org"
6754        echo "------------------"
6755        exit -1
6756     fi
6757# checking for alut
[2995]6758
[5224]6759for ac_header in AL/alut.h
[2991]6760do
6761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6762if eval "test \"\${$as_ac_Header+set}\" = set"; then
6763  echo "$as_me:$LINENO: checking for $ac_header" >&5
6764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765if eval "test \"\${$as_ac_Header+set}\" = set"; then
[2190]6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767fi
[2991]6768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[2190]6770else
[2991]6771  # Is the header compilable?
6772echo "$as_me:$LINENO: checking $ac_header usability" >&5
6773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6774cat >conftest.$ac_ext <<_ACEOF
[2190]6775/* confdefs.h.  */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h.  */
[2991]6780$ac_includes_default
6781#include <$ac_header>
[2190]6782_ACEOF
[2991]6783rm -f conftest.$ac_objext
6784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785  (eval $ac_compile) 2>conftest.er1
[2190]6786  ac_status=$?
[2991]6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
[2190]6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
[2991]6791  (exit $ac_status); } &&
[5588]6792         { ac_try='test -z "$ac_c_werror_flag"
6793                         || test ! -s conftest.err'
[2190]6794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795  (eval $ac_try) 2>&5
6796  ac_status=$?
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
[2991]6798  (exit $ac_status); }; } &&
6799         { ac_try='test -s conftest.$ac_objext'
6800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801  (eval $ac_try) 2>&5
6802  ac_status=$?
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
[2190]6804  (exit $ac_status); }; }; then
[2991]6805  ac_header_compiler=yes
[2190]6806else
[2991]6807  echo "$as_me: failed program was:" >&5
[2190]6808sed 's/^/| /' conftest.$ac_ext >&5
6809
[2991]6810ac_header_compiler=no
[2190]6811fi
[2991]6812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6814echo "${ECHO_T}$ac_header_compiler" >&6
6815
6816# Is the header present?
6817echo "$as_me:$LINENO: checking $ac_header presence" >&5
6818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6819cat >conftest.$ac_ext <<_ACEOF
6820/* confdefs.h.  */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h.  */
6825#include <$ac_header>
6826_ACEOF
6827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6829  ac_status=$?
6830  grep -v '^ *+' conftest.er1 >conftest.err
6831  rm -f conftest.er1
6832  cat conftest.err >&5
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); } >/dev/null; then
6835  if test -s conftest.err; then
6836    ac_cpp_err=$ac_c_preproc_warn_flag
6837    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6838  else
6839    ac_cpp_err=
6840  fi
6841else
6842  ac_cpp_err=yes
[2190]6843fi
[2991]6844if test -z "$ac_cpp_err"; then
6845  ac_header_preproc=yes
6846else
6847  echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850  ac_header_preproc=no
6851fi
6852rm -f conftest.err conftest.$ac_ext
6853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6854echo "${ECHO_T}$ac_header_preproc" >&6
6855
6856# So?  What about this header?
6857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6858  yes:no: )
6859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6863    ac_header_preproc=yes
6864    ;;
6865  no:yes:* )
6866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6878    (
6879      cat <<\_ASBOX
[3240]6880## ---------------------------------------------- ##
6881## Report this to orxonox-dev at mail.datacore.ch ##
6882## ---------------------------------------------- ##
[2991]6883_ASBOX
6884    ) |
6885      sed "s/^/$as_me: WARNING:     /" >&2
6886    ;;
6887esac
6888echo "$as_me:$LINENO: checking for $ac_header" >&5
6889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6890if eval "test \"\${$as_ac_Header+set}\" = set"; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893  eval "$as_ac_Header=\$ac_header_preproc"
6894fi
6895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6897
6898fi
6899if test `eval echo '${'$as_ac_Header'}'` = yes; then
6900  cat >>confdefs.h <<_ACEOF
6901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902_ACEOF
6903
6904else
[5224]6905  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6906echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
[4697]6907   { (exit 1); exit 1; }; }
6908fi
[2991]6909
[4697]6910done
6911
[5224]6912  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6913echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6914if test "${ac_cv_lib_alut_main+set}" = set; then
[2991]6915  echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
[4697]6917  ac_check_lib_save_LIBS=$LIBS
[5224]6918LIBS="-lalut  $LIBS"
[2991]6919cat >conftest.$ac_ext <<_ACEOF
[2190]6920/* confdefs.h.  */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h.  */
[4697]6925
6926
6927int
6928main ()
6929{
6930main ();
6931  ;
6932  return 0;
6933}
[2190]6934_ACEOF
[4697]6935rm -f conftest.$ac_objext conftest$ac_exeext
6936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937  (eval $ac_link) 2>conftest.er1
[2190]6938  ac_status=$?
6939  grep -v '^ *+' conftest.er1 >conftest.err
6940  rm -f conftest.er1
6941  cat conftest.err >&5
6942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943  (exit $ac_status); } &&
[5588]6944         { ac_try='test -z "$ac_c_werror_flag"
6945                         || test ! -s conftest.err'
[2190]6946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947  (eval $ac_try) 2>&5
6948  ac_status=$?
6949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950  (exit $ac_status); }; } &&
[4697]6951         { ac_try='test -s conftest$ac_exeext'
[2190]6952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953  (eval $ac_try) 2>&5
6954  ac_status=$?
6955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956  (exit $ac_status); }; }; then
[5224]6957  ac_cv_lib_alut_main=yes
[2190]6958else
6959  echo "$as_me: failed program was:" >&5
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
[5224]6962ac_cv_lib_alut_main=no
[2190]6963fi
[4697]6964rm -f conftest.err conftest.$ac_objext \
6965      conftest$ac_exeext conftest.$ac_ext
6966LIBS=$ac_check_lib_save_LIBS
[2991]6967fi
[5224]6968echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6969echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6970if test $ac_cv_lib_alut_main = yes; then
[5277]6971  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
[2991]6972fi
6973
[5277]6974
[5276]6975#-----#
6976# SDL #
6977#-----#
[4697]6978# checking for SDL
6979  echo "$as_me:$LINENO: checking for SDL-version" >&5
6980echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6981  SDL_VERSION=`sdl-config --version`
6982  echo $SDL_VERSION
[3140]6983
[5224]6984   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
[4664]6985
[4697]6986for ac_header in SDL.h
[2995]6987do
6988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6989if eval "test \"\${$as_ac_Header+set}\" = set"; then
6990  echo "$as_me:$LINENO: checking for $ac_header" >&5
6991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6992if eval "test \"\${$as_ac_Header+set}\" = set"; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994fi
6995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6997else
6998  # Is the header compilable?
6999echo "$as_me:$LINENO: checking $ac_header usability" >&5
7000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7001cat >conftest.$ac_ext <<_ACEOF
7002/* confdefs.h.  */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h.  */
7007$ac_includes_default
7008#include <$ac_header>
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012  (eval $ac_compile) 2>conftest.er1
7013  ac_status=$?
7014  grep -v '^ *+' conftest.er1 >conftest.err
7015  rm -f conftest.er1
7016  cat conftest.err >&5
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); } &&
[5588]7019         { ac_try='test -z "$ac_c_werror_flag"
7020                         || test ! -s conftest.err'
[2995]7021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022  (eval $ac_try) 2>&5
7023  ac_status=$?
7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025  (exit $ac_status); }; } &&
7026         { ac_try='test -s conftest.$ac_objext'
7027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028  (eval $ac_try) 2>&5
7029  ac_status=$?
7030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031  (exit $ac_status); }; }; then
7032  ac_header_compiler=yes
7033else
7034  echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037ac_header_compiler=no
7038fi
7039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7041echo "${ECHO_T}$ac_header_compiler" >&6
7042
7043# Is the header present?
7044echo "$as_me:$LINENO: checking $ac_header presence" >&5
7045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7046cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h.  */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h.  */
7052#include <$ac_header>
7053_ACEOF
7054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7056  ac_status=$?
7057  grep -v '^ *+' conftest.er1 >conftest.err
7058  rm -f conftest.er1
7059  cat conftest.err >&5
7060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061  (exit $ac_status); } >/dev/null; then
7062  if test -s conftest.err; then
7063    ac_cpp_err=$ac_c_preproc_warn_flag
7064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7065  else
7066    ac_cpp_err=
7067  fi
7068else
7069  ac_cpp_err=yes
7070fi
7071if test -z "$ac_cpp_err"; then
7072  ac_header_preproc=yes
7073else
7074  echo "$as_me: failed program was:" >&5
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
7077  ac_header_preproc=no
7078fi
7079rm -f conftest.err conftest.$ac_ext
7080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7081echo "${ECHO_T}$ac_header_preproc" >&6
7082
7083# So?  What about this header?
7084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7085  yes:no: )
7086    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7090    ac_header_preproc=yes
7091    ;;
7092  no:yes:* )
7093    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7095    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7096echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7097    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7099    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7100echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7105    (
7106      cat <<\_ASBOX
[3240]7107## ---------------------------------------------- ##
7108## Report this to orxonox-dev at mail.datacore.ch ##
7109## ---------------------------------------------- ##
[2995]7110_ASBOX
7111    ) |
7112      sed "s/^/$as_me: WARNING:     /" >&2
7113    ;;
7114esac
7115echo "$as_me:$LINENO: checking for $ac_header" >&5
7116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7117if eval "test \"\${$as_ac_Header+set}\" = set"; then
7118  echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120  eval "$as_ac_Header=\$ac_header_preproc"
7121fi
7122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124
7125fi
7126if test `eval echo '${'$as_ac_Header'}'` = yes; then
7127  cat >>confdefs.h <<_ACEOF
7128#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7129_ACEOF
7130
7131else
7132
[4697]7133for ac_header in SDL/SDL.h
[2995]7134do
7135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7136if eval "test \"\${$as_ac_Header+set}\" = set"; then
7137  echo "$as_me:$LINENO: checking for $ac_header" >&5
7138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7139if eval "test \"\${$as_ac_Header+set}\" = set"; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141fi
7142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7144else
7145  # Is the header compilable?
7146echo "$as_me:$LINENO: checking $ac_header usability" >&5
7147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154$ac_includes_default
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159  (eval $ac_compile) 2>conftest.er1
7160  ac_status=$?
7161  grep -v '^ *+' conftest.er1 >conftest.err
7162  rm -f conftest.er1
7163  cat conftest.err >&5
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); } &&
[5588]7166         { ac_try='test -z "$ac_c_werror_flag"
7167                         || test ! -s conftest.err'
[2995]7168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169  (eval $ac_try) 2>&5
7170  ac_status=$?
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); }; } &&
7173         { ac_try='test -s conftest.$ac_objext'
7174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175  (eval $ac_try) 2>&5
7176  ac_status=$?
7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178  (exit $ac_status); }; }; then
7179  ac_header_compiler=yes
7180else
7181  echo "$as_me: failed program was:" >&5
7182sed 's/^/| /' conftest.$ac_ext >&5
7183
7184ac_header_compiler=no
7185fi
7186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7188echo "${ECHO_T}$ac_header_compiler" >&6
7189
7190# Is the header present?
7191echo "$as_me:$LINENO: checking $ac_header presence" >&5
7192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7193cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h.  */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h.  */
7199#include <$ac_header>
7200_ACEOF
7201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7202  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7203  ac_status=$?
7204  grep -v '^ *+' conftest.er1 >conftest.err
7205  rm -f conftest.er1
7206  cat conftest.err >&5
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); } >/dev/null; then
7209  if test -s conftest.err; then
7210    ac_cpp_err=$ac_c_preproc_warn_flag
7211    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7212  else
7213    ac_cpp_err=
7214  fi
7215else
7216  ac_cpp_err=yes
7217fi
7218if test -z "$ac_cpp_err"; then
7219  ac_header_preproc=yes
7220else
7221  echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224  ac_header_preproc=no
7225fi
7226rm -f conftest.err conftest.$ac_ext
7227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7228echo "${ECHO_T}$ac_header_preproc" >&6
7229
7230# So?  What about this header?
7231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7232  yes:no: )
7233    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7237    ac_header_preproc=yes
7238    ;;
7239  no:yes:* )
7240    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7242    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7243echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7244    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7246    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7247echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7250    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7252    (
7253      cat <<\_ASBOX
[3240]7254## ---------------------------------------------- ##
7255## Report this to orxonox-dev at mail.datacore.ch ##
7256## ---------------------------------------------- ##
[2995]7257_ASBOX
7258    ) |
7259      sed "s/^/$as_me: WARNING:     /" >&2
7260    ;;
7261esac
7262echo "$as_me:$LINENO: checking for $ac_header" >&5
7263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7264if eval "test \"\${$as_ac_Header+set}\" = set"; then
7265  echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267  eval "$as_ac_Header=\$ac_header_preproc"
7268fi
7269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7271
7272fi
7273if test `eval echo '${'$as_ac_Header'}'` = yes; then
7274  cat >>confdefs.h <<_ACEOF
7275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
7277
7278else
[4697]7279  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7280echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
[2995]7281   { (exit 1); exit 1; }; }
7282fi
7283
7284done
7285
[4697]7286fi
[2995]7287
[4697]7288done
[2995]7289
[5224]7290   LIBS="`sdl-config --libs` $LIBS"
[5221]7291   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7292echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7293if test "${ac_cv_lib_SDL_main+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  ac_check_lib_save_LIBS=$LIBS
7297LIBS="-lSDL  $LIBS"
7298cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h.  */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h.  */
[4662]7304
[5221]7305
7306int
7307main ()
7308{
7309main ();
7310  ;
7311  return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316  (eval $ac_link) 2>conftest.er1
7317  ac_status=$?
7318  grep -v '^ *+' conftest.er1 >conftest.err
7319  rm -f conftest.er1
7320  cat conftest.err >&5
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } &&
[5588]7323         { ac_try='test -z "$ac_c_werror_flag"
7324                         || test ! -s conftest.err'
[5221]7325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326  (eval $ac_try) 2>&5
7327  ac_status=$?
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); }; } &&
7330         { ac_try='test -s conftest$ac_exeext'
7331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332  (eval $ac_try) 2>&5
7333  ac_status=$?
7334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335  (exit $ac_status); }; }; then
7336  ac_cv_lib_SDL_main=yes
7337else
7338  echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341ac_cv_lib_SDL_main=no
7342fi
7343rm -f conftest.err conftest.$ac_objext \
7344      conftest$ac_exeext conftest.$ac_ext
7345LIBS=$ac_check_lib_save_LIBS
7346fi
7347echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7348echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7349if test $ac_cv_lib_SDL_main = yes; then
7350  FOUND_SDL=yes
7351fi
7352
[5276]7353    if test x$FOUND_SDL != xyes ; then
[5221]7354        echo "------------------"
7355        echo "SDL library not found."
7356        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7357        echo "------------------"
7358        exit -1
7359     fi
7360
[2995]7361    ;;
7362
[4825]7363#############
[4697]7364#-----------#
7365# MAC -OS X #
7366#-----------#
[4825]7367#############
[4697]7368 *darwin*)
7369 echo "OS X detected"
[2980]7370
[4697]7371 osX="yes"
[2981]7372
[4697]7373 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
[5280]7374 LDFLAGS="$LDFLAGS -L/sw/lib"
[4697]7375# checking gl header
[2989]7376
[4697]7377for ac_header in OpenGL/gl.h
[4504]7378do
7379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381  echo "$as_me:$LINENO: checking for $ac_header" >&5
7382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385fi
7386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388else
7389  # Is the header compilable?
7390echo "$as_me:$LINENO: checking $ac_header usability" >&5
7391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7392cat >conftest.$ac_ext <<_ACEOF
7393/* confdefs.h.  */
7394_ACEOF
7395cat confdefs.h >>conftest.$ac_ext
7396cat >>conftest.$ac_ext <<_ACEOF
7397/* end confdefs.h.  */
7398$ac_includes_default
7399#include <$ac_header>
7400_ACEOF
7401rm -f conftest.$ac_objext
7402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403  (eval $ac_compile) 2>conftest.er1
7404  ac_status=$?
7405  grep -v '^ *+' conftest.er1 >conftest.err
7406  rm -f conftest.er1
7407  cat conftest.err >&5
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); } &&
[5588]7410         { ac_try='test -z "$ac_c_werror_flag"
7411                         || test ! -s conftest.err'
[4504]7412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413  (eval $ac_try) 2>&5
7414  ac_status=$?
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); }; } &&
7417         { ac_try='test -s conftest.$ac_objext'
7418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419  (eval $ac_try) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); }; }; then
7423  ac_header_compiler=yes
7424else
7425  echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428ac_header_compiler=no
7429fi
7430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432echo "${ECHO_T}$ac_header_compiler" >&6
7433
7434# Is the header present?
7435echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h.  */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h.  */
7443#include <$ac_header>
7444_ACEOF
7445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } >/dev/null; then
7453  if test -s conftest.err; then
7454    ac_cpp_err=$ac_c_preproc_warn_flag
7455    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7456  else
7457    ac_cpp_err=
7458  fi
7459else
7460  ac_cpp_err=yes
7461fi
7462if test -z "$ac_cpp_err"; then
7463  ac_header_preproc=yes
7464else
7465  echo "$as_me: failed program was:" >&5
7466sed 's/^/| /' conftest.$ac_ext >&5
7467
7468  ac_header_preproc=no
7469fi
7470rm -f conftest.err conftest.$ac_ext
7471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7472echo "${ECHO_T}$ac_header_preproc" >&6
7473
7474# So?  What about this header?
7475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7476  yes:no: )
7477    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7479    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7481    ac_header_preproc=yes
7482    ;;
7483  no:yes:* )
7484    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7486    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7487echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7488    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7490    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7491echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7494    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7496    (
7497      cat <<\_ASBOX
7498## ---------------------------------------------- ##
7499## Report this to orxonox-dev at mail.datacore.ch ##
7500## ---------------------------------------------- ##
7501_ASBOX
7502    ) |
7503      sed "s/^/$as_me: WARNING:     /" >&2
7504    ;;
7505esac
7506echo "$as_me:$LINENO: checking for $ac_header" >&5
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  eval "$as_ac_Header=\$ac_header_preproc"
7512fi
7513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7515
7516fi
7517if test `eval echo '${'$as_ac_Header'}'` = yes; then
7518  cat >>confdefs.h <<_ACEOF
7519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520_ACEOF
7521
7522else
[4697]7523  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7524echo "$as_me: error: cannot find opengl headers" >&2;}
7525   { (exit 1); exit 1; }; }
7526fi
[4504]7527
[4697]7528done
7529
7530# cheking for GLU-header
7531
7532for ac_header in OpenGL/glu.h
[4504]7533do
7534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536  echo "$as_me:$LINENO: checking for $ac_header" >&5
7537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539  echo $ECHO_N "(cached) $ECHO_C" >&6
7540fi
7541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7543else
7544  # Is the header compilable?
7545echo "$as_me:$LINENO: checking $ac_header usability" >&5
7546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7547cat >conftest.$ac_ext <<_ACEOF
7548/* confdefs.h.  */
7549_ACEOF
7550cat confdefs.h >>conftest.$ac_ext
7551cat >>conftest.$ac_ext <<_ACEOF
7552/* end confdefs.h.  */
7553$ac_includes_default
7554#include <$ac_header>
7555_ACEOF
7556rm -f conftest.$ac_objext
7557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558  (eval $ac_compile) 2>conftest.er1
7559  ac_status=$?
7560  grep -v '^ *+' conftest.er1 >conftest.err
7561  rm -f conftest.er1
7562  cat conftest.err >&5
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } &&
[5588]7565         { ac_try='test -z "$ac_c_werror_flag"
7566                         || test ! -s conftest.err'
[4504]7567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568  (eval $ac_try) 2>&5
7569  ac_status=$?
7570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571  (exit $ac_status); }; } &&
7572         { ac_try='test -s conftest.$ac_objext'
7573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574  (eval $ac_try) 2>&5
7575  ac_status=$?
7576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577  (exit $ac_status); }; }; then
7578  ac_header_compiler=yes
7579else
7580  echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583ac_header_compiler=no
7584fi
7585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587echo "${ECHO_T}$ac_header_compiler" >&6
7588
7589# Is the header present?
7590echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7592cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h.  */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h.  */
7598#include <$ac_header>
7599_ACEOF
7600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7601  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7602  ac_status=$?
7603  grep -v '^ *+' conftest.er1 >conftest.err
7604  rm -f conftest.er1
7605  cat conftest.err >&5
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); } >/dev/null; then
7608  if test -s conftest.err; then
7609    ac_cpp_err=$ac_c_preproc_warn_flag
7610    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7611  else
7612    ac_cpp_err=
7613  fi
7614else
7615  ac_cpp_err=yes
7616fi
7617if test -z "$ac_cpp_err"; then
7618  ac_header_preproc=yes
7619else
7620  echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623  ac_header_preproc=no
7624fi
7625rm -f conftest.err conftest.$ac_ext
7626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627echo "${ECHO_T}$ac_header_preproc" >&6
7628
7629# So?  What about this header?
7630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7631  yes:no: )
7632    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636    ac_header_preproc=yes
7637    ;;
7638  no:yes:* )
7639    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7642echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7643    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7646echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7647    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7651    (
7652      cat <<\_ASBOX
7653## ---------------------------------------------- ##
7654## Report this to orxonox-dev at mail.datacore.ch ##
7655## ---------------------------------------------- ##
7656_ASBOX
7657    ) |
7658      sed "s/^/$as_me: WARNING:     /" >&2
7659    ;;
7660esac
7661echo "$as_me:$LINENO: checking for $ac_header" >&5
7662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  eval "$as_ac_Header=\$ac_header_preproc"
7667fi
7668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7670
7671fi
7672if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673  cat >>confdefs.h <<_ACEOF
7674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675_ACEOF
7676
7677else
[4697]7678  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7679echo "$as_me: error: cannot find opengl headers" >&2;}
[4504]7680   { (exit 1); exit 1; }; }
7681fi
7682
7683done
7684
7685
[4697]7686   LIBS="$LIBS -framework OpenGL"
[4504]7687
7688
[5280]7689
7690# checking for GLEW-headers
7691
7692for ac_header in GL/glew.h
7693do
7694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696  echo "$as_me:$LINENO: checking for $ac_header" >&5
7697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7698if eval "test \"\${$as_ac_Header+set}\" = set"; then
7699  echo $ECHO_N "(cached) $ECHO_C" >&6
7700fi
7701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703else
7704  # Is the header compilable?
7705echo "$as_me:$LINENO: checking $ac_header usability" >&5
7706echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7707cat >conftest.$ac_ext <<_ACEOF
7708/* confdefs.h.  */
7709_ACEOF
7710cat confdefs.h >>conftest.$ac_ext
7711cat >>conftest.$ac_ext <<_ACEOF
7712/* end confdefs.h.  */
7713$ac_includes_default
7714#include <$ac_header>
7715_ACEOF
7716rm -f conftest.$ac_objext
7717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7718  (eval $ac_compile) 2>conftest.er1
7719  ac_status=$?
7720  grep -v '^ *+' conftest.er1 >conftest.err
7721  rm -f conftest.er1
7722  cat conftest.err >&5
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); } &&
[5588]7725         { ac_try='test -z "$ac_c_werror_flag"
7726                         || test ! -s conftest.err'
[5280]7727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728  (eval $ac_try) 2>&5
7729  ac_status=$?
7730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731  (exit $ac_status); }; } &&
7732         { ac_try='test -s conftest.$ac_objext'
7733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734  (eval $ac_try) 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); }; }; then
7738  ac_header_compiler=yes
7739else
7740  echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7743ac_header_compiler=no
7744fi
7745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747echo "${ECHO_T}$ac_header_compiler" >&6
7748
7749# Is the header present?
7750echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7752cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h.  */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h.  */
7758#include <$ac_header>
7759_ACEOF
7760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7762  ac_status=$?
7763  grep -v '^ *+' conftest.er1 >conftest.err
7764  rm -f conftest.er1
7765  cat conftest.err >&5
7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767  (exit $ac_status); } >/dev/null; then
7768  if test -s conftest.err; then
7769    ac_cpp_err=$ac_c_preproc_warn_flag
7770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7771  else
7772    ac_cpp_err=
7773  fi
7774else
7775  ac_cpp_err=yes
7776fi
7777if test -z "$ac_cpp_err"; then
7778  ac_header_preproc=yes
7779else
7780  echo "$as_me: failed program was:" >&5
7781sed 's/^/| /' conftest.$ac_ext >&5
7782
7783  ac_header_preproc=no
7784fi
7785rm -f conftest.err conftest.$ac_ext
7786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787echo "${ECHO_T}$ac_header_preproc" >&6
7788
7789# So?  What about this header?
7790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7791  yes:no: )
7792    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796    ac_header_preproc=yes
7797    ;;
7798  no:yes:* )
7799    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7802echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7803    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7806echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7807    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7811    (
7812      cat <<\_ASBOX
7813## ---------------------------------------------- ##
7814## Report this to orxonox-dev at mail.datacore.ch ##
7815## ---------------------------------------------- ##
7816_ASBOX
7817    ) |
7818      sed "s/^/$as_me: WARNING:     /" >&2
7819    ;;
7820esac
7821echo "$as_me:$LINENO: checking for $ac_header" >&5
7822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7823if eval "test \"\${$as_ac_Header+set}\" = set"; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826  eval "$as_ac_Header=\$ac_header_preproc"
7827fi
7828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830
7831fi
7832if test `eval echo '${'$as_ac_Header'}'` = yes; then
7833  cat >>confdefs.h <<_ACEOF
7834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7835_ACEOF
7836
7837else
7838  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
7839echo "$as_me: error: cannot find glew headers" >&2;}
7840   { (exit 1); exit 1; }; }
7841fi
7842
7843done
7844
7845# checking for GLEW-lib
7846  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
7847echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
7848if test "${ac_cv_lib_GLEW_main+set}" = set; then
7849  echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851  ac_check_lib_save_LIBS=$LIBS
7852LIBS="-lGLEW  $LIBS"
7853cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h.  */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h.  */
7859
7860
7861int
7862main ()
7863{
7864main ();
7865  ;
7866  return 0;
7867}
7868_ACEOF
7869rm -f conftest.$ac_objext conftest$ac_exeext
7870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7871  (eval $ac_link) 2>conftest.er1
7872  ac_status=$?
7873  grep -v '^ *+' conftest.er1 >conftest.err
7874  rm -f conftest.er1
7875  cat conftest.err >&5
7876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877  (exit $ac_status); } &&
[5588]7878         { ac_try='test -z "$ac_c_werror_flag"
7879                         || test ! -s conftest.err'
[5280]7880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881  (eval $ac_try) 2>&5
7882  ac_status=$?
7883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884  (exit $ac_status); }; } &&
7885         { ac_try='test -s conftest$ac_exeext'
7886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887  (eval $ac_try) 2>&5
7888  ac_status=$?
7889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890  (exit $ac_status); }; }; then
7891  ac_cv_lib_GLEW_main=yes
7892else
7893  echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896ac_cv_lib_GLEW_main=no
7897fi
7898rm -f conftest.err conftest.$ac_objext \
7899      conftest$ac_exeext conftest.$ac_ext
7900LIBS=$ac_check_lib_save_LIBS
7901fi
7902echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
7903echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
7904if test $ac_cv_lib_GLEW_main = yes; then
7905  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
7906fi
7907
7908   if test x$FOUND_GLEW != xyes ; then
7909         echo "------------------"
7910         echo "glew not found."
7911         echo "please install the glew package which can be found at http://glew.sourceforge.net"
7912         echo "------------------"
7913         exit -1
7914   fi
7915
7916
7917
7918for ac_header in OpenAL/al.h
7919do
7920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922  echo "$as_me:$LINENO: checking for $ac_header" >&5
7923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926fi
7927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929else
7930  # Is the header compilable?
7931echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h.  */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h.  */
7939$ac_includes_default
7940#include <$ac_header>
7941_ACEOF
7942rm -f conftest.$ac_objext
7943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944  (eval $ac_compile) 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); } &&
[5588]7951         { ac_try='test -z "$ac_c_werror_flag"
7952                         || test ! -s conftest.err'
[5280]7953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954  (eval $ac_try) 2>&5
7955  ac_status=$?
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); }; } &&
7958         { ac_try='test -s conftest.$ac_objext'
7959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960  (eval $ac_try) 2>&5
7961  ac_status=$?
7962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963  (exit $ac_status); }; }; then
7964  ac_header_compiler=yes
7965else
7966  echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969ac_header_compiler=no
7970fi
7971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7973echo "${ECHO_T}$ac_header_compiler" >&6
7974
7975# Is the header present?
7976echo "$as_me:$LINENO: checking $ac_header presence" >&5
7977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7978cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h.  */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h.  */
7984#include <$ac_header>
7985_ACEOF
7986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7988  ac_status=$?
7989  grep -v '^ *+' conftest.er1 >conftest.err
7990  rm -f conftest.er1
7991  cat conftest.err >&5
7992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993  (exit $ac_status); } >/dev/null; then
7994  if test -s conftest.err; then
7995    ac_cpp_err=$ac_c_preproc_warn_flag
7996    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7997  else
7998    ac_cpp_err=
7999  fi
8000else
8001  ac_cpp_err=yes
8002fi
8003if test -z "$ac_cpp_err"; then
8004  ac_header_preproc=yes
8005else
8006  echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009  ac_header_preproc=no
8010fi
8011rm -f conftest.err conftest.$ac_ext
8012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8013echo "${ECHO_T}$ac_header_preproc" >&6
8014
8015# So?  What about this header?
8016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8017  yes:no: )
8018    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8020    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8022    ac_header_preproc=yes
8023    ;;
8024  no:yes:* )
8025    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8027    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8028echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8029    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8031    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8032echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8035    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8037    (
8038      cat <<\_ASBOX
8039## ---------------------------------------------- ##
8040## Report this to orxonox-dev at mail.datacore.ch ##
8041## ---------------------------------------------- ##
8042_ASBOX
8043    ) |
8044      sed "s/^/$as_me: WARNING:     /" >&2
8045    ;;
8046esac
8047echo "$as_me:$LINENO: checking for $ac_header" >&5
8048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8049if eval "test \"\${$as_ac_Header+set}\" = set"; then
8050  echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052  eval "$as_ac_Header=\$ac_header_preproc"
8053fi
8054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8056
8057fi
8058if test `eval echo '${'$as_ac_Header'}'` = yes; then
8059  cat >>confdefs.h <<_ACEOF
8060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061_ACEOF
8062
8063else
8064  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
8065echo "$as_me: error: cannot find opengl headers" >&2;}
8066   { (exit 1); exit 1; }; }
8067fi
8068
8069done
8070
8071  HAVE_OPENAL=yes
8072  LIBS="$LIBS -framework OpenAL"
8073
8074
[4697]8075## SDL-check
[5296]8076       SDL_CFLAGS=`sdl-config --cflags`
8077       SDL_LIBS=`sdl-config --libs`
8078       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8079       LIBS="$LIBS $SDL_LIBS"
[4504]8080
[5280]8081for ac_header in SDL/SDL.h
8082do
8083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8084if eval "test \"\${$as_ac_Header+set}\" = set"; then
8085  echo "$as_me:$LINENO: checking for $ac_header" >&5
8086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8087if eval "test \"\${$as_ac_Header+set}\" = set"; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089fi
8090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092else
8093  # Is the header compilable?
8094echo "$as_me:$LINENO: checking $ac_header usability" >&5
8095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8096cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h.  */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h.  */
8102$ac_includes_default
8103#include <$ac_header>
8104_ACEOF
8105rm -f conftest.$ac_objext
8106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107  (eval $ac_compile) 2>conftest.er1
8108  ac_status=$?
8109  grep -v '^ *+' conftest.er1 >conftest.err
8110  rm -f conftest.er1
8111  cat conftest.err >&5
8112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113  (exit $ac_status); } &&
[5588]8114         { ac_try='test -z "$ac_c_werror_flag"
8115                         || test ! -s conftest.err'
[5280]8116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117  (eval $ac_try) 2>&5
8118  ac_status=$?
8119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); }; } &&
8121         { ac_try='test -s conftest.$ac_objext'
8122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123  (eval $ac_try) 2>&5
8124  ac_status=$?
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); }; }; then
8127  ac_header_compiler=yes
8128else
8129  echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
[4504]8131
[5280]8132ac_header_compiler=no
8133fi
8134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136echo "${ECHO_T}$ac_header_compiler" >&6
8137
8138# Is the header present?
8139echo "$as_me:$LINENO: checking $ac_header presence" >&5
8140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8141cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h.  */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h.  */
8147#include <$ac_header>
8148_ACEOF
8149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8150  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8151  ac_status=$?
8152  grep -v '^ *+' conftest.er1 >conftest.err
8153  rm -f conftest.er1
8154  cat conftest.err >&5
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } >/dev/null; then
8157  if test -s conftest.err; then
8158    ac_cpp_err=$ac_c_preproc_warn_flag
8159    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8160  else
8161    ac_cpp_err=
8162  fi
8163else
8164  ac_cpp_err=yes
8165fi
8166if test -z "$ac_cpp_err"; then
8167  ac_header_preproc=yes
8168else
8169  echo "$as_me: failed program was:" >&5
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
8172  ac_header_preproc=no
8173fi
8174rm -f conftest.err conftest.$ac_ext
8175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8176echo "${ECHO_T}$ac_header_preproc" >&6
8177
8178# So?  What about this header?
8179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8180  yes:no: )
8181    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8183    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8185    ac_header_preproc=yes
8186    ;;
8187  no:yes:* )
8188    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8190    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8191echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8192    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8194    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8195echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8196    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8198    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8200    (
8201      cat <<\_ASBOX
8202## ---------------------------------------------- ##
8203## Report this to orxonox-dev at mail.datacore.ch ##
8204## ---------------------------------------------- ##
8205_ASBOX
8206    ) |
8207      sed "s/^/$as_me: WARNING:     /" >&2
8208    ;;
8209esac
8210echo "$as_me:$LINENO: checking for $ac_header" >&5
8211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8212if eval "test \"\${$as_ac_Header+set}\" = set"; then
8213  echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215  eval "$as_ac_Header=\$ac_header_preproc"
8216fi
8217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219
8220fi
8221if test `eval echo '${'$as_ac_Header'}'` = yes; then
8222  cat >>confdefs.h <<_ACEOF
8223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8224_ACEOF
8225
8226else
8227  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
8228echo "$as_me: error: cannot find SDL headers" >&2;}
8229   { (exit 1); exit 1; }; }
8230fi
8231
8232done
8233
8234   HAVE_SDL=yes
[5296]8235#   LIBS="$LIBS -framework SDL"
[5280]8236
[4697]8237# checking for SDL-headers
8238#    AC_CHECK_HEADERS(SDL/SDL.h ,,
8239#      [AC_MSG_ERROR([cannot find SDL headers]) ])
[4504]8240
[4697]8241## checking for SDL
8242#    SDL_VERSION=1.2.7
8243#    AM_PATH_SDL($SDL_VERSION,
8244#      :,
8245#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
8246#      )
[4504]8247
8248
[4697]8249    ;;
[4665]8250
[4697]8251  *)
8252    ;;
8253esac
8254
8255
8256
8257###################################
8258## CHECKING FOR HEADERS AND LIBS ##
8259###################################
8260
8261#---------#
8262# SDL_ttf #
8263#---------#
8264# checking for SDL_ttf-headers
8265
8266for ac_header in SDL_ttf.h
[4504]8267do
8268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8269if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270  echo "$as_me:$LINENO: checking for $ac_header" >&5
8271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8272if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273  echo $ECHO_N "(cached) $ECHO_C" >&6
8274fi
8275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8277else
8278  # Is the header compilable?
8279echo "$as_me:$LINENO: checking $ac_header usability" >&5
8280echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
8288#include <$ac_header>
8289_ACEOF
8290rm -f conftest.$ac_objext
8291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292  (eval $ac_compile) 2>conftest.er1
8293  ac_status=$?
8294  grep -v '^ *+' conftest.er1 >conftest.err
8295  rm -f conftest.er1
8296  cat conftest.err >&5
8297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298  (exit $ac_status); } &&
[5588]8299         { ac_try='test -z "$ac_c_werror_flag"
8300                         || test ! -s conftest.err'
[4504]8301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302  (eval $ac_try) 2>&5
8303  ac_status=$?
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); }; } &&
8306         { ac_try='test -s conftest.$ac_objext'
8307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308  (eval $ac_try) 2>&5
8309  ac_status=$?
8310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311  (exit $ac_status); }; }; then
8312  ac_header_compiler=yes
8313else
8314  echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317ac_header_compiler=no
8318fi
8319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8321echo "${ECHO_T}$ac_header_compiler" >&6
8322
8323# Is the header present?
8324echo "$as_me:$LINENO: checking $ac_header presence" >&5
8325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8326cat >conftest.$ac_ext <<_ACEOF
8327/* confdefs.h.  */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h.  */
8332#include <$ac_header>
8333_ACEOF
8334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8335  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8336  ac_status=$?
8337  grep -v '^ *+' conftest.er1 >conftest.err
8338  rm -f conftest.er1
8339  cat conftest.err >&5
8340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341  (exit $ac_status); } >/dev/null; then
8342  if test -s conftest.err; then
8343    ac_cpp_err=$ac_c_preproc_warn_flag
8344    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8345  else
8346    ac_cpp_err=
8347  fi
8348else
8349  ac_cpp_err=yes
8350fi
8351if test -z "$ac_cpp_err"; then
8352  ac_header_preproc=yes
8353else
8354  echo "$as_me: failed program was:" >&5
8355sed 's/^/| /' conftest.$ac_ext >&5
8356
8357  ac_header_preproc=no
8358fi
8359rm -f conftest.err conftest.$ac_ext
8360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361echo "${ECHO_T}$ac_header_preproc" >&6
8362
8363# So?  What about this header?
8364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8365  yes:no: )
8366    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8370    ac_header_preproc=yes
8371    ;;
8372  no:yes:* )
8373    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8375    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8376echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8377    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8379    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8380echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8383    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8385    (
8386      cat <<\_ASBOX
8387## ---------------------------------------------- ##
8388## Report this to orxonox-dev at mail.datacore.ch ##
8389## ---------------------------------------------- ##
8390_ASBOX
8391    ) |
8392      sed "s/^/$as_me: WARNING:     /" >&2
8393    ;;
8394esac
8395echo "$as_me:$LINENO: checking for $ac_header" >&5
8396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8397if eval "test \"\${$as_ac_Header+set}\" = set"; then
8398  echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400  eval "$as_ac_Header=\$ac_header_preproc"
8401fi
8402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8404
8405fi
8406if test `eval echo '${'$as_ac_Header'}'` = yes; then
8407  cat >>confdefs.h <<_ACEOF
8408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409_ACEOF
8410
8411else
8412
[4697]8413for ac_header in SDL/SDL_ttf.h
[4662]8414do
8415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416if eval "test \"\${$as_ac_Header+set}\" = set"; then
8417  echo "$as_me:$LINENO: checking for $ac_header" >&5
8418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8419if eval "test \"\${$as_ac_Header+set}\" = set"; then
8420  echo $ECHO_N "(cached) $ECHO_C" >&6
8421fi
8422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424else
8425  # Is the header compilable?
8426echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8428cat >conftest.$ac_ext <<_ACEOF
8429/* confdefs.h.  */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h.  */
8434$ac_includes_default
8435#include <$ac_header>
8436_ACEOF
8437rm -f conftest.$ac_objext
8438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439  (eval $ac_compile) 2>conftest.er1
8440  ac_status=$?
8441  grep -v '^ *+' conftest.er1 >conftest.err
8442  rm -f conftest.er1
8443  cat conftest.err >&5
8444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445  (exit $ac_status); } &&
[5588]8446         { ac_try='test -z "$ac_c_werror_flag"
8447                         || test ! -s conftest.err'
[4662]8448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449  (eval $ac_try) 2>&5
8450  ac_status=$?
8451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452  (exit $ac_status); }; } &&
8453         { ac_try='test -s conftest.$ac_objext'
8454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455  (eval $ac_try) 2>&5
8456  ac_status=$?
8457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458  (exit $ac_status); }; }; then
8459  ac_header_compiler=yes
8460else
8461  echo "$as_me: failed program was:" >&5
8462sed 's/^/| /' conftest.$ac_ext >&5
8463
8464ac_header_compiler=no
8465fi
8466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8468echo "${ECHO_T}$ac_header_compiler" >&6
8469
8470# Is the header present?
8471echo "$as_me:$LINENO: checking $ac_header presence" >&5
8472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8473cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h.  */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h.  */
8479#include <$ac_header>
8480_ACEOF
8481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8483  ac_status=$?
8484  grep -v '^ *+' conftest.er1 >conftest.err
8485  rm -f conftest.er1
8486  cat conftest.err >&5
8487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488  (exit $ac_status); } >/dev/null; then
8489  if test -s conftest.err; then
8490    ac_cpp_err=$ac_c_preproc_warn_flag
8491    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8492  else
8493    ac_cpp_err=
8494  fi
8495else
8496  ac_cpp_err=yes
8497fi
8498if test -z "$ac_cpp_err"; then
8499  ac_header_preproc=yes
8500else
8501  echo "$as_me: failed program was:" >&5
8502sed 's/^/| /' conftest.$ac_ext >&5
8503
8504  ac_header_preproc=no
8505fi
8506rm -f conftest.err conftest.$ac_ext
8507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8508echo "${ECHO_T}$ac_header_preproc" >&6
8509
8510# So?  What about this header?
8511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8512  yes:no: )
8513    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8515    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8517    ac_header_preproc=yes
8518    ;;
8519  no:yes:* )
8520    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8522    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8523echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8524    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8526    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8527echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8530    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8532    (
8533      cat <<\_ASBOX
8534## ---------------------------------------------- ##
8535## Report this to orxonox-dev at mail.datacore.ch ##
8536## ---------------------------------------------- ##
8537_ASBOX
8538    ) |
8539      sed "s/^/$as_me: WARNING:     /" >&2
8540    ;;
8541esac
8542echo "$as_me:$LINENO: checking for $ac_header" >&5
8543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8544if eval "test \"\${$as_ac_Header+set}\" = set"; then
8545  echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547  eval "$as_ac_Header=\$ac_header_preproc"
8548fi
8549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551
8552fi
8553if test `eval echo '${'$as_ac_Header'}'` = yes; then
8554  cat >>confdefs.h <<_ACEOF
8555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8556_ACEOF
8557
8558else
[4697]8559  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
8560echo "$as_me: error: cannot find SDL_ttf header." >&2;}
[4665]8561   { (exit 1); exit 1; }; }
8562fi
[4662]8563
[4665]8564done
8565
8566fi
8567
8568done
8569
[4697]8570# checking for SDL_ttf-lib
8571  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
8572echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
8573if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
[4665]8574  echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576  ac_check_lib_save_LIBS=$LIBS
[4697]8577LIBS="-lSDL_ttf  $LIBS"
[4665]8578cat >conftest.$ac_ext <<_ACEOF
8579/* confdefs.h.  */
8580_ACEOF
8581cat confdefs.h >>conftest.$ac_ext
8582cat >>conftest.$ac_ext <<_ACEOF
8583/* end confdefs.h.  */
8584
[4697]8585/* Override any gcc2 internal prototype to avoid an error.  */
8586#ifdef __cplusplus
8587extern "C"
8588#endif
8589/* We use char because int might match the return type of a gcc2
8590   builtin and then its argument prototype would still apply.  */
8591char TTF_OpenFont ();
[4665]8592int
8593main ()
8594{
[4697]8595TTF_OpenFont ();
[4665]8596  ;
8597  return 0;
8598}
8599_ACEOF
8600rm -f conftest.$ac_objext conftest$ac_exeext
8601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602  (eval $ac_link) 2>conftest.er1
8603  ac_status=$?
8604  grep -v '^ *+' conftest.er1 >conftest.err
8605  rm -f conftest.er1
8606  cat conftest.err >&5
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); } &&
[5588]8609         { ac_try='test -z "$ac_c_werror_flag"
8610                         || test ! -s conftest.err'
[4665]8611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612  (eval $ac_try) 2>&5
8613  ac_status=$?
8614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615  (exit $ac_status); }; } &&
8616         { ac_try='test -s conftest$ac_exeext'
8617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618  (eval $ac_try) 2>&5
8619  ac_status=$?
8620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621  (exit $ac_status); }; }; then
[4697]8622  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
[4665]8623else
8624  echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
[4697]8627ac_cv_lib_SDL_ttf_TTF_OpenFont=no
[4665]8628fi
8629rm -f conftest.err conftest.$ac_objext \
8630      conftest$ac_exeext conftest.$ac_ext
8631LIBS=$ac_check_lib_save_LIBS
8632fi
[4697]8633echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8634echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8635if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
[5276]8636  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
[4665]8637fi
8638
[5276]8639     if test x$FOUND_SDL_ttf != xyes ; then
[4697]8640        echo "------------------"
8641        echo "SDL_ttf library not found."
8642        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8643        echo "------------------"
8644        exit -1
8645     fi
[4665]8646
[4697]8647#-----------#
8648# SDL_Image #
8649#-----------#
8650# checking for SDL_image-headers
8651
8652for ac_header in SDL_image.h
[3790]8653do
8654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8655if eval "test \"\${$as_ac_Header+set}\" = set"; then
8656  echo "$as_me:$LINENO: checking for $ac_header" >&5
8657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8658if eval "test \"\${$as_ac_Header+set}\" = set"; then
8659  echo $ECHO_N "(cached) $ECHO_C" >&6
8660fi
8661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8663else
8664  # Is the header compilable?
8665echo "$as_me:$LINENO: checking $ac_header usability" >&5
8666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8667cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h.  */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h.  */
8673$ac_includes_default
8674#include <$ac_header>
8675_ACEOF
8676rm -f conftest.$ac_objext
8677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8678  (eval $ac_compile) 2>conftest.er1
8679  ac_status=$?
8680  grep -v '^ *+' conftest.er1 >conftest.err
8681  rm -f conftest.er1
8682  cat conftest.err >&5
8683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684  (exit $ac_status); } &&
[5588]8685         { ac_try='test -z "$ac_c_werror_flag"
8686                         || test ! -s conftest.err'
[3790]8687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688  (eval $ac_try) 2>&5
8689  ac_status=$?
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; } &&
8692         { ac_try='test -s conftest.$ac_objext'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; }; then
8698  ac_header_compiler=yes
8699else
8700  echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703ac_header_compiler=no
8704fi
8705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8707echo "${ECHO_T}$ac_header_compiler" >&6
8708
8709# Is the header present?
8710echo "$as_me:$LINENO: checking $ac_header presence" >&5
8711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8712cat >conftest.$ac_ext <<_ACEOF
8713/* confdefs.h.  */
8714_ACEOF
8715cat confdefs.h >>conftest.$ac_ext
8716cat >>conftest.$ac_ext <<_ACEOF
8717/* end confdefs.h.  */
8718#include <$ac_header>
8719_ACEOF
8720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8722  ac_status=$?
8723  grep -v '^ *+' conftest.er1 >conftest.err
8724  rm -f conftest.er1
8725  cat conftest.err >&5
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); } >/dev/null; then
8728  if test -s conftest.err; then
8729    ac_cpp_err=$ac_c_preproc_warn_flag
8730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8731  else
8732    ac_cpp_err=
8733  fi
8734else
8735  ac_cpp_err=yes
8736fi
8737if test -z "$ac_cpp_err"; then
8738  ac_header_preproc=yes
8739else
8740  echo "$as_me: failed program was:" >&5
8741sed 's/^/| /' conftest.$ac_ext >&5
8742
8743  ac_header_preproc=no
8744fi
8745rm -f conftest.err conftest.$ac_ext
8746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8747echo "${ECHO_T}$ac_header_preproc" >&6
8748
8749# So?  What about this header?
8750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8751  yes:no: )
8752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8756    ac_header_preproc=yes
8757    ;;
8758  no:yes:* )
8759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8761    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8762echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8763    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8765    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8766echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8769    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8771    (
8772      cat <<\_ASBOX
8773## ---------------------------------------------- ##
8774## Report this to orxonox-dev at mail.datacore.ch ##
8775## ---------------------------------------------- ##
8776_ASBOX
8777    ) |
8778      sed "s/^/$as_me: WARNING:     /" >&2
8779    ;;
8780esac
8781echo "$as_me:$LINENO: checking for $ac_header" >&5
8782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8783if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784  echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
8786  eval "$as_ac_Header=\$ac_header_preproc"
8787fi
8788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8790
8791fi
8792if test `eval echo '${'$as_ac_Header'}'` = yes; then
8793  cat >>confdefs.h <<_ACEOF
8794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8795_ACEOF
8796
8797else
8798
[4697]8799for ac_header in SDL/SDL_image.h
[3140]8800do
8801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8802if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803  echo "$as_me:$LINENO: checking for $ac_header" >&5
8804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8805if eval "test \"\${$as_ac_Header+set}\" = set"; then
8806  echo $ECHO_N "(cached) $ECHO_C" >&6
8807fi
8808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8810else
8811  # Is the header compilable?
8812echo "$as_me:$LINENO: checking $ac_header usability" >&5
8813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8814cat >conftest.$ac_ext <<_ACEOF
8815/* confdefs.h.  */
8816_ACEOF
8817cat confdefs.h >>conftest.$ac_ext
8818cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h.  */
8820$ac_includes_default
8821#include <$ac_header>
8822_ACEOF
8823rm -f conftest.$ac_objext
8824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825  (eval $ac_compile) 2>conftest.er1
8826  ac_status=$?
8827  grep -v '^ *+' conftest.er1 >conftest.err
8828  rm -f conftest.er1
8829  cat conftest.err >&5
8830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831  (exit $ac_status); } &&
[5588]8832         { ac_try='test -z "$ac_c_werror_flag"
8833                         || test ! -s conftest.err'
[3140]8834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835  (eval $ac_try) 2>&5
8836  ac_status=$?
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); }; } &&
8839         { ac_try='test -s conftest.$ac_objext'
8840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841  (eval $ac_try) 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; }; then
8845  ac_header_compiler=yes
8846else
8847  echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
[2989]8849
[3140]8850ac_header_compiler=no
8851fi
8852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8854echo "${ECHO_T}$ac_header_compiler" >&6
[2989]8855
[3140]8856# Is the header present?
8857echo "$as_me:$LINENO: checking $ac_header presence" >&5
8858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8859cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h.  */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h.  */
8865#include <$ac_header>
8866_ACEOF
8867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8869  ac_status=$?
8870  grep -v '^ *+' conftest.er1 >conftest.err
8871  rm -f conftest.er1
8872  cat conftest.err >&5
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); } >/dev/null; then
8875  if test -s conftest.err; then
8876    ac_cpp_err=$ac_c_preproc_warn_flag
8877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8878  else
8879    ac_cpp_err=
8880  fi
8881else
8882  ac_cpp_err=yes
8883fi
8884if test -z "$ac_cpp_err"; then
8885  ac_header_preproc=yes
8886else
8887  echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890  ac_header_preproc=no
8891fi
8892rm -f conftest.err conftest.$ac_ext
8893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8894echo "${ECHO_T}$ac_header_preproc" >&6
8895
8896# So?  What about this header?
8897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898  yes:no: )
8899    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8903    ac_header_preproc=yes
8904    ;;
8905  no:yes:* )
8906    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8908    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8909echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8910    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8912    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8913echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8914    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8916    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8918    (
8919      cat <<\_ASBOX
[3240]8920## ---------------------------------------------- ##
8921## Report this to orxonox-dev at mail.datacore.ch ##
8922## ---------------------------------------------- ##
[3140]8923_ASBOX
8924    ) |
8925      sed "s/^/$as_me: WARNING:     /" >&2
8926    ;;
8927esac
8928echo "$as_me:$LINENO: checking for $ac_header" >&5
8929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931  echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933  eval "$as_ac_Header=\$ac_header_preproc"
8934fi
8935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8937
8938fi
8939if test `eval echo '${'$as_ac_Header'}'` = yes; then
8940  cat >>confdefs.h <<_ACEOF
8941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8942_ACEOF
8943
8944else
[4697]8945  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8946echo "$as_me: error: SDL_image header not found." >&2;}
[4665]8947   { (exit 1); exit 1; }; }
8948fi
[4662]8949
[4665]8950done
8951
[4697]8952fi
8953
8954done
8955
8956# checking for SDL_image-lib
8957echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8958echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8959if test "${ac_cv_lib_SDL_image_main+set}" = set; then
[4665]8960  echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962  ac_check_lib_save_LIBS=$LIBS
[4697]8963LIBS="-lSDL_image  $LIBS"
[4665]8964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h.  */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h.  */
8970
8971
8972int
8973main ()
8974{
8975main ();
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982  (eval $ac_link) 2>conftest.er1
8983  ac_status=$?
8984  grep -v '^ *+' conftest.er1 >conftest.err
8985  rm -f conftest.er1
8986  cat conftest.err >&5
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); } &&
[5588]8989         { ac_try='test -z "$ac_c_werror_flag"
8990                         || test ! -s conftest.err'
[4665]8991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992  (eval $ac_try) 2>&5
8993  ac_status=$?
8994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995  (exit $ac_status); }; } &&
8996         { ac_try='test -s conftest$ac_exeext'
8997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998  (eval $ac_try) 2>&5
8999  ac_status=$?
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); }; }; then
[4697]9002  ac_cv_lib_SDL_image_main=yes
[4665]9003else
9004  echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
[4697]9007ac_cv_lib_SDL_image_main=no
[4665]9008fi
9009rm -f conftest.err conftest.$ac_objext \
9010      conftest$ac_exeext conftest.$ac_ext
9011LIBS=$ac_check_lib_save_LIBS
9012fi
[4697]9013echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
9014echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
9015if test $ac_cv_lib_SDL_image_main = yes; then
[5276]9016  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
[4665]9017fi
9018
[5276]9019   if test x$FOUND_SDL_image != xyes ; then
[4697]9020      echo "------------------"
9021      echo "SDL_image library not found."
[5506]9022      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
[4697]9023      echo "------------------"
9024      exit -1
9025   fi
[4665]9026
[5506]9027#---------#
9028# SDL_Net #
9029#---------#
9030# checking for SDL_net-headers
9031
9032for ac_header in SDL_net.h
9033do
9034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9035if eval "test \"\${$as_ac_Header+set}\" = set"; then
9036  echo "$as_me:$LINENO: checking for $ac_header" >&5
9037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9038if eval "test \"\${$as_ac_Header+set}\" = set"; then
9039  echo $ECHO_N "(cached) $ECHO_C" >&6
9040fi
9041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9043else
9044  # Is the header compilable?
9045echo "$as_me:$LINENO: checking $ac_header usability" >&5
9046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9047cat >conftest.$ac_ext <<_ACEOF
9048/* confdefs.h.  */
9049_ACEOF
9050cat confdefs.h >>conftest.$ac_ext
9051cat >>conftest.$ac_ext <<_ACEOF
9052/* end confdefs.h.  */
9053$ac_includes_default
9054#include <$ac_header>
9055_ACEOF
9056rm -f conftest.$ac_objext
9057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058  (eval $ac_compile) 2>conftest.er1
9059  ac_status=$?
9060  grep -v '^ *+' conftest.er1 >conftest.err
9061  rm -f conftest.er1
9062  cat conftest.err >&5
9063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064  (exit $ac_status); } &&
[5588]9065         { ac_try='test -z "$ac_c_werror_flag"
9066                         || test ! -s conftest.err'
[5506]9067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068  (eval $ac_try) 2>&5
9069  ac_status=$?
9070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071  (exit $ac_status); }; } &&
9072         { ac_try='test -s conftest.$ac_objext'
9073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074  (eval $ac_try) 2>&5
9075  ac_status=$?
9076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077  (exit $ac_status); }; }; then
9078  ac_header_compiler=yes
9079else
9080  echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083ac_header_compiler=no
9084fi
9085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9087echo "${ECHO_T}$ac_header_compiler" >&6
9088
9089# Is the header present?
9090echo "$as_me:$LINENO: checking $ac_header presence" >&5
9091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9092cat >conftest.$ac_ext <<_ACEOF
9093/* confdefs.h.  */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h.  */
9098#include <$ac_header>
9099_ACEOF
9100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9101  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9102  ac_status=$?
9103  grep -v '^ *+' conftest.er1 >conftest.err
9104  rm -f conftest.er1
9105  cat conftest.err >&5
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); } >/dev/null; then
9108  if test -s conftest.err; then
9109    ac_cpp_err=$ac_c_preproc_warn_flag
9110    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9111  else
9112    ac_cpp_err=
9113  fi
9114else
9115  ac_cpp_err=yes
9116fi
9117if test -z "$ac_cpp_err"; then
9118  ac_header_preproc=yes
9119else
9120  echo "$as_me: failed program was:" >&5
9121sed 's/^/| /' conftest.$ac_ext >&5
9122
9123  ac_header_preproc=no
9124fi
9125rm -f conftest.err conftest.$ac_ext
9126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9127echo "${ECHO_T}$ac_header_preproc" >&6
9128
9129# So?  What about this header?
9130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9131  yes:no: )
9132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9136    ac_header_preproc=yes
9137    ;;
9138  no:yes:* )
9139    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9141    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9142echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9143    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9145    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9146echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9149    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9151    (
9152      cat <<\_ASBOX
9153## ---------------------------------------------- ##
9154## Report this to orxonox-dev at mail.datacore.ch ##
9155## ---------------------------------------------- ##
9156_ASBOX
9157    ) |
9158      sed "s/^/$as_me: WARNING:     /" >&2
9159    ;;
9160esac
9161echo "$as_me:$LINENO: checking for $ac_header" >&5
9162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9163if eval "test \"\${$as_ac_Header+set}\" = set"; then
9164  echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166  eval "$as_ac_Header=\$ac_header_preproc"
9167fi
9168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9170
9171fi
9172if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173  cat >>confdefs.h <<_ACEOF
9174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175_ACEOF
9176
9177else
9178
9179for ac_header in SDL/SDL_net.h
9180do
9181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9182if eval "test \"\${$as_ac_Header+set}\" = set"; then
9183  echo "$as_me:$LINENO: checking for $ac_header" >&5
9184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9185if eval "test \"\${$as_ac_Header+set}\" = set"; then
9186  echo $ECHO_N "(cached) $ECHO_C" >&6
9187fi
9188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190else
9191  # Is the header compilable?
9192echo "$as_me:$LINENO: checking $ac_header usability" >&5
9193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9194cat >conftest.$ac_ext <<_ACEOF
9195/* confdefs.h.  */
9196_ACEOF
9197cat confdefs.h >>conftest.$ac_ext
9198cat >>conftest.$ac_ext <<_ACEOF
9199/* end confdefs.h.  */
9200$ac_includes_default
9201#include <$ac_header>
9202_ACEOF
9203rm -f conftest.$ac_objext
9204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205  (eval $ac_compile) 2>conftest.er1
9206  ac_status=$?
9207  grep -v '^ *+' conftest.er1 >conftest.err
9208  rm -f conftest.er1
9209  cat conftest.err >&5
9210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211  (exit $ac_status); } &&
[5588]9212         { ac_try='test -z "$ac_c_werror_flag"
9213                         || test ! -s conftest.err'
[5506]9214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215  (eval $ac_try) 2>&5
9216  ac_status=$?
9217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218  (exit $ac_status); }; } &&
9219         { ac_try='test -s conftest.$ac_objext'
9220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221  (eval $ac_try) 2>&5
9222  ac_status=$?
9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224  (exit $ac_status); }; }; then
9225  ac_header_compiler=yes
9226else
9227  echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230ac_header_compiler=no
9231fi
9232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234echo "${ECHO_T}$ac_header_compiler" >&6
9235
9236# Is the header present?
9237echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h.  */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h.  */
9245#include <$ac_header>
9246_ACEOF
9247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9249  ac_status=$?
9250  grep -v '^ *+' conftest.er1 >conftest.err
9251  rm -f conftest.er1
9252  cat conftest.err >&5
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); } >/dev/null; then
9255  if test -s conftest.err; then
9256    ac_cpp_err=$ac_c_preproc_warn_flag
9257    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9258  else
9259    ac_cpp_err=
9260  fi
9261else
9262  ac_cpp_err=yes
9263fi
9264if test -z "$ac_cpp_err"; then
9265  ac_header_preproc=yes
9266else
9267  echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270  ac_header_preproc=no
9271fi
9272rm -f conftest.err conftest.$ac_ext
9273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9274echo "${ECHO_T}$ac_header_preproc" >&6
9275
9276# So?  What about this header?
9277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9278  yes:no: )
9279    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9281    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9283    ac_header_preproc=yes
9284    ;;
9285  no:yes:* )
9286    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9288    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9289echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9290    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9292    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9293echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9294    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9296    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9298    (
9299      cat <<\_ASBOX
9300## ---------------------------------------------- ##
9301## Report this to orxonox-dev at mail.datacore.ch ##
9302## ---------------------------------------------- ##
9303_ASBOX
9304    ) |
9305      sed "s/^/$as_me: WARNING:     /" >&2
9306    ;;
9307esac
9308echo "$as_me:$LINENO: checking for $ac_header" >&5
9309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9310if eval "test \"\${$as_ac_Header+set}\" = set"; then
9311  echo $ECHO_N "(cached) $ECHO_C" >&6
9312else
9313  eval "$as_ac_Header=\$ac_header_preproc"
9314fi
9315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9317
9318fi
9319if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320  cat >>confdefs.h <<_ACEOF
9321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322_ACEOF
9323
9324else
9325  { { echo "$as_me:$LINENO: error: SDL_net header not found." >&5
9326echo "$as_me: error: SDL_net header not found." >&2;}
9327   { (exit 1); exit 1; }; }
9328fi
9329
9330done
9331
9332fi
9333
9334done
9335
9336# checking for SDL_net-lib
9337echo "$as_me:$LINENO: checking for main in -lSDL_net" >&5
9338echo $ECHO_N "checking for main in -lSDL_net... $ECHO_C" >&6
9339if test "${ac_cv_lib_SDL_net_main+set}" = set; then
9340  echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342  ac_check_lib_save_LIBS=$LIBS
9343LIBS="-lSDL_net  $LIBS"
9344cat >conftest.$ac_ext <<_ACEOF
9345/* confdefs.h.  */
9346_ACEOF
9347cat confdefs.h >>conftest.$ac_ext
9348cat >>conftest.$ac_ext <<_ACEOF
9349/* end confdefs.h.  */
9350
9351
9352int
9353main ()
9354{
9355main ();
9356  ;
9357  return 0;
9358}
9359_ACEOF
9360rm -f conftest.$ac_objext conftest$ac_exeext
9361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9362  (eval $ac_link) 2>conftest.er1
9363  ac_status=$?
9364  grep -v '^ *+' conftest.er1 >conftest.err
9365  rm -f conftest.er1
9366  cat conftest.err >&5
9367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368  (exit $ac_status); } &&
[5588]9369         { ac_try='test -z "$ac_c_werror_flag"
9370                         || test ! -s conftest.err'
[5506]9371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372  (eval $ac_try) 2>&5
9373  ac_status=$?
9374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375  (exit $ac_status); }; } &&
9376         { ac_try='test -s conftest$ac_exeext'
9377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378  (eval $ac_try) 2>&5
9379  ac_status=$?
9380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381  (exit $ac_status); }; }; then
9382  ac_cv_lib_SDL_net_main=yes
9383else
9384  echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387ac_cv_lib_SDL_net_main=no
9388fi
9389rm -f conftest.err conftest.$ac_objext \
9390      conftest$ac_exeext conftest.$ac_ext
9391LIBS=$ac_check_lib_save_LIBS
9392fi
9393echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_main" >&5
9394echo "${ECHO_T}$ac_cv_lib_SDL_net_main" >&6
9395if test $ac_cv_lib_SDL_net_main = yes; then
9396  FOUND_SDL_net=yes; LIBS="$LIBS -lSDL_net"
9397fi
9398
9399   if test x$FOUND_SDL_net != xyes ; then
9400      echo "------------------"
9401      echo "SDL_net library not found."
9402      echo "please install the SDL_net library, which can be found at http://www.libsdl.org/projects/SDL_net/"
9403      echo "------------------"
9404      exit -1
9405   fi
9406
9407
[4697]9408#-----#
9409# ogg #
9410#-----#
[4825]9411# checking for ogg-headers
[4697]9412
[4825]9413for ac_header in ogg/ogg.h
9414do
9415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9416if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417  echo "$as_me:$LINENO: checking for $ac_header" >&5
9418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9419if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420  echo $ECHO_N "(cached) $ECHO_C" >&6
9421fi
9422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9424else
9425  # Is the header compilable?
9426echo "$as_me:$LINENO: checking $ac_header usability" >&5
9427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9428cat >conftest.$ac_ext <<_ACEOF
9429/* confdefs.h.  */
9430_ACEOF
9431cat confdefs.h >>conftest.$ac_ext
9432cat >>conftest.$ac_ext <<_ACEOF
9433/* end confdefs.h.  */
9434$ac_includes_default
9435#include <$ac_header>
9436_ACEOF
9437rm -f conftest.$ac_objext
9438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9439  (eval $ac_compile) 2>conftest.er1
9440  ac_status=$?
9441  grep -v '^ *+' conftest.er1 >conftest.err
9442  rm -f conftest.er1
9443  cat conftest.err >&5
9444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445  (exit $ac_status); } &&
[5588]9446         { ac_try='test -z "$ac_c_werror_flag"
9447                         || test ! -s conftest.err'
[4825]9448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449  (eval $ac_try) 2>&5
9450  ac_status=$?
9451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452  (exit $ac_status); }; } &&
9453         { ac_try='test -s conftest.$ac_objext'
9454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455  (eval $ac_try) 2>&5
9456  ac_status=$?
9457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458  (exit $ac_status); }; }; then
9459  ac_header_compiler=yes
9460else
9461  echo "$as_me: failed program was:" >&5
9462sed 's/^/| /' conftest.$ac_ext >&5
9463
9464ac_header_compiler=no
9465fi
9466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9468echo "${ECHO_T}$ac_header_compiler" >&6
9469
9470# Is the header present?
9471echo "$as_me:$LINENO: checking $ac_header presence" >&5
9472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9473cat >conftest.$ac_ext <<_ACEOF
9474/* confdefs.h.  */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h.  */
9479#include <$ac_header>
9480_ACEOF
9481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9483  ac_status=$?
9484  grep -v '^ *+' conftest.er1 >conftest.err
9485  rm -f conftest.er1
9486  cat conftest.err >&5
9487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488  (exit $ac_status); } >/dev/null; then
9489  if test -s conftest.err; then
9490    ac_cpp_err=$ac_c_preproc_warn_flag
9491    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9492  else
9493    ac_cpp_err=
9494  fi
9495else
9496  ac_cpp_err=yes
9497fi
9498if test -z "$ac_cpp_err"; then
9499  ac_header_preproc=yes
9500else
9501  echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504  ac_header_preproc=no
9505fi
9506rm -f conftest.err conftest.$ac_ext
9507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9508echo "${ECHO_T}$ac_header_preproc" >&6
9509
9510# So?  What about this header?
9511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9512  yes:no: )
9513    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9515    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9517    ac_header_preproc=yes
9518    ;;
9519  no:yes:* )
9520    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9522    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9523echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9524    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9526    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9527echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9530    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9532    (
9533      cat <<\_ASBOX
9534## ---------------------------------------------- ##
9535## Report this to orxonox-dev at mail.datacore.ch ##
9536## ---------------------------------------------- ##
9537_ASBOX
9538    ) |
9539      sed "s/^/$as_me: WARNING:     /" >&2
9540    ;;
9541esac
9542echo "$as_me:$LINENO: checking for $ac_header" >&5
9543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9544if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545  echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547  eval "$as_ac_Header=\$ac_header_preproc"
9548fi
9549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9551
9552fi
9553if test `eval echo '${'$as_ac_Header'}'` = yes; then
9554  cat >>confdefs.h <<_ACEOF
9555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9556_ACEOF
9557
9558else
9559  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
9560echo "$as_me: error: cannot find ogg header." >&2;}
9561   { (exit 1); exit 1; }; }
9562fi
9563
9564done
9565
9566# checking for ogg-lib
9567  echo "$as_me:$LINENO: checking for main in -logg" >&5
9568echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
9569if test "${ac_cv_lib_ogg_main+set}" = set; then
9570  echo $ECHO_N "(cached) $ECHO_C" >&6
9571else
9572  ac_check_lib_save_LIBS=$LIBS
9573LIBS="-logg  $LIBS"
9574cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h.  */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h.  */
9580
9581
9582int
9583main ()
9584{
9585main ();
9586  ;
9587  return 0;
9588}
9589_ACEOF
9590rm -f conftest.$ac_objext conftest$ac_exeext
9591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592  (eval $ac_link) 2>conftest.er1
9593  ac_status=$?
9594  grep -v '^ *+' conftest.er1 >conftest.err
9595  rm -f conftest.er1
9596  cat conftest.err >&5
9597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598  (exit $ac_status); } &&
[5588]9599         { ac_try='test -z "$ac_c_werror_flag"
9600                         || test ! -s conftest.err'
[4825]9601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602  (eval $ac_try) 2>&5
9603  ac_status=$?
9604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605  (exit $ac_status); }; } &&
9606         { ac_try='test -s conftest$ac_exeext'
9607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608  (eval $ac_try) 2>&5
9609  ac_status=$?
9610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611  (exit $ac_status); }; }; then
9612  ac_cv_lib_ogg_main=yes
9613else
9614  echo "$as_me: failed program was:" >&5
9615sed 's/^/| /' conftest.$ac_ext >&5
9616
9617ac_cv_lib_ogg_main=no
9618fi
9619rm -f conftest.err conftest.$ac_objext \
9620      conftest$ac_exeext conftest.$ac_ext
9621LIBS=$ac_check_lib_save_LIBS
9622fi
9623echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
9624echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
9625if test $ac_cv_lib_ogg_main = yes; then
[5276]9626  FOUND_ogg=yes; LIBS="$LIBS -logg"
[4825]9627fi
9628
[5276]9629     if test x$FOUND_ogg != xyes ; then
[4825]9630        echo "------------------"
9631        echo "ogg library not found."
9632        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9633        echo "------------------"
9634        exit -1
9635     fi
9636
[4665]9637#--------#
9638# vorbis #
9639#--------#
[4825]9640# checking for vorbis-lib
9641  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
9642echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
9643if test "${ac_cv_lib_vorbis_main+set}" = set; then
9644  echo $ECHO_N "(cached) $ECHO_C" >&6
9645else
9646  ac_check_lib_save_LIBS=$LIBS
9647LIBS="-lvorbis  $LIBS"
9648cat >conftest.$ac_ext <<_ACEOF
9649/* confdefs.h.  */
9650_ACEOF
9651cat confdefs.h >>conftest.$ac_ext
9652cat >>conftest.$ac_ext <<_ACEOF
9653/* end confdefs.h.  */
[4665]9654
[4825]9655
9656int
9657main ()
9658{
9659main ();
9660  ;
9661  return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext conftest$ac_exeext
9665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666  (eval $ac_link) 2>conftest.er1
9667  ac_status=$?
9668  grep -v '^ *+' conftest.er1 >conftest.err
9669  rm -f conftest.er1
9670  cat conftest.err >&5
9671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672  (exit $ac_status); } &&
[5588]9673         { ac_try='test -z "$ac_c_werror_flag"
9674                         || test ! -s conftest.err'
[4825]9675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676  (eval $ac_try) 2>&5
9677  ac_status=$?
9678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679  (exit $ac_status); }; } &&
9680         { ac_try='test -s conftest$ac_exeext'
9681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682  (eval $ac_try) 2>&5
9683  ac_status=$?
9684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685  (exit $ac_status); }; }; then
9686  ac_cv_lib_vorbis_main=yes
9687else
9688  echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691ac_cv_lib_vorbis_main=no
9692fi
9693rm -f conftest.err conftest.$ac_objext \
9694      conftest$ac_exeext conftest.$ac_ext
9695LIBS=$ac_check_lib_save_LIBS
9696fi
9697echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
9698echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
9699if test $ac_cv_lib_vorbis_main = yes; then
[5276]9700  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
[4825]9701fi
9702
[5276]9703     if test x$FOUND_vorbis != xyes ; then
[4825]9704        echo "------------------"
9705        echo "vorbis library not found."
9706        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9707        echo "------------------"
9708        exit -1
9709     fi
9710
[4665]9711#------------#
9712# vorbisfile #
9713#------------#
[4825]9714# checking for vorbis-headers
[4665]9715
[4825]9716for ac_header in vorbis/vorbisfile.h
9717do
9718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9719if eval "test \"\${$as_ac_Header+set}\" = set"; then
9720  echo "$as_me:$LINENO: checking for $ac_header" >&5
9721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9722if eval "test \"\${$as_ac_Header+set}\" = set"; then
9723  echo $ECHO_N "(cached) $ECHO_C" >&6
9724fi
9725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9727else
9728  # Is the header compilable?
9729echo "$as_me:$LINENO: checking $ac_header usability" >&5
9730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9731cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h.  */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h.  */
9737$ac_includes_default
9738#include <$ac_header>
9739_ACEOF
9740rm -f conftest.$ac_objext
9741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9742  (eval $ac_compile) 2>conftest.er1
9743  ac_status=$?
9744  grep -v '^ *+' conftest.er1 >conftest.err
9745  rm -f conftest.er1
9746  cat conftest.err >&5
9747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748  (exit $ac_status); } &&
[5588]9749         { ac_try='test -z "$ac_c_werror_flag"
9750                         || test ! -s conftest.err'
[4825]9751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752  (eval $ac_try) 2>&5
9753  ac_status=$?
9754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755  (exit $ac_status); }; } &&
9756         { ac_try='test -s conftest.$ac_objext'
9757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758  (eval $ac_try) 2>&5
9759  ac_status=$?
9760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); }; }; then
9762  ac_header_compiler=yes
9763else
9764  echo "$as_me: failed program was:" >&5
9765sed 's/^/| /' conftest.$ac_ext >&5
9766
9767ac_header_compiler=no
9768fi
9769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9771echo "${ECHO_T}$ac_header_compiler" >&6
9772
9773# Is the header present?
9774echo "$as_me:$LINENO: checking $ac_header presence" >&5
9775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9776cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h.  */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h.  */
9782#include <$ac_header>
9783_ACEOF
9784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9786  ac_status=$?
9787  grep -v '^ *+' conftest.er1 >conftest.err
9788  rm -f conftest.er1
9789  cat conftest.err >&5
9790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791  (exit $ac_status); } >/dev/null; then
9792  if test -s conftest.err; then
9793    ac_cpp_err=$ac_c_preproc_warn_flag
9794    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9795  else
9796    ac_cpp_err=
9797  fi
9798else
9799  ac_cpp_err=yes
9800fi
9801if test -z "$ac_cpp_err"; then
9802  ac_header_preproc=yes
9803else
9804  echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807  ac_header_preproc=no
9808fi
9809rm -f conftest.err conftest.$ac_ext
9810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9811echo "${ECHO_T}$ac_header_preproc" >&6
9812
9813# So?  What about this header?
9814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9815  yes:no: )
9816    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9818    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9820    ac_header_preproc=yes
9821    ;;
9822  no:yes:* )
9823    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9825    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9826echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9827    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9829    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9830echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9831    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9833    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9835    (
9836      cat <<\_ASBOX
9837## ---------------------------------------------- ##
9838## Report this to orxonox-dev at mail.datacore.ch ##
9839## ---------------------------------------------- ##
9840_ASBOX
9841    ) |
9842      sed "s/^/$as_me: WARNING:     /" >&2
9843    ;;
9844esac
9845echo "$as_me:$LINENO: checking for $ac_header" >&5
9846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9847if eval "test \"\${$as_ac_Header+set}\" = set"; then
9848  echo $ECHO_N "(cached) $ECHO_C" >&6
9849else
9850  eval "$as_ac_Header=\$ac_header_preproc"
9851fi
9852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9854
9855fi
9856if test `eval echo '${'$as_ac_Header'}'` = yes; then
9857  cat >>confdefs.h <<_ACEOF
9858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859_ACEOF
9860
9861else
9862  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
9863echo "$as_me: error: cannot find vorbisfile header." >&2;}
9864   { (exit 1); exit 1; }; }
9865fi
9866
9867done
9868
9869# checking for vorbisfile-lib
9870  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
9871echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
9872if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
9873  echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875  ac_check_lib_save_LIBS=$LIBS
9876LIBS="-lvorbisfile  $LIBS"
9877cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h.  */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h.  */
9883
9884
9885int
9886main ()
9887{
9888main ();
9889  ;
9890  return 0;
9891}
9892_ACEOF
9893rm -f conftest.$ac_objext conftest$ac_exeext
9894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9895  (eval $ac_link) 2>conftest.er1
9896  ac_status=$?
9897  grep -v '^ *+' conftest.er1 >conftest.err
9898  rm -f conftest.er1
9899  cat conftest.err >&5
9900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901  (exit $ac_status); } &&
[5588]9902         { ac_try='test -z "$ac_c_werror_flag"
9903                         || test ! -s conftest.err'
[4825]9904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905  (eval $ac_try) 2>&5
9906  ac_status=$?
9907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908  (exit $ac_status); }; } &&
9909         { ac_try='test -s conftest$ac_exeext'
9910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911  (eval $ac_try) 2>&5
9912  ac_status=$?
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); }; }; then
9915  ac_cv_lib_vorbisfile_main=yes
9916else
9917  echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
9920ac_cv_lib_vorbisfile_main=no
9921fi
9922rm -f conftest.err conftest.$ac_objext \
9923      conftest$ac_exeext conftest.$ac_ext
9924LIBS=$ac_check_lib_save_LIBS
9925fi
9926echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
9927echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
9928if test $ac_cv_lib_vorbisfile_main = yes; then
[5276]9929  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
[4825]9930fi
9931
[5276]9932     if test x$FOUND_vorbisfile != xyes ; then
[4825]9933        echo "------------------"
9934        echo "vorbisfile library not found."
9935        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
9936        echo "------------------"
9937        exit -1
9938     fi
9939
[3101]9940
[3424]9941#---------#
9942# libcURL #
9943#---------#
9944if test x$def_curl = xyes; then
[3423]9945
9946for ac_header in curl/curl.h
9947do
9948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9949if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950  echo "$as_me:$LINENO: checking for $ac_header" >&5
9951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9952if eval "test \"\${$as_ac_Header+set}\" = set"; then
9953  echo $ECHO_N "(cached) $ECHO_C" >&6
9954fi
9955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957else
9958  # Is the header compilable?
9959echo "$as_me:$LINENO: checking $ac_header usability" >&5
9960echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h.  */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h.  */
9967$ac_includes_default
9968#include <$ac_header>
9969_ACEOF
9970rm -f conftest.$ac_objext
9971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972  (eval $ac_compile) 2>conftest.er1
9973  ac_status=$?
9974  grep -v '^ *+' conftest.er1 >conftest.err
9975  rm -f conftest.er1
9976  cat conftest.err >&5
9977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978  (exit $ac_status); } &&
[5588]9979         { ac_try='test -z "$ac_c_werror_flag"
9980                         || test ! -s conftest.err'
[3423]9981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982  (eval $ac_try) 2>&5
9983  ac_status=$?
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); }; } &&
9986         { ac_try='test -s conftest.$ac_objext'
9987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988  (eval $ac_try) 2>&5
9989  ac_status=$?
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); }; }; then
9992  ac_header_compiler=yes
9993else
9994  echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997ac_header_compiler=no
9998fi
9999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10001echo "${ECHO_T}$ac_header_compiler" >&6
10002
10003# Is the header present?
10004echo "$as_me:$LINENO: checking $ac_header presence" >&5
10005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10006cat >conftest.$ac_ext <<_ACEOF
10007/* confdefs.h.  */
10008_ACEOF
10009cat confdefs.h >>conftest.$ac_ext
10010cat >>conftest.$ac_ext <<_ACEOF
10011/* end confdefs.h.  */
10012#include <$ac_header>
10013_ACEOF
10014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10016  ac_status=$?
10017  grep -v '^ *+' conftest.er1 >conftest.err
10018  rm -f conftest.er1
10019  cat conftest.err >&5
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } >/dev/null; then
10022  if test -s conftest.err; then
10023    ac_cpp_err=$ac_c_preproc_warn_flag
10024    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10025  else
10026    ac_cpp_err=
10027  fi
10028else
10029  ac_cpp_err=yes
10030fi
10031if test -z "$ac_cpp_err"; then
10032  ac_header_preproc=yes
10033else
10034  echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037  ac_header_preproc=no
10038fi
10039rm -f conftest.err conftest.$ac_ext
10040echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041echo "${ECHO_T}$ac_header_preproc" >&6
10042
10043# So?  What about this header?
10044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10045  yes:no: )
10046    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10050    ac_header_preproc=yes
10051    ;;
10052  no:yes:* )
10053    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10055    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10056echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10057    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10059    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10060echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10061    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10063    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10065    (
10066      cat <<\_ASBOX
10067## ---------------------------------------------- ##
10068## Report this to orxonox-dev at mail.datacore.ch ##
10069## ---------------------------------------------- ##
10070_ASBOX
10071    ) |
10072      sed "s/^/$as_me: WARNING:     /" >&2
10073    ;;
10074esac
10075echo "$as_me:$LINENO: checking for $ac_header" >&5
10076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10077if eval "test \"\${$as_ac_Header+set}\" = set"; then
10078  echo $ECHO_N "(cached) $ECHO_C" >&6
10079else
10080  eval "$as_ac_Header=\$ac_header_preproc"
10081fi
10082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10084
10085fi
10086if test `eval echo '${'$as_ac_Header'}'` = yes; then
10087  cat >>confdefs.h <<_ACEOF
10088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10089_ACEOF
[5276]10090 curlHeader=yes
[3423]10091else
[5276]10092  curlHeader=no
[3423]10093fi
10094
10095done
10096
10097 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
10098echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
10099if test "${ac_cv_lib_curl_main+set}" = set; then
10100  echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102  ac_check_lib_save_LIBS=$LIBS
10103LIBS="-lcurl  $LIBS"
10104cat >conftest.$ac_ext <<_ACEOF
10105/* confdefs.h.  */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h.  */
10110
10111
10112int
10113main ()
10114{
10115main ();
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120rm -f conftest.$ac_objext conftest$ac_exeext
10121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122  (eval $ac_link) 2>conftest.er1
10123  ac_status=$?
10124  grep -v '^ *+' conftest.er1 >conftest.err
10125  rm -f conftest.er1
10126  cat conftest.err >&5
10127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128  (exit $ac_status); } &&
[5588]10129         { ac_try='test -z "$ac_c_werror_flag"
10130                         || test ! -s conftest.err'
[3423]10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; } &&
10136         { ac_try='test -s conftest$ac_exeext'
10137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138  (eval $ac_try) 2>&5
10139  ac_status=$?
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); }; }; then
10142  ac_cv_lib_curl_main=yes
10143else
10144  echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147ac_cv_lib_curl_main=no
10148fi
10149rm -f conftest.err conftest.$ac_objext \
10150      conftest$ac_exeext conftest.$ac_ext
10151LIBS=$ac_check_lib_save_LIBS
10152fi
10153echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
10154echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
10155if test $ac_cv_lib_curl_main = yes; then
10156  FOUND_curl=yes
10157fi
10158
10159 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
10160  have_curl=yes
10161  CURL_LIBS=`curl-config --libs`
10162  CURLCFLAGS=`curl-config --cflags`
10163
10164cat >>confdefs.h <<_ACEOF
10165#define HAVE_CURL 1
10166_ACEOF
10167
10168 else
10169  have_curl=no
10170 fi
10171
10172fi
10173
10174
10175
10176
10177if test x$have_curl = xyes; then
10178  HAVE_CURL_TRUE=
10179  HAVE_CURL_FALSE='#'
10180else
10181  HAVE_CURL_TRUE='#'
10182  HAVE_CURL_FALSE=
10183fi
10184
10185
[3863]10186#--------#
10187# efence #
10188#--------#
10189if test x$def_efence = xyes ; then
10190  echo "$as_me:$LINENO: checking for main in -lefence" >&5
10191echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
10192if test "${ac_cv_lib_efence_main+set}" = set; then
10193  echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195  ac_check_lib_save_LIBS=$LIBS
10196LIBS="-lefence  $LIBS"
10197cat >conftest.$ac_ext <<_ACEOF
10198/* confdefs.h.  */
10199_ACEOF
10200cat confdefs.h >>conftest.$ac_ext
10201cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h.  */
10203
10204
10205int
10206main ()
10207{
10208main ();
10209  ;
10210  return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext conftest$ac_exeext
10214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10215  (eval $ac_link) 2>conftest.er1
10216  ac_status=$?
10217  grep -v '^ *+' conftest.er1 >conftest.err
10218  rm -f conftest.er1
10219  cat conftest.err >&5
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); } &&
[5588]10222         { ac_try='test -z "$ac_c_werror_flag"
10223                         || test ! -s conftest.err'
[3863]10224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225  (eval $ac_try) 2>&5
10226  ac_status=$?
10227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228  (exit $ac_status); }; } &&
10229         { ac_try='test -s conftest$ac_exeext'
10230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231  (eval $ac_try) 2>&5
10232  ac_status=$?
10233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234  (exit $ac_status); }; }; then
10235  ac_cv_lib_efence_main=yes
10236else
10237  echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240ac_cv_lib_efence_main=no
10241fi
10242rm -f conftest.err conftest.$ac_objext \
10243      conftest$ac_exeext conftest.$ac_ext
10244LIBS=$ac_check_lib_save_LIBS
10245fi
10246echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
10247echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
10248if test $ac_cv_lib_efence_main = yes; then
[5276]10249  FOUND_efence=yes; LIBS="$LIBS -lefence"
[3863]10250fi
10251
[5276]10252   if test x$FOUND_efence != xyes ; then
10253     echo "efence was requested, but is not installed!! going on"
[3863]10254   fi
10255
10256fi
10257
[5276]10258#-----#
10259# GTK #
10260#-----#
10261if test x$def_gtk = xyes; then
10262#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
10263        echo "$as_me:$LINENO: checking for gtk2.0" >&5
10264echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
10265        if `$PKG_CONFIG --exists gtk+-2.0`; then
10266                echo "yes"
10267                have_gtk2=yes
10268                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
10269                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
10270
10271cat >>confdefs.h <<_ACEOF
10272#define HAVE_GTK2 1
10273_ACEOF
10274
10275                if test $DEBUG -ge 3; then
10276                 echo "cflags: $GTK2_CFLAGS"
10277                 echo "libs: $GTK2_LIBS"
10278                fi
10279        else
10280                echo "no"
10281        fi
10282
10283fi
10284
10285
10286
10287
10288if test x$have_gtk2 = xyes; then
10289  HAVE_GTK2_TRUE=
10290  HAVE_GTK2_FALSE='#'
10291else
10292  HAVE_GTK2_TRUE='#'
10293  HAVE_GTK2_FALSE=
10294fi
10295
10296
10297
[1956]10298# FIXME: Replace `main' with a function in `-lm':
10299
10300echo "$as_me:$LINENO: checking for main in -lm" >&5
10301echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10302if test "${ac_cv_lib_m_main+set}" = set; then
10303  echo $ECHO_N "(cached) $ECHO_C" >&6
10304else
10305  ac_check_lib_save_LIBS=$LIBS
10306LIBS="-lm  $LIBS"
10307cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h.  */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h.  */
10313
10314
10315int
10316main ()
10317{
10318main ();
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323rm -f conftest.$ac_objext conftest$ac_exeext
10324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325  (eval $ac_link) 2>conftest.er1
10326  ac_status=$?
10327  grep -v '^ *+' conftest.er1 >conftest.err
10328  rm -f conftest.er1
10329  cat conftest.err >&5
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); } &&
[5588]10332         { ac_try='test -z "$ac_c_werror_flag"
10333                         || test ! -s conftest.err'
[1956]10334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335  (eval $ac_try) 2>&5
10336  ac_status=$?
10337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338  (exit $ac_status); }; } &&
10339         { ac_try='test -s conftest$ac_exeext'
10340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341  (eval $ac_try) 2>&5
10342  ac_status=$?
10343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344  (exit $ac_status); }; }; then
10345  ac_cv_lib_m_main=yes
10346else
10347  echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350ac_cv_lib_m_main=no
10351fi
10352rm -f conftest.err conftest.$ac_objext \
10353      conftest$ac_exeext conftest.$ac_ext
10354LIBS=$ac_check_lib_save_LIBS
10355fi
10356echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10357echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10358if test $ac_cv_lib_m_main = yes; then
10359  cat >>confdefs.h <<_ACEOF
10360#define HAVE_LIBM 1
10361_ACEOF
10362
10363  LIBS="-lm $LIBS"
10364
10365fi
10366
10367
[2018]10368
[1956]10369# Checks for header files.
10370echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10371echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10372if test "${ac_cv_header_stdc+set}" = set; then
10373  echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375  cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h.  */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h.  */
10381#include <stdlib.h>
10382#include <stdarg.h>
10383#include <string.h>
10384#include <float.h>
10385
10386int
10387main ()
10388{
10389
10390  ;
10391  return 0;
10392}
10393_ACEOF
10394rm -f conftest.$ac_objext
10395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10396  (eval $ac_compile) 2>conftest.er1
10397  ac_status=$?
10398  grep -v '^ *+' conftest.er1 >conftest.err
10399  rm -f conftest.er1
10400  cat conftest.err >&5
10401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402  (exit $ac_status); } &&
[5588]10403         { ac_try='test -z "$ac_c_werror_flag"
10404                         || test ! -s conftest.err'
[1956]10405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406  (eval $ac_try) 2>&5
10407  ac_status=$?
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); }; } &&
10410         { ac_try='test -s conftest.$ac_objext'
10411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412  (eval $ac_try) 2>&5
10413  ac_status=$?
10414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415  (exit $ac_status); }; }; then
10416  ac_cv_header_stdc=yes
10417else
10418  echo "$as_me: failed program was:" >&5
10419sed 's/^/| /' conftest.$ac_ext >&5
10420
10421ac_cv_header_stdc=no
10422fi
10423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10424
10425if test $ac_cv_header_stdc = yes; then
10426  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10427  cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h.  */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h.  */
10433#include <string.h>
10434
10435_ACEOF
10436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10437  $EGREP "memchr" >/dev/null 2>&1; then
10438  :
10439else
10440  ac_cv_header_stdc=no
10441fi
10442rm -f conftest*
10443
10444fi
10445
10446if test $ac_cv_header_stdc = yes; then
10447  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10448  cat >conftest.$ac_ext <<_ACEOF
10449/* confdefs.h.  */
10450_ACEOF
10451cat confdefs.h >>conftest.$ac_ext
10452cat >>conftest.$ac_ext <<_ACEOF
10453/* end confdefs.h.  */
10454#include <stdlib.h>
10455
10456_ACEOF
10457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10458  $EGREP "free" >/dev/null 2>&1; then
10459  :
10460else
10461  ac_cv_header_stdc=no
10462fi
10463rm -f conftest*
10464
10465fi
10466
10467if test $ac_cv_header_stdc = yes; then
10468  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10469  if test "$cross_compiling" = yes; then
10470  :
10471else
10472  cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h.  */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h.  */
10478#include <ctype.h>
10479#if ((' ' & 0x0FF) == 0x020)
10480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10482#else
10483# define ISLOWER(c) \
10484                   (('a' <= (c) && (c) <= 'i') \
10485                     || ('j' <= (c) && (c) <= 'r') \
10486                     || ('s' <= (c) && (c) <= 'z'))
10487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10488#endif
10489
10490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10491int
10492main ()
10493{
10494  int i;
10495  for (i = 0; i < 256; i++)
10496    if (XOR (islower (i), ISLOWER (i))
10497        || toupper (i) != TOUPPER (i))
10498      exit(2);
10499  exit (0);
10500}
10501_ACEOF
10502rm -f conftest$ac_exeext
10503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504  (eval $ac_link) 2>&5
10505  ac_status=$?
10506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509  (eval $ac_try) 2>&5
10510  ac_status=$?
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); }; }; then
10513  :
10514else
10515  echo "$as_me: program exited with status $ac_status" >&5
10516echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5
10518
10519( exit $ac_status )
10520ac_cv_header_stdc=no
10521fi
10522rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10523fi
10524fi
10525fi
10526echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10527echo "${ECHO_T}$ac_cv_header_stdc" >&6
10528if test $ac_cv_header_stdc = yes; then
10529
10530cat >>confdefs.h <<\_ACEOF
10531#define STDC_HEADERS 1
10532_ACEOF
10533
10534fi
10535
10536
10537
10538for ac_header in stdlib.h string.h
10539do
10540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10541if eval "test \"\${$as_ac_Header+set}\" = set"; then
10542  echo "$as_me:$LINENO: checking for $ac_header" >&5
10543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10544if eval "test \"\${$as_ac_Header+set}\" = set"; then
10545  echo $ECHO_N "(cached) $ECHO_C" >&6
10546fi
10547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10549else
10550  # Is the header compilable?
10551echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10553cat >conftest.$ac_ext <<_ACEOF
10554/* confdefs.h.  */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h.  */
10559$ac_includes_default
10560#include <$ac_header>
10561_ACEOF
10562rm -f conftest.$ac_objext
10563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10564  (eval $ac_compile) 2>conftest.er1
10565  ac_status=$?
10566  grep -v '^ *+' conftest.er1 >conftest.err
10567  rm -f conftest.er1
10568  cat conftest.err >&5
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); } &&
[5588]10571         { ac_try='test -z "$ac_c_werror_flag"
10572                         || test ! -s conftest.err'
[1956]10573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574  (eval $ac_try) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); }; } &&
10578         { ac_try='test -s conftest.$ac_objext'
10579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580  (eval $ac_try) 2>&5
10581  ac_status=$?
10582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); }; }; then
10584  ac_header_compiler=yes
10585else
10586  echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589ac_header_compiler=no
10590fi
10591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10593echo "${ECHO_T}$ac_header_compiler" >&6
10594
10595# Is the header present?
10596echo "$as_me:$LINENO: checking $ac_header presence" >&5
10597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10598cat >conftest.$ac_ext <<_ACEOF
10599/* confdefs.h.  */
10600_ACEOF
10601cat confdefs.h >>conftest.$ac_ext
10602cat >>conftest.$ac_ext <<_ACEOF
10603/* end confdefs.h.  */
10604#include <$ac_header>
10605_ACEOF
10606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10607  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10608  ac_status=$?
10609  grep -v '^ *+' conftest.er1 >conftest.err
10610  rm -f conftest.er1
10611  cat conftest.err >&5
10612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613  (exit $ac_status); } >/dev/null; then
10614  if test -s conftest.err; then
10615    ac_cpp_err=$ac_c_preproc_warn_flag
10616    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10617  else
10618    ac_cpp_err=
10619  fi
10620else
10621  ac_cpp_err=yes
10622fi
10623if test -z "$ac_cpp_err"; then
10624  ac_header_preproc=yes
10625else
10626  echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
10629  ac_header_preproc=no
10630fi
10631rm -f conftest.err conftest.$ac_ext
10632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633echo "${ECHO_T}$ac_header_preproc" >&6
10634
10635# So?  What about this header?
10636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10637  yes:no: )
10638    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10642    ac_header_preproc=yes
10643    ;;
10644  no:yes:* )
10645    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10647    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10648echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10649    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10651    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10652echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10655    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657    (
10658      cat <<\_ASBOX
[3240]10659## ---------------------------------------------- ##
10660## Report this to orxonox-dev at mail.datacore.ch ##
10661## ---------------------------------------------- ##
[1956]10662_ASBOX
10663    ) |
10664      sed "s/^/$as_me: WARNING:     /" >&2
10665    ;;
10666esac
10667echo "$as_me:$LINENO: checking for $ac_header" >&5
10668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10669if eval "test \"\${$as_ac_Header+set}\" = set"; then
10670  echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672  eval "$as_ac_Header=\$ac_header_preproc"
10673fi
10674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10676
10677fi
10678if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679  cat >>confdefs.h <<_ACEOF
10680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10681_ACEOF
10682
10683fi
10684
10685done
10686
10687
10688# Checks for typedefs, structures, and compiler characteristics.
10689echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10690echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
10691if test "${ac_cv_header_stdbool_h+set}" = set; then
10692  echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694  cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h.  */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h.  */
10700
10701#include <stdbool.h>
10702#ifndef bool
10703# error bool is not defined
10704#endif
10705#ifndef false
10706# error false is not defined
10707#endif
10708#if false
10709# error false is not 0
10710#endif
10711#ifndef true
10712# error true is not defined
10713#endif
10714#if true != 1
10715# error true is not 1
10716#endif
10717#ifndef __bool_true_false_are_defined
10718# error __bool_true_false_are_defined is not defined
10719#endif
10720
10721        struct s { _Bool s: 1; _Bool t; } s;
10722
10723        char a[true == 1 ? 1 : -1];
10724        char b[false == 0 ? 1 : -1];
10725        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10726        char d[(bool) -0.5 == true ? 1 : -1];
10727        bool e = &s;
10728        char f[(_Bool) -0.0 == false ? 1 : -1];
10729        char g[true];
10730        char h[sizeof (_Bool)];
10731        char i[sizeof s.t];
10732
10733int
10734main ()
10735{
10736 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741rm -f conftest.$ac_objext
10742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743  (eval $ac_compile) 2>conftest.er1
10744  ac_status=$?
10745  grep -v '^ *+' conftest.er1 >conftest.err
10746  rm -f conftest.er1
10747  cat conftest.err >&5
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } &&
[5588]10750         { ac_try='test -z "$ac_c_werror_flag"
10751                         || test ! -s conftest.err'
[1956]10752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753  (eval $ac_try) 2>&5
10754  ac_status=$?
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); }; } &&
10757         { ac_try='test -s conftest.$ac_objext'
10758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759  (eval $ac_try) 2>&5
10760  ac_status=$?
10761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762  (exit $ac_status); }; }; then
10763  ac_cv_header_stdbool_h=yes
10764else
10765  echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768ac_cv_header_stdbool_h=no
10769fi
10770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10771fi
10772echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10773echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
10774echo "$as_me:$LINENO: checking for _Bool" >&5
10775echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
10776if test "${ac_cv_type__Bool+set}" = set; then
10777  echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779  cat >conftest.$ac_ext <<_ACEOF
10780/* confdefs.h.  */
10781_ACEOF
10782cat confdefs.h >>conftest.$ac_ext
10783cat >>conftest.$ac_ext <<_ACEOF
10784/* end confdefs.h.  */
10785$ac_includes_default
10786int
10787main ()
10788{
10789if ((_Bool *) 0)
10790  return 0;
10791if (sizeof (_Bool))
10792  return 0;
10793  ;
10794  return 0;
10795}
10796_ACEOF
10797rm -f conftest.$ac_objext
10798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10799  (eval $ac_compile) 2>conftest.er1
10800  ac_status=$?
10801  grep -v '^ *+' conftest.er1 >conftest.err
10802  rm -f conftest.er1
10803  cat conftest.err >&5
10804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805  (exit $ac_status); } &&
[5588]10806         { ac_try='test -z "$ac_c_werror_flag"
10807                         || test ! -s conftest.err'
[1956]10808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809  (eval $ac_try) 2>&5
10810  ac_status=$?
10811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812  (exit $ac_status); }; } &&
10813         { ac_try='test -s conftest.$ac_objext'
10814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815  (eval $ac_try) 2>&5
10816  ac_status=$?
10817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818  (exit $ac_status); }; }; then
10819  ac_cv_type__Bool=yes
10820else
10821  echo "$as_me: failed program was:" >&5
10822sed 's/^/| /' conftest.$ac_ext >&5
10823
10824ac_cv_type__Bool=no
10825fi
10826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10827fi
10828echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10829echo "${ECHO_T}$ac_cv_type__Bool" >&6
10830if test $ac_cv_type__Bool = yes; then
10831
10832cat >>confdefs.h <<_ACEOF
10833#define HAVE__BOOL 1
10834_ACEOF
10835
10836
10837fi
10838
10839if test $ac_cv_header_stdbool_h = yes; then
10840
10841cat >>confdefs.h <<\_ACEOF
10842#define HAVE_STDBOOL_H 1
10843_ACEOF
10844
10845fi
10846
10847
10848# Checks for library functions.
10849
10850for ac_header in stdlib.h
10851do
10852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10853if eval "test \"\${$as_ac_Header+set}\" = set"; then
10854  echo "$as_me:$LINENO: checking for $ac_header" >&5
10855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10856if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858fi
10859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10861else
10862  # Is the header compilable?
10863echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10865cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h.  */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h.  */
10871$ac_includes_default
10872#include <$ac_header>
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876  (eval $ac_compile) 2>conftest.er1
10877  ac_status=$?
10878  grep -v '^ *+' conftest.er1 >conftest.err
10879  rm -f conftest.er1
10880  cat conftest.err >&5
10881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); } &&
[5588]10883         { ac_try='test -z "$ac_c_werror_flag"
10884                         || test ! -s conftest.err'
[1956]10885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886  (eval $ac_try) 2>&5
10887  ac_status=$?
10888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889  (exit $ac_status); }; } &&
10890         { ac_try='test -s conftest.$ac_objext'
10891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892  (eval $ac_try) 2>&5
10893  ac_status=$?
10894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895  (exit $ac_status); }; }; then
10896  ac_header_compiler=yes
10897else
10898  echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901ac_header_compiler=no
10902fi
10903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10905echo "${ECHO_T}$ac_header_compiler" >&6
10906
10907# Is the header present?
10908echo "$as_me:$LINENO: checking $ac_header presence" >&5
10909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10910cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h.  */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
10915/* end confdefs.h.  */
10916#include <$ac_header>
10917_ACEOF
10918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10919  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10920  ac_status=$?
10921  grep -v '^ *+' conftest.er1 >conftest.err
10922  rm -f conftest.er1
10923  cat conftest.err >&5
10924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925  (exit $ac_status); } >/dev/null; then
10926  if test -s conftest.err; then
10927    ac_cpp_err=$ac_c_preproc_warn_flag
10928    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10929  else
10930    ac_cpp_err=
10931  fi
10932else
10933  ac_cpp_err=yes
10934fi
10935if test -z "$ac_cpp_err"; then
10936  ac_header_preproc=yes
10937else
10938  echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941  ac_header_preproc=no
10942fi
10943rm -f conftest.err conftest.$ac_ext
10944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10945echo "${ECHO_T}$ac_header_preproc" >&6
10946
10947# So?  What about this header?
10948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10949  yes:no: )
10950    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10952    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10954    ac_header_preproc=yes
10955    ;;
10956  no:yes:* )
10957    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10960echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10961    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10963    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10964echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10965    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10967    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10969    (
10970      cat <<\_ASBOX
[3240]10971## ---------------------------------------------- ##
10972## Report this to orxonox-dev at mail.datacore.ch ##
10973## ---------------------------------------------- ##
[1956]10974_ASBOX
10975    ) |
10976      sed "s/^/$as_me: WARNING:     /" >&2
10977    ;;
10978esac
10979echo "$as_me:$LINENO: checking for $ac_header" >&5
10980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982  echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984  eval "$as_ac_Header=\$ac_header_preproc"
10985fi
10986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988
10989fi
10990if test `eval echo '${'$as_ac_Header'}'` = yes; then
10991  cat >>confdefs.h <<_ACEOF
10992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993_ACEOF
10994
10995fi
10996
10997done
10998
10999echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11000echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
11001if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11002  echo $ECHO_N "(cached) $ECHO_C" >&6
11003else
11004  if test "$cross_compiling" = yes; then
11005  ac_cv_func_malloc_0_nonnull=no
11006else
11007  cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h.  */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h.  */
11013#if STDC_HEADERS || HAVE_STDLIB_H
11014# include <stdlib.h>
11015#else
11016char *malloc ();
11017#endif
11018
11019int
11020main ()
11021{
11022exit (malloc (0) ? 0 : 1);
11023  ;
11024  return 0;
11025}
11026_ACEOF
11027rm -f conftest$ac_exeext
11028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029  (eval $ac_link) 2>&5
11030  ac_status=$?
11031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034  (eval $ac_try) 2>&5
11035  ac_status=$?
11036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037  (exit $ac_status); }; }; then
11038  ac_cv_func_malloc_0_nonnull=yes
11039else
11040  echo "$as_me: program exited with status $ac_status" >&5
11041echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044( exit $ac_status )
11045ac_cv_func_malloc_0_nonnull=no
11046fi
11047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11048fi
11049fi
11050echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11051echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
11052if test $ac_cv_func_malloc_0_nonnull = yes; then
11053
11054cat >>confdefs.h <<\_ACEOF
11055#define HAVE_MALLOC 1
11056_ACEOF
11057
11058else
11059  cat >>confdefs.h <<\_ACEOF
11060#define HAVE_MALLOC 0
11061_ACEOF
11062
11063   case $LIBOBJS in
11064    "malloc.$ac_objext"   | \
11065  *" malloc.$ac_objext"   | \
11066    "malloc.$ac_objext "* | \
11067  *" malloc.$ac_objext "* ) ;;
11068  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
11069esac
11070
11071
11072cat >>confdefs.h <<\_ACEOF
11073#define malloc rpl_malloc
11074_ACEOF
11075
11076fi
11077
11078
11079
11080
11081
11082for ac_func in bzero sqrt
11083do
11084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11085echo "$as_me:$LINENO: checking for $ac_func" >&5
11086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11087if eval "test \"\${$as_ac_var+set}\" = set"; then
11088  echo $ECHO_N "(cached) $ECHO_C" >&6
11089else
11090  cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h.  */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h.  */
11096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11097   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11098#define $ac_func innocuous_$ac_func
11099
11100/* System header to define __stub macros and hopefully few prototypes,
11101    which can conflict with char $ac_func (); below.
11102    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11103    <limits.h> exists even on freestanding compilers.  */
11104
11105#ifdef __STDC__
11106# include <limits.h>
11107#else
11108# include <assert.h>
11109#endif
11110
11111#undef $ac_func
11112
11113/* Override any gcc2 internal prototype to avoid an error.  */
11114#ifdef __cplusplus
11115extern "C"
11116{
11117#endif
11118/* We use char because int might match the return type of a gcc2
11119   builtin and then its argument prototype would still apply.  */
11120char $ac_func ();
11121/* The GNU C library defines this for functions which it implements
11122    to always fail with ENOSYS.  Some functions are actually named
11123    something starting with __ and the normal name is an alias.  */
11124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11125choke me
11126#else
11127char (*f) () = $ac_func;
11128#endif
11129#ifdef __cplusplus
11130}
11131#endif
11132
11133int
11134main ()
11135{
11136return f != $ac_func;
11137  ;
11138  return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext conftest$ac_exeext
11142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143  (eval $ac_link) 2>conftest.er1
11144  ac_status=$?
11145  grep -v '^ *+' conftest.er1 >conftest.err
11146  rm -f conftest.er1
11147  cat conftest.err >&5
11148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149  (exit $ac_status); } &&
[5588]11150         { ac_try='test -z "$ac_c_werror_flag"
11151                         || test ! -s conftest.err'
[1956]11152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153  (eval $ac_try) 2>&5
11154  ac_status=$?
11155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156  (exit $ac_status); }; } &&
11157         { ac_try='test -s conftest$ac_exeext'
11158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159  (eval $ac_try) 2>&5
11160  ac_status=$?
11161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162  (exit $ac_status); }; }; then
11163  eval "$as_ac_var=yes"
11164else
11165  echo "$as_me: failed program was:" >&5
11166sed 's/^/| /' conftest.$ac_ext >&5
11167
11168eval "$as_ac_var=no"
11169fi
11170rm -f conftest.err conftest.$ac_objext \
11171      conftest$ac_exeext conftest.$ac_ext
11172fi
11173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11175if test `eval echo '${'$as_ac_var'}'` = yes; then
11176  cat >>confdefs.h <<_ACEOF
11177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178_ACEOF
11179
11180fi
11181done
11182
11183
[3424]11184######################
11185## OUTPUT CONFIGURE ##
11186######################
[5517]11187                                                                                                                                                                                                                                                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"
[1956]11188
[3377]11189
[1956]11190cat >confcache <<\_ACEOF
11191# This file is a shell script that caches the results of configure
11192# tests run on this system so they can be shared between configure
11193# scripts and configure runs, see configure's option --config-cache.
11194# It is not useful on other systems.  If it contains results you don't
11195# want to keep, you may remove or edit it.
11196#
11197# config.status only pays attention to the cache file if you give it
11198# the --recheck option to rerun configure.
11199#
11200# `ac_cv_env_foo' variables (set or unset) will be overridden when
11201# loading this file, other *unset* `ac_cv_foo' will be assigned the
11202# following values.
11203
11204_ACEOF
11205
11206# The following way of writing the cache mishandles newlines in values,
11207# but we know of no workaround that is simple, portable, and efficient.
11208# So, don't put newlines in cache variables' values.
11209# Ultrix sh set writes to stderr and can't be redirected directly,
11210# and sets the high bit in the cache file unless we assign to the vars.
11211{
11212  (set) 2>&1 |
11213    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11214    *ac_space=\ *)
11215      # `set' does not quote correctly, so add quotes (double-quote
11216      # substitution turns \\\\ into \\, and sed turns \\ into \).
11217      sed -n \
11218        "s/'/'\\\\''/g;
11219          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11220      ;;
11221    *)
11222      # `set' quotes correctly as required by POSIX, so do not add quotes.
11223      sed -n \
11224        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11225      ;;
11226    esac;
11227} |
11228  sed '
11229     t clear
11230     : clear
11231     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11232     t end
11233     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11234     : end' >>confcache
11235if diff $cache_file confcache >/dev/null 2>&1; then :; else
11236  if test -w $cache_file; then
11237    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11238    cat confcache >$cache_file
11239  else
11240    echo "not updating unwritable cache $cache_file"
11241  fi
11242fi
11243rm -f confcache
11244
11245test "x$prefix" = xNONE && prefix=$ac_default_prefix
11246# Let make expand exec_prefix.
11247test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11248
11249# VPATH may cause trouble with some makes, so we remove $(srcdir),
11250# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11251# trailing colons and then remove the whole line if VPATH becomes empty
11252# (actually we leave an empty line to preserve line numbers).
11253if test "x$srcdir" = x.; then
11254  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11255s/:*\$(srcdir):*/:/;
11256s/:*\${srcdir}:*/:/;
11257s/:*@srcdir@:*/:/;
11258s/^\([^=]*=[     ]*\):*/\1/;
11259s/:*$//;
11260s/^[^=]*=[       ]*$//;
11261}'
11262fi
11263
11264DEFS=-DHAVE_CONFIG_H
11265
11266ac_libobjs=
11267ac_ltlibobjs=
11268for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11269  # 1. Remove the extension, and $U if already installed.
11270  ac_i=`echo "$ac_i" |
11271         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11272  # 2. Add them.
11273  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11274  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11275done
11276LIBOBJS=$ac_libobjs
11277
11278LTLIBOBJS=$ac_ltlibobjs
11279
11280
11281if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11282  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11283Usually this means the macro was only invoked conditionally." >&5
11284echo "$as_me: error: conditional \"AMDEP\" was never defined.
11285Usually this means the macro was only invoked conditionally." >&2;}
11286   { (exit 1); exit 1; }; }
11287fi
11288if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11289  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11290Usually this means the macro was only invoked conditionally." >&5
11291echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11292Usually this means the macro was only invoked conditionally." >&2;}
11293   { (exit 1); exit 1; }; }
11294fi
11295if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11296  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11297Usually this means the macro was only invoked conditionally." >&5
11298echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11299Usually this means the macro was only invoked conditionally." >&2;}
11300   { (exit 1); exit 1; }; }
11301fi
[3377]11302if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
11303  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
11304Usually this means the macro was only invoked conditionally." >&5
11305echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
11306Usually this means the macro was only invoked conditionally." >&2;}
11307   { (exit 1); exit 1; }; }
11308fi
[3558]11309if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
11310  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
11311Usually this means the macro was only invoked conditionally." >&5
11312echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
11313Usually this means the macro was only invoked conditionally." >&2;}
11314   { (exit 1); exit 1; }; }
11315fi
[3219]11316if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
11317  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
11318Usually this means the macro was only invoked conditionally." >&5
11319echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
11320Usually this means the macro was only invoked conditionally." >&2;}
11321   { (exit 1); exit 1; }; }
11322fi
[5276]11323if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
11324  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
[2980]11325Usually this means the macro was only invoked conditionally." >&5
[5276]11326echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
[2980]11327Usually this means the macro was only invoked conditionally." >&2;}
11328   { (exit 1); exit 1; }; }
11329fi
[5276]11330if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
11331  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
[3423]11332Usually this means the macro was only invoked conditionally." >&5
[5276]11333echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
[3423]11334Usually this means the macro was only invoked conditionally." >&2;}
11335   { (exit 1); exit 1; }; }
11336fi
[1956]11337
11338: ${CONFIG_STATUS=./config.status}
11339ac_clean_files_save=$ac_clean_files
11340ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11341{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11342echo "$as_me: creating $CONFIG_STATUS" >&6;}
11343cat >$CONFIG_STATUS <<_ACEOF
11344#! $SHELL
11345# Generated by $as_me.
11346# Run this file to recreate the current configuration.
11347# Compiler output produced by configure, useful for debugging
11348# configure, is in config.log if it exists.
11349
11350debug=false
11351ac_cs_recheck=false
11352ac_cs_silent=false
11353SHELL=\${CONFIG_SHELL-$SHELL}
11354_ACEOF
11355
11356cat >>$CONFIG_STATUS <<\_ACEOF
11357## --------------------- ##
11358## M4sh Initialization.  ##
11359## --------------------- ##
11360
11361# Be Bourne compatible
11362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11363  emulate sh
11364  NULLCMD=:
11365  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11366  # is contrary to our usage.  Disable this feature.
11367  alias -g '${1+"$@"}'='"$@"'
11368elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11369  set -o posix
11370fi
11371DUALCASE=1; export DUALCASE # for MKS sh
11372
11373# Support unset when possible.
11374if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11375  as_unset=unset
11376else
11377  as_unset=false
11378fi
11379
11380
11381# Work around bugs in pre-3.0 UWIN ksh.
11382$as_unset ENV MAIL MAILPATH
11383PS1='$ '
11384PS2='> '
11385PS4='+ '
11386
11387# NLS nuisances.
11388for as_var in \
11389  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11390  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11391  LC_TELEPHONE LC_TIME
11392do
11393  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11394    eval $as_var=C; export $as_var
11395  else
11396    $as_unset $as_var
11397  fi
11398done
11399
11400# Required to use basename.
11401if expr a : '\(a\)' >/dev/null 2>&1; then
11402  as_expr=expr
11403else
11404  as_expr=false
11405fi
11406
11407if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11408  as_basename=basename
11409else
11410  as_basename=false
11411fi
11412
11413
11414# Name of the executable.
11415as_me=`$as_basename "$0" ||
11416$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11417         X"$0" : 'X\(//\)$' \| \
11418         X"$0" : 'X\(/\)$' \| \
11419         .     : '\(.\)' 2>/dev/null ||
11420echo X/"$0" |
11421    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11422          /^X\/\(\/\/\)$/{ s//\1/; q; }
11423          /^X\/\(\/\).*/{ s//\1/; q; }
11424          s/.*/./; q'`
11425
11426
11427# PATH needs CR, and LINENO needs CR and PATH.
11428# Avoid depending upon Character Ranges.
11429as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11430as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11431as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11432as_cr_digits='0123456789'
11433as_cr_alnum=$as_cr_Letters$as_cr_digits
11434
11435# The user is always right.
11436if test "${PATH_SEPARATOR+set}" != set; then
11437  echo "#! /bin/sh" >conf$$.sh
11438  echo  "exit 0"   >>conf$$.sh
11439  chmod +x conf$$.sh
11440  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11441    PATH_SEPARATOR=';'
11442  else
11443    PATH_SEPARATOR=:
11444  fi
11445  rm -f conf$$.sh
11446fi
11447
11448
11449  as_lineno_1=$LINENO
11450  as_lineno_2=$LINENO
11451  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11452  test "x$as_lineno_1" != "x$as_lineno_2" &&
11453  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11454  # Find who we are.  Look in the path if we contain no path at all
11455  # relative or not.
11456  case $0 in
11457    *[\\/]* ) as_myself=$0 ;;
11458    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459for as_dir in $PATH
11460do
11461  IFS=$as_save_IFS
11462  test -z "$as_dir" && as_dir=.
11463  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11464done
11465
11466       ;;
11467  esac
11468  # We did not find ourselves, most probably we were run as `sh COMMAND'
11469  # in which case we are not to be found in the path.
11470  if test "x$as_myself" = x; then
11471    as_myself=$0
11472  fi
11473  if test ! -f "$as_myself"; then
11474    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11475echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11476   { (exit 1); exit 1; }; }
11477  fi
11478  case $CONFIG_SHELL in
11479  '')
11480    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11482do
11483  IFS=$as_save_IFS
11484  test -z "$as_dir" && as_dir=.
11485  for as_base in sh bash ksh sh5; do
11486         case $as_dir in
11487         /*)
11488           if ("$as_dir/$as_base" -c '
11489  as_lineno_1=$LINENO
11490  as_lineno_2=$LINENO
11491  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11492  test "x$as_lineno_1" != "x$as_lineno_2" &&
11493  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11494             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11495             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11496             CONFIG_SHELL=$as_dir/$as_base
11497             export CONFIG_SHELL
11498             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11499           fi;;
11500         esac
11501       done
11502done
11503;;
11504  esac
11505
11506  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11507  # uniformly replaced by the line number.  The first 'sed' inserts a
11508  # line-number line before each line; the second 'sed' does the real
11509  # work.  The second script uses 'N' to pair each line-number line
11510  # with the numbered line, and appends trailing '-' during
11511  # substitution so that $LINENO is not a special case at line end.
11512  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11513  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11514  sed '=' <$as_myself |
11515    sed '
11516      N
11517      s,$,-,
11518      : loop
11519      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11520      t loop
11521      s,-$,,
11522      s,^['$as_cr_digits']*\n,,
11523    ' >$as_me.lineno &&
11524  chmod +x $as_me.lineno ||
11525    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11526echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11527   { (exit 1); exit 1; }; }
11528
11529  # Don't try to exec as it changes $[0], causing all sort of problems
11530  # (the dirname of $[0] is not the place where we might find the
11531  # original and so on.  Autoconf is especially sensible to this).
11532  . ./$as_me.lineno
11533  # Exit status is that of the last command.
11534  exit
11535}
11536
11537
11538case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11539  *c*,-n*) ECHO_N= ECHO_C='
11540' ECHO_T='      ' ;;
11541  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11542  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11543esac
11544
11545if expr a : '\(a\)' >/dev/null 2>&1; then
11546  as_expr=expr
11547else
11548  as_expr=false
11549fi
11550
11551rm -f conf$$ conf$$.exe conf$$.file
11552echo >conf$$.file
11553if ln -s conf$$.file conf$$ 2>/dev/null; then
11554  # We could just check for DJGPP; but this test a) works b) is more generic
11555  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11556  if test -f conf$$.exe; then
11557    # Don't use ln at all; we don't have any links
11558    as_ln_s='cp -p'
11559  else
11560    as_ln_s='ln -s'
11561  fi
11562elif ln conf$$.file conf$$ 2>/dev/null; then
11563  as_ln_s=ln
11564else
11565  as_ln_s='cp -p'
11566fi
11567rm -f conf$$ conf$$.exe conf$$.file
11568
11569if mkdir -p . 2>/dev/null; then
11570  as_mkdir_p=:
11571else
11572  test -d ./-p && rmdir ./-p
11573  as_mkdir_p=false
11574fi
11575
11576as_executable_p="test -f"
11577
11578# Sed expression to map a string onto a valid CPP name.
11579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11580
11581# Sed expression to map a string onto a valid variable name.
11582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11583
11584
11585# IFS
11586# We need space, tab and new line, in precisely that order.
11587as_nl='
11588'
11589IFS="   $as_nl"
11590
11591# CDPATH.
11592$as_unset CDPATH
11593
11594exec 6>&1
11595
11596# Open the log real soon, to keep \$[0] and so on meaningful, and to
11597# report actual input values of CONFIG_FILES etc. instead of their
11598# values after options handling.  Logging --version etc. is OK.
11599exec 5>>config.log
11600{
11601  echo
11602  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11603## Running $as_me. ##
11604_ASBOX
11605} >&5
11606cat >&5 <<_CSEOF
11607
[5502]11608This file was extended by orxonox $as_me 0.3.2_alpha, which was
[1956]11609generated by GNU Autoconf 2.59.  Invocation command line was
11610
11611  CONFIG_FILES    = $CONFIG_FILES
11612  CONFIG_HEADERS  = $CONFIG_HEADERS
11613  CONFIG_LINKS    = $CONFIG_LINKS
11614  CONFIG_COMMANDS = $CONFIG_COMMANDS
11615  $ $0 $@
11616
11617_CSEOF
11618echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11619echo >&5
11620_ACEOF
11621
11622# Files that config.status was made for.
11623if test -n "$ac_config_files"; then
11624  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11625fi
11626
11627if test -n "$ac_config_headers"; then
11628  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11629fi
11630
11631if test -n "$ac_config_links"; then
11632  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11633fi
11634
11635if test -n "$ac_config_commands"; then
11636  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11637fi
11638
11639cat >>$CONFIG_STATUS <<\_ACEOF
11640
11641ac_cs_usage="\
11642\`$as_me' instantiates files from templates according to the
11643current configuration.
11644
11645Usage: $0 [OPTIONS] [FILE]...
11646
11647  -h, --help       print this help, then exit
11648  -V, --version    print version number, then exit
11649  -q, --quiet      do not print progress messages
11650  -d, --debug      don't remove temporary files
11651      --recheck    update $as_me by reconfiguring in the same conditions
11652  --file=FILE[:TEMPLATE]
11653                   instantiate the configuration file FILE
11654  --header=FILE[:TEMPLATE]
11655                   instantiate the configuration header FILE
11656
11657Configuration files:
11658$config_files
11659
11660Configuration headers:
11661$config_headers
11662
11663Configuration commands:
11664$config_commands
11665
11666Report bugs to <bug-autoconf@gnu.org>."
11667_ACEOF
11668
11669cat >>$CONFIG_STATUS <<_ACEOF
11670ac_cs_version="\\
[5502]11671orxonox config.status 0.3.2_alpha
[1956]11672configured by $0, generated by GNU Autoconf 2.59,
11673  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11674
11675Copyright (C) 2003 Free Software Foundation, Inc.
11676This config.status script is free software; the Free Software Foundation
11677gives unlimited permission to copy, distribute and modify it."
11678srcdir=$srcdir
11679INSTALL="$INSTALL"
11680_ACEOF
11681
11682cat >>$CONFIG_STATUS <<\_ACEOF
11683# If no file are specified by the user, then we need to provide default
11684# value.  By we need to know if files were specified by the user.
11685ac_need_defaults=:
11686while test $# != 0
11687do
11688  case $1 in
11689  --*=*)
11690    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11691    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11692    ac_shift=:
11693    ;;
11694  -*)
11695    ac_option=$1
11696    ac_optarg=$2
11697    ac_shift=shift
11698    ;;
11699  *) # This is not an option, so the user has probably given explicit
11700     # arguments.
11701     ac_option=$1
11702     ac_need_defaults=false;;
11703  esac
11704
11705  case $ac_option in
11706  # Handling of the options.
11707_ACEOF
11708cat >>$CONFIG_STATUS <<\_ACEOF
11709  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11710    ac_cs_recheck=: ;;
11711  --version | --vers* | -V )
11712    echo "$ac_cs_version"; exit 0 ;;
11713  --he | --h)
11714    # Conflict between --help and --header
11715    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11716Try \`$0 --help' for more information." >&5
11717echo "$as_me: error: ambiguous option: $1
11718Try \`$0 --help' for more information." >&2;}
11719   { (exit 1); exit 1; }; };;
11720  --help | --hel | -h )
11721    echo "$ac_cs_usage"; exit 0 ;;
11722  --debug | --d* | -d )
11723    debug=: ;;
11724  --file | --fil | --fi | --f )
11725    $ac_shift
11726    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11727    ac_need_defaults=false;;
11728  --header | --heade | --head | --hea )
11729    $ac_shift
11730    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11731    ac_need_defaults=false;;
11732  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11733  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11734    ac_cs_silent=: ;;
11735
11736  # This is an error.
11737  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11738Try \`$0 --help' for more information." >&5
11739echo "$as_me: error: unrecognized option: $1
11740Try \`$0 --help' for more information." >&2;}
11741   { (exit 1); exit 1; }; } ;;
11742
11743  *) ac_config_targets="$ac_config_targets $1" ;;
11744
11745  esac
11746  shift
11747done
11748
11749ac_configure_extra_args=
11750
11751if $ac_cs_silent; then
11752  exec 6>/dev/null
11753  ac_configure_extra_args="$ac_configure_extra_args --silent"
11754fi
11755
11756_ACEOF
11757cat >>$CONFIG_STATUS <<_ACEOF
11758if \$ac_cs_recheck; then
11759  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11760  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11761fi
11762
11763_ACEOF
11764
11765cat >>$CONFIG_STATUS <<_ACEOF
11766#
11767# INIT-COMMANDS section.
11768#
11769
11770AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11771
11772_ACEOF
11773
11774
11775
11776cat >>$CONFIG_STATUS <<\_ACEOF
11777for ac_config_target in $ac_config_targets
11778do
11779  case "$ac_config_target" in
11780  # Handling of arguments.
11781  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
[3377]11782  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
[3493]11783  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
11784  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
[3489]11785  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
[4789]11786  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
[4506]11787  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
[4484]11788  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
[4338]11789  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
[4416]11790  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
[4527]11791  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
[5517]11792  "src/lib/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/network/Makefile" ;;
[5160]11793  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
[3493]11794  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
[5315]11795  "src/lib/gui/gtk_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gtk_gui/Makefile" ;;
11796  "src/lib/gui/gl_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gl_gui/Makefile" ;;
[4265]11797  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
[5350]11798  "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
[3549]11799  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
11800  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
[4263]11801  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
[4338]11802  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
[4531]11803  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
[5506]11804  "src/subprojects/network/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/network/Makefile" ;;
[1956]11805  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11806  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11807  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11808echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11809   { (exit 1); exit 1; }; };;
11810  esac
11811done
11812
11813# If the user did not use the arguments to specify the items to instantiate,
11814# then the envvar interface is used.  Set only those that are not.
11815# We use the long form for the default assignment because of an extremely
11816# bizarre bug on SunOS 4.1.3.
11817if $ac_need_defaults; then
11818  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11819  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11820  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11821fi
11822
11823# Have a temporary directory for convenience.  Make it in the build tree
11824# simply because there is no reason to put it here, and in addition,
11825# creating and moving files from /tmp can sometimes cause problems.
11826# Create a temporary directory, and hook for its removal unless debugging.
11827$debug ||
11828{
11829  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11830  trap '{ (exit 1); exit 1; }' 1 2 13 15
11831}
11832
11833# Create a (secure) tmp directory for tmp files.
11834
11835{
11836  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11837  test -n "$tmp" && test -d "$tmp"
11838}  ||
11839{
11840  tmp=./confstat$$-$RANDOM
11841  (umask 077 && mkdir $tmp)
11842} ||
11843{
11844   echo "$me: cannot create a temporary directory in ." >&2
11845   { (exit 1); exit 1; }
11846}
11847
11848_ACEOF
11849
11850cat >>$CONFIG_STATUS <<_ACEOF
11851
11852#
11853# CONFIG_FILES section.
11854#
11855
11856# No need to generate the scripts if there are no CONFIG_FILES.
11857# This happens for instance when ./config.status config.h
11858if test -n "\$CONFIG_FILES"; then
11859  # Protect against being on the right side of a sed subst in config.status.
11860  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11861   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11862s,@SHELL@,$SHELL,;t t
11863s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11864s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11865s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11866s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11867s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11868s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11869s,@exec_prefix@,$exec_prefix,;t t
11870s,@prefix@,$prefix,;t t
11871s,@program_transform_name@,$program_transform_name,;t t
11872s,@bindir@,$bindir,;t t
11873s,@sbindir@,$sbindir,;t t
11874s,@libexecdir@,$libexecdir,;t t
11875s,@datadir@,$datadir,;t t
11876s,@sysconfdir@,$sysconfdir,;t t
11877s,@sharedstatedir@,$sharedstatedir,;t t
11878s,@localstatedir@,$localstatedir,;t t
11879s,@libdir@,$libdir,;t t
11880s,@includedir@,$includedir,;t t
11881s,@oldincludedir@,$oldincludedir,;t t
11882s,@infodir@,$infodir,;t t
11883s,@mandir@,$mandir,;t t
11884s,@build_alias@,$build_alias,;t t
11885s,@host_alias@,$host_alias,;t t
11886s,@target_alias@,$target_alias,;t t
11887s,@DEFS@,$DEFS,;t t
11888s,@ECHO_C@,$ECHO_C,;t t
11889s,@ECHO_N@,$ECHO_N,;t t
11890s,@ECHO_T@,$ECHO_T,;t t
11891s,@LIBS@,$LIBS,;t t
[2980]11892s,@build@,$build,;t t
11893s,@build_cpu@,$build_cpu,;t t
11894s,@build_vendor@,$build_vendor,;t t
11895s,@build_os@,$build_os,;t t
11896s,@host@,$host,;t t
11897s,@host_cpu@,$host_cpu,;t t
11898s,@host_vendor@,$host_vendor,;t t
11899s,@host_os@,$host_os,;t t
11900s,@target@,$target,;t t
11901s,@target_cpu@,$target_cpu,;t t
11902s,@target_vendor@,$target_vendor,;t t
11903s,@target_os@,$target_os,;t t
[1956]11904s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11905s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11906s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11907s,@CYGPATH_W@,$CYGPATH_W,;t t
11908s,@PACKAGE@,$PACKAGE,;t t
11909s,@VERSION@,$VERSION,;t t
11910s,@ACLOCAL@,$ACLOCAL,;t t
11911s,@AUTOCONF@,$AUTOCONF,;t t
11912s,@AUTOMAKE@,$AUTOMAKE,;t t
11913s,@AUTOHEADER@,$AUTOHEADER,;t t
11914s,@MAKEINFO@,$MAKEINFO,;t t
11915s,@install_sh@,$install_sh,;t t
11916s,@STRIP@,$STRIP,;t t
11917s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11918s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
[2706]11919s,@mkdir_p@,$mkdir_p,;t t
[1956]11920s,@AWK@,$AWK,;t t
11921s,@SET_MAKE@,$SET_MAKE,;t t
11922s,@am__leading_dot@,$am__leading_dot,;t t
[5475]11923s,@AMTAR@,$AMTAR,;t t
11924s,@am__tar@,$am__tar,;t t
11925s,@am__untar@,$am__untar,;t t
[1956]11926s,@CXX@,$CXX,;t t
11927s,@CXXFLAGS@,$CXXFLAGS,;t t
11928s,@LDFLAGS@,$LDFLAGS,;t t
11929s,@CPPFLAGS@,$CPPFLAGS,;t t
11930s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11931s,@EXEEXT@,$EXEEXT,;t t
11932s,@OBJEXT@,$OBJEXT,;t t
11933s,@DEPDIR@,$DEPDIR,;t t
11934s,@am__include@,$am__include,;t t
11935s,@am__quote@,$am__quote,;t t
11936s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11937s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11938s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11939s,@CXXDEPMODE@,$CXXDEPMODE,;t t
11940s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
11941s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
[5463]11942s,@RANLIB@,$RANLIB,;t t
11943s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
[1956]11944s,@CC@,$CC,;t t
11945s,@CFLAGS@,$CFLAGS,;t t
11946s,@ac_ct_CC@,$ac_ct_CC,;t t
11947s,@CCDEPMODE@,$CCDEPMODE,;t t
11948s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11949s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
[5463]11950s,@CPP@,$CPP,;t t
[5450]11951s,@EGREP@,$EGREP,;t t
[3173]11952s,@DEBUG@,$DEBUG,;t t
[3377]11953s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
11954s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
[3558]11955s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
11956s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
[3219]11957s,@DOXYGEN@,$DOXYGEN,;t t
11958s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
11959s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
[3789]11960s,@GPROF@,$GPROF,;t t
[4130]11961s,@PKG_CONFIG@,$PKG_CONFIG,;t t
[2989]11962s,@MSBITFIELDS@,$MSBITFIELDS,;t t
[5276]11963s,@CURL_LIBS@,$CURL_LIBS,;t t
11964s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
11965s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
11966s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
[3099]11967s,@GTK2_LIBS@,$GTK2_LIBS,;t t
[2980]11968s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
11969s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
11970s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
[1956]11971s,@LIBOBJS@,$LIBOBJS,;t t
11972s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11973CEOF
11974
11975_ACEOF
11976
11977  cat >>$CONFIG_STATUS <<\_ACEOF
11978  # Split the substitutions into bite-sized pieces for seds with
11979  # small command number limits, like on Digital OSF/1 and HP-UX.
11980  ac_max_sed_lines=48
11981  ac_sed_frag=1 # Number of current file.
11982  ac_beg=1 # First line for current file.
11983  ac_end=$ac_max_sed_lines # Line after last line for current file.
11984  ac_more_lines=:
11985  ac_sed_cmds=
11986  while $ac_more_lines; do
11987    if test $ac_beg -gt 1; then
11988      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11989    else
11990      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11991    fi
11992    if test ! -s $tmp/subs.frag; then
11993      ac_more_lines=false
11994    else
11995      # The purpose of the label and of the branching condition is to
11996      # speed up the sed processing (if there are no `@' at all, there
11997      # is no need to browse any of the substitutions).
11998      # These are the two extra sed commands mentioned above.
11999      (echo ':t
12000  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12001      if test -z "$ac_sed_cmds"; then
12002        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12003      else
12004        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12005      fi
12006      ac_sed_frag=`expr $ac_sed_frag + 1`
12007      ac_beg=$ac_end
12008      ac_end=`expr $ac_end + $ac_max_sed_lines`
12009    fi
12010  done
12011  if test -z "$ac_sed_cmds"; then
12012    ac_sed_cmds=cat
12013  fi
12014fi # test -n "$CONFIG_FILES"
12015
12016_ACEOF
12017cat >>$CONFIG_STATUS <<\_ACEOF
12018for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12019  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12020  case $ac_file in
12021  - | *:- | *:-:* ) # input from stdin
12022        cat >$tmp/stdin
12023        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12024        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12025  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12026        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12027  * )   ac_file_in=$ac_file.in ;;
12028  esac
12029
12030  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12031  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033         X"$ac_file" : 'X\(//\)[^/]' \| \
12034         X"$ac_file" : 'X\(//\)$' \| \
12035         X"$ac_file" : 'X\(/\)' \| \
12036         .     : '\(.\)' 2>/dev/null ||
12037echo X"$ac_file" |
12038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12039          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12040          /^X\(\/\/\)$/{ s//\1/; q; }
12041          /^X\(\/\).*/{ s//\1/; q; }
12042          s/.*/./; q'`
12043  { if $as_mkdir_p; then
12044    mkdir -p "$ac_dir"
12045  else
12046    as_dir="$ac_dir"
12047    as_dirs=
12048    while test ! -d "$as_dir"; do
12049      as_dirs="$as_dir $as_dirs"
12050      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12052         X"$as_dir" : 'X\(//\)[^/]' \| \
12053         X"$as_dir" : 'X\(//\)$' \| \
12054         X"$as_dir" : 'X\(/\)' \| \
12055         .     : '\(.\)' 2>/dev/null ||
12056echo X"$as_dir" |
12057    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12058          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12059          /^X\(\/\/\)$/{ s//\1/; q; }
12060          /^X\(\/\).*/{ s//\1/; q; }
12061          s/.*/./; q'`
12062    done
12063    test ! -n "$as_dirs" || mkdir $as_dirs
12064  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12065echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12066   { (exit 1); exit 1; }; }; }
12067
12068  ac_builddir=.
12069
12070if test "$ac_dir" != .; then
12071  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12072  # A "../" for each directory in $ac_dir_suffix.
12073  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12074else
12075  ac_dir_suffix= ac_top_builddir=
12076fi
12077
12078case $srcdir in
12079  .)  # No --srcdir option.  We are building in place.
12080    ac_srcdir=.
12081    if test -z "$ac_top_builddir"; then
12082       ac_top_srcdir=.
12083    else
12084       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12085    fi ;;
12086  [\\/]* | ?:[\\/]* )  # Absolute path.
12087    ac_srcdir=$srcdir$ac_dir_suffix;
12088    ac_top_srcdir=$srcdir ;;
12089  *) # Relative path.
12090    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12091    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12092esac
12093
12094# Do not use `cd foo && pwd` to compute absolute paths, because
12095# the directories may not exist.
12096case `pwd` in
12097.) ac_abs_builddir="$ac_dir";;
12098*)
12099  case "$ac_dir" in
12100  .) ac_abs_builddir=`pwd`;;
12101  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12102  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12103  esac;;
12104esac
12105case $ac_abs_builddir in
12106.) ac_abs_top_builddir=${ac_top_builddir}.;;
12107*)
12108  case ${ac_top_builddir}. in
12109  .) ac_abs_top_builddir=$ac_abs_builddir;;
12110  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12111  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12112  esac;;
12113esac
12114case $ac_abs_builddir in
12115.) ac_abs_srcdir=$ac_srcdir;;
12116*)
12117  case $ac_srcdir in
12118  .) ac_abs_srcdir=$ac_abs_builddir;;
12119  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12120  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12121  esac;;
12122esac
12123case $ac_abs_builddir in
12124.) ac_abs_top_srcdir=$ac_top_srcdir;;
12125*)
12126  case $ac_top_srcdir in
12127  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12128  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12129  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12130  esac;;
12131esac
12132
12133
12134  case $INSTALL in
12135  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12136  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12137  esac
12138
[5588]12139  if test x"$ac_file" != x-; then
12140    { echo "$as_me:$LINENO: creating $ac_file" >&5
12141echo "$as_me: creating $ac_file" >&6;}
12142    rm -f "$ac_file"
12143  fi
[1956]12144  # Let's still pretend it is `configure' which instantiates (i.e., don't
12145  # use $as_me), people would be surprised to read:
12146  #    /* config.h.  Generated by config.status.  */
12147  if test x"$ac_file" = x-; then
12148    configure_input=
12149  else
12150    configure_input="$ac_file.  "
12151  fi
12152  configure_input=$configure_input"Generated from `echo $ac_file_in |
12153                                     sed 's,.*/,,'` by configure."
12154
12155  # First look for the input files in the build tree, otherwise in the
12156  # src tree.
12157  ac_file_inputs=`IFS=:
12158    for f in $ac_file_in; do
12159      case $f in
12160      -) echo $tmp/stdin ;;
12161      [\\/$]*)
12162         # Absolute (can't be DOS-style, as IFS=:)
12163         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12164echo "$as_me: error: cannot find input file: $f" >&2;}
12165   { (exit 1); exit 1; }; }
12166         echo "$f";;
12167      *) # Relative
12168         if test -f "$f"; then
12169           # Build tree
12170           echo "$f"
12171         elif test -f "$srcdir/$f"; then
12172           # Source tree
12173           echo "$srcdir/$f"
12174         else
12175           # /dev/null tree
12176           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12177echo "$as_me: error: cannot find input file: $f" >&2;}
12178   { (exit 1); exit 1; }; }
12179         fi;;
12180      esac
12181    done` || { (exit 1); exit 1; }
12182_ACEOF
12183cat >>$CONFIG_STATUS <<_ACEOF
12184  sed "$ac_vpsub
12185$extrasub
12186_ACEOF
12187cat >>$CONFIG_STATUS <<\_ACEOF
12188:t
12189/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12190s,@configure_input@,$configure_input,;t t
12191s,@srcdir@,$ac_srcdir,;t t
12192s,@abs_srcdir@,$ac_abs_srcdir,;t t
12193s,@top_srcdir@,$ac_top_srcdir,;t t
12194s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12195s,@builddir@,$ac_builddir,;t t
12196s,@abs_builddir@,$ac_abs_builddir,;t t
12197s,@top_builddir@,$ac_top_builddir,;t t
12198s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12199s,@INSTALL@,$ac_INSTALL,;t t
12200" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12201  rm -f $tmp/stdin
12202  if test x"$ac_file" != x-; then
12203    mv $tmp/out $ac_file
12204  else
12205    cat $tmp/out
12206    rm -f $tmp/out
12207  fi
12208
12209done
12210_ACEOF
12211cat >>$CONFIG_STATUS <<\_ACEOF
12212
12213#
12214# CONFIG_HEADER section.
12215#
12216
12217# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12218# NAME is the cpp macro being defined and VALUE is the value it is being given.
12219#
12220# ac_d sets the value in "#define NAME VALUE" lines.
12221ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12222ac_dB='[         ].*$,\1#\2'
12223ac_dC=' '
12224ac_dD=',;t'
12225# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12226ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12227ac_uB='$,\1#\2define\3'
12228ac_uC=' '
12229ac_uD=',;t'
12230
12231for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12232  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12233  case $ac_file in
12234  - | *:- | *:-:* ) # input from stdin
12235        cat >$tmp/stdin
12236        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12237        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12238  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12239        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12240  * )   ac_file_in=$ac_file.in ;;
12241  esac
12242
12243  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12244echo "$as_me: creating $ac_file" >&6;}
12245
12246  # First look for the input files in the build tree, otherwise in the
12247  # src tree.
12248  ac_file_inputs=`IFS=:
12249    for f in $ac_file_in; do
12250      case $f in
12251      -) echo $tmp/stdin ;;
12252      [\\/$]*)
12253         # Absolute (can't be DOS-style, as IFS=:)
12254         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12255echo "$as_me: error: cannot find input file: $f" >&2;}
12256   { (exit 1); exit 1; }; }
12257         # Do quote $f, to prevent DOS paths from being IFS'd.
12258         echo "$f";;
12259      *) # Relative
12260         if test -f "$f"; then
12261           # Build tree
12262           echo "$f"
12263         elif test -f "$srcdir/$f"; then
12264           # Source tree
12265           echo "$srcdir/$f"
12266         else
12267           # /dev/null tree
12268           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12269echo "$as_me: error: cannot find input file: $f" >&2;}
12270   { (exit 1); exit 1; }; }
12271         fi;;
12272      esac
12273    done` || { (exit 1); exit 1; }
12274  # Remove the trailing spaces.
12275  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12276
12277_ACEOF
12278
12279# Transform confdefs.h into two sed scripts, `conftest.defines' and
12280# `conftest.undefs', that substitutes the proper values into
12281# config.h.in to produce config.h.  The first handles `#define'
12282# templates, and the second `#undef' templates.
12283# And first: Protect against being on the right side of a sed subst in
12284# config.status.  Protect against being in an unquoted here document
12285# in config.status.
12286rm -f conftest.defines conftest.undefs
12287# Using a here document instead of a string reduces the quoting nightmare.
12288# Putting comments in sed scripts is not portable.
12289#
12290# `end' is used to avoid that the second main sed command (meant for
12291# 0-ary CPP macros) applies to n-ary macro definitions.
12292# See the Autoconf documentation for `clear'.
12293cat >confdef2sed.sed <<\_ACEOF
12294s/[\\&,]/\\&/g
12295s,[\\$`],\\&,g
12296t clear
12297: clear
12298s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12299t end
12300s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12301: end
12302_ACEOF
12303# If some macros were called several times there might be several times
12304# the same #defines, which is useless.  Nevertheless, we may not want to
12305# sort them, since we want the *last* AC-DEFINE to be honored.
12306uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12307sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12308rm -f confdef2sed.sed
12309
12310# This sed command replaces #undef with comments.  This is necessary, for
12311# example, in the case of _POSIX_SOURCE, which is predefined and required
12312# on some systems where configure will not decide to define it.
12313cat >>conftest.undefs <<\_ACEOF
12314s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12315_ACEOF
12316
12317# Break up conftest.defines because some shells have a limit on the size
12318# of here documents, and old seds have small limits too (100 cmds).
12319echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12320echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12321echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12322echo '  :' >>$CONFIG_STATUS
12323rm -f conftest.tail
12324while grep . conftest.defines >/dev/null
12325do
12326  # Write a limited-size here document to $tmp/defines.sed.
12327  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12328  # Speed up: don't consider the non `#define' lines.
12329  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12330  # Work around the forget-to-reset-the-flag bug.
12331  echo 't clr' >>$CONFIG_STATUS
12332  echo ': clr' >>$CONFIG_STATUS
12333  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12334  echo 'CEOF
12335  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12336  rm -f $tmp/in
12337  mv $tmp/out $tmp/in
12338' >>$CONFIG_STATUS
12339  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12340  rm -f conftest.defines
12341  mv conftest.tail conftest.defines
12342done
12343rm -f conftest.defines
12344echo '  fi # grep' >>$CONFIG_STATUS
12345echo >>$CONFIG_STATUS
12346
12347# Break up conftest.undefs because some shells have a limit on the size
12348# of here documents, and old seds have small limits too (100 cmds).
12349echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12350rm -f conftest.tail
12351while grep . conftest.undefs >/dev/null
12352do
12353  # Write a limited-size here document to $tmp/undefs.sed.
12354  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12355  # Speed up: don't consider the non `#undef'
12356  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12357  # Work around the forget-to-reset-the-flag bug.
12358  echo 't clr' >>$CONFIG_STATUS
12359  echo ': clr' >>$CONFIG_STATUS
12360  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12361  echo 'CEOF
12362  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12363  rm -f $tmp/in
12364  mv $tmp/out $tmp/in
12365' >>$CONFIG_STATUS
12366  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12367  rm -f conftest.undefs
12368  mv conftest.tail conftest.undefs
12369done
12370rm -f conftest.undefs
12371
12372cat >>$CONFIG_STATUS <<\_ACEOF
12373  # Let's still pretend it is `configure' which instantiates (i.e., don't
12374  # use $as_me), people would be surprised to read:
12375  #    /* config.h.  Generated by config.status.  */
12376  if test x"$ac_file" = x-; then
12377    echo "/* Generated by configure.  */" >$tmp/config.h
12378  else
12379    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12380  fi
12381  cat $tmp/in >>$tmp/config.h
12382  rm -f $tmp/in
12383  if test x"$ac_file" != x-; then
12384    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12385      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12386echo "$as_me: $ac_file is unchanged" >&6;}
12387    else
12388      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12390         X"$ac_file" : 'X\(//\)[^/]' \| \
12391         X"$ac_file" : 'X\(//\)$' \| \
12392         X"$ac_file" : 'X\(/\)' \| \
12393         .     : '\(.\)' 2>/dev/null ||
12394echo X"$ac_file" |
12395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12396          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12397          /^X\(\/\/\)$/{ s//\1/; q; }
12398          /^X\(\/\).*/{ s//\1/; q; }
12399          s/.*/./; q'`
12400      { if $as_mkdir_p; then
12401    mkdir -p "$ac_dir"
12402  else
12403    as_dir="$ac_dir"
12404    as_dirs=
12405    while test ! -d "$as_dir"; do
12406      as_dirs="$as_dir $as_dirs"
12407      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12408$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12409         X"$as_dir" : 'X\(//\)[^/]' \| \
12410         X"$as_dir" : 'X\(//\)$' \| \
12411         X"$as_dir" : 'X\(/\)' \| \
12412         .     : '\(.\)' 2>/dev/null ||
12413echo X"$as_dir" |
12414    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12415          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12416          /^X\(\/\/\)$/{ s//\1/; q; }
12417          /^X\(\/\).*/{ s//\1/; q; }
12418          s/.*/./; q'`
12419    done
12420    test ! -n "$as_dirs" || mkdir $as_dirs
12421  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12422echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12423   { (exit 1); exit 1; }; }; }
12424
12425      rm -f $ac_file
12426      mv $tmp/config.h $ac_file
12427    fi
12428  else
12429    cat $tmp/config.h
12430    rm -f $tmp/config.h
12431  fi
12432# Compute $ac_file's index in $config_headers.
12433_am_stamp_count=1
12434for _am_header in $config_headers :; do
12435  case $_am_header in
12436    $ac_file | $ac_file:* )
12437      break ;;
12438    * )
12439      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12440  esac
12441done
12442echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12443$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12444         X$ac_file : 'X\(//\)[^/]' \| \
12445         X$ac_file : 'X\(//\)$' \| \
12446         X$ac_file : 'X\(/\)' \| \
12447         .     : '\(.\)' 2>/dev/null ||
12448echo X$ac_file |
12449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12450          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12451          /^X\(\/\/\)$/{ s//\1/; q; }
12452          /^X\(\/\).*/{ s//\1/; q; }
12453          s/.*/./; q'`/stamp-h$_am_stamp_count
12454done
12455_ACEOF
12456cat >>$CONFIG_STATUS <<\_ACEOF
12457
12458#
12459# CONFIG_COMMANDS section.
12460#
12461for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12462  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12463  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12464  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12465$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12466         X"$ac_dest" : 'X\(//\)[^/]' \| \
12467         X"$ac_dest" : 'X\(//\)$' \| \
12468         X"$ac_dest" : 'X\(/\)' \| \
12469         .     : '\(.\)' 2>/dev/null ||
12470echo X"$ac_dest" |
12471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12472          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12473          /^X\(\/\/\)$/{ s//\1/; q; }
12474          /^X\(\/\).*/{ s//\1/; q; }
12475          s/.*/./; q'`
12476  { if $as_mkdir_p; then
12477    mkdir -p "$ac_dir"
12478  else
12479    as_dir="$ac_dir"
12480    as_dirs=
12481    while test ! -d "$as_dir"; do
12482      as_dirs="$as_dir $as_dirs"
12483      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12485         X"$as_dir" : 'X\(//\)[^/]' \| \
12486         X"$as_dir" : 'X\(//\)$' \| \
12487         X"$as_dir" : 'X\(/\)' \| \
12488         .     : '\(.\)' 2>/dev/null ||
12489echo X"$as_dir" |
12490    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12491          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12492          /^X\(\/\/\)$/{ s//\1/; q; }
12493          /^X\(\/\).*/{ s//\1/; q; }
12494          s/.*/./; q'`
12495    done
12496    test ! -n "$as_dirs" || mkdir $as_dirs
12497  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12499   { (exit 1); exit 1; }; }; }
12500
12501  ac_builddir=.
12502
12503if test "$ac_dir" != .; then
12504  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12505  # A "../" for each directory in $ac_dir_suffix.
12506  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12507else
12508  ac_dir_suffix= ac_top_builddir=
12509fi
12510
12511case $srcdir in
12512  .)  # No --srcdir option.  We are building in place.
12513    ac_srcdir=.
12514    if test -z "$ac_top_builddir"; then
12515       ac_top_srcdir=.
12516    else
12517       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12518    fi ;;
12519  [\\/]* | ?:[\\/]* )  # Absolute path.
12520    ac_srcdir=$srcdir$ac_dir_suffix;
12521    ac_top_srcdir=$srcdir ;;
12522  *) # Relative path.
12523    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12524    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12525esac
12526
12527# Do not use `cd foo && pwd` to compute absolute paths, because
12528# the directories may not exist.
12529case `pwd` in
12530.) ac_abs_builddir="$ac_dir";;
12531*)
12532  case "$ac_dir" in
12533  .) ac_abs_builddir=`pwd`;;
12534  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12535  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12536  esac;;
12537esac
12538case $ac_abs_builddir in
12539.) ac_abs_top_builddir=${ac_top_builddir}.;;
12540*)
12541  case ${ac_top_builddir}. in
12542  .) ac_abs_top_builddir=$ac_abs_builddir;;
12543  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12544  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12545  esac;;
12546esac
12547case $ac_abs_builddir in
12548.) ac_abs_srcdir=$ac_srcdir;;
12549*)
12550  case $ac_srcdir in
12551  .) ac_abs_srcdir=$ac_abs_builddir;;
12552  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12553  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12554  esac;;
12555esac
12556case $ac_abs_builddir in
12557.) ac_abs_top_srcdir=$ac_top_srcdir;;
12558*)
12559  case $ac_top_srcdir in
12560  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12561  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12562  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12563  esac;;
12564esac
12565
12566
12567  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12568echo "$as_me: executing $ac_dest commands" >&6;}
12569  case $ac_dest in
12570    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12571  # Strip MF so we end up with the name of the file.
12572  mf=`echo "$mf" | sed -e 's/:.*$//'`
12573  # Check whether this is an Automake generated Makefile or not.
12574  # We used to match only the files named `Makefile.in', but
12575  # some people rename them; so instead we look at the file content.
12576  # Grep'ing the first line is not enough: some people post-process
12577  # each Makefile.in and add a new line on top of each file to say so.
12578  # So let's grep whole file.
12579  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12580    dirpart=`(dirname "$mf") 2>/dev/null ||
12581$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12582         X"$mf" : 'X\(//\)[^/]' \| \
12583         X"$mf" : 'X\(//\)$' \| \
12584         X"$mf" : 'X\(/\)' \| \
12585         .     : '\(.\)' 2>/dev/null ||
12586echo X"$mf" |
12587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12588          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12589          /^X\(\/\/\)$/{ s//\1/; q; }
12590          /^X\(\/\).*/{ s//\1/; q; }
12591          s/.*/./; q'`
12592  else
12593    continue
12594  fi
[5475]12595  # Extract the definition of DEPDIR, am__include, and am__quote
12596  # from the Makefile without running `make'.
[4826]12597  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
[1956]12598  test -z "$DEPDIR" && continue
[5475]12599  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12600  test -z "am__include" && continue
12601  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
[1956]12602  # When using ansi2knr, U may be empty or an underscore; expand it
[4826]12603  U=`sed -n 's/^U = //p' < "$mf"`
[5475]12604  # Find all dependency output files, they are included files with
12605  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12606  # simplest approach to changing $(DEPDIR) to its actual value in the
12607  # expansion.
12608  for file in `sed -n "
12609    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
[1956]12610       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12611    # Make sure the directory exists.
12612    test -f "$dirpart/$file" && continue
12613    fdir=`(dirname "$file") 2>/dev/null ||
12614$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12615         X"$file" : 'X\(//\)[^/]' \| \
12616         X"$file" : 'X\(//\)$' \| \
12617         X"$file" : 'X\(/\)' \| \
12618         .     : '\(.\)' 2>/dev/null ||
12619echo X"$file" |
12620    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12621          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12622          /^X\(\/\/\)$/{ s//\1/; q; }
12623          /^X\(\/\).*/{ s//\1/; q; }
12624          s/.*/./; q'`
12625    { if $as_mkdir_p; then
12626    mkdir -p $dirpart/$fdir
12627  else
12628    as_dir=$dirpart/$fdir
12629    as_dirs=
12630    while test ! -d "$as_dir"; do
12631      as_dirs="$as_dir $as_dirs"
12632      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12634         X"$as_dir" : 'X\(//\)[^/]' \| \
12635         X"$as_dir" : 'X\(//\)$' \| \
12636         X"$as_dir" : 'X\(/\)' \| \
12637         .     : '\(.\)' 2>/dev/null ||
12638echo X"$as_dir" |
12639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12640          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12641          /^X\(\/\/\)$/{ s//\1/; q; }
12642          /^X\(\/\).*/{ s//\1/; q; }
12643          s/.*/./; q'`
12644    done
12645    test ! -n "$as_dirs" || mkdir $as_dirs
12646  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12647echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12648   { (exit 1); exit 1; }; }; }
12649
12650    # echo "creating $dirpart/$file"
12651    echo '# dummy' > "$dirpart/$file"
12652  done
12653done
12654 ;;
12655  esac
12656done
12657_ACEOF
12658
12659cat >>$CONFIG_STATUS <<\_ACEOF
12660
12661{ (exit 0); exit 0; }
12662_ACEOF
12663chmod +x $CONFIG_STATUS
12664ac_clean_files=$ac_clean_files_save
12665
12666
12667# configure is writing to config.log, and then calls config.status.
12668# config.status does its own redirection, appending to config.log.
12669# Unfortunately, on DOS this fails, as config.log is still kept open
12670# by configure, so config.status won't be able to write to it; its
12671# output is simply discarded.  So we exec the FD to /dev/null,
12672# effectively closing config.log, so it can be properly (re)opened and
12673# appended to by config.status.  When coming back to configure, we
12674# need to make the FD available again.
12675if test "$no_create" != yes; then
12676  ac_cs_success=:
12677  ac_config_status_args=
12678  test "$silent" = yes &&
12679    ac_config_status_args="$ac_config_status_args --quiet"
12680  exec 5>/dev/null
12681  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12682  exec 5>>config.log
12683  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12684  # would make configure fail if this is the last instruction.
12685  $ac_cs_success || { (exit 1); exit 1; }
12686fi
12687
Note: See TracBrowser for help on using the repository browser.