Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5273

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

orxonox/trunk: now shaders do not execute (segfault) on non-shader hardware

  • Property svn:executable set to *
File size: 352.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
873  --enable-profile        builds orxonox with profiling support
874  --enable-efence         builds orxonox with efence support
875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
877
878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
883  --with-sub-projects     also builds the subProjects while make from srcdir
884
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.3.1_alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.3.1_alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--version;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.3.1_alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
3929## THIS IS OUR DEFAULT-DATA-DIRECTORY
3930
3931##################################
3932## CHECKING  OPTIONAL ARGUMENTS ##
3933##################################
3934#----------------#
3935# Data-Directory #
3936#----------------#
3937DATA_DIR=$datadir
3938echo \$\{prefix\}
3939if test $DATA_DIR = \$\{prefix\}/share ; then
3940        echo "not given"
3941        DATA_DIR=/usr/share
3942else
3943        echo "given: $DATA_DIR"
3944fi
3945
3946cat >>confdefs.h <<_ACEOF
3947#define DATADIR "$DATA_DIR"
3948_ACEOF
3949
3950
3951#-----------------#
3952# shared-lib-path #
3953#-----------------#
3954SHARED_LIB_PATH=no
3955echo "$as_me:$LINENO: checking shared lib path" >&5
3956echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3957
3958# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3959if test "${with_shared_lib_path+set}" = set; then
3960  withval="$with_shared_lib_path"
3961  SHARED_LIB_PATH=$withval
3962fi;
3963if test x$SHARED_LIB_PATH != xno; then
3964        echo "set to $SHARED_LIB_PATH"
3965else
3966        echo "no"
3967fi
3968
3969
3970#-----------------#
3971# DEBUG-statement #
3972#-----------------#
3973DEBUG=no
3974echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3975echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3976# Check whether --enable-debug or --disable-debug was given.
3977if test "${enable_debug+set}" = set; then
3978  enableval="$enable_debug"
3979  DEBUG=$enableval
3980fi;
3981
3982if test x$DEBUG = xno; then
3983        echo "no"
3984        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3985        DEBUG=4
3986elif test x$DEBUG = xyes; then
3987        echo "yes"
3988        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3989        DEBUG=4
3990else
3991        echo "yes: setting debuglevel to to $DEBUG"
3992fi
3993
3994cat >>confdefs.h <<_ACEOF
3995#define DEBUG $DEBUG
3996_ACEOF
3997
3998
3999
4000#---------------#
4001# Modular Debug #
4002#---------------#
4003MODULAR_DEBUG=yes
4004echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4005echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4006# Check whether --enable-modular-debug or --disable-modular-debug was given.
4007if test "${enable_modular_debug+set}" = set; then
4008  enableval="$enable_modular_debug"
4009  MODULAR_DEBUG=$enableval
4010fi;
4011
4012if test x$MODULAR_DEBUG = xno; then
4013        echo "no"
4014elif test x$MODULAR_DEBUG = xyes; then
4015        echo "yes"
4016
4017cat >>confdefs.h <<_ACEOF
4018#define MODULAR_DEBUG 1
4019_ACEOF
4020
4021fi
4022
4023#--------------#
4024# GTK-disabled #
4025#--------------#
4026echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4027echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4028# Check whether --enable-gtk or --disable-gtk was given.
4029if test "${enable_gtk+set}" = set; then
4030  enableval="$enable_gtk"
4031  def_gtk=no
4032else
4033  def_gtk=yes
4034fi;
4035if test x$def_gtk = xyes; then
4036  echo "yes"
4037fi
4038if test x$def_gtk = xno; then
4039  echo "no"
4040fi
4041
4042#------------------#
4043# libCurl-disabled #
4044#------------------#
4045echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4046echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4047# Check whether --enable-curl or --disable-curl was given.
4048if test "${enable_curl+set}" = set; then
4049  enableval="$enable_curl"
4050  def_curl=no
4051else
4052  def_curl=yes
4053fi;
4054if test x$def_curl = xyes; then
4055  echo "yes"
4056fi
4057if test x$def_curl = xno; then
4058  echo "no"
4059fi
4060
4061#-------------------#
4062# SubProject-enable #
4063#-------------------#
4064def_sub_projects=no
4065echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4066echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4067
4068# Check whether --with-sub-projects or --without-sub-projects was given.
4069if test "${with_sub_projects+set}" = set; then
4070  withval="$with_sub_projects"
4071  def_sub_projects=yes
4072fi;
4073if test x$def_sub_projects = xyes; then
4074  echo "yes"
4075fi
4076if test x$def_sub_projects = xno; then
4077  echo "no"
4078fi
4079
4080
4081if test x$def_sub_projects = xyes; then
4082  SUB_PROJECTS_TRUE=
4083  SUB_PROJECTS_FALSE='#'
4084else
4085  SUB_PROJECTS_TRUE='#'
4086  SUB_PROJECTS_FALSE=
4087fi
4088
4089
4090#-------------------#
4091# Profiling Enabled #
4092#-------------------#
4093def_profiling=no
4094echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4095echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4096# Check whether --enable-profile or --disable-profile was given.
4097if test "${enable_profile+set}" = set; then
4098  enableval="$enable_profile"
4099  def_profiling=yes
4100fi;
4101if test x$def_profiling = xyes; then
4102  echo "yes"
4103  CXXFLAGS="$CXXFLAGS -pg"
4104fi
4105if test x$def_profiling = xno; then
4106  echo "no"
4107fi
4108
4109#----------------#
4110# efence Enabled #
4111#----------------#
4112def_efence=no
4113echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4114echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4115# Check whether --enable-efence or --disable-efence was given.
4116if test "${enable_efence+set}" = set; then
4117  enableval="$enable_efence"
4118  def_efence=yes
4119fi;
4120if test x$def_efence = xyes; then
4121  echo "yes"
4122fi
4123if test x$def_efence = xno; then
4124  echo "no"
4125fi
4126
4127#----------------------#
4128# Documentation-enable #
4129#----------------------#
4130def_documentation=no
4131echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4132echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4133# Check whether --enable-documentation or --disable-documentation was given.
4134if test "${enable_documentation+set}" = set; then
4135  enableval="$enable_documentation"
4136  def_documentation=yes
4137fi;
4138if test x$def_documentation = xyes; then
4139  echo "yes"
4140fi
4141if test x$def_documentation = xno; then
4142  echo "no"
4143fi
4144
4145
4146if test x$def_documentation = xyes; then
4147  DOCUMENTATION_TRUE=
4148  DOCUMENTATION_FALSE='#'
4149else
4150  DOCUMENTATION_TRUE='#'
4151  DOCUMENTATION_FALSE=
4152fi
4153
4154
4155#######################
4156## PROGRAMM CHECKING ##
4157## 3. party Programs ##
4158#######################
4159
4160#----------------------#
4161# checking for Doxygen #
4162#----------------------#
4163# Extract the first word of "doxygen", so it can be a program name with args.
4164set dummy doxygen; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_path_DOXYGEN+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  case $DOXYGEN in
4171  [\\/]* | ?:[\\/]*)
4172  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4173  ;;
4174  *)
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180  for ac_exec_ext in '' $ac_executable_extensions; do
4181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187done
4188
4189  ;;
4190esac
4191fi
4192DOXYGEN=$ac_cv_path_DOXYGEN
4193
4194if test -n "$DOXYGEN"; then
4195  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4196echo "${ECHO_T}$DOXYGEN" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202
4203
4204if test $DOXYGEN; then
4205  DOXYGEN_TRUE=
4206  DOXYGEN_FALSE='#'
4207else
4208  DOXYGEN_TRUE='#'
4209  DOXYGEN_FALSE=
4210fi
4211
4212
4213#--------------------#
4214# checking for gprof #
4215#--------------------#
4216# Extract the first word of "gprof", so it can be a program name with args.
4217set dummy gprof; ac_word=$2
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220if test "${ac_cv_path_GPROF+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  case $GPROF in
4224  [\\/]* | ?:[\\/]*)
4225  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4226  ;;
4227  *)
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233  for ac_exec_ext in '' $ac_executable_extensions; do
4234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240done
4241
4242  ;;
4243esac
4244fi
4245GPROF=$ac_cv_path_GPROF
4246
4247if test -n "$GPROF"; then
4248  echo "$as_me:$LINENO: result: $GPROF" >&5
4249echo "${ECHO_T}$GPROF" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255
4256#-------------------------#
4257# checking for pkg-config #
4258#-------------------------#
4259if test x$def_gtk = xyes; then
4260 # Extract the first word of "pkg-config", so it can be a program name with args.
4261set dummy pkg-config; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  case $PKG_CONFIG in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4270  ;;
4271  *)
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_exec_ext in '' $ac_executable_extensions; do
4278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284done
4285
4286  ;;
4287esac
4288fi
4289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4290
4291if test -n "$PKG_CONFIG"; then
4292  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4293echo "${ECHO_T}$PKG_CONFIG" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299fi
4300
4301
4302#########################
4303## CHECKING FOR SYSTEM ##
4304#########################
4305## here the system is checked, and openGL is included
4306## also checking for SDL on differen Systems
4307
4308echo "$as_me:$LINENO: checking for System" >&5
4309echo $ECHO_N "checking for System... $ECHO_C" >&6
4310## checking for openGL-environment and other sys-specific parameters
4311case "$target" in
4312
4313###########
4314#---------#
4315# WINDOWS #
4316#---------#
4317###########
4318  *-*-mingw32*)
4319echo "mingw-WINDOWS detected"
4320
4321CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
4322
4323    mingw="yes"
4324    MSBITFIELDS="-mms-bitfields"
4325    MWINDOWS="-mwindows"
4326
4327
4328
4329# checking for mingw32
4330    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4331echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4332if test "${ac_cv_lib_mingw32_main+set}" = set; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335  ac_check_lib_save_LIBS=$LIBS
4336LIBS="-lmingw32  $LIBS"
4337cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h.  */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h.  */
4343
4344
4345int
4346main ()
4347{
4348main ();
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
4354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4355  (eval $ac_link) 2>conftest.er1
4356  ac_status=$?
4357  grep -v '^ *+' conftest.er1 >conftest.err
4358  rm -f conftest.er1
4359  cat conftest.err >&5
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); } &&
4362         { ac_try='test -z "$ac_c_werror_flag"
4363                         || test ! -s conftest.err'
4364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365  (eval $ac_try) 2>&5
4366  ac_status=$?
4367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368  (exit $ac_status); }; } &&
4369         { ac_try='test -s conftest$ac_exeext'
4370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371  (eval $ac_try) 2>&5
4372  ac_status=$?
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); }; }; then
4375  ac_cv_lib_mingw32_main=yes
4376else
4377  echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380ac_cv_lib_mingw32_main=no
4381fi
4382rm -f conftest.err conftest.$ac_objext \
4383      conftest$ac_exeext conftest.$ac_ext
4384LIBS=$ac_check_lib_save_LIBS
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4387echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4388if test $ac_cv_lib_mingw32_main = yes; then
4389  FOUND_mingw32=yes
4390fi
4391
4392    if test x$FOUND_mingw32 = xyes; then
4393        LIBS="$LIBS -lmingw32"
4394    fi
4395
4396#-----------#
4397# SDL(win) #
4398#-----------#
4399# checking for SDL-headers
4400    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4411                  inttypes.h stdint.h unistd.h
4412do
4413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414echo "$as_me:$LINENO: checking for $ac_header" >&5
4415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4416if eval "test \"\${$as_ac_Header+set}\" = set"; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425$ac_includes_default
4426
4427#include <$ac_header>
4428_ACEOF
4429rm -f conftest.$ac_objext
4430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431  (eval $ac_compile) 2>conftest.er1
4432  ac_status=$?
4433  grep -v '^ *+' conftest.er1 >conftest.err
4434  rm -f conftest.er1
4435  cat conftest.err >&5
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); } &&
4438         { ac_try='test -z "$ac_c_werror_flag"
4439                         || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445         { ac_try='test -s conftest.$ac_objext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  eval "$as_ac_Header=yes"
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456eval "$as_ac_Header=no"
4457fi
4458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459fi
4460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463  cat >>confdefs.h <<_ACEOF
4464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465_ACEOF
4466
4467fi
4468
4469done
4470
4471
4472
4473for ac_header in SDL/SDL.h
4474do
4475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477  echo "$as_me:$LINENO: checking for $ac_header" >&5
4478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4479if eval "test \"\${$as_ac_Header+set}\" = set"; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481fi
4482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484else
4485  # Is the header compilable?
4486echo "$as_me:$LINENO: checking $ac_header usability" >&5
4487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h.  */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h.  */
4494$ac_includes_default
4495#include <$ac_header>
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499  (eval $ac_compile) 2>conftest.er1
4500  ac_status=$?
4501  grep -v '^ *+' conftest.er1 >conftest.err
4502  rm -f conftest.er1
4503  cat conftest.err >&5
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } &&
4506         { ac_try='test -z "$ac_c_werror_flag"
4507                         || test ! -s conftest.err'
4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509  (eval $ac_try) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; } &&
4513         { ac_try='test -s conftest.$ac_objext'
4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515  (eval $ac_try) 2>&5
4516  ac_status=$?
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); }; }; then
4519  ac_header_compiler=yes
4520else
4521  echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524ac_header_compiler=no
4525fi
4526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4528echo "${ECHO_T}$ac_header_compiler" >&6
4529
4530# Is the header present?
4531echo "$as_me:$LINENO: checking $ac_header presence" >&5
4532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4533cat >conftest.$ac_ext <<_ACEOF
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539#include <$ac_header>
4540_ACEOF
4541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4543  ac_status=$?
4544  grep -v '^ *+' conftest.er1 >conftest.err
4545  rm -f conftest.er1
4546  cat conftest.err >&5
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); } >/dev/null; then
4549  if test -s conftest.err; then
4550    ac_cpp_err=$ac_c_preproc_warn_flag
4551    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4552  else
4553    ac_cpp_err=
4554  fi
4555else
4556  ac_cpp_err=yes
4557fi
4558if test -z "$ac_cpp_err"; then
4559  ac_header_preproc=yes
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564  ac_header_preproc=no
4565fi
4566rm -f conftest.err conftest.$ac_ext
4567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4568echo "${ECHO_T}$ac_header_preproc" >&6
4569
4570# So?  What about this header?
4571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4572  yes:no: )
4573    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4575    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4577    ac_header_preproc=yes
4578    ;;
4579  no:yes:* )
4580    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4582    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4583echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4584    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4586    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4587echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4588    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4590    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4592    (
4593      cat <<\_ASBOX
4594## ---------------------------------------------- ##
4595## Report this to orxonox-dev at mail.datacore.ch ##
4596## ---------------------------------------------- ##
4597_ASBOX
4598    ) |
4599      sed "s/^/$as_me: WARNING:     /" >&2
4600    ;;
4601esac
4602echo "$as_me:$LINENO: checking for $ac_header" >&5
4603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4604if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605  echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607  eval "$as_ac_Header=\$ac_header_preproc"
4608fi
4609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4611
4612fi
4613if test `eval echo '${'$as_ac_Header'}'` = yes; then
4614  cat >>confdefs.h <<_ACEOF
4615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616_ACEOF
4617
4618else
4619  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4620echo "$as_me: error: cannot find SDL headers" >&2;}
4621   { (exit 1); exit 1; }; }
4622fi
4623
4624done
4625
4626
4627#checking for libSDL
4628    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4629echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4630if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633  ac_check_lib_save_LIBS=$LIBS
4634LIBS="-lsdlmain  $LIBS"
4635cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
4641
4642
4643int
4644main ()
4645{
4646main ();
4647  ;
4648  return 0;
4649}
4650_ACEOF
4651rm -f conftest.$ac_objext conftest$ac_exeext
4652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653  (eval $ac_link) 2>conftest.er1
4654  ac_status=$?
4655  grep -v '^ *+' conftest.er1 >conftest.err
4656  rm -f conftest.er1
4657  cat conftest.err >&5
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); } &&
4660         { ac_try='test -z "$ac_c_werror_flag"
4661                         || test ! -s conftest.err'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; } &&
4667         { ac_try='test -s conftest$ac_exeext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
4673  ac_cv_lib_sdlmain_main=yes
4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678ac_cv_lib_sdlmain_main=no
4679fi
4680rm -f conftest.err conftest.$ac_objext \
4681      conftest$ac_exeext conftest.$ac_ext
4682LIBS=$ac_check_lib_save_LIBS
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4685echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4686if test $ac_cv_lib_sdlmain_main = yes; then
4687  FOUND_sdlmain=yes
4688fi
4689
4690    if test x$FOUND_sdlmain = xyes ; then
4691       LIBS="$LIBS -lsdlmain"
4692    else
4693        echo "------------------"
4694        echo "SDL library not found."
4695        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4696        echo "------------------"
4697        exit 1
4698    fi
4699    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4700echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4701if test "${ac_cv_lib_sdl_main+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  ac_check_lib_save_LIBS=$LIBS
4705LIBS="-lsdl  $LIBS"
4706cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h.  */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h.  */
4712
4713
4714int
4715main ()
4716{
4717main ();
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext conftest$ac_exeext
4723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724  (eval $ac_link) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } &&
4731         { ac_try='test -z "$ac_c_werror_flag"
4732                         || test ! -s conftest.err'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; } &&
4738         { ac_try='test -s conftest$ac_exeext'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; }; then
4744  ac_cv_lib_sdl_main=yes
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749ac_cv_lib_sdl_main=no
4750fi
4751rm -f conftest.err conftest.$ac_objext \
4752      conftest$ac_exeext conftest.$ac_ext
4753LIBS=$ac_check_lib_save_LIBS
4754fi
4755echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4756echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4757if test $ac_cv_lib_sdl_main = yes; then
4758  FOUND_sdl=yes
4759fi
4760
4761    if test x$FOUND_sdl = xyes ; then
4762       LIBS="$LIBS -lsdl"
4763    else
4764        echo "------------------"
4765        echo "SDL library not found."
4766        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4767        echo "------------------"
4768        exit -1
4769    fi
4770
4771#---------------#
4772# open-GL (win) #
4773#---------------#
4774# checking gl header
4775
4776for ac_header in GL/gl.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780  echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783  echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788  # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h.  */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h.  */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802  (eval $ac_compile) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } &&
4809         { ac_try='test -z "$ac_c_werror_flag"
4810                         || test ! -s conftest.err'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; } &&
4816         { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  ac_header_compiler=yes
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827ac_header_compiler=no
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831echo "${ECHO_T}$ac_header_compiler" >&6
4832
4833# Is the header present?
4834echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h.  */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h.  */
4842#include <$ac_header>
4843_ACEOF
4844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846  ac_status=$?
4847  grep -v '^ *+' conftest.er1 >conftest.err
4848  rm -f conftest.er1
4849  cat conftest.err >&5
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); } >/dev/null; then
4852  if test -s conftest.err; then
4853    ac_cpp_err=$ac_c_preproc_warn_flag
4854    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855  else
4856    ac_cpp_err=
4857  fi
4858else
4859  ac_cpp_err=yes
4860fi
4861if test -z "$ac_cpp_err"; then
4862  ac_header_preproc=yes
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867  ac_header_preproc=no
4868fi
4869rm -f conftest.err conftest.$ac_ext
4870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873# So?  What about this header?
4874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875  yes:no: )
4876    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4880    ac_header_preproc=yes
4881    ;;
4882  no:yes:* )
4883    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4886echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4887    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4889    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4890echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4895    (
4896      cat <<\_ASBOX
4897## ---------------------------------------------- ##
4898## Report this to orxonox-dev at mail.datacore.ch ##
4899## ---------------------------------------------- ##
4900_ASBOX
4901    ) |
4902      sed "s/^/$as_me: WARNING:     /" >&2
4903    ;;
4904esac
4905echo "$as_me:$LINENO: checking for $ac_header" >&5
4906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  eval "$as_ac_Header=\$ac_header_preproc"
4911fi
4912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
4915fi
4916if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917  cat >>confdefs.h <<_ACEOF
4918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919_ACEOF
4920
4921else
4922  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4923echo "$as_me: error: cannot find opengl headers" >&2;}
4924   { (exit 1); exit 1; }; }
4925fi
4926
4927done
4928
4929#   checking for Windows openGl library
4930    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4931echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4932if test "${ac_cv_lib_opengl32_main+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  ac_check_lib_save_LIBS=$LIBS
4936LIBS="-lopengl32  $LIBS"
4937cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h.  */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h.  */
4943
4944
4945int
4946main ()
4947{
4948main ();
4949  ;
4950  return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext conftest$ac_exeext
4954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4955  (eval $ac_link) 2>conftest.er1
4956  ac_status=$?
4957  grep -v '^ *+' conftest.er1 >conftest.err
4958  rm -f conftest.er1
4959  cat conftest.err >&5
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); } &&
4962         { ac_try='test -z "$ac_c_werror_flag"
4963                         || test ! -s conftest.err'
4964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965  (eval $ac_try) 2>&5
4966  ac_status=$?
4967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968  (exit $ac_status); }; } &&
4969         { ac_try='test -s conftest$ac_exeext'
4970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971  (eval $ac_try) 2>&5
4972  ac_status=$?
4973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974  (exit $ac_status); }; }; then
4975  ac_cv_lib_opengl32_main=yes
4976else
4977  echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980ac_cv_lib_opengl32_main=no
4981fi
4982rm -f conftest.err conftest.$ac_objext \
4983      conftest$ac_exeext conftest.$ac_ext
4984LIBS=$ac_check_lib_save_LIBS
4985fi
4986echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4987echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4988if test $ac_cv_lib_opengl32_main = yes; then
4989  FOUND_opengl32=yes
4990else
4991  "gl/gl.h"
4992fi
4993
4994    if test x$FOUND_opengl32 = xyes ; then
4995        LIBS="$LIBS -lopengl32"
4996    else
4997         echo "------------------"
4998         echo "opengl not found."
4999         echo "please install the opengl package which can be found at http://www.opengl.org"
5000         echo "------------------"
5001         exit -1
5002    fi
5003
5004# cheking for GLU-header
5005
5006for ac_header in GL/glu.h
5007do
5008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5009if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010  echo "$as_me:$LINENO: checking for $ac_header" >&5
5011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5012if eval "test \"\${$as_ac_Header+set}\" = set"; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014fi
5015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017else
5018  # Is the header compilable?
5019echo "$as_me:$LINENO: checking $ac_header usability" >&5
5020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5021cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h.  */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h.  */
5027$ac_includes_default
5028#include <$ac_header>
5029_ACEOF
5030rm -f conftest.$ac_objext
5031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032  (eval $ac_compile) 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } &&
5039         { ac_try='test -z "$ac_c_werror_flag"
5040                         || test ! -s conftest.err'
5041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042  (eval $ac_try) 2>&5
5043  ac_status=$?
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); }; } &&
5046         { ac_try='test -s conftest.$ac_objext'
5047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048  (eval $ac_try) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; }; then
5052  ac_header_compiler=yes
5053else
5054  echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057ac_header_compiler=no
5058fi
5059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5060echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5061echo "${ECHO_T}$ac_header_compiler" >&6
5062
5063# Is the header present?
5064echo "$as_me:$LINENO: checking $ac_header presence" >&5
5065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5066cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h.  */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h.  */
5072#include <$ac_header>
5073_ACEOF
5074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076  ac_status=$?
5077  grep -v '^ *+' conftest.er1 >conftest.err
5078  rm -f conftest.er1
5079  cat conftest.err >&5
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); } >/dev/null; then
5082  if test -s conftest.err; then
5083    ac_cpp_err=$ac_c_preproc_warn_flag
5084    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5085  else
5086    ac_cpp_err=
5087  fi
5088else
5089  ac_cpp_err=yes
5090fi
5091if test -z "$ac_cpp_err"; then
5092  ac_header_preproc=yes
5093else
5094  echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097  ac_header_preproc=no
5098fi
5099rm -f conftest.err conftest.$ac_ext
5100echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101echo "${ECHO_T}$ac_header_preproc" >&6
5102
5103# So?  What about this header?
5104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5105  yes:no: )
5106    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5110    ac_header_preproc=yes
5111    ;;
5112  no:yes:* )
5113    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5116echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5117    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5119    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5120echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5121    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5123    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5125    (
5126      cat <<\_ASBOX
5127## ---------------------------------------------- ##
5128## Report this to orxonox-dev at mail.datacore.ch ##
5129## ---------------------------------------------- ##
5130_ASBOX
5131    ) |
5132      sed "s/^/$as_me: WARNING:     /" >&2
5133    ;;
5134esac
5135echo "$as_me:$LINENO: checking for $ac_header" >&5
5136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  eval "$as_ac_Header=\$ac_header_preproc"
5141fi
5142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5144
5145fi
5146if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147  cat >>confdefs.h <<_ACEOF
5148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149_ACEOF
5150
5151else
5152  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5153echo "$as_me: error: cannot find opengl headers" >&2;}
5154   { (exit 1); exit 1; }; }
5155fi
5156
5157done
5158
5159
5160# checking for libGLU
5161    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5162echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5163if test "${ac_cv_lib_glu32_main+set}" = set; then
5164  echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166  ac_check_lib_save_LIBS=$LIBS
5167LIBS="-lglu32  $LIBS"
5168cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h.  */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h.  */
5174
5175
5176int
5177main ()
5178{
5179main ();
5180  ;
5181  return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext conftest$ac_exeext
5185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186  (eval $ac_link) 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } &&
5193         { ac_try='test -z "$ac_c_werror_flag"
5194                         || test ! -s conftest.err'
5195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196  (eval $ac_try) 2>&5
5197  ac_status=$?
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); }; } &&
5200         { ac_try='test -s conftest$ac_exeext'
5201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202  (eval $ac_try) 2>&5
5203  ac_status=$?
5204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205  (exit $ac_status); }; }; then
5206  ac_cv_lib_glu32_main=yes
5207else
5208  echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211ac_cv_lib_glu32_main=no
5212fi
5213rm -f conftest.err conftest.$ac_objext \
5214      conftest$ac_exeext conftest.$ac_ext
5215LIBS=$ac_check_lib_save_LIBS
5216fi
5217echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5218echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5219if test $ac_cv_lib_glu32_main = yes; then
5220  FOUND_glu32=yes
5221fi
5222
5223    if test x$FOUND_glu32 = xyes ; then
5224        LIBS="$LIBS -lGLU32"
5225    else
5226         echo "------------------"
5227         echo "GLU library not found."
5228         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5229         echo "------------------"
5230         exit -1
5231    fi
5232
5233# checking glew header
5234
5235for ac_header in GL/glew.h
5236do
5237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5238if eval "test \"\${$as_ac_Header+set}\" = set"; then
5239  echo "$as_me:$LINENO: checking for $ac_header" >&5
5240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5241if eval "test \"\${$as_ac_Header+set}\" = set"; then
5242  echo $ECHO_N "(cached) $ECHO_C" >&6
5243fi
5244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5246else
5247  # Is the header compilable?
5248echo "$as_me:$LINENO: checking $ac_header usability" >&5
5249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5250cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h.  */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h.  */
5256$ac_includes_default
5257#include <$ac_header>
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261  (eval $ac_compile) 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } &&
5268         { ac_try='test -z "$ac_c_werror_flag"
5269                         || test ! -s conftest.err'
5270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271  (eval $ac_try) 2>&5
5272  ac_status=$?
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); }; } &&
5275         { ac_try='test -s conftest.$ac_objext'
5276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277  (eval $ac_try) 2>&5
5278  ac_status=$?
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); }; }; then
5281  ac_header_compiler=yes
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286ac_header_compiler=no
5287fi
5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5290echo "${ECHO_T}$ac_header_compiler" >&6
5291
5292# Is the header present?
5293echo "$as_me:$LINENO: checking $ac_header presence" >&5
5294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5295cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h.  */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h.  */
5301#include <$ac_header>
5302_ACEOF
5303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5304  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5305  ac_status=$?
5306  grep -v '^ *+' conftest.er1 >conftest.err
5307  rm -f conftest.er1
5308  cat conftest.err >&5
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); } >/dev/null; then
5311  if test -s conftest.err; then
5312    ac_cpp_err=$ac_c_preproc_warn_flag
5313    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314  else
5315    ac_cpp_err=
5316  fi
5317else
5318  ac_cpp_err=yes
5319fi
5320if test -z "$ac_cpp_err"; then
5321  ac_header_preproc=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326  ac_header_preproc=no
5327fi
5328rm -f conftest.err conftest.$ac_ext
5329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5330echo "${ECHO_T}$ac_header_preproc" >&6
5331
5332# So?  What about this header?
5333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5334  yes:no: )
5335    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5337    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5339    ac_header_preproc=yes
5340    ;;
5341  no:yes:* )
5342    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5344    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5345echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5346    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5348    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5349echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5352    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5354    (
5355      cat <<\_ASBOX
5356## ---------------------------------------------- ##
5357## Report this to orxonox-dev at mail.datacore.ch ##
5358## ---------------------------------------------- ##
5359_ASBOX
5360    ) |
5361      sed "s/^/$as_me: WARNING:     /" >&2
5362    ;;
5363esac
5364echo "$as_me:$LINENO: checking for $ac_header" >&5
5365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5366if eval "test \"\${$as_ac_Header+set}\" = set"; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  eval "$as_ac_Header=\$ac_header_preproc"
5370fi
5371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373
5374fi
5375if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376  cat >>confdefs.h <<_ACEOF
5377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378_ACEOF
5379
5380else
5381  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5382echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
5383   { (exit 1); exit 1; }; }
5384fi
5385
5386done
5387
5388#   checking for Windows glew library
5389    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5390echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5391if test "${ac_cv_lib_glew32_main+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  ac_check_lib_save_LIBS=$LIBS
5395LIBS="-lglew32  $LIBS"
5396cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h.  */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h.  */
5402
5403
5404int
5405main ()
5406{
5407main ();
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412rm -f conftest.$ac_objext conftest$ac_exeext
5413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414  (eval $ac_link) 2>conftest.er1
5415  ac_status=$?
5416  grep -v '^ *+' conftest.er1 >conftest.err
5417  rm -f conftest.er1
5418  cat conftest.err >&5
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); } &&
5421         { ac_try='test -z "$ac_c_werror_flag"
5422                         || test ! -s conftest.err'
5423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424  (eval $ac_try) 2>&5
5425  ac_status=$?
5426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427  (exit $ac_status); }; } &&
5428         { ac_try='test -s conftest$ac_exeext'
5429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430  (eval $ac_try) 2>&5
5431  ac_status=$?
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); }; }; then
5434  ac_cv_lib_glew32_main=yes
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439ac_cv_lib_glew32_main=no
5440fi
5441rm -f conftest.err conftest.$ac_objext \
5442      conftest$ac_exeext conftest.$ac_ext
5443LIBS=$ac_check_lib_save_LIBS
5444fi
5445echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5446echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5447if test $ac_cv_lib_glew32_main = yes; then
5448  FOUND_glew32=yes
5449fi
5450
5451    if test x$FOUND_glew32 = xyes ; then
5452        LIBS="$LIBS -lglew32"
5453    else
5454         echo "------------------"
5455         echo "opengl extension wrangler not found."
5456         echo "please install the glew package which can be found at http://glew.sourceforge.net"
5457         echo "------------------"
5458         exit -1
5459    fi
5460
5461#--------#
5462# openAL #
5463#--------#
5464# checking for openAL-headers
5465
5466for ac_header in AL/al.h
5467do
5468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470  echo "$as_me:$LINENO: checking for $ac_header" >&5
5471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5472if eval "test \"\${$as_ac_Header+set}\" = set"; then
5473  echo $ECHO_N "(cached) $ECHO_C" >&6
5474fi
5475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5477else
5478  # Is the header compilable?
5479echo "$as_me:$LINENO: checking $ac_header usability" >&5
5480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5481cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h.  */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h.  */
5487$ac_includes_default
5488#include <$ac_header>
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492  (eval $ac_compile) 2>conftest.er1
5493  ac_status=$?
5494  grep -v '^ *+' conftest.er1 >conftest.err
5495  rm -f conftest.er1
5496  cat conftest.err >&5
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); } &&
5499         { ac_try='test -z "$ac_c_werror_flag"
5500                         || test ! -s conftest.err'
5501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502  (eval $ac_try) 2>&5
5503  ac_status=$?
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); }; } &&
5506         { ac_try='test -s conftest.$ac_objext'
5507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508  (eval $ac_try) 2>&5
5509  ac_status=$?
5510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511  (exit $ac_status); }; }; then
5512  ac_header_compiler=yes
5513else
5514  echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517ac_header_compiler=no
5518fi
5519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5521echo "${ECHO_T}$ac_header_compiler" >&6
5522
5523# Is the header present?
5524echo "$as_me:$LINENO: checking $ac_header presence" >&5
5525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5526cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h.  */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h.  */
5532#include <$ac_header>
5533_ACEOF
5534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5535  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5536  ac_status=$?
5537  grep -v '^ *+' conftest.er1 >conftest.err
5538  rm -f conftest.er1
5539  cat conftest.err >&5
5540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541  (exit $ac_status); } >/dev/null; then
5542  if test -s conftest.err; then
5543    ac_cpp_err=$ac_c_preproc_warn_flag
5544    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5545  else
5546    ac_cpp_err=
5547  fi
5548else
5549  ac_cpp_err=yes
5550fi
5551if test -z "$ac_cpp_err"; then
5552  ac_header_preproc=yes
5553else
5554  echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557  ac_header_preproc=no
5558fi
5559rm -f conftest.err conftest.$ac_ext
5560echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5561echo "${ECHO_T}$ac_header_preproc" >&6
5562
5563# So?  What about this header?
5564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5565  yes:no: )
5566    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5568    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5570    ac_header_preproc=yes
5571    ;;
5572  no:yes:* )
5573    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5575    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5576echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5577    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5579    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5580echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5581    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5583    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5585    (
5586      cat <<\_ASBOX
5587## ---------------------------------------------- ##
5588## Report this to orxonox-dev at mail.datacore.ch ##
5589## ---------------------------------------------- ##
5590_ASBOX
5591    ) |
5592      sed "s/^/$as_me: WARNING:     /" >&2
5593    ;;
5594esac
5595echo "$as_me:$LINENO: checking for $ac_header" >&5
5596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5597if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598  echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600  eval "$as_ac_Header=\$ac_header_preproc"
5601fi
5602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604
5605fi
5606if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607  cat >>confdefs.h <<_ACEOF
5608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609_ACEOF
5610
5611else
5612  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5613echo "$as_me: error: cannot find openAL header." >&2;}
5614   { (exit 1); exit 1; }; }
5615fi
5616
5617done
5618
5619# checking for openAL-lib
5620  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5621echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5622if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  ac_check_lib_save_LIBS=$LIBS
5626LIBS="-lOpenAL32  $LIBS"
5627cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h.  */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h.  */
5633
5634
5635int
5636main ()
5637{
5638main ();
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643rm -f conftest.$ac_objext conftest$ac_exeext
5644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645  (eval $ac_link) 2>conftest.er1
5646  ac_status=$?
5647  grep -v '^ *+' conftest.er1 >conftest.err
5648  rm -f conftest.er1
5649  cat conftest.err >&5
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); } &&
5652         { ac_try='test -z "$ac_c_werror_flag"
5653                         || test ! -s conftest.err'
5654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655  (eval $ac_try) 2>&5
5656  ac_status=$?
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); }; } &&
5659         { ac_try='test -s conftest$ac_exeext'
5660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661  (eval $ac_try) 2>&5
5662  ac_status=$?
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); }; }; then
5665  ac_cv_lib_OpenAL32_main=yes
5666else
5667  echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
5670ac_cv_lib_OpenAL32_main=no
5671fi
5672rm -f conftest.err conftest.$ac_objext \
5673      conftest$ac_exeext conftest.$ac_ext
5674LIBS=$ac_check_lib_save_LIBS
5675fi
5676echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5677echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5678if test $ac_cv_lib_OpenAL32_main = yes; then
5679  FOUND_openal=yes
5680fi
5681
5682  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5683echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5684if test "${ac_cv_lib_ALut_main+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  ac_check_lib_save_LIBS=$LIBS
5688LIBS="-lALut  $LIBS"
5689cat >conftest.$ac_ext <<_ACEOF
5690/* confdefs.h.  */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h.  */
5695
5696
5697int
5698main ()
5699{
5700main ();
5701  ;
5702  return 0;
5703}
5704_ACEOF
5705rm -f conftest.$ac_objext conftest$ac_exeext
5706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5707  (eval $ac_link) 2>conftest.er1
5708  ac_status=$?
5709  grep -v '^ *+' conftest.er1 >conftest.err
5710  rm -f conftest.er1
5711  cat conftest.err >&5
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); } &&
5714         { ac_try='test -z "$ac_c_werror_flag"
5715                         || test ! -s conftest.err'
5716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717  (eval $ac_try) 2>&5
5718  ac_status=$?
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); }; } &&
5721         { ac_try='test -s conftest$ac_exeext'
5722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723  (eval $ac_try) 2>&5
5724  ac_status=$?
5725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726  (exit $ac_status); }; }; then
5727  ac_cv_lib_ALut_main=yes
5728else
5729  echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732ac_cv_lib_ALut_main=no
5733fi
5734rm -f conftest.err conftest.$ac_objext \
5735      conftest$ac_exeext conftest.$ac_ext
5736LIBS=$ac_check_lib_save_LIBS
5737fi
5738echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5739echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5740if test $ac_cv_lib_ALut_main = yes; then
5741  FOUND_ALut=yes
5742fi
5743
5744     if test x$FOUND_openal = xyes ; then
5745      if test x$FOUND_ALut = xyes ; then
5746       LIBS="$LIBS -lALut -lOpenAL32"
5747     else
5748        echo "------------------"
5749        echo "openal library not found."
5750        echo "please install the openal library, which can be found at http://www.openal.org"
5751        echo "------------------"
5752        exit -1
5753      fi
5754     fi
5755    ;;
5756
5757#########
5758#-------#
5759# LINUX #
5760#-------#
5761#########
5762 *-*-linux*)
5763echo "Linux detected"
5764
5765 Linux="yes"
5766
5767##CPPFLAGS="-I/usr/include $CPPFLAGS"
5768##LDFLAGS="-L/usr/lib $LDFLAGS"
5769if test x$SHARED_LIB_PATH != xno; then
5770        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5771        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
5772fi
5773
5774# checking gl header
5775
5776for ac_header in GL/gl.h
5777do
5778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5779if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780  echo "$as_me:$LINENO: checking for $ac_header" >&5
5781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5782if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784fi
5785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5787else
5788  # Is the header compilable?
5789echo "$as_me:$LINENO: checking $ac_header usability" >&5
5790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5791cat >conftest.$ac_ext <<_ACEOF
5792/* confdefs.h.  */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h.  */
5797$ac_includes_default
5798#include <$ac_header>
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802  (eval $ac_compile) 2>conftest.er1
5803  ac_status=$?
5804  grep -v '^ *+' conftest.er1 >conftest.err
5805  rm -f conftest.er1
5806  cat conftest.err >&5
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); } &&
5809         { ac_try='test -z "$ac_c_werror_flag"
5810                         || test ! -s conftest.err'
5811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812  (eval $ac_try) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }; } &&
5816         { ac_try='test -s conftest.$ac_objext'
5817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818  (eval $ac_try) 2>&5
5819  ac_status=$?
5820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); }; }; then
5822  ac_header_compiler=yes
5823else
5824  echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827ac_header_compiler=no
5828fi
5829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5831echo "${ECHO_T}$ac_header_compiler" >&6
5832
5833# Is the header present?
5834echo "$as_me:$LINENO: checking $ac_header presence" >&5
5835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5836cat >conftest.$ac_ext <<_ACEOF
5837/* confdefs.h.  */
5838_ACEOF
5839cat confdefs.h >>conftest.$ac_ext
5840cat >>conftest.$ac_ext <<_ACEOF
5841/* end confdefs.h.  */
5842#include <$ac_header>
5843_ACEOF
5844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5846  ac_status=$?
5847  grep -v '^ *+' conftest.er1 >conftest.err
5848  rm -f conftest.er1
5849  cat conftest.err >&5
5850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851  (exit $ac_status); } >/dev/null; then
5852  if test -s conftest.err; then
5853    ac_cpp_err=$ac_c_preproc_warn_flag
5854    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5855  else
5856    ac_cpp_err=
5857  fi
5858else
5859  ac_cpp_err=yes
5860fi
5861if test -z "$ac_cpp_err"; then
5862  ac_header_preproc=yes
5863else
5864  echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867  ac_header_preproc=no
5868fi
5869rm -f conftest.err conftest.$ac_ext
5870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5871echo "${ECHO_T}$ac_header_preproc" >&6
5872
5873# So?  What about this header?
5874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5875  yes:no: )
5876    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5878    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5880    ac_header_preproc=yes
5881    ;;
5882  no:yes:* )
5883    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5885    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5886echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5887    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5889    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5890echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5893    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5895    (
5896      cat <<\_ASBOX
5897## ---------------------------------------------- ##
5898## Report this to orxonox-dev at mail.datacore.ch ##
5899## ---------------------------------------------- ##
5900_ASBOX
5901    ) |
5902      sed "s/^/$as_me: WARNING:     /" >&2
5903    ;;
5904esac
5905echo "$as_me:$LINENO: checking for $ac_header" >&5
5906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5907if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908  echo $ECHO_N "(cached) $ECHO_C" >&6
5909else
5910  eval "$as_ac_Header=\$ac_header_preproc"
5911fi
5912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914
5915fi
5916if test `eval echo '${'$as_ac_Header'}'` = yes; then
5917  cat >>confdefs.h <<_ACEOF
5918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5919_ACEOF
5920
5921else
5922  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5923echo "$as_me: error: cannot find opengl headers" >&2;}
5924   { (exit 1); exit 1; }; }
5925fi
5926
5927done
5928
5929
5930#  checking for Unix GL
5931   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5932echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5933if test "${ac_cv_lib_GL_main+set}" = set; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936  ac_check_lib_save_LIBS=$LIBS
5937LIBS="-lGL  $LIBS"
5938cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h.  */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h.  */
5944
5945
5946int
5947main ()
5948{
5949main ();
5950  ;
5951  return 0;
5952}
5953_ACEOF
5954rm -f conftest.$ac_objext conftest$ac_exeext
5955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956  (eval $ac_link) 2>conftest.er1
5957  ac_status=$?
5958  grep -v '^ *+' conftest.er1 >conftest.err
5959  rm -f conftest.er1
5960  cat conftest.err >&5
5961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962  (exit $ac_status); } &&
5963         { ac_try='test -z "$ac_c_werror_flag"
5964                         || test ! -s conftest.err'
5965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966  (eval $ac_try) 2>&5
5967  ac_status=$?
5968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); }; } &&
5970         { ac_try='test -s conftest$ac_exeext'
5971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972  (eval $ac_try) 2>&5
5973  ac_status=$?
5974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975  (exit $ac_status); }; }; then
5976  ac_cv_lib_GL_main=yes
5977else
5978  echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981ac_cv_lib_GL_main=no
5982fi
5983rm -f conftest.err conftest.$ac_objext \
5984      conftest$ac_exeext conftest.$ac_ext
5985LIBS=$ac_check_lib_save_LIBS
5986fi
5987echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5988echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5989if test $ac_cv_lib_GL_main = yes; then
5990  FOUND_GL=yes
5991fi
5992
5993   if test x$FOUND_GL = xyes ; then
5994     LIBS="$LIBS -lGL"
5995   else
5996         echo "------------------"
5997         echo "opengl not found."
5998         echo "please install the opengl package which can be found at http://www.opengl.org"
5999         echo "------------------"
6000         exit -1
6001   fi
6002
6003# cheking for GLU-header
6004
6005for ac_header in GL/glu.h
6006do
6007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6008if eval "test \"\${$as_ac_Header+set}\" = set"; then
6009  echo "$as_me:$LINENO: checking for $ac_header" >&5
6010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6011if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012  echo $ECHO_N "(cached) $ECHO_C" >&6
6013fi
6014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6016else
6017  # Is the header compilable?
6018echo "$as_me:$LINENO: checking $ac_header usability" >&5
6019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6020cat >conftest.$ac_ext <<_ACEOF
6021/* confdefs.h.  */
6022_ACEOF
6023cat confdefs.h >>conftest.$ac_ext
6024cat >>conftest.$ac_ext <<_ACEOF
6025/* end confdefs.h.  */
6026$ac_includes_default
6027#include <$ac_header>
6028_ACEOF
6029rm -f conftest.$ac_objext
6030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031  (eval $ac_compile) 2>conftest.er1
6032  ac_status=$?
6033  grep -v '^ *+' conftest.er1 >conftest.err
6034  rm -f conftest.er1
6035  cat conftest.err >&5
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); } &&
6038         { ac_try='test -z "$ac_c_werror_flag"
6039                         || test ! -s conftest.err'
6040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041  (eval $ac_try) 2>&5
6042  ac_status=$?
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); }; } &&
6045         { ac_try='test -s conftest.$ac_objext'
6046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047  (eval $ac_try) 2>&5
6048  ac_status=$?
6049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050  (exit $ac_status); }; }; then
6051  ac_header_compiler=yes
6052else
6053  echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056ac_header_compiler=no
6057fi
6058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6060echo "${ECHO_T}$ac_header_compiler" >&6
6061
6062# Is the header present?
6063echo "$as_me:$LINENO: checking $ac_header presence" >&5
6064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6065cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071#include <$ac_header>
6072_ACEOF
6073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6075  ac_status=$?
6076  grep -v '^ *+' conftest.er1 >conftest.err
6077  rm -f conftest.er1
6078  cat conftest.err >&5
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); } >/dev/null; then
6081  if test -s conftest.err; then
6082    ac_cpp_err=$ac_c_preproc_warn_flag
6083    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6084  else
6085    ac_cpp_err=
6086  fi
6087else
6088  ac_cpp_err=yes
6089fi
6090if test -z "$ac_cpp_err"; then
6091  ac_header_preproc=yes
6092else
6093  echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096  ac_header_preproc=no
6097fi
6098rm -f conftest.err conftest.$ac_ext
6099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6100echo "${ECHO_T}$ac_header_preproc" >&6
6101
6102# So?  What about this header?
6103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6104  yes:no: )
6105    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6109    ac_header_preproc=yes
6110    ;;
6111  no:yes:* )
6112    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6114    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6115echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6116    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6118    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6119echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6122    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6124    (
6125      cat <<\_ASBOX
6126## ---------------------------------------------- ##
6127## Report this to orxonox-dev at mail.datacore.ch ##
6128## ---------------------------------------------- ##
6129_ASBOX
6130    ) |
6131      sed "s/^/$as_me: WARNING:     /" >&2
6132    ;;
6133esac
6134echo "$as_me:$LINENO: checking for $ac_header" >&5
6135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6136if eval "test \"\${$as_ac_Header+set}\" = set"; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  eval "$as_ac_Header=\$ac_header_preproc"
6140fi
6141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6143
6144fi
6145if test `eval echo '${'$as_ac_Header'}'` = yes; then
6146  cat >>confdefs.h <<_ACEOF
6147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6148_ACEOF
6149
6150else
6151  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6152echo "$as_me: error: cannot find opengl headers" >&2;}
6153   { (exit 1); exit 1; }; }
6154fi
6155
6156done
6157
6158
6159#    AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes)
6160#    if test x$FOUND_GLU = xyes ; then
6161      LIBS="$LIBS -lGLU"
6162#    else
6163#         echo "------------------"
6164#         echo "GLU library not found."
6165#         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6166#         echo "------------------"
6167#         exit -1
6168#    fi
6169
6170# checking for GLEW-headers
6171
6172for ac_header in GL/glew.h
6173do
6174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6175if eval "test \"\${$as_ac_Header+set}\" = set"; then
6176  echo "$as_me:$LINENO: checking for $ac_header" >&5
6177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6178if eval "test \"\${$as_ac_Header+set}\" = set"; then
6179  echo $ECHO_N "(cached) $ECHO_C" >&6
6180fi
6181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183else
6184  # Is the header compilable?
6185echo "$as_me:$LINENO: checking $ac_header usability" >&5
6186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6187cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h.  */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h.  */
6193$ac_includes_default
6194#include <$ac_header>
6195_ACEOF
6196rm -f conftest.$ac_objext
6197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198  (eval $ac_compile) 2>conftest.er1
6199  ac_status=$?
6200  grep -v '^ *+' conftest.er1 >conftest.err
6201  rm -f conftest.er1
6202  cat conftest.err >&5
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); } &&
6205         { ac_try='test -z "$ac_c_werror_flag"
6206                         || test ! -s conftest.err'
6207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208  (eval $ac_try) 2>&5
6209  ac_status=$?
6210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211  (exit $ac_status); }; } &&
6212         { ac_try='test -s conftest.$ac_objext'
6213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214  (eval $ac_try) 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }; }; then
6218  ac_header_compiler=yes
6219else
6220  echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223ac_header_compiler=no
6224fi
6225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6227echo "${ECHO_T}$ac_header_compiler" >&6
6228
6229# Is the header present?
6230echo "$as_me:$LINENO: checking $ac_header presence" >&5
6231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6232cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h.  */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h.  */
6238#include <$ac_header>
6239_ACEOF
6240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242  ac_status=$?
6243  grep -v '^ *+' conftest.er1 >conftest.err
6244  rm -f conftest.er1
6245  cat conftest.err >&5
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); } >/dev/null; then
6248  if test -s conftest.err; then
6249    ac_cpp_err=$ac_c_preproc_warn_flag
6250    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251  else
6252    ac_cpp_err=
6253  fi
6254else
6255  ac_cpp_err=yes
6256fi
6257if test -z "$ac_cpp_err"; then
6258  ac_header_preproc=yes
6259else
6260  echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263  ac_header_preproc=no
6264fi
6265rm -f conftest.err conftest.$ac_ext
6266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6267echo "${ECHO_T}$ac_header_preproc" >&6
6268
6269# So?  What about this header?
6270case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271  yes:no: )
6272    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6274    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6276    ac_header_preproc=yes
6277    ;;
6278  no:yes:* )
6279    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6281    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6282echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6283    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6285    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6286echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6289    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6291    (
6292      cat <<\_ASBOX
6293## ---------------------------------------------- ##
6294## Report this to orxonox-dev at mail.datacore.ch ##
6295## ---------------------------------------------- ##
6296_ASBOX
6297    ) |
6298      sed "s/^/$as_me: WARNING:     /" >&2
6299    ;;
6300esac
6301echo "$as_me:$LINENO: checking for $ac_header" >&5
6302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6303if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304  echo $ECHO_N "(cached) $ECHO_C" >&6
6305else
6306  eval "$as_ac_Header=\$ac_header_preproc"
6307fi
6308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310
6311fi
6312if test `eval echo '${'$as_ac_Header'}'` = yes; then
6313  cat >>confdefs.h <<_ACEOF
6314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6315_ACEOF
6316
6317else
6318  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6319echo "$as_me: error: cannot find glew headers" >&2;}
6320   { (exit 1); exit 1; }; }
6321fi
6322
6323done
6324
6325# checking for GLEW-lib
6326  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6327echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6328if test "${ac_cv_lib_GLEW_main+set}" = set; then
6329  echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331  ac_check_lib_save_LIBS=$LIBS
6332LIBS="-lGLEW  $LIBS"
6333cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h.  */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h.  */
6339
6340
6341int
6342main ()
6343{
6344main ();
6345  ;
6346  return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext conftest$ac_exeext
6350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351  (eval $ac_link) 2>conftest.er1
6352  ac_status=$?
6353  grep -v '^ *+' conftest.er1 >conftest.err
6354  rm -f conftest.er1
6355  cat conftest.err >&5
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); } &&
6358         { ac_try='test -z "$ac_c_werror_flag"
6359                         || test ! -s conftest.err'
6360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361  (eval $ac_try) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }; } &&
6365         { ac_try='test -s conftest$ac_exeext'
6366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367  (eval $ac_try) 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); }; }; then
6371  ac_cv_lib_GLEW_main=yes
6372else
6373  echo "$as_me: failed program was:" >&5
6374sed 's/^/| /' conftest.$ac_ext >&5
6375
6376ac_cv_lib_GLEW_main=no
6377fi
6378rm -f conftest.err conftest.$ac_objext \
6379      conftest$ac_exeext conftest.$ac_ext
6380LIBS=$ac_check_lib_save_LIBS
6381fi
6382echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6383echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6384if test $ac_cv_lib_GLEW_main = yes; then
6385  FOUND_GLEW=yes
6386fi
6387
6388   if test x$FOUND_GLEW = xyes ; then
6389     LIBS="$LIBS -lGLEW"
6390   else
6391         echo "------------------"
6392         echo "glew not found."
6393         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6394         echo "------------------"
6395         exit -1
6396   fi
6397
6398#--------#
6399# openAL #
6400#--------#
6401# checking for openAL-headers
6402
6403for ac_header in AL/al.h
6404do
6405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6406if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407  echo "$as_me:$LINENO: checking for $ac_header" >&5
6408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6409if eval "test \"\${$as_ac_Header+set}\" = set"; then
6410  echo $ECHO_N "(cached) $ECHO_C" >&6
6411fi
6412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6414else
6415  # Is the header compilable?
6416echo "$as_me:$LINENO: checking $ac_header usability" >&5
6417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6418cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h.  */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h.  */
6424$ac_includes_default
6425#include <$ac_header>
6426_ACEOF
6427rm -f conftest.$ac_objext
6428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429  (eval $ac_compile) 2>conftest.er1
6430  ac_status=$?
6431  grep -v '^ *+' conftest.er1 >conftest.err
6432  rm -f conftest.er1
6433  cat conftest.err >&5
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); } &&
6436         { ac_try='test -z "$ac_c_werror_flag"
6437                         || test ! -s conftest.err'
6438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439  (eval $ac_try) 2>&5
6440  ac_status=$?
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); }; } &&
6443         { ac_try='test -s conftest.$ac_objext'
6444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445  (eval $ac_try) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; }; then
6449  ac_header_compiler=yes
6450else
6451  echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
6454ac_header_compiler=no
6455fi
6456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6458echo "${ECHO_T}$ac_header_compiler" >&6
6459
6460# Is the header present?
6461echo "$as_me:$LINENO: checking $ac_header presence" >&5
6462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6463cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469#include <$ac_header>
6470_ACEOF
6471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6472  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } >/dev/null; then
6479  if test -s conftest.err; then
6480    ac_cpp_err=$ac_c_preproc_warn_flag
6481    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6482  else
6483    ac_cpp_err=
6484  fi
6485else
6486  ac_cpp_err=yes
6487fi
6488if test -z "$ac_cpp_err"; then
6489  ac_header_preproc=yes
6490else
6491  echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494  ac_header_preproc=no
6495fi
6496rm -f conftest.err conftest.$ac_ext
6497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6498echo "${ECHO_T}$ac_header_preproc" >&6
6499
6500# So?  What about this header?
6501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6502  yes:no: )
6503    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6507    ac_header_preproc=yes
6508    ;;
6509  no:yes:* )
6510    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6512    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6513echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6514    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6516    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6517echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6522    (
6523      cat <<\_ASBOX
6524## ---------------------------------------------- ##
6525## Report this to orxonox-dev at mail.datacore.ch ##
6526## ---------------------------------------------- ##
6527_ASBOX
6528    ) |
6529      sed "s/^/$as_me: WARNING:     /" >&2
6530    ;;
6531esac
6532echo "$as_me:$LINENO: checking for $ac_header" >&5
6533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537  eval "$as_ac_Header=\$ac_header_preproc"
6538fi
6539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6541
6542fi
6543if test `eval echo '${'$as_ac_Header'}'` = yes; then
6544  cat >>confdefs.h <<_ACEOF
6545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546_ACEOF
6547
6548else
6549  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6550echo "$as_me: error: cannot find openAL header." >&2;}
6551   { (exit 1); exit 1; }; }
6552fi
6553
6554done
6555
6556# checking for openAL-lib
6557  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6558echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6559if test "${ac_cv_lib_openal_main+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  ac_check_lib_save_LIBS=$LIBS
6563LIBS="-lopenal  $LIBS"
6564cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h.  */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h.  */
6570
6571
6572int
6573main ()
6574{
6575main ();
6576  ;
6577  return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext conftest$ac_exeext
6581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582  (eval $ac_link) 2>conftest.er1
6583  ac_status=$?
6584  grep -v '^ *+' conftest.er1 >conftest.err
6585  rm -f conftest.er1
6586  cat conftest.err >&5
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); } &&
6589         { ac_try='test -z "$ac_c_werror_flag"
6590                         || test ! -s conftest.err'
6591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592  (eval $ac_try) 2>&5
6593  ac_status=$?
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); }; } &&
6596         { ac_try='test -s conftest$ac_exeext'
6597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598  (eval $ac_try) 2>&5
6599  ac_status=$?
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); }; }; then
6602  ac_cv_lib_openal_main=yes
6603else
6604  echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607ac_cv_lib_openal_main=no
6608fi
6609rm -f conftest.err conftest.$ac_objext \
6610      conftest$ac_exeext conftest.$ac_ext
6611LIBS=$ac_check_lib_save_LIBS
6612fi
6613echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6614echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6615if test $ac_cv_lib_openal_main = yes; then
6616  FOUND_openal=yes
6617fi
6618
6619     if test x$FOUND_openal = xyes ; then
6620       LIBS="$LIBS -lopenal"
6621     else
6622        echo "------------------"
6623        echo "openal library not found."
6624        echo "please install the openal library, which can be found at http://www.openal.org"
6625        echo "------------------"
6626        exit -1
6627     fi
6628# checking for alut
6629
6630for ac_header in AL/alut.h
6631do
6632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6633if eval "test \"\${$as_ac_Header+set}\" = set"; then
6634  echo "$as_me:$LINENO: checking for $ac_header" >&5
6635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6636if eval "test \"\${$as_ac_Header+set}\" = set"; then
6637  echo $ECHO_N "(cached) $ECHO_C" >&6
6638fi
6639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6641else
6642  # Is the header compilable?
6643echo "$as_me:$LINENO: checking $ac_header usability" >&5
6644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6645cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h.  */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h.  */
6651$ac_includes_default
6652#include <$ac_header>
6653_ACEOF
6654rm -f conftest.$ac_objext
6655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656  (eval $ac_compile) 2>conftest.er1
6657  ac_status=$?
6658  grep -v '^ *+' conftest.er1 >conftest.err
6659  rm -f conftest.er1
6660  cat conftest.err >&5
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); } &&
6663         { ac_try='test -z "$ac_c_werror_flag"
6664                         || test ! -s conftest.err'
6665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666  (eval $ac_try) 2>&5
6667  ac_status=$?
6668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669  (exit $ac_status); }; } &&
6670         { ac_try='test -s conftest.$ac_objext'
6671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672  (eval $ac_try) 2>&5
6673  ac_status=$?
6674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675  (exit $ac_status); }; }; then
6676  ac_header_compiler=yes
6677else
6678  echo "$as_me: failed program was:" >&5
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
6681ac_header_compiler=no
6682fi
6683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6685echo "${ECHO_T}$ac_header_compiler" >&6
6686
6687# Is the header present?
6688echo "$as_me:$LINENO: checking $ac_header presence" >&5
6689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6690cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h.  */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h.  */
6696#include <$ac_header>
6697_ACEOF
6698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6699  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6700  ac_status=$?
6701  grep -v '^ *+' conftest.er1 >conftest.err
6702  rm -f conftest.er1
6703  cat conftest.err >&5
6704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705  (exit $ac_status); } >/dev/null; then
6706  if test -s conftest.err; then
6707    ac_cpp_err=$ac_c_preproc_warn_flag
6708    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6709  else
6710    ac_cpp_err=
6711  fi
6712else
6713  ac_cpp_err=yes
6714fi
6715if test -z "$ac_cpp_err"; then
6716  ac_header_preproc=yes
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721  ac_header_preproc=no
6722fi
6723rm -f conftest.err conftest.$ac_ext
6724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6725echo "${ECHO_T}$ac_header_preproc" >&6
6726
6727# So?  What about this header?
6728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6729  yes:no: )
6730    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6732    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6734    ac_header_preproc=yes
6735    ;;
6736  no:yes:* )
6737    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6739    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6740echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6741    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6743    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6744echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6745    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6747    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6749    (
6750      cat <<\_ASBOX
6751## ---------------------------------------------- ##
6752## Report this to orxonox-dev at mail.datacore.ch ##
6753## ---------------------------------------------- ##
6754_ASBOX
6755    ) |
6756      sed "s/^/$as_me: WARNING:     /" >&2
6757    ;;
6758esac
6759echo "$as_me:$LINENO: checking for $ac_header" >&5
6760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6761if eval "test \"\${$as_ac_Header+set}\" = set"; then
6762  echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764  eval "$as_ac_Header=\$ac_header_preproc"
6765fi
6766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6768
6769fi
6770if test `eval echo '${'$as_ac_Header'}'` = yes; then
6771  cat >>confdefs.h <<_ACEOF
6772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6773_ACEOF
6774
6775else
6776  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6777echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
6778   { (exit 1); exit 1; }; }
6779fi
6780
6781done
6782
6783  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6784echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6785if test "${ac_cv_lib_alut_main+set}" = set; then
6786  echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788  ac_check_lib_save_LIBS=$LIBS
6789LIBS="-lalut  $LIBS"
6790cat >conftest.$ac_ext <<_ACEOF
6791/* confdefs.h.  */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h.  */
6796
6797
6798int
6799main ()
6800{
6801main ();
6802  ;
6803  return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808  (eval $ac_link) 2>conftest.er1
6809  ac_status=$?
6810  grep -v '^ *+' conftest.er1 >conftest.err
6811  rm -f conftest.er1
6812  cat conftest.err >&5
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); } &&
6815         { ac_try='test -z "$ac_c_werror_flag"
6816                         || test ! -s conftest.err'
6817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818  (eval $ac_try) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); }; } &&
6822         { ac_try='test -s conftest$ac_exeext'
6823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824  (eval $ac_try) 2>&5
6825  ac_status=$?
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); }; }; then
6828  ac_cv_lib_alut_main=yes
6829else
6830  echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833ac_cv_lib_alut_main=no
6834fi
6835rm -f conftest.err conftest.$ac_objext \
6836      conftest$ac_exeext conftest.$ac_ext
6837LIBS=$ac_check_lib_save_LIBS
6838fi
6839echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6840echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6841if test $ac_cv_lib_alut_main = yes; then
6842  FOUND_alut=yes
6843fi
6844
6845     if test x$FOUND_alut = xyes ; then
6846       LIBS="-lalut $LIBS"
6847     fi
6848
6849# checking for SDL
6850  echo "$as_me:$LINENO: checking for SDL-version" >&5
6851echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6852  SDL_VERSION=`sdl-config --version`
6853  echo $SDL_VERSION
6854
6855   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
6856
6857for ac_header in SDL.h
6858do
6859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860if eval "test \"\${$as_ac_Header+set}\" = set"; then
6861  echo "$as_me:$LINENO: checking for $ac_header" >&5
6862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6863if eval "test \"\${$as_ac_Header+set}\" = set"; then
6864  echo $ECHO_N "(cached) $ECHO_C" >&6
6865fi
6866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6868else
6869  # Is the header compilable?
6870echo "$as_me:$LINENO: checking $ac_header usability" >&5
6871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6872cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h.  */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h.  */
6878$ac_includes_default
6879#include <$ac_header>
6880_ACEOF
6881rm -f conftest.$ac_objext
6882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6883  (eval $ac_compile) 2>conftest.er1
6884  ac_status=$?
6885  grep -v '^ *+' conftest.er1 >conftest.err
6886  rm -f conftest.er1
6887  cat conftest.err >&5
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); } &&
6890         { ac_try='test -z "$ac_c_werror_flag"
6891                         || test ! -s conftest.err'
6892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893  (eval $ac_try) 2>&5
6894  ac_status=$?
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); }; } &&
6897         { ac_try='test -s conftest.$ac_objext'
6898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899  (eval $ac_try) 2>&5
6900  ac_status=$?
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); }; }; then
6903  ac_header_compiler=yes
6904else
6905  echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908ac_header_compiler=no
6909fi
6910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6912echo "${ECHO_T}$ac_header_compiler" >&6
6913
6914# Is the header present?
6915echo "$as_me:$LINENO: checking $ac_header presence" >&5
6916echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6917cat >conftest.$ac_ext <<_ACEOF
6918/* confdefs.h.  */
6919_ACEOF
6920cat confdefs.h >>conftest.$ac_ext
6921cat >>conftest.$ac_ext <<_ACEOF
6922/* end confdefs.h.  */
6923#include <$ac_header>
6924_ACEOF
6925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6926  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6927  ac_status=$?
6928  grep -v '^ *+' conftest.er1 >conftest.err
6929  rm -f conftest.er1
6930  cat conftest.err >&5
6931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932  (exit $ac_status); } >/dev/null; then
6933  if test -s conftest.err; then
6934    ac_cpp_err=$ac_c_preproc_warn_flag
6935    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6936  else
6937    ac_cpp_err=
6938  fi
6939else
6940  ac_cpp_err=yes
6941fi
6942if test -z "$ac_cpp_err"; then
6943  ac_header_preproc=yes
6944else
6945  echo "$as_me: failed program was:" >&5
6946sed 's/^/| /' conftest.$ac_ext >&5
6947
6948  ac_header_preproc=no
6949fi
6950rm -f conftest.err conftest.$ac_ext
6951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6952echo "${ECHO_T}$ac_header_preproc" >&6
6953
6954# So?  What about this header?
6955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6956  yes:no: )
6957    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6959    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6961    ac_header_preproc=yes
6962    ;;
6963  no:yes:* )
6964    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6966    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6967echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6968    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6970    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6971echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6972    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6974    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6976    (
6977      cat <<\_ASBOX
6978## ---------------------------------------------- ##
6979## Report this to orxonox-dev at mail.datacore.ch ##
6980## ---------------------------------------------- ##
6981_ASBOX
6982    ) |
6983      sed "s/^/$as_me: WARNING:     /" >&2
6984    ;;
6985esac
6986echo "$as_me:$LINENO: checking for $ac_header" >&5
6987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989  echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991  eval "$as_ac_Header=\$ac_header_preproc"
6992fi
6993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6995
6996fi
6997if test `eval echo '${'$as_ac_Header'}'` = yes; then
6998  cat >>confdefs.h <<_ACEOF
6999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7000_ACEOF
7001
7002else
7003
7004for ac_header in SDL/SDL.h
7005do
7006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008  echo "$as_me:$LINENO: checking for $ac_header" >&5
7009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012fi
7013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7015else
7016  # Is the header compilable?
7017echo "$as_me:$LINENO: checking $ac_header usability" >&5
7018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7019cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h.  */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h.  */
7025$ac_includes_default
7026#include <$ac_header>
7027_ACEOF
7028rm -f conftest.$ac_objext
7029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030  (eval $ac_compile) 2>conftest.er1
7031  ac_status=$?
7032  grep -v '^ *+' conftest.er1 >conftest.err
7033  rm -f conftest.er1
7034  cat conftest.err >&5
7035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036  (exit $ac_status); } &&
7037         { ac_try='test -z "$ac_c_werror_flag"
7038                         || test ! -s conftest.err'
7039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040  (eval $ac_try) 2>&5
7041  ac_status=$?
7042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043  (exit $ac_status); }; } &&
7044         { ac_try='test -s conftest.$ac_objext'
7045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046  (eval $ac_try) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); }; }; then
7050  ac_header_compiler=yes
7051else
7052  echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
7054
7055ac_header_compiler=no
7056fi
7057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7059echo "${ECHO_T}$ac_header_compiler" >&6
7060
7061# Is the header present?
7062echo "$as_me:$LINENO: checking $ac_header presence" >&5
7063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7064cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h.  */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h.  */
7070#include <$ac_header>
7071_ACEOF
7072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074  ac_status=$?
7075  grep -v '^ *+' conftest.er1 >conftest.err
7076  rm -f conftest.er1
7077  cat conftest.err >&5
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); } >/dev/null; then
7080  if test -s conftest.err; then
7081    ac_cpp_err=$ac_c_preproc_warn_flag
7082    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7083  else
7084    ac_cpp_err=
7085  fi
7086else
7087  ac_cpp_err=yes
7088fi
7089if test -z "$ac_cpp_err"; then
7090  ac_header_preproc=yes
7091else
7092  echo "$as_me: failed program was:" >&5
7093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095  ac_header_preproc=no
7096fi
7097rm -f conftest.err conftest.$ac_ext
7098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7099echo "${ECHO_T}$ac_header_preproc" >&6
7100
7101# So?  What about this header?
7102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7103  yes:no: )
7104    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7106    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7108    ac_header_preproc=yes
7109    ;;
7110  no:yes:* )
7111    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7113    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7114echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7115    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7117    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7118echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7121    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7123    (
7124      cat <<\_ASBOX
7125## ---------------------------------------------- ##
7126## Report this to orxonox-dev at mail.datacore.ch ##
7127## ---------------------------------------------- ##
7128_ASBOX
7129    ) |
7130      sed "s/^/$as_me: WARNING:     /" >&2
7131    ;;
7132esac
7133echo "$as_me:$LINENO: checking for $ac_header" >&5
7134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135if eval "test \"\${$as_ac_Header+set}\" = set"; then
7136  echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138  eval "$as_ac_Header=\$ac_header_preproc"
7139fi
7140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142
7143fi
7144if test `eval echo '${'$as_ac_Header'}'` = yes; then
7145  cat >>confdefs.h <<_ACEOF
7146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7147_ACEOF
7148
7149else
7150  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7151echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
7152   { (exit 1); exit 1; }; }
7153fi
7154
7155done
7156
7157fi
7158
7159done
7160
7161   LIBS="`sdl-config --libs` $LIBS"
7162   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7163echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7164if test "${ac_cv_lib_SDL_main+set}" = set; then
7165  echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167  ac_check_lib_save_LIBS=$LIBS
7168LIBS="-lSDL  $LIBS"
7169cat >conftest.$ac_ext <<_ACEOF
7170/* confdefs.h.  */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h.  */
7175
7176
7177int
7178main ()
7179{
7180main ();
7181  ;
7182  return 0;
7183}
7184_ACEOF
7185rm -f conftest.$ac_objext conftest$ac_exeext
7186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187  (eval $ac_link) 2>conftest.er1
7188  ac_status=$?
7189  grep -v '^ *+' conftest.er1 >conftest.err
7190  rm -f conftest.er1
7191  cat conftest.err >&5
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); } &&
7194         { ac_try='test -z "$ac_c_werror_flag"
7195                         || test ! -s conftest.err'
7196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197  (eval $ac_try) 2>&5
7198  ac_status=$?
7199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200  (exit $ac_status); }; } &&
7201         { ac_try='test -s conftest$ac_exeext'
7202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203  (eval $ac_try) 2>&5
7204  ac_status=$?
7205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206  (exit $ac_status); }; }; then
7207  ac_cv_lib_SDL_main=yes
7208else
7209  echo "$as_me: failed program was:" >&5
7210sed 's/^/| /' conftest.$ac_ext >&5
7211
7212ac_cv_lib_SDL_main=no
7213fi
7214rm -f conftest.err conftest.$ac_objext \
7215      conftest$ac_exeext conftest.$ac_ext
7216LIBS=$ac_check_lib_save_LIBS
7217fi
7218echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7219echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7220if test $ac_cv_lib_SDL_main = yes; then
7221  FOUND_SDL=yes
7222fi
7223
7224    if test x$FOUND_SDL = xyes ; then
7225     echo `sdl-config --libs`
7226    else
7227        echo "------------------"
7228        echo "SDL library not found."
7229        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7230        echo "------------------"
7231        exit -1
7232     fi
7233
7234    ;;
7235
7236#############
7237#-----------#
7238# MAC -OS X #
7239#-----------#
7240#############
7241 *darwin*)
7242 echo "OS X detected"
7243
7244 osX="yes"
7245
7246 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7247# checking gl header
7248
7249for ac_header in OpenGL/gl.h
7250do
7251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253  echo "$as_me:$LINENO: checking for $ac_header" >&5
7254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256  echo $ECHO_N "(cached) $ECHO_C" >&6
7257fi
7258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260else
7261  # Is the header compilable?
7262echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h.  */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h.  */
7270$ac_includes_default
7271#include <$ac_header>
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275  (eval $ac_compile) 2>conftest.er1
7276  ac_status=$?
7277  grep -v '^ *+' conftest.er1 >conftest.err
7278  rm -f conftest.er1
7279  cat conftest.err >&5
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); } &&
7282         { ac_try='test -z "$ac_c_werror_flag"
7283                         || test ! -s conftest.err'
7284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285  (eval $ac_try) 2>&5
7286  ac_status=$?
7287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288  (exit $ac_status); }; } &&
7289         { ac_try='test -s conftest.$ac_objext'
7290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291  (eval $ac_try) 2>&5
7292  ac_status=$?
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); }; }; then
7295  ac_header_compiler=yes
7296else
7297  echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300ac_header_compiler=no
7301fi
7302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7304echo "${ECHO_T}$ac_header_compiler" >&6
7305
7306# Is the header present?
7307echo "$as_me:$LINENO: checking $ac_header presence" >&5
7308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h.  */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h.  */
7315#include <$ac_header>
7316_ACEOF
7317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7318  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7319  ac_status=$?
7320  grep -v '^ *+' conftest.er1 >conftest.err
7321  rm -f conftest.er1
7322  cat conftest.err >&5
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); } >/dev/null; then
7325  if test -s conftest.err; then
7326    ac_cpp_err=$ac_c_preproc_warn_flag
7327    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7328  else
7329    ac_cpp_err=
7330  fi
7331else
7332  ac_cpp_err=yes
7333fi
7334if test -z "$ac_cpp_err"; then
7335  ac_header_preproc=yes
7336else
7337  echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340  ac_header_preproc=no
7341fi
7342rm -f conftest.err conftest.$ac_ext
7343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7344echo "${ECHO_T}$ac_header_preproc" >&6
7345
7346# So?  What about this header?
7347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7348  yes:no: )
7349    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7351    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7353    ac_header_preproc=yes
7354    ;;
7355  no:yes:* )
7356    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7358    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7359echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7360    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7362    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7363echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7364    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368    (
7369      cat <<\_ASBOX
7370## ---------------------------------------------- ##
7371## Report this to orxonox-dev at mail.datacore.ch ##
7372## ---------------------------------------------- ##
7373_ASBOX
7374    ) |
7375      sed "s/^/$as_me: WARNING:     /" >&2
7376    ;;
7377esac
7378echo "$as_me:$LINENO: checking for $ac_header" >&5
7379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381  echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383  eval "$as_ac_Header=\$ac_header_preproc"
7384fi
7385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387
7388fi
7389if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390  cat >>confdefs.h <<_ACEOF
7391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392_ACEOF
7393
7394else
7395  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7396echo "$as_me: error: cannot find opengl headers" >&2;}
7397   { (exit 1); exit 1; }; }
7398fi
7399
7400done
7401
7402# cheking for GLU-header
7403
7404for ac_header in OpenGL/glu.h
7405do
7406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7407if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408  echo "$as_me:$LINENO: checking for $ac_header" >&5
7409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7410if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411  echo $ECHO_N "(cached) $ECHO_C" >&6
7412fi
7413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7415else
7416  # Is the header compilable?
7417echo "$as_me:$LINENO: checking $ac_header usability" >&5
7418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7419cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h.  */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h.  */
7425$ac_includes_default
7426#include <$ac_header>
7427_ACEOF
7428rm -f conftest.$ac_objext
7429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430  (eval $ac_compile) 2>conftest.er1
7431  ac_status=$?
7432  grep -v '^ *+' conftest.er1 >conftest.err
7433  rm -f conftest.er1
7434  cat conftest.err >&5
7435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436  (exit $ac_status); } &&
7437         { ac_try='test -z "$ac_c_werror_flag"
7438                         || test ! -s conftest.err'
7439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440  (eval $ac_try) 2>&5
7441  ac_status=$?
7442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443  (exit $ac_status); }; } &&
7444         { ac_try='test -s conftest.$ac_objext'
7445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446  (eval $ac_try) 2>&5
7447  ac_status=$?
7448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449  (exit $ac_status); }; }; then
7450  ac_header_compiler=yes
7451else
7452  echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455ac_header_compiler=no
7456fi
7457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7458echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7459echo "${ECHO_T}$ac_header_compiler" >&6
7460
7461# Is the header present?
7462echo "$as_me:$LINENO: checking $ac_header presence" >&5
7463echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7464cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h.  */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h.  */
7470#include <$ac_header>
7471_ACEOF
7472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7474  ac_status=$?
7475  grep -v '^ *+' conftest.er1 >conftest.err
7476  rm -f conftest.er1
7477  cat conftest.err >&5
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } >/dev/null; then
7480  if test -s conftest.err; then
7481    ac_cpp_err=$ac_c_preproc_warn_flag
7482    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7483  else
7484    ac_cpp_err=
7485  fi
7486else
7487  ac_cpp_err=yes
7488fi
7489if test -z "$ac_cpp_err"; then
7490  ac_header_preproc=yes
7491else
7492  echo "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495  ac_header_preproc=no
7496fi
7497rm -f conftest.err conftest.$ac_ext
7498echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7499echo "${ECHO_T}$ac_header_preproc" >&6
7500
7501# So?  What about this header?
7502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7503  yes:no: )
7504    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7506    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7508    ac_header_preproc=yes
7509    ;;
7510  no:yes:* )
7511    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7513    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7514echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7515    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7517    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7518echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7521    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7523    (
7524      cat <<\_ASBOX
7525## ---------------------------------------------- ##
7526## Report this to orxonox-dev at mail.datacore.ch ##
7527## ---------------------------------------------- ##
7528_ASBOX
7529    ) |
7530      sed "s/^/$as_me: WARNING:     /" >&2
7531    ;;
7532esac
7533echo "$as_me:$LINENO: checking for $ac_header" >&5
7534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7535if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538  eval "$as_ac_Header=\$ac_header_preproc"
7539fi
7540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7542
7543fi
7544if test `eval echo '${'$as_ac_Header'}'` = yes; then
7545  cat >>confdefs.h <<_ACEOF
7546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7547_ACEOF
7548
7549else
7550  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7551echo "$as_me: error: cannot find opengl headers" >&2;}
7552   { (exit 1); exit 1; }; }
7553fi
7554
7555done
7556
7557
7558   LIBS="$LIBS -framework OpenGL"
7559
7560
7561## SDL-check
7562       SDL_CFLAGS=`sdl-config --cflags`
7563       SDL_LIBS=`sdl-config --libs`
7564       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7565       LIBS="$LIBS $SDL_LIBS"
7566
7567
7568# checking for SDL-headers
7569#    AC_CHECK_HEADERS(SDL/SDL.h ,,
7570#      [AC_MSG_ERROR([cannot find SDL headers]) ])
7571
7572## checking for SDL
7573#    SDL_VERSION=1.2.7
7574#    AM_PATH_SDL($SDL_VERSION,
7575#      :,
7576#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7577#      )
7578
7579
7580    ;;
7581
7582  *)
7583    ;;
7584esac
7585
7586
7587
7588###################################
7589## CHECKING FOR HEADERS AND LIBS ##
7590###################################
7591
7592#---------#
7593# SDL_ttf #
7594#---------#
7595# checking for SDL_ttf-headers
7596
7597for ac_header in SDL_ttf.h
7598do
7599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7600if eval "test \"\${$as_ac_Header+set}\" = set"; then
7601  echo "$as_me:$LINENO: checking for $ac_header" >&5
7602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7603if eval "test \"\${$as_ac_Header+set}\" = set"; then
7604  echo $ECHO_N "(cached) $ECHO_C" >&6
7605fi
7606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7608else
7609  # Is the header compilable?
7610echo "$as_me:$LINENO: checking $ac_header usability" >&5
7611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7612cat >conftest.$ac_ext <<_ACEOF
7613/* confdefs.h.  */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h.  */
7618$ac_includes_default
7619#include <$ac_header>
7620_ACEOF
7621rm -f conftest.$ac_objext
7622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623  (eval $ac_compile) 2>conftest.er1
7624  ac_status=$?
7625  grep -v '^ *+' conftest.er1 >conftest.err
7626  rm -f conftest.er1
7627  cat conftest.err >&5
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); } &&
7630         { ac_try='test -z "$ac_c_werror_flag"
7631                         || test ! -s conftest.err'
7632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633  (eval $ac_try) 2>&5
7634  ac_status=$?
7635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636  (exit $ac_status); }; } &&
7637         { ac_try='test -s conftest.$ac_objext'
7638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639  (eval $ac_try) 2>&5
7640  ac_status=$?
7641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642  (exit $ac_status); }; }; then
7643  ac_header_compiler=yes
7644else
7645  echo "$as_me: failed program was:" >&5
7646sed 's/^/| /' conftest.$ac_ext >&5
7647
7648ac_header_compiler=no
7649fi
7650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7652echo "${ECHO_T}$ac_header_compiler" >&6
7653
7654# Is the header present?
7655echo "$as_me:$LINENO: checking $ac_header presence" >&5
7656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7657cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h.  */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h.  */
7663#include <$ac_header>
7664_ACEOF
7665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7667  ac_status=$?
7668  grep -v '^ *+' conftest.er1 >conftest.err
7669  rm -f conftest.er1
7670  cat conftest.err >&5
7671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672  (exit $ac_status); } >/dev/null; then
7673  if test -s conftest.err; then
7674    ac_cpp_err=$ac_c_preproc_warn_flag
7675    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7676  else
7677    ac_cpp_err=
7678  fi
7679else
7680  ac_cpp_err=yes
7681fi
7682if test -z "$ac_cpp_err"; then
7683  ac_header_preproc=yes
7684else
7685  echo "$as_me: failed program was:" >&5
7686sed 's/^/| /' conftest.$ac_ext >&5
7687
7688  ac_header_preproc=no
7689fi
7690rm -f conftest.err conftest.$ac_ext
7691echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7692echo "${ECHO_T}$ac_header_preproc" >&6
7693
7694# So?  What about this header?
7695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7696  yes:no: )
7697    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7699    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7701    ac_header_preproc=yes
7702    ;;
7703  no:yes:* )
7704    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7706    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7707echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7708    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7710    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7711echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7712    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7714    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7716    (
7717      cat <<\_ASBOX
7718## ---------------------------------------------- ##
7719## Report this to orxonox-dev at mail.datacore.ch ##
7720## ---------------------------------------------- ##
7721_ASBOX
7722    ) |
7723      sed "s/^/$as_me: WARNING:     /" >&2
7724    ;;
7725esac
7726echo "$as_me:$LINENO: checking for $ac_header" >&5
7727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7728if eval "test \"\${$as_ac_Header+set}\" = set"; then
7729  echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731  eval "$as_ac_Header=\$ac_header_preproc"
7732fi
7733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7735
7736fi
7737if test `eval echo '${'$as_ac_Header'}'` = yes; then
7738  cat >>confdefs.h <<_ACEOF
7739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7740_ACEOF
7741
7742else
7743
7744for ac_header in SDL/SDL_ttf.h
7745do
7746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748  echo "$as_me:$LINENO: checking for $ac_header" >&5
7749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751  echo $ECHO_N "(cached) $ECHO_C" >&6
7752fi
7753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7755else
7756  # Is the header compilable?
7757echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7759cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h.  */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h.  */
7765$ac_includes_default
7766#include <$ac_header>
7767_ACEOF
7768rm -f conftest.$ac_objext
7769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770  (eval $ac_compile) 2>conftest.er1
7771  ac_status=$?
7772  grep -v '^ *+' conftest.er1 >conftest.err
7773  rm -f conftest.er1
7774  cat conftest.err >&5
7775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776  (exit $ac_status); } &&
7777         { ac_try='test -z "$ac_c_werror_flag"
7778                         || test ! -s conftest.err'
7779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780  (eval $ac_try) 2>&5
7781  ac_status=$?
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); }; } &&
7784         { ac_try='test -s conftest.$ac_objext'
7785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786  (eval $ac_try) 2>&5
7787  ac_status=$?
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); }; }; then
7790  ac_header_compiler=yes
7791else
7792  echo "$as_me: failed program was:" >&5
7793sed 's/^/| /' conftest.$ac_ext >&5
7794
7795ac_header_compiler=no
7796fi
7797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799echo "${ECHO_T}$ac_header_compiler" >&6
7800
7801# Is the header present?
7802echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h.  */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h.  */
7810#include <$ac_header>
7811_ACEOF
7812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7814  ac_status=$?
7815  grep -v '^ *+' conftest.er1 >conftest.err
7816  rm -f conftest.er1
7817  cat conftest.err >&5
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } >/dev/null; then
7820  if test -s conftest.err; then
7821    ac_cpp_err=$ac_c_preproc_warn_flag
7822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7823  else
7824    ac_cpp_err=
7825  fi
7826else
7827  ac_cpp_err=yes
7828fi
7829if test -z "$ac_cpp_err"; then
7830  ac_header_preproc=yes
7831else
7832  echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835  ac_header_preproc=no
7836fi
7837rm -f conftest.err conftest.$ac_ext
7838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839echo "${ECHO_T}$ac_header_preproc" >&6
7840
7841# So?  What about this header?
7842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843  yes:no: )
7844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848    ac_header_preproc=yes
7849    ;;
7850  no:yes:* )
7851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7863    (
7864      cat <<\_ASBOX
7865## ---------------------------------------------- ##
7866## Report this to orxonox-dev at mail.datacore.ch ##
7867## ---------------------------------------------- ##
7868_ASBOX
7869    ) |
7870      sed "s/^/$as_me: WARNING:     /" >&2
7871    ;;
7872esac
7873echo "$as_me:$LINENO: checking for $ac_header" >&5
7874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  eval "$as_ac_Header=\$ac_header_preproc"
7879fi
7880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882
7883fi
7884if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885  cat >>confdefs.h <<_ACEOF
7886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887_ACEOF
7888
7889else
7890  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7891echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7892   { (exit 1); exit 1; }; }
7893fi
7894
7895done
7896
7897fi
7898
7899done
7900
7901# checking for SDL_ttf-lib
7902  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7903echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7904if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7905  echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907  ac_check_lib_save_LIBS=$LIBS
7908LIBS="-lSDL_ttf  $LIBS"
7909cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h.  */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h.  */
7915
7916/* Override any gcc2 internal prototype to avoid an error.  */
7917#ifdef __cplusplus
7918extern "C"
7919#endif
7920/* We use char because int might match the return type of a gcc2
7921   builtin and then its argument prototype would still apply.  */
7922char TTF_OpenFont ();
7923int
7924main ()
7925{
7926TTF_OpenFont ();
7927  ;
7928  return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext conftest$ac_exeext
7932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7933  (eval $ac_link) 2>conftest.er1
7934  ac_status=$?
7935  grep -v '^ *+' conftest.er1 >conftest.err
7936  rm -f conftest.er1
7937  cat conftest.err >&5
7938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939  (exit $ac_status); } &&
7940         { ac_try='test -z "$ac_c_werror_flag"
7941                         || test ! -s conftest.err'
7942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943  (eval $ac_try) 2>&5
7944  ac_status=$?
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); }; } &&
7947         { ac_try='test -s conftest$ac_exeext'
7948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949  (eval $ac_try) 2>&5
7950  ac_status=$?
7951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952  (exit $ac_status); }; }; then
7953  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7954else
7955  echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7959fi
7960rm -f conftest.err conftest.$ac_objext \
7961      conftest$ac_exeext conftest.$ac_ext
7962LIBS=$ac_check_lib_save_LIBS
7963fi
7964echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7965echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7966if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7967  FOUND_SDL_ttf=yes
7968fi
7969
7970     if test x$FOUND_SDL_ttf = xyes ; then
7971       LIBS="$LIBS -lSDL_ttf"
7972     else
7973        echo "------------------"
7974        echo "SDL_ttf library not found."
7975        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7976        echo "------------------"
7977        exit -1
7978     fi
7979
7980#-----------#
7981# SDL_Image #
7982#-----------#
7983# checking for SDL_image-headers
7984
7985for ac_header in SDL_image.h
7986do
7987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989  echo "$as_me:$LINENO: checking for $ac_header" >&5
7990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7991if eval "test \"\${$as_ac_Header+set}\" = set"; then
7992  echo $ECHO_N "(cached) $ECHO_C" >&6
7993fi
7994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7996else
7997  # Is the header compilable?
7998echo "$as_me:$LINENO: checking $ac_header usability" >&5
7999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8000cat >conftest.$ac_ext <<_ACEOF
8001/* confdefs.h.  */
8002_ACEOF
8003cat confdefs.h >>conftest.$ac_ext
8004cat >>conftest.$ac_ext <<_ACEOF
8005/* end confdefs.h.  */
8006$ac_includes_default
8007#include <$ac_header>
8008_ACEOF
8009rm -f conftest.$ac_objext
8010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011  (eval $ac_compile) 2>conftest.er1
8012  ac_status=$?
8013  grep -v '^ *+' conftest.er1 >conftest.err
8014  rm -f conftest.er1
8015  cat conftest.err >&5
8016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017  (exit $ac_status); } &&
8018         { ac_try='test -z "$ac_c_werror_flag"
8019                         || test ! -s conftest.err'
8020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021  (eval $ac_try) 2>&5
8022  ac_status=$?
8023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024  (exit $ac_status); }; } &&
8025         { ac_try='test -s conftest.$ac_objext'
8026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027  (eval $ac_try) 2>&5
8028  ac_status=$?
8029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030  (exit $ac_status); }; }; then
8031  ac_header_compiler=yes
8032else
8033  echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036ac_header_compiler=no
8037fi
8038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8040echo "${ECHO_T}$ac_header_compiler" >&6
8041
8042# Is the header present?
8043echo "$as_me:$LINENO: checking $ac_header presence" >&5
8044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8045cat >conftest.$ac_ext <<_ACEOF
8046/* confdefs.h.  */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h.  */
8051#include <$ac_header>
8052_ACEOF
8053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8054  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8055  ac_status=$?
8056  grep -v '^ *+' conftest.er1 >conftest.err
8057  rm -f conftest.er1
8058  cat conftest.err >&5
8059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060  (exit $ac_status); } >/dev/null; then
8061  if test -s conftest.err; then
8062    ac_cpp_err=$ac_c_preproc_warn_flag
8063    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8064  else
8065    ac_cpp_err=
8066  fi
8067else
8068  ac_cpp_err=yes
8069fi
8070if test -z "$ac_cpp_err"; then
8071  ac_header_preproc=yes
8072else
8073  echo "$as_me: failed program was:" >&5
8074sed 's/^/| /' conftest.$ac_ext >&5
8075
8076  ac_header_preproc=no
8077fi
8078rm -f conftest.err conftest.$ac_ext
8079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8080echo "${ECHO_T}$ac_header_preproc" >&6
8081
8082# So?  What about this header?
8083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8084  yes:no: )
8085    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8089    ac_header_preproc=yes
8090    ;;
8091  no:yes:* )
8092    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8094    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8095echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8096    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8098    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8099echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8100    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8102    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8104    (
8105      cat <<\_ASBOX
8106## ---------------------------------------------- ##
8107## Report this to orxonox-dev at mail.datacore.ch ##
8108## ---------------------------------------------- ##
8109_ASBOX
8110    ) |
8111      sed "s/^/$as_me: WARNING:     /" >&2
8112    ;;
8113esac
8114echo "$as_me:$LINENO: checking for $ac_header" >&5
8115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8116if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119  eval "$as_ac_Header=\$ac_header_preproc"
8120fi
8121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8123
8124fi
8125if test `eval echo '${'$as_ac_Header'}'` = yes; then
8126  cat >>confdefs.h <<_ACEOF
8127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8128_ACEOF
8129
8130else
8131
8132for ac_header in SDL/SDL_image.h
8133do
8134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8135if eval "test \"\${$as_ac_Header+set}\" = set"; then
8136  echo "$as_me:$LINENO: checking for $ac_header" >&5
8137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8138if eval "test \"\${$as_ac_Header+set}\" = set"; then
8139  echo $ECHO_N "(cached) $ECHO_C" >&6
8140fi
8141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8143else
8144  # Is the header compilable?
8145echo "$as_me:$LINENO: checking $ac_header usability" >&5
8146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8147cat >conftest.$ac_ext <<_ACEOF
8148/* confdefs.h.  */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h.  */
8153$ac_includes_default
8154#include <$ac_header>
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158  (eval $ac_compile) 2>conftest.er1
8159  ac_status=$?
8160  grep -v '^ *+' conftest.er1 >conftest.err
8161  rm -f conftest.er1
8162  cat conftest.err >&5
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); } &&
8165         { ac_try='test -z "$ac_c_werror_flag"
8166                         || test ! -s conftest.err'
8167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168  (eval $ac_try) 2>&5
8169  ac_status=$?
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); }; } &&
8172         { ac_try='test -s conftest.$ac_objext'
8173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174  (eval $ac_try) 2>&5
8175  ac_status=$?
8176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177  (exit $ac_status); }; }; then
8178  ac_header_compiler=yes
8179else
8180  echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183ac_header_compiler=no
8184fi
8185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8187echo "${ECHO_T}$ac_header_compiler" >&6
8188
8189# Is the header present?
8190echo "$as_me:$LINENO: checking $ac_header presence" >&5
8191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8192cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h.  */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h.  */
8198#include <$ac_header>
8199_ACEOF
8200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8201  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8202  ac_status=$?
8203  grep -v '^ *+' conftest.er1 >conftest.err
8204  rm -f conftest.er1
8205  cat conftest.err >&5
8206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207  (exit $ac_status); } >/dev/null; then
8208  if test -s conftest.err; then
8209    ac_cpp_err=$ac_c_preproc_warn_flag
8210    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8211  else
8212    ac_cpp_err=
8213  fi
8214else
8215  ac_cpp_err=yes
8216fi
8217if test -z "$ac_cpp_err"; then
8218  ac_header_preproc=yes
8219else
8220  echo "$as_me: failed program was:" >&5
8221sed 's/^/| /' conftest.$ac_ext >&5
8222
8223  ac_header_preproc=no
8224fi
8225rm -f conftest.err conftest.$ac_ext
8226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8227echo "${ECHO_T}$ac_header_preproc" >&6
8228
8229# So?  What about this header?
8230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8231  yes:no: )
8232    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8234    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8236    ac_header_preproc=yes
8237    ;;
8238  no:yes:* )
8239    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8241    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8242echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8243    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8245    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8246echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8247    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8249    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8251    (
8252      cat <<\_ASBOX
8253## ---------------------------------------------- ##
8254## Report this to orxonox-dev at mail.datacore.ch ##
8255## ---------------------------------------------- ##
8256_ASBOX
8257    ) |
8258      sed "s/^/$as_me: WARNING:     /" >&2
8259    ;;
8260esac
8261echo "$as_me:$LINENO: checking for $ac_header" >&5
8262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8263if eval "test \"\${$as_ac_Header+set}\" = set"; then
8264  echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266  eval "$as_ac_Header=\$ac_header_preproc"
8267fi
8268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8270
8271fi
8272if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273  cat >>confdefs.h <<_ACEOF
8274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275_ACEOF
8276
8277else
8278  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8279echo "$as_me: error: SDL_image header not found." >&2;}
8280   { (exit 1); exit 1; }; }
8281fi
8282
8283done
8284
8285fi
8286
8287done
8288
8289# checking for SDL_image-lib
8290echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8291echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8292if test "${ac_cv_lib_SDL_image_main+set}" = set; then
8293  echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295  ac_check_lib_save_LIBS=$LIBS
8296LIBS="-lSDL_image  $LIBS"
8297cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h.  */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h.  */
8303
8304
8305int
8306main ()
8307{
8308main ();
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext conftest$ac_exeext
8314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315  (eval $ac_link) 2>conftest.er1
8316  ac_status=$?
8317  grep -v '^ *+' conftest.er1 >conftest.err
8318  rm -f conftest.er1
8319  cat conftest.err >&5
8320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321  (exit $ac_status); } &&
8322         { ac_try='test -z "$ac_c_werror_flag"
8323                         || test ! -s conftest.err'
8324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325  (eval $ac_try) 2>&5
8326  ac_status=$?
8327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328  (exit $ac_status); }; } &&
8329         { ac_try='test -s conftest$ac_exeext'
8330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331  (eval $ac_try) 2>&5
8332  ac_status=$?
8333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334  (exit $ac_status); }; }; then
8335  ac_cv_lib_SDL_image_main=yes
8336else
8337  echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340ac_cv_lib_SDL_image_main=no
8341fi
8342rm -f conftest.err conftest.$ac_objext \
8343      conftest$ac_exeext conftest.$ac_ext
8344LIBS=$ac_check_lib_save_LIBS
8345fi
8346echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8347echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8348if test $ac_cv_lib_SDL_image_main = yes; then
8349  FOUND_SDL_image=yes
8350fi
8351
8352   if test x$FOUND_SDL_image = xyes ; then
8353     LIBS="$LIBS -lSDL_image"
8354   else
8355      echo "------------------"
8356      echo "SDL_image library not found."
8357      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
8358      echo "------------------"
8359      exit -1
8360   fi
8361
8362#-----#
8363# ogg #
8364#-----#
8365# checking for ogg-headers
8366
8367for ac_header in ogg/ogg.h
8368do
8369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8370if eval "test \"\${$as_ac_Header+set}\" = set"; then
8371  echo "$as_me:$LINENO: checking for $ac_header" >&5
8372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8373if eval "test \"\${$as_ac_Header+set}\" = set"; then
8374  echo $ECHO_N "(cached) $ECHO_C" >&6
8375fi
8376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8378else
8379  # Is the header compilable?
8380echo "$as_me:$LINENO: checking $ac_header usability" >&5
8381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8382cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h.  */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h.  */
8388$ac_includes_default
8389#include <$ac_header>
8390_ACEOF
8391rm -f conftest.$ac_objext
8392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8393  (eval $ac_compile) 2>conftest.er1
8394  ac_status=$?
8395  grep -v '^ *+' conftest.er1 >conftest.err
8396  rm -f conftest.er1
8397  cat conftest.err >&5
8398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399  (exit $ac_status); } &&
8400         { ac_try='test -z "$ac_c_werror_flag"
8401                         || test ! -s conftest.err'
8402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403  (eval $ac_try) 2>&5
8404  ac_status=$?
8405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406  (exit $ac_status); }; } &&
8407         { ac_try='test -s conftest.$ac_objext'
8408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409  (eval $ac_try) 2>&5
8410  ac_status=$?
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); }; }; then
8413  ac_header_compiler=yes
8414else
8415  echo "$as_me: failed program was:" >&5
8416sed 's/^/| /' conftest.$ac_ext >&5
8417
8418ac_header_compiler=no
8419fi
8420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8422echo "${ECHO_T}$ac_header_compiler" >&6
8423
8424# Is the header present?
8425echo "$as_me:$LINENO: checking $ac_header presence" >&5
8426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8427cat >conftest.$ac_ext <<_ACEOF
8428/* confdefs.h.  */
8429_ACEOF
8430cat confdefs.h >>conftest.$ac_ext
8431cat >>conftest.$ac_ext <<_ACEOF
8432/* end confdefs.h.  */
8433#include <$ac_header>
8434_ACEOF
8435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8437  ac_status=$?
8438  grep -v '^ *+' conftest.er1 >conftest.err
8439  rm -f conftest.er1
8440  cat conftest.err >&5
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); } >/dev/null; then
8443  if test -s conftest.err; then
8444    ac_cpp_err=$ac_c_preproc_warn_flag
8445    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446  else
8447    ac_cpp_err=
8448  fi
8449else
8450  ac_cpp_err=yes
8451fi
8452if test -z "$ac_cpp_err"; then
8453  ac_header_preproc=yes
8454else
8455  echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458  ac_header_preproc=no
8459fi
8460rm -f conftest.err conftest.$ac_ext
8461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462echo "${ECHO_T}$ac_header_preproc" >&6
8463
8464# So?  What about this header?
8465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8466  yes:no: )
8467    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8471    ac_header_preproc=yes
8472    ;;
8473  no:yes:* )
8474    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8476    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8477echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8478    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8480    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8481echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8482    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8484    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8486    (
8487      cat <<\_ASBOX
8488## ---------------------------------------------- ##
8489## Report this to orxonox-dev at mail.datacore.ch ##
8490## ---------------------------------------------- ##
8491_ASBOX
8492    ) |
8493      sed "s/^/$as_me: WARNING:     /" >&2
8494    ;;
8495esac
8496echo "$as_me:$LINENO: checking for $ac_header" >&5
8497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8498if eval "test \"\${$as_ac_Header+set}\" = set"; then
8499  echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
8501  eval "$as_ac_Header=\$ac_header_preproc"
8502fi
8503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8505
8506fi
8507if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508  cat >>confdefs.h <<_ACEOF
8509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510_ACEOF
8511
8512else
8513  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
8514echo "$as_me: error: cannot find ogg header." >&2;}
8515   { (exit 1); exit 1; }; }
8516fi
8517
8518done
8519
8520# checking for ogg-lib
8521  echo "$as_me:$LINENO: checking for main in -logg" >&5
8522echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
8523if test "${ac_cv_lib_ogg_main+set}" = set; then
8524  echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526  ac_check_lib_save_LIBS=$LIBS
8527LIBS="-logg  $LIBS"
8528cat >conftest.$ac_ext <<_ACEOF
8529/* confdefs.h.  */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h.  */
8534
8535
8536int
8537main ()
8538{
8539main ();
8540  ;
8541  return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext conftest$ac_exeext
8545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546  (eval $ac_link) 2>conftest.er1
8547  ac_status=$?
8548  grep -v '^ *+' conftest.er1 >conftest.err
8549  rm -f conftest.er1
8550  cat conftest.err >&5
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); } &&
8553         { ac_try='test -z "$ac_c_werror_flag"
8554                         || test ! -s conftest.err'
8555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556  (eval $ac_try) 2>&5
8557  ac_status=$?
8558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559  (exit $ac_status); }; } &&
8560         { ac_try='test -s conftest$ac_exeext'
8561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562  (eval $ac_try) 2>&5
8563  ac_status=$?
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); }; }; then
8566  ac_cv_lib_ogg_main=yes
8567else
8568  echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
8571ac_cv_lib_ogg_main=no
8572fi
8573rm -f conftest.err conftest.$ac_objext \
8574      conftest$ac_exeext conftest.$ac_ext
8575LIBS=$ac_check_lib_save_LIBS
8576fi
8577echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
8578echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
8579if test $ac_cv_lib_ogg_main = yes; then
8580  FOUND_ogg=yes
8581fi
8582
8583     if test x$FOUND_ogg = xyes ; then
8584       LIBS="$LIBS -logg"
8585     else
8586        echo "------------------"
8587        echo "ogg library not found."
8588        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8589        echo "------------------"
8590        exit -1
8591     fi
8592
8593#--------#
8594# vorbis #
8595#--------#
8596# checking for vorbis-lib
8597  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
8598echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
8599if test "${ac_cv_lib_vorbis_main+set}" = set; then
8600  echo $ECHO_N "(cached) $ECHO_C" >&6
8601else
8602  ac_check_lib_save_LIBS=$LIBS
8603LIBS="-lvorbis  $LIBS"
8604cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h.  */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h.  */
8610
8611
8612int
8613main ()
8614{
8615main ();
8616  ;
8617  return 0;
8618}
8619_ACEOF
8620rm -f conftest.$ac_objext conftest$ac_exeext
8621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622  (eval $ac_link) 2>conftest.er1
8623  ac_status=$?
8624  grep -v '^ *+' conftest.er1 >conftest.err
8625  rm -f conftest.er1
8626  cat conftest.err >&5
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); } &&
8629         { ac_try='test -z "$ac_c_werror_flag"
8630                         || test ! -s conftest.err'
8631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632  (eval $ac_try) 2>&5
8633  ac_status=$?
8634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635  (exit $ac_status); }; } &&
8636         { ac_try='test -s conftest$ac_exeext'
8637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638  (eval $ac_try) 2>&5
8639  ac_status=$?
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); }; }; then
8642  ac_cv_lib_vorbis_main=yes
8643else
8644  echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647ac_cv_lib_vorbis_main=no
8648fi
8649rm -f conftest.err conftest.$ac_objext \
8650      conftest$ac_exeext conftest.$ac_ext
8651LIBS=$ac_check_lib_save_LIBS
8652fi
8653echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
8654echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8655if test $ac_cv_lib_vorbis_main = yes; then
8656  FOUND_vorbis=yes
8657fi
8658
8659     if test x$FOUND_vorbis = xyes ; then
8660       LIBS="$LIBS -lvorbis"
8661     else
8662        echo "------------------"
8663        echo "vorbis library not found."
8664        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8665        echo "------------------"
8666        exit -1
8667     fi
8668
8669#------------#
8670# vorbisfile #
8671#------------#
8672# checking for vorbis-headers
8673
8674for ac_header in vorbis/vorbisfile.h
8675do
8676as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8677if eval "test \"\${$as_ac_Header+set}\" = set"; then
8678  echo "$as_me:$LINENO: checking for $ac_header" >&5
8679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8680if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681  echo $ECHO_N "(cached) $ECHO_C" >&6
8682fi
8683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8685else
8686  # Is the header compilable?
8687echo "$as_me:$LINENO: checking $ac_header usability" >&5
8688echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8689cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h.  */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h.  */
8695$ac_includes_default
8696#include <$ac_header>
8697_ACEOF
8698rm -f conftest.$ac_objext
8699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700  (eval $ac_compile) 2>conftest.er1
8701  ac_status=$?
8702  grep -v '^ *+' conftest.er1 >conftest.err
8703  rm -f conftest.er1
8704  cat conftest.err >&5
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } &&
8707         { ac_try='test -z "$ac_c_werror_flag"
8708                         || test ! -s conftest.err'
8709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710  (eval $ac_try) 2>&5
8711  ac_status=$?
8712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713  (exit $ac_status); }; } &&
8714         { ac_try='test -s conftest.$ac_objext'
8715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716  (eval $ac_try) 2>&5
8717  ac_status=$?
8718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719  (exit $ac_status); }; }; then
8720  ac_header_compiler=yes
8721else
8722  echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725ac_header_compiler=no
8726fi
8727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8728echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8729echo "${ECHO_T}$ac_header_compiler" >&6
8730
8731# Is the header present?
8732echo "$as_me:$LINENO: checking $ac_header presence" >&5
8733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8734cat >conftest.$ac_ext <<_ACEOF
8735/* confdefs.h.  */
8736_ACEOF
8737cat confdefs.h >>conftest.$ac_ext
8738cat >>conftest.$ac_ext <<_ACEOF
8739/* end confdefs.h.  */
8740#include <$ac_header>
8741_ACEOF
8742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8743  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8744  ac_status=$?
8745  grep -v '^ *+' conftest.er1 >conftest.err
8746  rm -f conftest.er1
8747  cat conftest.err >&5
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); } >/dev/null; then
8750  if test -s conftest.err; then
8751    ac_cpp_err=$ac_c_preproc_warn_flag
8752    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8753  else
8754    ac_cpp_err=
8755  fi
8756else
8757  ac_cpp_err=yes
8758fi
8759if test -z "$ac_cpp_err"; then
8760  ac_header_preproc=yes
8761else
8762  echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765  ac_header_preproc=no
8766fi
8767rm -f conftest.err conftest.$ac_ext
8768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769echo "${ECHO_T}$ac_header_preproc" >&6
8770
8771# So?  What about this header?
8772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8773  yes:no: )
8774    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8778    ac_header_preproc=yes
8779    ;;
8780  no:yes:* )
8781    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8783    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8784echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8785    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8787    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8788echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8791    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8793    (
8794      cat <<\_ASBOX
8795## ---------------------------------------------- ##
8796## Report this to orxonox-dev at mail.datacore.ch ##
8797## ---------------------------------------------- ##
8798_ASBOX
8799    ) |
8800      sed "s/^/$as_me: WARNING:     /" >&2
8801    ;;
8802esac
8803echo "$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
8807else
8808  eval "$as_ac_Header=\$ac_header_preproc"
8809fi
8810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8812
8813fi
8814if test `eval echo '${'$as_ac_Header'}'` = yes; then
8815  cat >>confdefs.h <<_ACEOF
8816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8817_ACEOF
8818
8819else
8820  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8821echo "$as_me: error: cannot find vorbisfile header." >&2;}
8822   { (exit 1); exit 1; }; }
8823fi
8824
8825done
8826
8827# checking for vorbisfile-lib
8828  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8829echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8830if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8831  echo $ECHO_N "(cached) $ECHO_C" >&6
8832else
8833  ac_check_lib_save_LIBS=$LIBS
8834LIBS="-lvorbisfile  $LIBS"
8835cat >conftest.$ac_ext <<_ACEOF
8836/* confdefs.h.  */
8837_ACEOF
8838cat confdefs.h >>conftest.$ac_ext
8839cat >>conftest.$ac_ext <<_ACEOF
8840/* end confdefs.h.  */
8841
8842
8843int
8844main ()
8845{
8846main ();
8847  ;
8848  return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853  (eval $ac_link) 2>conftest.er1
8854  ac_status=$?
8855  grep -v '^ *+' conftest.er1 >conftest.err
8856  rm -f conftest.er1
8857  cat conftest.err >&5
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); } &&
8860         { ac_try='test -z "$ac_c_werror_flag"
8861                         || test ! -s conftest.err'
8862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863  (eval $ac_try) 2>&5
8864  ac_status=$?
8865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866  (exit $ac_status); }; } &&
8867         { ac_try='test -s conftest$ac_exeext'
8868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869  (eval $ac_try) 2>&5
8870  ac_status=$?
8871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872  (exit $ac_status); }; }; then
8873  ac_cv_lib_vorbisfile_main=yes
8874else
8875  echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878ac_cv_lib_vorbisfile_main=no
8879fi
8880rm -f conftest.err conftest.$ac_objext \
8881      conftest$ac_exeext conftest.$ac_ext
8882LIBS=$ac_check_lib_save_LIBS
8883fi
8884echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8885echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8886if test $ac_cv_lib_vorbisfile_main = yes; then
8887  FOUND_vorbisfile=yes
8888fi
8889
8890     if test x$FOUND_vorbisfile = xyes ; then
8891       LIBS="$LIBS -lvorbisfile"
8892     else
8893        echo "------------------"
8894        echo "vorbisfile library not found."
8895        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8896        echo "------------------"
8897        exit -1
8898     fi
8899
8900#-----#
8901# GTK #
8902#-----#
8903if test x$def_gtk = xyes; then
8904        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8905        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8906echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8907        if `$PKG_CONFIG --exists gtk+-2.0`; then
8908                echo "yes"
8909                have_gtk2=yes
8910                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8911                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8912
8913cat >>confdefs.h <<_ACEOF
8914#define HAVE_GTK2 1
8915_ACEOF
8916
8917                if test $DEBUG -ge 3; then
8918                 echo "cflags: $GTK2_CFLAGS"
8919                 echo "libs: $GTK2_LIBS"
8920                fi
8921        else
8922                echo "no"
8923        fi
8924
8925fi
8926
8927
8928
8929
8930if test x$have_gtk2 = xyes; then
8931  HAVE_GTK2_TRUE=
8932  HAVE_GTK2_FALSE='#'
8933else
8934  HAVE_GTK2_TRUE='#'
8935  HAVE_GTK2_FALSE=
8936fi
8937
8938
8939#---------#
8940# libcURL #
8941#---------#
8942if test x$def_curl = xyes; then
8943
8944
8945for ac_header in curl/curl.h
8946do
8947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8948if eval "test \"\${$as_ac_Header+set}\" = set"; then
8949  echo "$as_me:$LINENO: checking for $ac_header" >&5
8950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8951if eval "test \"\${$as_ac_Header+set}\" = set"; then
8952  echo $ECHO_N "(cached) $ECHO_C" >&6
8953fi
8954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8956else
8957  # Is the header compilable?
8958echo "$as_me:$LINENO: checking $ac_header usability" >&5
8959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h.  */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h.  */
8966$ac_includes_default
8967#include <$ac_header>
8968_ACEOF
8969rm -f conftest.$ac_objext
8970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8971  (eval $ac_compile) 2>conftest.er1
8972  ac_status=$?
8973  grep -v '^ *+' conftest.er1 >conftest.err
8974  rm -f conftest.er1
8975  cat conftest.err >&5
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); } &&
8978         { ac_try='test -z "$ac_c_werror_flag"
8979                         || test ! -s conftest.err'
8980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981  (eval $ac_try) 2>&5
8982  ac_status=$?
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); }; } &&
8985         { ac_try='test -s conftest.$ac_objext'
8986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987  (eval $ac_try) 2>&5
8988  ac_status=$?
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); }; }; then
8991  ac_header_compiler=yes
8992else
8993  echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5
8995
8996ac_header_compiler=no
8997fi
8998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002# Is the header present?
9003echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h.  */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h.  */
9011#include <$ac_header>
9012_ACEOF
9013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9014  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9015  ac_status=$?
9016  grep -v '^ *+' conftest.er1 >conftest.err
9017  rm -f conftest.er1
9018  cat conftest.err >&5
9019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020  (exit $ac_status); } >/dev/null; then
9021  if test -s conftest.err; then
9022    ac_cpp_err=$ac_c_preproc_warn_flag
9023    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9024  else
9025    ac_cpp_err=
9026  fi
9027else
9028  ac_cpp_err=yes
9029fi
9030if test -z "$ac_cpp_err"; then
9031  ac_header_preproc=yes
9032else
9033  echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036  ac_header_preproc=no
9037fi
9038rm -f conftest.err conftest.$ac_ext
9039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9040echo "${ECHO_T}$ac_header_preproc" >&6
9041
9042# So?  What about this header?
9043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9044  yes:no: )
9045    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9047    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9049    ac_header_preproc=yes
9050    ;;
9051  no:yes:* )
9052    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9054    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9055echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9056    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9058    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9059echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9060    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9062    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9064    (
9065      cat <<\_ASBOX
9066## ---------------------------------------------- ##
9067## Report this to orxonox-dev at mail.datacore.ch ##
9068## ---------------------------------------------- ##
9069_ASBOX
9070    ) |
9071      sed "s/^/$as_me: WARNING:     /" >&2
9072    ;;
9073esac
9074echo "$as_me:$LINENO: checking for $ac_header" >&5
9075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9076if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077  echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079  eval "$as_ac_Header=\$ac_header_preproc"
9080fi
9081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9083
9084fi
9085if test `eval echo '${'$as_ac_Header'}'` = yes; then
9086  cat >>confdefs.h <<_ACEOF
9087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9088_ACEOF
9089 curlHeader="yes"
9090else
9091  curlHeader="no"
9092fi
9093
9094done
9095
9096 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9097echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9098if test "${ac_cv_lib_curl_main+set}" = set; then
9099  echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
9101  ac_check_lib_save_LIBS=$LIBS
9102LIBS="-lcurl  $LIBS"
9103cat >conftest.$ac_ext <<_ACEOF
9104/* confdefs.h.  */
9105_ACEOF
9106cat confdefs.h >>conftest.$ac_ext
9107cat >>conftest.$ac_ext <<_ACEOF
9108/* end confdefs.h.  */
9109
9110
9111int
9112main ()
9113{
9114main ();
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119rm -f conftest.$ac_objext conftest$ac_exeext
9120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121  (eval $ac_link) 2>conftest.er1
9122  ac_status=$?
9123  grep -v '^ *+' conftest.er1 >conftest.err
9124  rm -f conftest.er1
9125  cat conftest.err >&5
9126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127  (exit $ac_status); } &&
9128         { ac_try='test -z "$ac_c_werror_flag"
9129                         || test ! -s conftest.err'
9130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131  (eval $ac_try) 2>&5
9132  ac_status=$?
9133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134  (exit $ac_status); }; } &&
9135         { ac_try='test -s conftest$ac_exeext'
9136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137  (eval $ac_try) 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; }; then
9141  ac_cv_lib_curl_main=yes
9142else
9143  echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
9146ac_cv_lib_curl_main=no
9147fi
9148rm -f conftest.err conftest.$ac_objext \
9149      conftest$ac_exeext conftest.$ac_ext
9150LIBS=$ac_check_lib_save_LIBS
9151fi
9152echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9153echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9154if test $ac_cv_lib_curl_main = yes; then
9155  FOUND_curl=yes
9156fi
9157
9158 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9159  have_curl=yes
9160  CURL_LIBS=`curl-config --libs`
9161  CURLCFLAGS=`curl-config --cflags`
9162
9163cat >>confdefs.h <<_ACEOF
9164#define HAVE_CURL 1
9165_ACEOF
9166
9167 else
9168  have_curl=no
9169 fi
9170
9171fi
9172
9173
9174
9175
9176if test x$have_curl = xyes; then
9177  HAVE_CURL_TRUE=
9178  HAVE_CURL_FALSE='#'
9179else
9180  HAVE_CURL_TRUE='#'
9181  HAVE_CURL_FALSE=
9182fi
9183
9184
9185#--------#
9186# efence #
9187#--------#
9188if test x$def_efence = xyes ; then
9189  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9190echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9191if test "${ac_cv_lib_efence_main+set}" = set; then
9192  echo $ECHO_N "(cached) $ECHO_C" >&6
9193else
9194  ac_check_lib_save_LIBS=$LIBS
9195LIBS="-lefence  $LIBS"
9196cat >conftest.$ac_ext <<_ACEOF
9197/* confdefs.h.  */
9198_ACEOF
9199cat confdefs.h >>conftest.$ac_ext
9200cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h.  */
9202
9203
9204int
9205main ()
9206{
9207main ();
9208  ;
9209  return 0;
9210}
9211_ACEOF
9212rm -f conftest.$ac_objext conftest$ac_exeext
9213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9214  (eval $ac_link) 2>conftest.er1
9215  ac_status=$?
9216  grep -v '^ *+' conftest.er1 >conftest.err
9217  rm -f conftest.er1
9218  cat conftest.err >&5
9219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220  (exit $ac_status); } &&
9221         { ac_try='test -z "$ac_c_werror_flag"
9222                         || test ! -s conftest.err'
9223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224  (eval $ac_try) 2>&5
9225  ac_status=$?
9226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227  (exit $ac_status); }; } &&
9228         { ac_try='test -s conftest$ac_exeext'
9229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230  (eval $ac_try) 2>&5
9231  ac_status=$?
9232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233  (exit $ac_status); }; }; then
9234  ac_cv_lib_efence_main=yes
9235else
9236  echo "$as_me: failed program was:" >&5
9237sed 's/^/| /' conftest.$ac_ext >&5
9238
9239ac_cv_lib_efence_main=no
9240fi
9241rm -f conftest.err conftest.$ac_objext \
9242      conftest$ac_exeext conftest.$ac_ext
9243LIBS=$ac_check_lib_save_LIBS
9244fi
9245echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9246echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9247if test $ac_cv_lib_efence_main = yes; then
9248  FOUND_efence=yes
9249fi
9250
9251   if test x$FOUND_efence = xyes ; then
9252      LIBS="$LIBS -lefence"
9253   fi
9254
9255fi
9256
9257# FIXME: Replace `main' with a function in `-lm':
9258
9259echo "$as_me:$LINENO: checking for main in -lm" >&5
9260echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9261if test "${ac_cv_lib_m_main+set}" = set; then
9262  echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264  ac_check_lib_save_LIBS=$LIBS
9265LIBS="-lm  $LIBS"
9266cat >conftest.$ac_ext <<_ACEOF
9267/* confdefs.h.  */
9268_ACEOF
9269cat confdefs.h >>conftest.$ac_ext
9270cat >>conftest.$ac_ext <<_ACEOF
9271/* end confdefs.h.  */
9272
9273
9274int
9275main ()
9276{
9277main ();
9278  ;
9279  return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext conftest$ac_exeext
9283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9284  (eval $ac_link) 2>conftest.er1
9285  ac_status=$?
9286  grep -v '^ *+' conftest.er1 >conftest.err
9287  rm -f conftest.er1
9288  cat conftest.err >&5
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); } &&
9291         { ac_try='test -z "$ac_c_werror_flag"
9292                         || test ! -s conftest.err'
9293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294  (eval $ac_try) 2>&5
9295  ac_status=$?
9296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297  (exit $ac_status); }; } &&
9298         { ac_try='test -s conftest$ac_exeext'
9299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300  (eval $ac_try) 2>&5
9301  ac_status=$?
9302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303  (exit $ac_status); }; }; then
9304  ac_cv_lib_m_main=yes
9305else
9306  echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309ac_cv_lib_m_main=no
9310fi
9311rm -f conftest.err conftest.$ac_objext \
9312      conftest$ac_exeext conftest.$ac_ext
9313LIBS=$ac_check_lib_save_LIBS
9314fi
9315echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9316echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9317if test $ac_cv_lib_m_main = yes; then
9318  cat >>confdefs.h <<_ACEOF
9319#define HAVE_LIBM 1
9320_ACEOF
9321
9322  LIBS="-lm $LIBS"
9323
9324fi
9325
9326
9327
9328# Checks for header files.
9329echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9330echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9331if test "${ac_cv_header_stdc+set}" = set; then
9332  echo $ECHO_N "(cached) $ECHO_C" >&6
9333else
9334  cat >conftest.$ac_ext <<_ACEOF
9335/* confdefs.h.  */
9336_ACEOF
9337cat confdefs.h >>conftest.$ac_ext
9338cat >>conftest.$ac_ext <<_ACEOF
9339/* end confdefs.h.  */
9340#include <stdlib.h>
9341#include <stdarg.h>
9342#include <string.h>
9343#include <float.h>
9344
9345int
9346main ()
9347{
9348
9349  ;
9350  return 0;
9351}
9352_ACEOF
9353rm -f conftest.$ac_objext
9354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355  (eval $ac_compile) 2>conftest.er1
9356  ac_status=$?
9357  grep -v '^ *+' conftest.er1 >conftest.err
9358  rm -f conftest.er1
9359  cat conftest.err >&5
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } &&
9362         { ac_try='test -z "$ac_c_werror_flag"
9363                         || test ! -s conftest.err'
9364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365  (eval $ac_try) 2>&5
9366  ac_status=$?
9367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368  (exit $ac_status); }; } &&
9369         { ac_try='test -s conftest.$ac_objext'
9370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371  (eval $ac_try) 2>&5
9372  ac_status=$?
9373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374  (exit $ac_status); }; }; then
9375  ac_cv_header_stdc=yes
9376else
9377  echo "$as_me: failed program was:" >&5
9378sed 's/^/| /' conftest.$ac_ext >&5
9379
9380ac_cv_header_stdc=no
9381fi
9382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9383
9384if test $ac_cv_header_stdc = yes; then
9385  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9386  cat >conftest.$ac_ext <<_ACEOF
9387/* confdefs.h.  */
9388_ACEOF
9389cat confdefs.h >>conftest.$ac_ext
9390cat >>conftest.$ac_ext <<_ACEOF
9391/* end confdefs.h.  */
9392#include <string.h>
9393
9394_ACEOF
9395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9396  $EGREP "memchr" >/dev/null 2>&1; then
9397  :
9398else
9399  ac_cv_header_stdc=no
9400fi
9401rm -f conftest*
9402
9403fi
9404
9405if test $ac_cv_header_stdc = yes; then
9406  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9407  cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h.  */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h.  */
9413#include <stdlib.h>
9414
9415_ACEOF
9416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9417  $EGREP "free" >/dev/null 2>&1; then
9418  :
9419else
9420  ac_cv_header_stdc=no
9421fi
9422rm -f conftest*
9423
9424fi
9425
9426if test $ac_cv_header_stdc = yes; then
9427  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9428  if test "$cross_compiling" = yes; then
9429  :
9430else
9431  cat >conftest.$ac_ext <<_ACEOF
9432/* confdefs.h.  */
9433_ACEOF
9434cat confdefs.h >>conftest.$ac_ext
9435cat >>conftest.$ac_ext <<_ACEOF
9436/* end confdefs.h.  */
9437#include <ctype.h>
9438#if ((' ' & 0x0FF) == 0x020)
9439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9441#else
9442# define ISLOWER(c) \
9443                   (('a' <= (c) && (c) <= 'i') \
9444                     || ('j' <= (c) && (c) <= 'r') \
9445                     || ('s' <= (c) && (c) <= 'z'))
9446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9447#endif
9448
9449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9450int
9451main ()
9452{
9453  int i;
9454  for (i = 0; i < 256; i++)
9455    if (XOR (islower (i), ISLOWER (i))
9456        || toupper (i) != TOUPPER (i))
9457      exit(2);
9458  exit (0);
9459}
9460_ACEOF
9461rm -f conftest$ac_exeext
9462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463  (eval $ac_link) 2>&5
9464  ac_status=$?
9465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468  (eval $ac_try) 2>&5
9469  ac_status=$?
9470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471  (exit $ac_status); }; }; then
9472  :
9473else
9474  echo "$as_me: program exited with status $ac_status" >&5
9475echo "$as_me: failed program was:" >&5
9476sed 's/^/| /' conftest.$ac_ext >&5
9477
9478( exit $ac_status )
9479ac_cv_header_stdc=no
9480fi
9481rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482fi
9483fi
9484fi
9485echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9486echo "${ECHO_T}$ac_cv_header_stdc" >&6
9487if test $ac_cv_header_stdc = yes; then
9488
9489cat >>confdefs.h <<\_ACEOF
9490#define STDC_HEADERS 1
9491_ACEOF
9492
9493fi
9494
9495
9496
9497for ac_header in stdlib.h string.h
9498do
9499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9500if eval "test \"\${$as_ac_Header+set}\" = set"; then
9501  echo "$as_me:$LINENO: checking for $ac_header" >&5
9502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9503if eval "test \"\${$as_ac_Header+set}\" = set"; then
9504  echo $ECHO_N "(cached) $ECHO_C" >&6
9505fi
9506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9508else
9509  # Is the header compilable?
9510echo "$as_me:$LINENO: checking $ac_header usability" >&5
9511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9512cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h.  */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h.  */
9518$ac_includes_default
9519#include <$ac_header>
9520_ACEOF
9521rm -f conftest.$ac_objext
9522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523  (eval $ac_compile) 2>conftest.er1
9524  ac_status=$?
9525  grep -v '^ *+' conftest.er1 >conftest.err
9526  rm -f conftest.er1
9527  cat conftest.err >&5
9528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529  (exit $ac_status); } &&
9530         { ac_try='test -z "$ac_c_werror_flag"
9531                         || test ! -s conftest.err'
9532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533  (eval $ac_try) 2>&5
9534  ac_status=$?
9535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536  (exit $ac_status); }; } &&
9537         { ac_try='test -s conftest.$ac_objext'
9538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539  (eval $ac_try) 2>&5
9540  ac_status=$?
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); }; }; then
9543  ac_header_compiler=yes
9544else
9545  echo "$as_me: failed program was:" >&5
9546sed 's/^/| /' conftest.$ac_ext >&5
9547
9548ac_header_compiler=no
9549fi
9550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9552echo "${ECHO_T}$ac_header_compiler" >&6
9553
9554# Is the header present?
9555echo "$as_me:$LINENO: checking $ac_header presence" >&5
9556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9557cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h.  */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h.  */
9563#include <$ac_header>
9564_ACEOF
9565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9567  ac_status=$?
9568  grep -v '^ *+' conftest.er1 >conftest.err
9569  rm -f conftest.er1
9570  cat conftest.err >&5
9571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572  (exit $ac_status); } >/dev/null; then
9573  if test -s conftest.err; then
9574    ac_cpp_err=$ac_c_preproc_warn_flag
9575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9576  else
9577    ac_cpp_err=
9578  fi
9579else
9580  ac_cpp_err=yes
9581fi
9582if test -z "$ac_cpp_err"; then
9583  ac_header_preproc=yes
9584else
9585  echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588  ac_header_preproc=no
9589fi
9590rm -f conftest.err conftest.$ac_ext
9591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9592echo "${ECHO_T}$ac_header_preproc" >&6
9593
9594# So?  What about this header?
9595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9596  yes:no: )
9597    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9601    ac_header_preproc=yes
9602    ;;
9603  no:yes:* )
9604    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9606    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9607echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9608    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9610    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9611echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9614    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9616    (
9617      cat <<\_ASBOX
9618## ---------------------------------------------- ##
9619## Report this to orxonox-dev at mail.datacore.ch ##
9620## ---------------------------------------------- ##
9621_ASBOX
9622    ) |
9623      sed "s/^/$as_me: WARNING:     /" >&2
9624    ;;
9625esac
9626echo "$as_me:$LINENO: checking for $ac_header" >&5
9627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9628if eval "test \"\${$as_ac_Header+set}\" = set"; then
9629  echo $ECHO_N "(cached) $ECHO_C" >&6
9630else
9631  eval "$as_ac_Header=\$ac_header_preproc"
9632fi
9633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9635
9636fi
9637if test `eval echo '${'$as_ac_Header'}'` = yes; then
9638  cat >>confdefs.h <<_ACEOF
9639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9640_ACEOF
9641
9642fi
9643
9644done
9645
9646
9647# Checks for typedefs, structures, and compiler characteristics.
9648echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9649echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9650if test "${ac_cv_header_stdbool_h+set}" = set; then
9651  echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653  cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h.  */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h.  */
9659
9660#include <stdbool.h>
9661#ifndef bool
9662# error bool is not defined
9663#endif
9664#ifndef false
9665# error false is not defined
9666#endif
9667#if false
9668# error false is not 0
9669#endif
9670#ifndef true
9671# error true is not defined
9672#endif
9673#if true != 1
9674# error true is not 1
9675#endif
9676#ifndef __bool_true_false_are_defined
9677# error __bool_true_false_are_defined is not defined
9678#endif
9679
9680        struct s { _Bool s: 1; _Bool t; } s;
9681
9682        char a[true == 1 ? 1 : -1];
9683        char b[false == 0 ? 1 : -1];
9684        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9685        char d[(bool) -0.5 == true ? 1 : -1];
9686        bool e = &s;
9687        char f[(_Bool) -0.0 == false ? 1 : -1];
9688        char g[true];
9689        char h[sizeof (_Bool)];
9690        char i[sizeof s.t];
9691
9692int
9693main ()
9694{
9695 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700rm -f conftest.$ac_objext
9701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702  (eval $ac_compile) 2>conftest.er1
9703  ac_status=$?
9704  grep -v '^ *+' conftest.er1 >conftest.err
9705  rm -f conftest.er1
9706  cat conftest.err >&5
9707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708  (exit $ac_status); } &&
9709         { ac_try='test -z "$ac_c_werror_flag"
9710                         || test ! -s conftest.err'
9711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712  (eval $ac_try) 2>&5
9713  ac_status=$?
9714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715  (exit $ac_status); }; } &&
9716         { ac_try='test -s conftest.$ac_objext'
9717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718  (eval $ac_try) 2>&5
9719  ac_status=$?
9720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721  (exit $ac_status); }; }; then
9722  ac_cv_header_stdbool_h=yes
9723else
9724  echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727ac_cv_header_stdbool_h=no
9728fi
9729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9730fi
9731echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9732echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9733echo "$as_me:$LINENO: checking for _Bool" >&5
9734echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9735if test "${ac_cv_type__Bool+set}" = set; then
9736  echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738  cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h.  */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h.  */
9744$ac_includes_default
9745int
9746main ()
9747{
9748if ((_Bool *) 0)
9749  return 0;
9750if (sizeof (_Bool))
9751  return 0;
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext
9757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9758  (eval $ac_compile) 2>conftest.er1
9759  ac_status=$?
9760  grep -v '^ *+' conftest.er1 >conftest.err
9761  rm -f conftest.er1
9762  cat conftest.err >&5
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); } &&
9765         { ac_try='test -z "$ac_c_werror_flag"
9766                         || test ! -s conftest.err'
9767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768  (eval $ac_try) 2>&5
9769  ac_status=$?
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); }; } &&
9772         { ac_try='test -s conftest.$ac_objext'
9773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774  (eval $ac_try) 2>&5
9775  ac_status=$?
9776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777  (exit $ac_status); }; }; then
9778  ac_cv_type__Bool=yes
9779else
9780  echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783ac_cv_type__Bool=no
9784fi
9785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9786fi
9787echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9788echo "${ECHO_T}$ac_cv_type__Bool" >&6
9789if test $ac_cv_type__Bool = yes; then
9790
9791cat >>confdefs.h <<_ACEOF
9792#define HAVE__BOOL 1
9793_ACEOF
9794
9795
9796fi
9797
9798if test $ac_cv_header_stdbool_h = yes; then
9799
9800cat >>confdefs.h <<\_ACEOF
9801#define HAVE_STDBOOL_H 1
9802_ACEOF
9803
9804fi
9805
9806
9807# Checks for library functions.
9808
9809for ac_header in stdlib.h
9810do
9811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813  echo "$as_me:$LINENO: checking for $ac_header" >&5
9814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816  echo $ECHO_N "(cached) $ECHO_C" >&6
9817fi
9818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9820else
9821  # Is the header compilable?
9822echo "$as_me:$LINENO: checking $ac_header usability" >&5
9823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9824cat >conftest.$ac_ext <<_ACEOF
9825/* confdefs.h.  */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h.  */
9830$ac_includes_default
9831#include <$ac_header>
9832_ACEOF
9833rm -f conftest.$ac_objext
9834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835  (eval $ac_compile) 2>conftest.er1
9836  ac_status=$?
9837  grep -v '^ *+' conftest.er1 >conftest.err
9838  rm -f conftest.er1
9839  cat conftest.err >&5
9840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841  (exit $ac_status); } &&
9842         { ac_try='test -z "$ac_c_werror_flag"
9843                         || test ! -s conftest.err'
9844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845  (eval $ac_try) 2>&5
9846  ac_status=$?
9847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848  (exit $ac_status); }; } &&
9849         { ac_try='test -s conftest.$ac_objext'
9850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851  (eval $ac_try) 2>&5
9852  ac_status=$?
9853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854  (exit $ac_status); }; }; then
9855  ac_header_compiler=yes
9856else
9857  echo "$as_me: failed program was:" >&5
9858sed 's/^/| /' conftest.$ac_ext >&5
9859
9860ac_header_compiler=no
9861fi
9862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9864echo "${ECHO_T}$ac_header_compiler" >&6
9865
9866# Is the header present?
9867echo "$as_me:$LINENO: checking $ac_header presence" >&5
9868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9869cat >conftest.$ac_ext <<_ACEOF
9870/* confdefs.h.  */
9871_ACEOF
9872cat confdefs.h >>conftest.$ac_ext
9873cat >>conftest.$ac_ext <<_ACEOF
9874/* end confdefs.h.  */
9875#include <$ac_header>
9876_ACEOF
9877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9879  ac_status=$?
9880  grep -v '^ *+' conftest.er1 >conftest.err
9881  rm -f conftest.er1
9882  cat conftest.err >&5
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); } >/dev/null; then
9885  if test -s conftest.err; then
9886    ac_cpp_err=$ac_c_preproc_warn_flag
9887    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9888  else
9889    ac_cpp_err=
9890  fi
9891else
9892  ac_cpp_err=yes
9893fi
9894if test -z "$ac_cpp_err"; then
9895  ac_header_preproc=yes
9896else
9897  echo "$as_me: failed program was:" >&5
9898sed 's/^/| /' conftest.$ac_ext >&5
9899
9900  ac_header_preproc=no
9901fi
9902rm -f conftest.err conftest.$ac_ext
9903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904echo "${ECHO_T}$ac_header_preproc" >&6
9905
9906# So?  What about this header?
9907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9908  yes:no: )
9909    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9913    ac_header_preproc=yes
9914    ;;
9915  no:yes:* )
9916    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9918    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9919echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9920    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9922    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9923echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9926    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9928    (
9929      cat <<\_ASBOX
9930## ---------------------------------------------- ##
9931## Report this to orxonox-dev at mail.datacore.ch ##
9932## ---------------------------------------------- ##
9933_ASBOX
9934    ) |
9935      sed "s/^/$as_me: WARNING:     /" >&2
9936    ;;
9937esac
9938echo "$as_me:$LINENO: checking for $ac_header" >&5
9939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9940if eval "test \"\${$as_ac_Header+set}\" = set"; then
9941  echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943  eval "$as_ac_Header=\$ac_header_preproc"
9944fi
9945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9947
9948fi
9949if test `eval echo '${'$as_ac_Header'}'` = yes; then
9950  cat >>confdefs.h <<_ACEOF
9951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9952_ACEOF
9953
9954fi
9955
9956done
9957
9958echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9959echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9960if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  if test "$cross_compiling" = yes; then
9964  ac_cv_func_malloc_0_nonnull=no
9965else
9966  cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972#if STDC_HEADERS || HAVE_STDLIB_H
9973# include <stdlib.h>
9974#else
9975char *malloc ();
9976#endif
9977
9978int
9979main ()
9980{
9981exit (malloc (0) ? 0 : 1);
9982  ;
9983  return 0;
9984}
9985_ACEOF
9986rm -f conftest$ac_exeext
9987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988  (eval $ac_link) 2>&5
9989  ac_status=$?
9990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993  (eval $ac_try) 2>&5
9994  ac_status=$?
9995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996  (exit $ac_status); }; }; then
9997  ac_cv_func_malloc_0_nonnull=yes
9998else
9999  echo "$as_me: program exited with status $ac_status" >&5
10000echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
10003( exit $ac_status )
10004ac_cv_func_malloc_0_nonnull=no
10005fi
10006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10007fi
10008fi
10009echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10010echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10011if test $ac_cv_func_malloc_0_nonnull = yes; then
10012
10013cat >>confdefs.h <<\_ACEOF
10014#define HAVE_MALLOC 1
10015_ACEOF
10016
10017else
10018  cat >>confdefs.h <<\_ACEOF
10019#define HAVE_MALLOC 0
10020_ACEOF
10021
10022   case $LIBOBJS in
10023    "malloc.$ac_objext"   | \
10024  *" malloc.$ac_objext"   | \
10025    "malloc.$ac_objext "* | \
10026  *" malloc.$ac_objext "* ) ;;
10027  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10028esac
10029
10030
10031cat >>confdefs.h <<\_ACEOF
10032#define malloc rpl_malloc
10033_ACEOF
10034
10035fi
10036
10037
10038
10039
10040
10041for ac_func in bzero sqrt
10042do
10043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10044echo "$as_me:$LINENO: checking for $ac_func" >&5
10045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10046if eval "test \"\${$as_ac_var+set}\" = set"; then
10047  echo $ECHO_N "(cached) $ECHO_C" >&6
10048else
10049  cat >conftest.$ac_ext <<_ACEOF
10050/* confdefs.h.  */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h.  */
10055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10056   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10057#define $ac_func innocuous_$ac_func
10058
10059/* System header to define __stub macros and hopefully few prototypes,
10060    which can conflict with char $ac_func (); below.
10061    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10062    <limits.h> exists even on freestanding compilers.  */
10063
10064#ifdef __STDC__
10065# include <limits.h>
10066#else
10067# include <assert.h>
10068#endif
10069
10070#undef $ac_func
10071
10072/* Override any gcc2 internal prototype to avoid an error.  */
10073#ifdef __cplusplus
10074extern "C"
10075{
10076#endif
10077/* We use char because int might match the return type of a gcc2
10078   builtin and then its argument prototype would still apply.  */
10079char $ac_func ();
10080/* The GNU C library defines this for functions which it implements
10081    to always fail with ENOSYS.  Some functions are actually named
10082    something starting with __ and the normal name is an alias.  */
10083#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10084choke me
10085#else
10086char (*f) () = $ac_func;
10087#endif
10088#ifdef __cplusplus
10089}
10090#endif
10091
10092int
10093main ()
10094{
10095return f != $ac_func;
10096  ;
10097  return 0;
10098}
10099_ACEOF
10100rm -f conftest.$ac_objext conftest$ac_exeext
10101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102  (eval $ac_link) 2>conftest.er1
10103  ac_status=$?
10104  grep -v '^ *+' conftest.er1 >conftest.err
10105  rm -f conftest.er1
10106  cat conftest.err >&5
10107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108  (exit $ac_status); } &&
10109         { ac_try='test -z "$ac_c_werror_flag"
10110                         || test ! -s conftest.err'
10111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112  (eval $ac_try) 2>&5
10113  ac_status=$?
10114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115  (exit $ac_status); }; } &&
10116         { ac_try='test -s conftest$ac_exeext'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; }; then
10122  eval "$as_ac_var=yes"
10123else
10124  echo "$as_me: failed program was:" >&5
10125sed 's/^/| /' conftest.$ac_ext >&5
10126
10127eval "$as_ac_var=no"
10128fi
10129rm -f conftest.err conftest.$ac_objext \
10130      conftest$ac_exeext conftest.$ac_ext
10131fi
10132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10134if test `eval echo '${'$as_ac_var'}'` = yes; then
10135  cat >>confdefs.h <<_ACEOF
10136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10137_ACEOF
10138
10139fi
10140done
10141
10142
10143######################
10144## OUTPUT CONFIGURE ##
10145######################
10146                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
10147
10148
10149cat >confcache <<\_ACEOF
10150# This file is a shell script that caches the results of configure
10151# tests run on this system so they can be shared between configure
10152# scripts and configure runs, see configure's option --config-cache.
10153# It is not useful on other systems.  If it contains results you don't
10154# want to keep, you may remove or edit it.
10155#
10156# config.status only pays attention to the cache file if you give it
10157# the --recheck option to rerun configure.
10158#
10159# `ac_cv_env_foo' variables (set or unset) will be overridden when
10160# loading this file, other *unset* `ac_cv_foo' will be assigned the
10161# following values.
10162
10163_ACEOF
10164
10165# The following way of writing the cache mishandles newlines in values,
10166# but we know of no workaround that is simple, portable, and efficient.
10167# So, don't put newlines in cache variables' values.
10168# Ultrix sh set writes to stderr and can't be redirected directly,
10169# and sets the high bit in the cache file unless we assign to the vars.
10170{
10171  (set) 2>&1 |
10172    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10173    *ac_space=\ *)
10174      # `set' does not quote correctly, so add quotes (double-quote
10175      # substitution turns \\\\ into \\, and sed turns \\ into \).
10176      sed -n \
10177        "s/'/'\\\\''/g;
10178          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10179      ;;
10180    *)
10181      # `set' quotes correctly as required by POSIX, so do not add quotes.
10182      sed -n \
10183        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10184      ;;
10185    esac;
10186} |
10187  sed '
10188     t clear
10189     : clear
10190     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10191     t end
10192     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10193     : end' >>confcache
10194if diff $cache_file confcache >/dev/null 2>&1; then :; else
10195  if test -w $cache_file; then
10196    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10197    cat confcache >$cache_file
10198  else
10199    echo "not updating unwritable cache $cache_file"
10200  fi
10201fi
10202rm -f confcache
10203
10204test "x$prefix" = xNONE && prefix=$ac_default_prefix
10205# Let make expand exec_prefix.
10206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10207
10208# VPATH may cause trouble with some makes, so we remove $(srcdir),
10209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10210# trailing colons and then remove the whole line if VPATH becomes empty
10211# (actually we leave an empty line to preserve line numbers).
10212if test "x$srcdir" = x.; then
10213  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10214s/:*\$(srcdir):*/:/;
10215s/:*\${srcdir}:*/:/;
10216s/:*@srcdir@:*/:/;
10217s/^\([^=]*=[     ]*\):*/\1/;
10218s/:*$//;
10219s/^[^=]*=[       ]*$//;
10220}'
10221fi
10222
10223DEFS=-DHAVE_CONFIG_H
10224
10225ac_libobjs=
10226ac_ltlibobjs=
10227for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10228  # 1. Remove the extension, and $U if already installed.
10229  ac_i=`echo "$ac_i" |
10230         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10231  # 2. Add them.
10232  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10233  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10234done
10235LIBOBJS=$ac_libobjs
10236
10237LTLIBOBJS=$ac_ltlibobjs
10238
10239
10240if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10241  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10242Usually this means the macro was only invoked conditionally." >&5
10243echo "$as_me: error: conditional \"AMDEP\" was never defined.
10244Usually this means the macro was only invoked conditionally." >&2;}
10245   { (exit 1); exit 1; }; }
10246fi
10247if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10248  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10249Usually this means the macro was only invoked conditionally." >&5
10250echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10251Usually this means the macro was only invoked conditionally." >&2;}
10252   { (exit 1); exit 1; }; }
10253fi
10254if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10255  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10256Usually this means the macro was only invoked conditionally." >&5
10257echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10258Usually this means the macro was only invoked conditionally." >&2;}
10259   { (exit 1); exit 1; }; }
10260fi
10261if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10262  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10263Usually this means the macro was only invoked conditionally." >&5
10264echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10265Usually this means the macro was only invoked conditionally." >&2;}
10266   { (exit 1); exit 1; }; }
10267fi
10268if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10269  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10270Usually this means the macro was only invoked conditionally." >&5
10271echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10272Usually this means the macro was only invoked conditionally." >&2;}
10273   { (exit 1); exit 1; }; }
10274fi
10275if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10276  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10277Usually this means the macro was only invoked conditionally." >&5
10278echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10279Usually this means the macro was only invoked conditionally." >&2;}
10280   { (exit 1); exit 1; }; }
10281fi
10282if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10283  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
10284Usually this means the macro was only invoked conditionally." >&5
10285echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
10286Usually this means the macro was only invoked conditionally." >&2;}
10287   { (exit 1); exit 1; }; }
10288fi
10289if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10290  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
10291Usually this means the macro was only invoked conditionally." >&5
10292echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
10293Usually this means the macro was only invoked conditionally." >&2;}
10294   { (exit 1); exit 1; }; }
10295fi
10296
10297: ${CONFIG_STATUS=./config.status}
10298ac_clean_files_save=$ac_clean_files
10299ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10300{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10301echo "$as_me: creating $CONFIG_STATUS" >&6;}
10302cat >$CONFIG_STATUS <<_ACEOF
10303#! $SHELL
10304# Generated by $as_me.
10305# Run this file to recreate the current configuration.
10306# Compiler output produced by configure, useful for debugging
10307# configure, is in config.log if it exists.
10308
10309debug=false
10310ac_cs_recheck=false
10311ac_cs_silent=false
10312SHELL=\${CONFIG_SHELL-$SHELL}
10313_ACEOF
10314
10315cat >>$CONFIG_STATUS <<\_ACEOF
10316## --------------------- ##
10317## M4sh Initialization.  ##
10318## --------------------- ##
10319
10320# Be Bourne compatible
10321if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10322  emulate sh
10323  NULLCMD=:
10324  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10325  # is contrary to our usage.  Disable this feature.
10326  alias -g '${1+"$@"}'='"$@"'
10327elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10328  set -o posix
10329fi
10330DUALCASE=1; export DUALCASE # for MKS sh
10331
10332# Support unset when possible.
10333if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10334  as_unset=unset
10335else
10336  as_unset=false
10337fi
10338
10339
10340# Work around bugs in pre-3.0 UWIN ksh.
10341$as_unset ENV MAIL MAILPATH
10342PS1='$ '
10343PS2='> '
10344PS4='+ '
10345
10346# NLS nuisances.
10347for as_var in \
10348  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10349  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10350  LC_TELEPHONE LC_TIME
10351do
10352  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10353    eval $as_var=C; export $as_var
10354  else
10355    $as_unset $as_var
10356  fi
10357done
10358
10359# Required to use basename.
10360if expr a : '\(a\)' >/dev/null 2>&1; then
10361  as_expr=expr
10362else
10363  as_expr=false
10364fi
10365
10366if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10367  as_basename=basename
10368else
10369  as_basename=false
10370fi
10371
10372
10373# Name of the executable.
10374as_me=`$as_basename "$0" ||
10375$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10376         X"$0" : 'X\(//\)$' \| \
10377         X"$0" : 'X\(/\)$' \| \
10378         .     : '\(.\)' 2>/dev/null ||
10379echo X/"$0" |
10380    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10381          /^X\/\(\/\/\)$/{ s//\1/; q; }
10382          /^X\/\(\/\).*/{ s//\1/; q; }
10383          s/.*/./; q'`
10384
10385
10386# PATH needs CR, and LINENO needs CR and PATH.
10387# Avoid depending upon Character Ranges.
10388as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10389as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10390as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10391as_cr_digits='0123456789'
10392as_cr_alnum=$as_cr_Letters$as_cr_digits
10393
10394# The user is always right.
10395if test "${PATH_SEPARATOR+set}" != set; then
10396  echo "#! /bin/sh" >conf$$.sh
10397  echo  "exit 0"   >>conf$$.sh
10398  chmod +x conf$$.sh
10399  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10400    PATH_SEPARATOR=';'
10401  else
10402    PATH_SEPARATOR=:
10403  fi
10404  rm -f conf$$.sh
10405fi
10406
10407
10408  as_lineno_1=$LINENO
10409  as_lineno_2=$LINENO
10410  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10411  test "x$as_lineno_1" != "x$as_lineno_2" &&
10412  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10413  # Find who we are.  Look in the path if we contain no path at all
10414  # relative or not.
10415  case $0 in
10416    *[\\/]* ) as_myself=$0 ;;
10417    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420  IFS=$as_save_IFS
10421  test -z "$as_dir" && as_dir=.
10422  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10423done
10424
10425       ;;
10426  esac
10427  # We did not find ourselves, most probably we were run as `sh COMMAND'
10428  # in which case we are not to be found in the path.
10429  if test "x$as_myself" = x; then
10430    as_myself=$0
10431  fi
10432  if test ! -f "$as_myself"; then
10433    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10434echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10435   { (exit 1); exit 1; }; }
10436  fi
10437  case $CONFIG_SHELL in
10438  '')
10439    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10441do
10442  IFS=$as_save_IFS
10443  test -z "$as_dir" && as_dir=.
10444  for as_base in sh bash ksh sh5; do
10445         case $as_dir in
10446         /*)
10447           if ("$as_dir/$as_base" -c '
10448  as_lineno_1=$LINENO
10449  as_lineno_2=$LINENO
10450  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10451  test "x$as_lineno_1" != "x$as_lineno_2" &&
10452  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10453             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10454             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10455             CONFIG_SHELL=$as_dir/$as_base
10456             export CONFIG_SHELL
10457             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10458           fi;;
10459         esac
10460       done
10461done
10462;;
10463  esac
10464
10465  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10466  # uniformly replaced by the line number.  The first 'sed' inserts a
10467  # line-number line before each line; the second 'sed' does the real
10468  # work.  The second script uses 'N' to pair each line-number line
10469  # with the numbered line, and appends trailing '-' during
10470  # substitution so that $LINENO is not a special case at line end.
10471  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10472  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10473  sed '=' <$as_myself |
10474    sed '
10475      N
10476      s,$,-,
10477      : loop
10478      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10479      t loop
10480      s,-$,,
10481      s,^['$as_cr_digits']*\n,,
10482    ' >$as_me.lineno &&
10483  chmod +x $as_me.lineno ||
10484    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10485echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10486   { (exit 1); exit 1; }; }
10487
10488  # Don't try to exec as it changes $[0], causing all sort of problems
10489  # (the dirname of $[0] is not the place where we might find the
10490  # original and so on.  Autoconf is especially sensible to this).
10491  . ./$as_me.lineno
10492  # Exit status is that of the last command.
10493  exit
10494}
10495
10496
10497case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10498  *c*,-n*) ECHO_N= ECHO_C='
10499' ECHO_T='      ' ;;
10500  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10501  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10502esac
10503
10504if expr a : '\(a\)' >/dev/null 2>&1; then
10505  as_expr=expr
10506else
10507  as_expr=false
10508fi
10509
10510rm -f conf$$ conf$$.exe conf$$.file
10511echo >conf$$.file
10512if ln -s conf$$.file conf$$ 2>/dev/null; then
10513  # We could just check for DJGPP; but this test a) works b) is more generic
10514  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10515  if test -f conf$$.exe; then
10516    # Don't use ln at all; we don't have any links
10517    as_ln_s='cp -p'
10518  else
10519    as_ln_s='ln -s'
10520  fi
10521elif ln conf$$.file conf$$ 2>/dev/null; then
10522  as_ln_s=ln
10523else
10524  as_ln_s='cp -p'
10525fi
10526rm -f conf$$ conf$$.exe conf$$.file
10527
10528if mkdir -p . 2>/dev/null; then
10529  as_mkdir_p=:
10530else
10531  test -d ./-p && rmdir ./-p
10532  as_mkdir_p=false
10533fi
10534
10535as_executable_p="test -f"
10536
10537# Sed expression to map a string onto a valid CPP name.
10538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10539
10540# Sed expression to map a string onto a valid variable name.
10541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10542
10543
10544# IFS
10545# We need space, tab and new line, in precisely that order.
10546as_nl='
10547'
10548IFS="   $as_nl"
10549
10550# CDPATH.
10551$as_unset CDPATH
10552
10553exec 6>&1
10554
10555# Open the log real soon, to keep \$[0] and so on meaningful, and to
10556# report actual input values of CONFIG_FILES etc. instead of their
10557# values after options handling.  Logging --version etc. is OK.
10558exec 5>>config.log
10559{
10560  echo
10561  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10562## Running $as_me. ##
10563_ASBOX
10564} >&5
10565cat >&5 <<_CSEOF
10566
10567This file was extended by orxonox $as_me 0.3.1_alpha, which was
10568generated by GNU Autoconf 2.59.  Invocation command line was
10569
10570  CONFIG_FILES    = $CONFIG_FILES
10571  CONFIG_HEADERS  = $CONFIG_HEADERS
10572  CONFIG_LINKS    = $CONFIG_LINKS
10573  CONFIG_COMMANDS = $CONFIG_COMMANDS
10574  $ $0 $@
10575
10576_CSEOF
10577echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10578echo >&5
10579_ACEOF
10580
10581# Files that config.status was made for.
10582if test -n "$ac_config_files"; then
10583  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10584fi
10585
10586if test -n "$ac_config_headers"; then
10587  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10588fi
10589
10590if test -n "$ac_config_links"; then
10591  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10592fi
10593
10594if test -n "$ac_config_commands"; then
10595  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10596fi
10597
10598cat >>$CONFIG_STATUS <<\_ACEOF
10599
10600ac_cs_usage="\
10601\`$as_me' instantiates files from templates according to the
10602current configuration.
10603
10604Usage: $0 [OPTIONS] [FILE]...
10605
10606  -h, --help       print this help, then exit
10607  -V, --version    print version number, then exit
10608  -q, --quiet      do not print progress messages
10609  -d, --debug      don't remove temporary files
10610      --recheck    update $as_me by reconfiguring in the same conditions
10611  --file=FILE[:TEMPLATE]
10612                   instantiate the configuration file FILE
10613  --header=FILE[:TEMPLATE]
10614                   instantiate the configuration header FILE
10615
10616Configuration files:
10617$config_files
10618
10619Configuration headers:
10620$config_headers
10621
10622Configuration commands:
10623$config_commands
10624
10625Report bugs to <bug-autoconf@gnu.org>."
10626_ACEOF
10627
10628cat >>$CONFIG_STATUS <<_ACEOF
10629ac_cs_version="\\
10630orxonox config.status 0.3.1_alpha
10631configured by $0, generated by GNU Autoconf 2.59,
10632  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10633
10634Copyright (C) 2003 Free Software Foundation, Inc.
10635This config.status script is free software; the Free Software Foundation
10636gives unlimited permission to copy, distribute and modify it."
10637srcdir=$srcdir
10638INSTALL="$INSTALL"
10639_ACEOF
10640
10641cat >>$CONFIG_STATUS <<\_ACEOF
10642# If no file are specified by the user, then we need to provide default
10643# value.  By we need to know if files were specified by the user.
10644ac_need_defaults=:
10645while test $# != 0
10646do
10647  case $1 in
10648  --*=*)
10649    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10650    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10651    ac_shift=:
10652    ;;
10653  -*)
10654    ac_option=$1
10655    ac_optarg=$2
10656    ac_shift=shift
10657    ;;
10658  *) # This is not an option, so the user has probably given explicit
10659     # arguments.
10660     ac_option=$1
10661     ac_need_defaults=false;;
10662  esac
10663
10664  case $ac_option in
10665  # Handling of the options.
10666_ACEOF
10667cat >>$CONFIG_STATUS <<\_ACEOF
10668  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10669    ac_cs_recheck=: ;;
10670  --version | --vers* | -V )
10671    echo "$ac_cs_version"; exit 0 ;;
10672  --he | --h)
10673    # Conflict between --help and --header
10674    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10675Try \`$0 --help' for more information." >&5
10676echo "$as_me: error: ambiguous option: $1
10677Try \`$0 --help' for more information." >&2;}
10678   { (exit 1); exit 1; }; };;
10679  --help | --hel | -h )
10680    echo "$ac_cs_usage"; exit 0 ;;
10681  --debug | --d* | -d )
10682    debug=: ;;
10683  --file | --fil | --fi | --f )
10684    $ac_shift
10685    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10686    ac_need_defaults=false;;
10687  --header | --heade | --head | --hea )
10688    $ac_shift
10689    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10690    ac_need_defaults=false;;
10691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10692  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10693    ac_cs_silent=: ;;
10694
10695  # This is an error.
10696  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10697Try \`$0 --help' for more information." >&5
10698echo "$as_me: error: unrecognized option: $1
10699Try \`$0 --help' for more information." >&2;}
10700   { (exit 1); exit 1; }; } ;;
10701
10702  *) ac_config_targets="$ac_config_targets $1" ;;
10703
10704  esac
10705  shift
10706done
10707
10708ac_configure_extra_args=
10709
10710if $ac_cs_silent; then
10711  exec 6>/dev/null
10712  ac_configure_extra_args="$ac_configure_extra_args --silent"
10713fi
10714
10715_ACEOF
10716cat >>$CONFIG_STATUS <<_ACEOF
10717if \$ac_cs_recheck; then
10718  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10719  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10720fi
10721
10722_ACEOF
10723
10724cat >>$CONFIG_STATUS <<_ACEOF
10725#
10726# INIT-COMMANDS section.
10727#
10728
10729AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10730
10731_ACEOF
10732
10733
10734
10735cat >>$CONFIG_STATUS <<\_ACEOF
10736for ac_config_target in $ac_config_targets
10737do
10738  case "$ac_config_target" in
10739  # Handling of arguments.
10740  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10741  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10742  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10743  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10744  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10745  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10746  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10747  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10748  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10749  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10750  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10751  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
10752  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10753  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10754  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10755  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10756  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10757  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10758  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10759  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10760  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10761  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10762echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10763   { (exit 1); exit 1; }; };;
10764  esac
10765done
10766
10767# If the user did not use the arguments to specify the items to instantiate,
10768# then the envvar interface is used.  Set only those that are not.
10769# We use the long form for the default assignment because of an extremely
10770# bizarre bug on SunOS 4.1.3.
10771if $ac_need_defaults; then
10772  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10773  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10774  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10775fi
10776
10777# Have a temporary directory for convenience.  Make it in the build tree
10778# simply because there is no reason to put it here, and in addition,
10779# creating and moving files from /tmp can sometimes cause problems.
10780# Create a temporary directory, and hook for its removal unless debugging.
10781$debug ||
10782{
10783  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10784  trap '{ (exit 1); exit 1; }' 1 2 13 15
10785}
10786
10787# Create a (secure) tmp directory for tmp files.
10788
10789{
10790  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10791  test -n "$tmp" && test -d "$tmp"
10792}  ||
10793{
10794  tmp=./confstat$$-$RANDOM
10795  (umask 077 && mkdir $tmp)
10796} ||
10797{
10798   echo "$me: cannot create a temporary directory in ." >&2
10799   { (exit 1); exit 1; }
10800}
10801
10802_ACEOF
10803
10804cat >>$CONFIG_STATUS <<_ACEOF
10805
10806#
10807# CONFIG_FILES section.
10808#
10809
10810# No need to generate the scripts if there are no CONFIG_FILES.
10811# This happens for instance when ./config.status config.h
10812if test -n "\$CONFIG_FILES"; then
10813  # Protect against being on the right side of a sed subst in config.status.
10814  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10815   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10816s,@SHELL@,$SHELL,;t t
10817s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10818s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10819s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10820s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10821s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10822s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10823s,@exec_prefix@,$exec_prefix,;t t
10824s,@prefix@,$prefix,;t t
10825s,@program_transform_name@,$program_transform_name,;t t
10826s,@bindir@,$bindir,;t t
10827s,@sbindir@,$sbindir,;t t
10828s,@libexecdir@,$libexecdir,;t t
10829s,@datadir@,$datadir,;t t
10830s,@sysconfdir@,$sysconfdir,;t t
10831s,@sharedstatedir@,$sharedstatedir,;t t
10832s,@localstatedir@,$localstatedir,;t t
10833s,@libdir@,$libdir,;t t
10834s,@includedir@,$includedir,;t t
10835s,@oldincludedir@,$oldincludedir,;t t
10836s,@infodir@,$infodir,;t t
10837s,@mandir@,$mandir,;t t
10838s,@build_alias@,$build_alias,;t t
10839s,@host_alias@,$host_alias,;t t
10840s,@target_alias@,$target_alias,;t t
10841s,@DEFS@,$DEFS,;t t
10842s,@ECHO_C@,$ECHO_C,;t t
10843s,@ECHO_N@,$ECHO_N,;t t
10844s,@ECHO_T@,$ECHO_T,;t t
10845s,@LIBS@,$LIBS,;t t
10846s,@build@,$build,;t t
10847s,@build_cpu@,$build_cpu,;t t
10848s,@build_vendor@,$build_vendor,;t t
10849s,@build_os@,$build_os,;t t
10850s,@host@,$host,;t t
10851s,@host_cpu@,$host_cpu,;t t
10852s,@host_vendor@,$host_vendor,;t t
10853s,@host_os@,$host_os,;t t
10854s,@target@,$target,;t t
10855s,@target_cpu@,$target_cpu,;t t
10856s,@target_vendor@,$target_vendor,;t t
10857s,@target_os@,$target_os,;t t
10858s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10859s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10860s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10861s,@CYGPATH_W@,$CYGPATH_W,;t t
10862s,@PACKAGE@,$PACKAGE,;t t
10863s,@VERSION@,$VERSION,;t t
10864s,@ACLOCAL@,$ACLOCAL,;t t
10865s,@AUTOCONF@,$AUTOCONF,;t t
10866s,@AUTOMAKE@,$AUTOMAKE,;t t
10867s,@AUTOHEADER@,$AUTOHEADER,;t t
10868s,@MAKEINFO@,$MAKEINFO,;t t
10869s,@AMTAR@,$AMTAR,;t t
10870s,@install_sh@,$install_sh,;t t
10871s,@STRIP@,$STRIP,;t t
10872s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10873s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10874s,@mkdir_p@,$mkdir_p,;t t
10875s,@AWK@,$AWK,;t t
10876s,@SET_MAKE@,$SET_MAKE,;t t
10877s,@am__leading_dot@,$am__leading_dot,;t t
10878s,@CXX@,$CXX,;t t
10879s,@CXXFLAGS@,$CXXFLAGS,;t t
10880s,@LDFLAGS@,$LDFLAGS,;t t
10881s,@CPPFLAGS@,$CPPFLAGS,;t t
10882s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10883s,@EXEEXT@,$EXEEXT,;t t
10884s,@OBJEXT@,$OBJEXT,;t t
10885s,@DEPDIR@,$DEPDIR,;t t
10886s,@am__include@,$am__include,;t t
10887s,@am__quote@,$am__quote,;t t
10888s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10889s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10890s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10891s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10892s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10893s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10894s,@RANLIB@,$RANLIB,;t t
10895s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10896s,@CC@,$CC,;t t
10897s,@CFLAGS@,$CFLAGS,;t t
10898s,@ac_ct_CC@,$ac_ct_CC,;t t
10899s,@CCDEPMODE@,$CCDEPMODE,;t t
10900s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10901s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10902s,@CPP@,$CPP,;t t
10903s,@EGREP@,$EGREP,;t t
10904s,@DEBUG@,$DEBUG,;t t
10905s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10906s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10907s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10908s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10909s,@DOXYGEN@,$DOXYGEN,;t t
10910s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10911s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10912s,@GPROF@,$GPROF,;t t
10913s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10914s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10915s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10916s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10917s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10918s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10919s,@CURL_LIBS@,$CURL_LIBS,;t t
10920s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10921s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10922s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10923s,@LIBOBJS@,$LIBOBJS,;t t
10924s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10925CEOF
10926
10927_ACEOF
10928
10929  cat >>$CONFIG_STATUS <<\_ACEOF
10930  # Split the substitutions into bite-sized pieces for seds with
10931  # small command number limits, like on Digital OSF/1 and HP-UX.
10932  ac_max_sed_lines=48
10933  ac_sed_frag=1 # Number of current file.
10934  ac_beg=1 # First line for current file.
10935  ac_end=$ac_max_sed_lines # Line after last line for current file.
10936  ac_more_lines=:
10937  ac_sed_cmds=
10938  while $ac_more_lines; do
10939    if test $ac_beg -gt 1; then
10940      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10941    else
10942      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10943    fi
10944    if test ! -s $tmp/subs.frag; then
10945      ac_more_lines=false
10946    else
10947      # The purpose of the label and of the branching condition is to
10948      # speed up the sed processing (if there are no `@' at all, there
10949      # is no need to browse any of the substitutions).
10950      # These are the two extra sed commands mentioned above.
10951      (echo ':t
10952  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10953      if test -z "$ac_sed_cmds"; then
10954        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10955      else
10956        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10957      fi
10958      ac_sed_frag=`expr $ac_sed_frag + 1`
10959      ac_beg=$ac_end
10960      ac_end=`expr $ac_end + $ac_max_sed_lines`
10961    fi
10962  done
10963  if test -z "$ac_sed_cmds"; then
10964    ac_sed_cmds=cat
10965  fi
10966fi # test -n "$CONFIG_FILES"
10967
10968_ACEOF
10969cat >>$CONFIG_STATUS <<\_ACEOF
10970for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10971  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10972  case $ac_file in
10973  - | *:- | *:-:* ) # input from stdin
10974        cat >$tmp/stdin
10975        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10976        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10977  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10978        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10979  * )   ac_file_in=$ac_file.in ;;
10980  esac
10981
10982  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10983  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10984$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10985         X"$ac_file" : 'X\(//\)[^/]' \| \
10986         X"$ac_file" : 'X\(//\)$' \| \
10987         X"$ac_file" : 'X\(/\)' \| \
10988         .     : '\(.\)' 2>/dev/null ||
10989echo X"$ac_file" |
10990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10991          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10992          /^X\(\/\/\)$/{ s//\1/; q; }
10993          /^X\(\/\).*/{ s//\1/; q; }
10994          s/.*/./; q'`
10995  { if $as_mkdir_p; then
10996    mkdir -p "$ac_dir"
10997  else
10998    as_dir="$ac_dir"
10999    as_dirs=
11000    while test ! -d "$as_dir"; do
11001      as_dirs="$as_dir $as_dirs"
11002      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11004         X"$as_dir" : 'X\(//\)[^/]' \| \
11005         X"$as_dir" : 'X\(//\)$' \| \
11006         X"$as_dir" : 'X\(/\)' \| \
11007         .     : '\(.\)' 2>/dev/null ||
11008echo X"$as_dir" |
11009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11010          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11011          /^X\(\/\/\)$/{ s//\1/; q; }
11012          /^X\(\/\).*/{ s//\1/; q; }
11013          s/.*/./; q'`
11014    done
11015    test ! -n "$as_dirs" || mkdir $as_dirs
11016  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11017echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11018   { (exit 1); exit 1; }; }; }
11019
11020  ac_builddir=.
11021
11022if test "$ac_dir" != .; then
11023  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11024  # A "../" for each directory in $ac_dir_suffix.
11025  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11026else
11027  ac_dir_suffix= ac_top_builddir=
11028fi
11029
11030case $srcdir in
11031  .)  # No --srcdir option.  We are building in place.
11032    ac_srcdir=.
11033    if test -z "$ac_top_builddir"; then
11034       ac_top_srcdir=.
11035    else
11036       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11037    fi ;;
11038  [\\/]* | ?:[\\/]* )  # Absolute path.
11039    ac_srcdir=$srcdir$ac_dir_suffix;
11040    ac_top_srcdir=$srcdir ;;
11041  *) # Relative path.
11042    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11043    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11044esac
11045
11046# Do not use `cd foo && pwd` to compute absolute paths, because
11047# the directories may not exist.
11048case `pwd` in
11049.) ac_abs_builddir="$ac_dir";;
11050*)
11051  case "$ac_dir" in
11052  .) ac_abs_builddir=`pwd`;;
11053  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11054  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11055  esac;;
11056esac
11057case $ac_abs_builddir in
11058.) ac_abs_top_builddir=${ac_top_builddir}.;;
11059*)
11060  case ${ac_top_builddir}. in
11061  .) ac_abs_top_builddir=$ac_abs_builddir;;
11062  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11063  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11064  esac;;
11065esac
11066case $ac_abs_builddir in
11067.) ac_abs_srcdir=$ac_srcdir;;
11068*)
11069  case $ac_srcdir in
11070  .) ac_abs_srcdir=$ac_abs_builddir;;
11071  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11072  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11073  esac;;
11074esac
11075case $ac_abs_builddir in
11076.) ac_abs_top_srcdir=$ac_top_srcdir;;
11077*)
11078  case $ac_top_srcdir in
11079  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11080  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11081  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11082  esac;;
11083esac
11084
11085
11086  case $INSTALL in
11087  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11088  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11089  esac
11090
11091  if test x"$ac_file" != x-; then
11092    { echo "$as_me:$LINENO: creating $ac_file" >&5
11093echo "$as_me: creating $ac_file" >&6;}
11094    rm -f "$ac_file"
11095  fi
11096  # Let's still pretend it is `configure' which instantiates (i.e., don't
11097  # use $as_me), people would be surprised to read:
11098  #    /* config.h.  Generated by config.status.  */
11099  if test x"$ac_file" = x-; then
11100    configure_input=
11101  else
11102    configure_input="$ac_file.  "
11103  fi
11104  configure_input=$configure_input"Generated from `echo $ac_file_in |
11105                                     sed 's,.*/,,'` by configure."
11106
11107  # First look for the input files in the build tree, otherwise in the
11108  # src tree.
11109  ac_file_inputs=`IFS=:
11110    for f in $ac_file_in; do
11111      case $f in
11112      -) echo $tmp/stdin ;;
11113      [\\/$]*)
11114         # Absolute (can't be DOS-style, as IFS=:)
11115         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11116echo "$as_me: error: cannot find input file: $f" >&2;}
11117   { (exit 1); exit 1; }; }
11118         echo "$f";;
11119      *) # Relative
11120         if test -f "$f"; then
11121           # Build tree
11122           echo "$f"
11123         elif test -f "$srcdir/$f"; then
11124           # Source tree
11125           echo "$srcdir/$f"
11126         else
11127           # /dev/null tree
11128           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11129echo "$as_me: error: cannot find input file: $f" >&2;}
11130   { (exit 1); exit 1; }; }
11131         fi;;
11132      esac
11133    done` || { (exit 1); exit 1; }
11134_ACEOF
11135cat >>$CONFIG_STATUS <<_ACEOF
11136  sed "$ac_vpsub
11137$extrasub
11138_ACEOF
11139cat >>$CONFIG_STATUS <<\_ACEOF
11140:t
11141/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11142s,@configure_input@,$configure_input,;t t
11143s,@srcdir@,$ac_srcdir,;t t
11144s,@abs_srcdir@,$ac_abs_srcdir,;t t
11145s,@top_srcdir@,$ac_top_srcdir,;t t
11146s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11147s,@builddir@,$ac_builddir,;t t
11148s,@abs_builddir@,$ac_abs_builddir,;t t
11149s,@top_builddir@,$ac_top_builddir,;t t
11150s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11151s,@INSTALL@,$ac_INSTALL,;t t
11152" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11153  rm -f $tmp/stdin
11154  if test x"$ac_file" != x-; then
11155    mv $tmp/out $ac_file
11156  else
11157    cat $tmp/out
11158    rm -f $tmp/out
11159  fi
11160
11161done
11162_ACEOF
11163cat >>$CONFIG_STATUS <<\_ACEOF
11164
11165#
11166# CONFIG_HEADER section.
11167#
11168
11169# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11170# NAME is the cpp macro being defined and VALUE is the value it is being given.
11171#
11172# ac_d sets the value in "#define NAME VALUE" lines.
11173ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11174ac_dB='[         ].*$,\1#\2'
11175ac_dC=' '
11176ac_dD=',;t'
11177# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11178ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11179ac_uB='$,\1#\2define\3'
11180ac_uC=' '
11181ac_uD=',;t'
11182
11183for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11184  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11185  case $ac_file in
11186  - | *:- | *:-:* ) # input from stdin
11187        cat >$tmp/stdin
11188        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11189        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11190  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11191        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11192  * )   ac_file_in=$ac_file.in ;;
11193  esac
11194
11195  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11196echo "$as_me: creating $ac_file" >&6;}
11197
11198  # First look for the input files in the build tree, otherwise in the
11199  # src tree.
11200  ac_file_inputs=`IFS=:
11201    for f in $ac_file_in; do
11202      case $f in
11203      -) echo $tmp/stdin ;;
11204      [\\/$]*)
11205         # Absolute (can't be DOS-style, as IFS=:)
11206         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11207echo "$as_me: error: cannot find input file: $f" >&2;}
11208   { (exit 1); exit 1; }; }
11209         # Do quote $f, to prevent DOS paths from being IFS'd.
11210         echo "$f";;
11211      *) # Relative
11212         if test -f "$f"; then
11213           # Build tree
11214           echo "$f"
11215         elif test -f "$srcdir/$f"; then
11216           # Source tree
11217           echo "$srcdir/$f"
11218         else
11219           # /dev/null tree
11220           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11221echo "$as_me: error: cannot find input file: $f" >&2;}
11222   { (exit 1); exit 1; }; }
11223         fi;;
11224      esac
11225    done` || { (exit 1); exit 1; }
11226  # Remove the trailing spaces.
11227  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11228
11229_ACEOF
11230
11231# Transform confdefs.h into two sed scripts, `conftest.defines' and
11232# `conftest.undefs', that substitutes the proper values into
11233# config.h.in to produce config.h.  The first handles `#define'
11234# templates, and the second `#undef' templates.
11235# And first: Protect against being on the right side of a sed subst in
11236# config.status.  Protect against being in an unquoted here document
11237# in config.status.
11238rm -f conftest.defines conftest.undefs
11239# Using a here document instead of a string reduces the quoting nightmare.
11240# Putting comments in sed scripts is not portable.
11241#
11242# `end' is used to avoid that the second main sed command (meant for
11243# 0-ary CPP macros) applies to n-ary macro definitions.
11244# See the Autoconf documentation for `clear'.
11245cat >confdef2sed.sed <<\_ACEOF
11246s/[\\&,]/\\&/g
11247s,[\\$`],\\&,g
11248t clear
11249: clear
11250s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11251t end
11252s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11253: end
11254_ACEOF
11255# If some macros were called several times there might be several times
11256# the same #defines, which is useless.  Nevertheless, we may not want to
11257# sort them, since we want the *last* AC-DEFINE to be honored.
11258uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11259sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11260rm -f confdef2sed.sed
11261
11262# This sed command replaces #undef with comments.  This is necessary, for
11263# example, in the case of _POSIX_SOURCE, which is predefined and required
11264# on some systems where configure will not decide to define it.
11265cat >>conftest.undefs <<\_ACEOF
11266s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11267_ACEOF
11268
11269# Break up conftest.defines because some shells have a limit on the size
11270# of here documents, and old seds have small limits too (100 cmds).
11271echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11272echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11273echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11274echo '  :' >>$CONFIG_STATUS
11275rm -f conftest.tail
11276while grep . conftest.defines >/dev/null
11277do
11278  # Write a limited-size here document to $tmp/defines.sed.
11279  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11280  # Speed up: don't consider the non `#define' lines.
11281  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11282  # Work around the forget-to-reset-the-flag bug.
11283  echo 't clr' >>$CONFIG_STATUS
11284  echo ': clr' >>$CONFIG_STATUS
11285  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11286  echo 'CEOF
11287  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11288  rm -f $tmp/in
11289  mv $tmp/out $tmp/in
11290' >>$CONFIG_STATUS
11291  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11292  rm -f conftest.defines
11293  mv conftest.tail conftest.defines
11294done
11295rm -f conftest.defines
11296echo '  fi # grep' >>$CONFIG_STATUS
11297echo >>$CONFIG_STATUS
11298
11299# Break up conftest.undefs because some shells have a limit on the size
11300# of here documents, and old seds have small limits too (100 cmds).
11301echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11302rm -f conftest.tail
11303while grep . conftest.undefs >/dev/null
11304do
11305  # Write a limited-size here document to $tmp/undefs.sed.
11306  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11307  # Speed up: don't consider the non `#undef'
11308  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11309  # Work around the forget-to-reset-the-flag bug.
11310  echo 't clr' >>$CONFIG_STATUS
11311  echo ': clr' >>$CONFIG_STATUS
11312  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11313  echo 'CEOF
11314  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11315  rm -f $tmp/in
11316  mv $tmp/out $tmp/in
11317' >>$CONFIG_STATUS
11318  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11319  rm -f conftest.undefs
11320  mv conftest.tail conftest.undefs
11321done
11322rm -f conftest.undefs
11323
11324cat >>$CONFIG_STATUS <<\_ACEOF
11325  # Let's still pretend it is `configure' which instantiates (i.e., don't
11326  # use $as_me), people would be surprised to read:
11327  #    /* config.h.  Generated by config.status.  */
11328  if test x"$ac_file" = x-; then
11329    echo "/* Generated by configure.  */" >$tmp/config.h
11330  else
11331    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11332  fi
11333  cat $tmp/in >>$tmp/config.h
11334  rm -f $tmp/in
11335  if test x"$ac_file" != x-; then
11336    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11337      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11338echo "$as_me: $ac_file is unchanged" >&6;}
11339    else
11340      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11341$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11342         X"$ac_file" : 'X\(//\)[^/]' \| \
11343         X"$ac_file" : 'X\(//\)$' \| \
11344         X"$ac_file" : 'X\(/\)' \| \
11345         .     : '\(.\)' 2>/dev/null ||
11346echo X"$ac_file" |
11347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11348          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11349          /^X\(\/\/\)$/{ s//\1/; q; }
11350          /^X\(\/\).*/{ s//\1/; q; }
11351          s/.*/./; q'`
11352      { if $as_mkdir_p; then
11353    mkdir -p "$ac_dir"
11354  else
11355    as_dir="$ac_dir"
11356    as_dirs=
11357    while test ! -d "$as_dir"; do
11358      as_dirs="$as_dir $as_dirs"
11359      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11361         X"$as_dir" : 'X\(//\)[^/]' \| \
11362         X"$as_dir" : 'X\(//\)$' \| \
11363         X"$as_dir" : 'X\(/\)' \| \
11364         .     : '\(.\)' 2>/dev/null ||
11365echo X"$as_dir" |
11366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11367          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11368          /^X\(\/\/\)$/{ s//\1/; q; }
11369          /^X\(\/\).*/{ s//\1/; q; }
11370          s/.*/./; q'`
11371    done
11372    test ! -n "$as_dirs" || mkdir $as_dirs
11373  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11374echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11375   { (exit 1); exit 1; }; }; }
11376
11377      rm -f $ac_file
11378      mv $tmp/config.h $ac_file
11379    fi
11380  else
11381    cat $tmp/config.h
11382    rm -f $tmp/config.h
11383  fi
11384# Compute $ac_file's index in $config_headers.
11385_am_stamp_count=1
11386for _am_header in $config_headers :; do
11387  case $_am_header in
11388    $ac_file | $ac_file:* )
11389      break ;;
11390    * )
11391      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11392  esac
11393done
11394echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11395$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11396         X$ac_file : 'X\(//\)[^/]' \| \
11397         X$ac_file : 'X\(//\)$' \| \
11398         X$ac_file : 'X\(/\)' \| \
11399         .     : '\(.\)' 2>/dev/null ||
11400echo X$ac_file |
11401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11402          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11403          /^X\(\/\/\)$/{ s//\1/; q; }
11404          /^X\(\/\).*/{ s//\1/; q; }
11405          s/.*/./; q'`/stamp-h$_am_stamp_count
11406done
11407_ACEOF
11408cat >>$CONFIG_STATUS <<\_ACEOF
11409
11410#
11411# CONFIG_COMMANDS section.
11412#
11413for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11414  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11415  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11416  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11417$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11418         X"$ac_dest" : 'X\(//\)[^/]' \| \
11419         X"$ac_dest" : 'X\(//\)$' \| \
11420         X"$ac_dest" : 'X\(/\)' \| \
11421         .     : '\(.\)' 2>/dev/null ||
11422echo X"$ac_dest" |
11423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11424          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11425          /^X\(\/\/\)$/{ s//\1/; q; }
11426          /^X\(\/\).*/{ s//\1/; q; }
11427          s/.*/./; q'`
11428  { if $as_mkdir_p; then
11429    mkdir -p "$ac_dir"
11430  else
11431    as_dir="$ac_dir"
11432    as_dirs=
11433    while test ! -d "$as_dir"; do
11434      as_dirs="$as_dir $as_dirs"
11435      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11437         X"$as_dir" : 'X\(//\)[^/]' \| \
11438         X"$as_dir" : 'X\(//\)$' \| \
11439         X"$as_dir" : 'X\(/\)' \| \
11440         .     : '\(.\)' 2>/dev/null ||
11441echo X"$as_dir" |
11442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11443          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11444          /^X\(\/\/\)$/{ s//\1/; q; }
11445          /^X\(\/\).*/{ s//\1/; q; }
11446          s/.*/./; q'`
11447    done
11448    test ! -n "$as_dirs" || mkdir $as_dirs
11449  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11450echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11451   { (exit 1); exit 1; }; }; }
11452
11453  ac_builddir=.
11454
11455if test "$ac_dir" != .; then
11456  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11457  # A "../" for each directory in $ac_dir_suffix.
11458  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11459else
11460  ac_dir_suffix= ac_top_builddir=
11461fi
11462
11463case $srcdir in
11464  .)  # No --srcdir option.  We are building in place.
11465    ac_srcdir=.
11466    if test -z "$ac_top_builddir"; then
11467       ac_top_srcdir=.
11468    else
11469       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11470    fi ;;
11471  [\\/]* | ?:[\\/]* )  # Absolute path.
11472    ac_srcdir=$srcdir$ac_dir_suffix;
11473    ac_top_srcdir=$srcdir ;;
11474  *) # Relative path.
11475    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11476    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11477esac
11478
11479# Do not use `cd foo && pwd` to compute absolute paths, because
11480# the directories may not exist.
11481case `pwd` in
11482.) ac_abs_builddir="$ac_dir";;
11483*)
11484  case "$ac_dir" in
11485  .) ac_abs_builddir=`pwd`;;
11486  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11487  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11488  esac;;
11489esac
11490case $ac_abs_builddir in
11491.) ac_abs_top_builddir=${ac_top_builddir}.;;
11492*)
11493  case ${ac_top_builddir}. in
11494  .) ac_abs_top_builddir=$ac_abs_builddir;;
11495  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11496  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11497  esac;;
11498esac
11499case $ac_abs_builddir in
11500.) ac_abs_srcdir=$ac_srcdir;;
11501*)
11502  case $ac_srcdir in
11503  .) ac_abs_srcdir=$ac_abs_builddir;;
11504  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11505  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11506  esac;;
11507esac
11508case $ac_abs_builddir in
11509.) ac_abs_top_srcdir=$ac_top_srcdir;;
11510*)
11511  case $ac_top_srcdir in
11512  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11513  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11514  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11515  esac;;
11516esac
11517
11518
11519  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11520echo "$as_me: executing $ac_dest commands" >&6;}
11521  case $ac_dest in
11522    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11523  # Strip MF so we end up with the name of the file.
11524  mf=`echo "$mf" | sed -e 's/:.*$//'`
11525  # Check whether this is an Automake generated Makefile or not.
11526  # We used to match only the files named `Makefile.in', but
11527  # some people rename them; so instead we look at the file content.
11528  # Grep'ing the first line is not enough: some people post-process
11529  # each Makefile.in and add a new line on top of each file to say so.
11530  # So let's grep whole file.
11531  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11532    dirpart=`(dirname "$mf") 2>/dev/null ||
11533$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11534         X"$mf" : 'X\(//\)[^/]' \| \
11535         X"$mf" : 'X\(//\)$' \| \
11536         X"$mf" : 'X\(/\)' \| \
11537         .     : '\(.\)' 2>/dev/null ||
11538echo X"$mf" |
11539    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11540          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11541          /^X\(\/\/\)$/{ s//\1/; q; }
11542          /^X\(\/\).*/{ s//\1/; q; }
11543          s/.*/./; q'`
11544  else
11545    continue
11546  fi
11547  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11548  # Extract the definition of DEP_FILES from the Makefile without
11549  # running `make'.
11550  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11551  test -z "$DEPDIR" && continue
11552  # When using ansi2knr, U may be empty or an underscore; expand it
11553  U=`sed -n 's/^U = //p' < "$mf"`
11554  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11555  # We invoke sed twice because it is the simplest approach to
11556  # changing $(DEPDIR) to its actual value in the expansion.
11557  for file in `sed -n '
11558    /^DEP_FILES = .*\\\\$/ {
11559      s/^DEP_FILES = //
11560      :loop
11561        s/\\\\$//
11562        p
11563        n
11564        /\\\\$/ b loop
11565      p
11566    }
11567    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11568       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11569    # Make sure the directory exists.
11570    test -f "$dirpart/$file" && continue
11571    fdir=`(dirname "$file") 2>/dev/null ||
11572$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11573         X"$file" : 'X\(//\)[^/]' \| \
11574         X"$file" : 'X\(//\)$' \| \
11575         X"$file" : 'X\(/\)' \| \
11576         .     : '\(.\)' 2>/dev/null ||
11577echo X"$file" |
11578    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11579          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11580          /^X\(\/\/\)$/{ s//\1/; q; }
11581          /^X\(\/\).*/{ s//\1/; q; }
11582          s/.*/./; q'`
11583    { if $as_mkdir_p; then
11584    mkdir -p $dirpart/$fdir
11585  else
11586    as_dir=$dirpart/$fdir
11587    as_dirs=
11588    while test ! -d "$as_dir"; do
11589      as_dirs="$as_dir $as_dirs"
11590      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11592         X"$as_dir" : 'X\(//\)[^/]' \| \
11593         X"$as_dir" : 'X\(//\)$' \| \
11594         X"$as_dir" : 'X\(/\)' \| \
11595         .     : '\(.\)' 2>/dev/null ||
11596echo X"$as_dir" |
11597    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11598          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11599          /^X\(\/\/\)$/{ s//\1/; q; }
11600          /^X\(\/\).*/{ s//\1/; q; }
11601          s/.*/./; q'`
11602    done
11603    test ! -n "$as_dirs" || mkdir $as_dirs
11604  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11605echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11606   { (exit 1); exit 1; }; }; }
11607
11608    # echo "creating $dirpart/$file"
11609    echo '# dummy' > "$dirpart/$file"
11610  done
11611done
11612 ;;
11613  esac
11614done
11615_ACEOF
11616
11617cat >>$CONFIG_STATUS <<\_ACEOF
11618
11619{ (exit 0); exit 0; }
11620_ACEOF
11621chmod +x $CONFIG_STATUS
11622ac_clean_files=$ac_clean_files_save
11623
11624
11625# configure is writing to config.log, and then calls config.status.
11626# config.status does its own redirection, appending to config.log.
11627# Unfortunately, on DOS this fails, as config.log is still kept open
11628# by configure, so config.status won't be able to write to it; its
11629# output is simply discarded.  So we exec the FD to /dev/null,
11630# effectively closing config.log, so it can be properly (re)opened and
11631# appended to by config.status.  When coming back to configure, we
11632# need to make the FD available again.
11633if test "$no_create" != yes; then
11634  ac_cs_success=:
11635  ac_config_status_args=
11636  test "$silent" = yes &&
11637    ac_config_status_args="$ac_config_status_args --quiet"
11638  exec 5>/dev/null
11639  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11640  exec 5>>config.log
11641  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11642  # would make configure fail if this is the last instruction.
11643  $ac_cs_success || { (exit 1); exit 1; }
11644fi
11645
Note: See TracBrowser for help on using the repository browser.