Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/configure @ 4825

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

orxonox/trunk: compile with the ogg, and vorbis lib again

  • Property svn:executable set to *
File size: 329.3 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.0_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.0_alpha'
273PACKAGE_STRING='orxonox 0.3.0_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.0_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.0_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-sub-projects     also builds the subProjects while make from srcdir
882
883Some influential environment variables:
884  CXX         C++ compiler command
885  CXXFLAGS    C++ compiler flags
886  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887              nonstandard directory <lib dir>
888  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889              headers in a nonstandard directory <include dir>
890  CC          C compiler command
891  CFLAGS      C compiler flags
892  CPP         C preprocessor
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897Report bugs to <orxonox-dev at mail.datacore.ch>.
898_ACEOF
899fi
900
901if test "$ac_init_help" = "recursive"; then
902  # If there are subdirs, report their specific --help.
903  ac_popdir=`pwd`
904  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905    test -d $ac_dir || continue
906    ac_builddir=.
907
908if test "$ac_dir" != .; then
909  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910  # A "../" for each directory in $ac_dir_suffix.
911  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913  ac_dir_suffix= ac_top_builddir=
914fi
915
916case $srcdir in
917  .)  # No --srcdir option.  We are building in place.
918    ac_srcdir=.
919    if test -z "$ac_top_builddir"; then
920       ac_top_srcdir=.
921    else
922       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923    fi ;;
924  [\\/]* | ?:[\\/]* )  # Absolute path.
925    ac_srcdir=$srcdir$ac_dir_suffix;
926    ac_top_srcdir=$srcdir ;;
927  *) # Relative path.
928    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929    ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac
931
932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937  case "$ac_dir" in
938  .) ac_abs_builddir=`pwd`;;
939  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940  *) ac_abs_builddir=`pwd`/"$ac_dir";;
941  esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946  case ${ac_top_builddir}. in
947  .) ac_abs_top_builddir=$ac_abs_builddir;;
948  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950  esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955  case $ac_srcdir in
956  .) ac_abs_srcdir=$ac_abs_builddir;;
957  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959  esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964  case $ac_top_srcdir in
965  .) ac_abs_top_srcdir=$ac_abs_builddir;;
966  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968  esac;;
969esac
970
971    cd $ac_dir
972    # Check for guested configure; otherwise get Cygnus style configure.
973    if test -f $ac_srcdir/configure.gnu; then
974      echo
975      $SHELL $ac_srcdir/configure.gnu  --help=recursive
976    elif test -f $ac_srcdir/configure; then
977      echo
978      $SHELL $ac_srcdir/configure  --help=recursive
979    elif test -f $ac_srcdir/configure.ac ||
980           test -f $ac_srcdir/configure.in; then
981      echo
982      $ac_configure --help
983    else
984      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985    fi
986    cd $ac_popdir
987  done
988fi
989
990test -n "$ac_init_help" && exit 0
991if $ac_init_version; then
992  cat <<\_ACEOF
993orxonox configure 0.3.0_alpha
994generated by GNU Autoconf 2.59
995
996Copyright (C) 2003 Free Software Foundation, Inc.
997This configure script is free software; the Free Software Foundation
998gives unlimited permission to copy, distribute and modify it.
999_ACEOF
1000  exit 0
1001fi
1002exec 5>config.log
1003cat >&5 <<_ACEOF
1004This file contains any messages produced by compilers while
1005running configure, to aid debugging if configure makes a mistake.
1006
1007It was created by orxonox $as_me 0.3.0_alpha, which was
1008generated by GNU Autoconf 2.59.  Invocation command line was
1009
1010  $ $0 $@
1011
1012_ACEOF
1013{
1014cat <<_ASUNAME
1015## --------- ##
1016## Platform. ##
1017## --------- ##
1018
1019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1027
1028/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1029/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1032/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1033/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1034/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1035
1036_ASUNAME
1037
1038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039for as_dir in $PATH
1040do
1041  IFS=$as_save_IFS
1042  test -z "$as_dir" && as_dir=.
1043  echo "PATH: $as_dir"
1044done
1045
1046} >&5
1047
1048cat >&5 <<_ACEOF
1049
1050
1051## ----------- ##
1052## Core tests. ##
1053## ----------- ##
1054
1055_ACEOF
1056
1057
1058# Keep a trace of the command line.
1059# Strip out --no-create and --no-recursion so they do not pile up.
1060# Strip out --silent because we don't want to record it for future runs.
1061# Also quote any args containing shell meta-characters.
1062# Make two passes to allow for proper duplicate-argument suppression.
1063ac_configure_args=
1064ac_configure_args0=
1065ac_configure_args1=
1066ac_sep=
1067ac_must_keep_next=false
1068for ac_pass in 1 2
1069do
1070  for ac_arg
1071  do
1072    case $ac_arg in
1073    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075    | -silent | --silent | --silen | --sile | --sil)
1076      continue ;;
1077    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079    esac
1080    case $ac_pass in
1081    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082    2)
1083      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084      if test $ac_must_keep_next = true; then
1085        ac_must_keep_next=false # Got value, back to normal.
1086      else
1087        case $ac_arg in
1088          *=* | --config-cache | -C | -disable-* | --disable-* \
1089          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091          | -with-* | --with-* | -without-* | --without-* | --x)
1092            case "$ac_configure_args0 " in
1093              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094            esac
1095            ;;
1096          -* ) ac_must_keep_next=true ;;
1097        esac
1098      fi
1099      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100      # Get rid of the leading space.
1101      ac_sep=" "
1102      ;;
1103    esac
1104  done
1105done
1106$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109# When interrupted or exit'd, cleanup temporary files, and complete
1110# config.log.  We remove comments because anyway the quotes in there
1111# would cause problems or look ugly.
1112# WARNING: Be sure not to use single quotes in there, as some shells,
1113# such as our DU 5.0 friend, will then `close' the trap.
1114trap 'exit_status=$?
1115  # Save into config.log some information that might help in debugging.
1116  {
1117    echo
1118
1119    cat <<\_ASBOX
1120## ---------------- ##
1121## Cache variables. ##
1122## ---------------- ##
1123_ASBOX
1124    echo
1125    # The following way of writing the cache mishandles newlines in values,
1126{
1127  (set) 2>&1 |
1128    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129    *ac_space=\ *)
1130      sed -n \
1131        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133      ;;
1134    *)
1135      sed -n \
1136        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137      ;;
1138    esac;
1139}
1140    echo
1141
1142    cat <<\_ASBOX
1143## ----------------- ##
1144## Output variables. ##
1145## ----------------- ##
1146_ASBOX
1147    echo
1148    for ac_var in $ac_subst_vars
1149    do
1150      eval ac_val=$`echo $ac_var`
1151      echo "$ac_var='"'"'$ac_val'"'"'"
1152    done | sort
1153    echo
1154
1155    if test -n "$ac_subst_files"; then
1156      cat <<\_ASBOX
1157## ------------- ##
1158## Output files. ##
1159## ------------- ##
1160_ASBOX
1161      echo
1162      for ac_var in $ac_subst_files
1163      do
1164        eval ac_val=$`echo $ac_var`
1165        echo "$ac_var='"'"'$ac_val'"'"'"
1166      done | sort
1167      echo
1168    fi
1169
1170    if test -s confdefs.h; then
1171      cat <<\_ASBOX
1172## ----------- ##
1173## confdefs.h. ##
1174## ----------- ##
1175_ASBOX
1176      echo
1177      sed "/^$/d" confdefs.h | sort
1178      echo
1179    fi
1180    test "$ac_signal" != 0 &&
1181      echo "$as_me: caught signal $ac_signal"
1182    echo "$as_me: exit $exit_status"
1183  } >&5
1184  rm -f core *.core &&
1185  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186    exit $exit_status
1187     ' 0
1188for ac_signal in 1 2 13 15; do
1189  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190done
1191ac_signal=0
1192
1193# confdefs.h avoids OS command line length limits that DEFS can exceed.
1194rm -rf conftest* confdefs.h
1195# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196echo >confdefs.h
1197
1198# Predefined preprocessor variables.
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_NAME "$PACKAGE_NAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_VERSION "$PACKAGE_VERSION"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_STRING "$PACKAGE_STRING"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222_ACEOF
1223
1224
1225# Let the site file select an alternate cache file if it wants to.
1226# Prefer explicitly selected file to automatically selected ones.
1227if test -z "$CONFIG_SITE"; then
1228  if test "x$prefix" != xNONE; then
1229    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230  else
1231    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232  fi
1233fi
1234for ac_site_file in $CONFIG_SITE; do
1235  if test -r "$ac_site_file"; then
1236    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237echo "$as_me: loading site script $ac_site_file" >&6;}
1238    sed 's/^/| /' "$ac_site_file" >&5
1239    . "$ac_site_file"
1240  fi
1241done
1242
1243if test -r "$cache_file"; then
1244  # Some versions of bash will fail to source /dev/null (special
1245  # files actually), so we avoid doing that.
1246  if test -f "$cache_file"; then
1247    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248echo "$as_me: loading cache $cache_file" >&6;}
1249    case $cache_file in
1250      [\\/]* | ?:[\\/]* ) . $cache_file;;
1251      *)                      . ./$cache_file;;
1252    esac
1253  fi
1254else
1255  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256echo "$as_me: creating cache $cache_file" >&6;}
1257  >$cache_file
1258fi
1259
1260# Check that the precious variables saved in the cache have kept the same
1261# value.
1262ac_cache_corrupted=false
1263for ac_var in `(set) 2>&1 |
1264               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266  eval ac_new_set=\$ac_env_${ac_var}_set
1267  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268  eval ac_new_val="\$ac_env_${ac_var}_value"
1269  case $ac_old_set,$ac_new_set in
1270    set,)
1271      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273      ac_cache_corrupted=: ;;
1274    ,set)
1275      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277      ac_cache_corrupted=: ;;
1278    ,);;
1279    *)
1280      if test "x$ac_old_val" != "x$ac_new_val"; then
1281        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284echo "$as_me:   former value:  $ac_old_val" >&2;}
1285        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286echo "$as_me:   current value: $ac_new_val" >&2;}
1287        ac_cache_corrupted=:
1288      fi;;
1289  esac
1290  # Pass precious variables to config.status.
1291  if test "$ac_new_set" = set; then
1292    case $ac_new_val in
1293    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295    *) ac_arg=$ac_var=$ac_new_val ;;
1296    esac
1297    case " $ac_configure_args " in
1298      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1299      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300    esac
1301  fi
1302done
1303if $ac_cache_corrupted; then
1304  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308   { (exit 1); exit 1; }; }
1309fi
1310
1311ac_ext=c
1312ac_cpp='$CPP $CPPFLAGS'
1313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
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## Detect the canonical host and target build environment.
1345ac_aux_dir=
1346for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1347  if test -f $ac_dir/install-sh; then
1348    ac_aux_dir=$ac_dir
1349    ac_install_sh="$ac_aux_dir/install-sh -c"
1350    break
1351  elif test -f $ac_dir/install.sh; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/install.sh -c"
1354    break
1355  elif test -f $ac_dir/shtool; then
1356    ac_aux_dir=$ac_dir
1357    ac_install_sh="$ac_aux_dir/shtool install -c"
1358    break
1359  fi
1360done
1361if test -z "$ac_aux_dir"; then
1362  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1363echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1367ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1368ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369
1370# Make sure we can run config.sub.
1371$ac_config_sub sun4 >/dev/null 2>&1 ||
1372  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1373echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1374   { (exit 1); exit 1; }; }
1375
1376echo "$as_me:$LINENO: checking build system type" >&5
1377echo $ECHO_N "checking build system type... $ECHO_C" >&6
1378if test "${ac_cv_build+set}" = set; then
1379  echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381  ac_cv_build_alias=$build_alias
1382test -z "$ac_cv_build_alias" &&
1383  ac_cv_build_alias=`$ac_config_guess`
1384test -z "$ac_cv_build_alias" &&
1385  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1386echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1387   { (exit 1); exit 1; }; }
1388ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1389  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1391   { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1395echo "${ECHO_T}$ac_cv_build" >&6
1396build=$ac_cv_build
1397build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking host system type" >&5
1403echo $ECHO_N "checking host system type... $ECHO_C" >&6
1404if test "${ac_cv_host+set}" = set; then
1405  echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407  ac_cv_host_alias=$host_alias
1408test -z "$ac_cv_host_alias" &&
1409  ac_cv_host_alias=$ac_cv_build_alias
1410ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1411  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1413   { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1417echo "${ECHO_T}$ac_cv_host" >&6
1418host=$ac_cv_host
1419host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424echo "$as_me:$LINENO: checking target system type" >&5
1425echo $ECHO_N "checking target system type... $ECHO_C" >&6
1426if test "${ac_cv_target+set}" = set; then
1427  echo $ECHO_N "(cached) $ECHO_C" >&6
1428else
1429  ac_cv_target_alias=$target_alias
1430test "x$ac_cv_target_alias" = "x" &&
1431  ac_cv_target_alias=$ac_cv_host_alias
1432ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1433  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1434echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1435   { (exit 1); exit 1; }; }
1436
1437fi
1438echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1439echo "${ECHO_T}$ac_cv_target" >&6
1440target=$ac_cv_target
1441target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444
1445
1446# The aliases save the names the user supplied, while $host etc.
1447# will get canonicalized.
1448test -n "$target_alias" &&
1449  test "$program_prefix$program_suffix$program_transform_name" = \
1450    NONENONEs,x,x, &&
1451  program_prefix=${target_alias}-
1452
1453am__api_version="1.8"
1454# Find a good install program.  We prefer a C program (faster),
1455# so one script is as good as another.  But avoid the broken or
1456# incompatible versions:
1457# SysV /etc/install, /usr/sbin/install
1458# SunOS /usr/etc/install
1459# IRIX /sbin/install
1460# AIX /bin/install
1461# AmigaOS /C/install, which installs bootblocks on floppy discs
1462# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1463# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1464# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1465# OS/2's system install, which has a completely different semantic
1466# ./install, which can be erroneously created by make from ./install.sh.
1467echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1468echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1469if test -z "$INSTALL"; then
1470if test "${ac_cv_path_install+set}" = set; then
1471  echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474for as_dir in $PATH
1475do
1476  IFS=$as_save_IFS
1477  test -z "$as_dir" && as_dir=.
1478  # Account for people who put trailing slashes in PATH elements.
1479case $as_dir/ in
1480  ./ | .// | /cC/* | \
1481  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1482  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1483  /usr/ucb/* ) ;;
1484  *)
1485    # OSF1 and SCO ODT 3.0 have their own names for install.
1486    # Don't use installbsd from OSF since it installs stuff as root
1487    # by default.
1488    for ac_prog in ginstall scoinst install; do
1489      for ac_exec_ext in '' $ac_executable_extensions; do
1490        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1491          if test $ac_prog = install &&
1492            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1493            # AIX install.  It has an incompatible calling convention.
1494            :
1495          elif test $ac_prog = install &&
1496            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1497            # program-specific install script used by HP pwplus--don't use.
1498            :
1499          else
1500            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1501            break 3
1502          fi
1503        fi
1504      done
1505    done
1506    ;;
1507esac
1508done
1509
1510
1511fi
1512  if test "${ac_cv_path_install+set}" = set; then
1513    INSTALL=$ac_cv_path_install
1514  else
1515    # As a last resort, use the slow shell script.  We don't cache a
1516    # path for INSTALL within a source directory, because that will
1517    # break other packages using the cache if that directory is
1518    # removed, or if the path is relative.
1519    INSTALL=$ac_install_sh
1520  fi
1521fi
1522echo "$as_me:$LINENO: result: $INSTALL" >&5
1523echo "${ECHO_T}$INSTALL" >&6
1524
1525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1526# It thinks the first close brace ends the variable substitution.
1527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1528
1529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1530
1531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1532
1533echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1534echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1535# Just in case
1536sleep 1
1537echo timestamp > conftest.file
1538# Do `set' in a subshell so we don't clobber the current shell's
1539# arguments.  Must try -L first in case configure is actually a
1540# symlink; some systems play weird games with the mod time of symlinks
1541# (eg FreeBSD returns the mod time of the symlink's containing
1542# directory).
1543if (
1544   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1545   if test "$*" = "X"; then
1546      # -L didn't work.
1547      set X `ls -t $srcdir/configure conftest.file`
1548   fi
1549   rm -f conftest.file
1550   if test "$*" != "X $srcdir/configure conftest.file" \
1551      && test "$*" != "X conftest.file $srcdir/configure"; then
1552
1553      # If neither matched, then we have a broken ls.  This can happen
1554      # if, for instance, CONFIG_SHELL is bash and it inherits a
1555      # broken ls alias from the environment.  This has actually
1556      # happened.  Such a system could not be considered "sane".
1557      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1558alias in your environment" >&5
1559echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&2;}
1561   { (exit 1); exit 1; }; }
1562   fi
1563
1564   test "$2" = conftest.file
1565   )
1566then
1567   # Ok.
1568   :
1569else
1570   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1571Check your system clock" >&5
1572echo "$as_me: error: newly created file is older than distributed files!
1573Check your system clock" >&2;}
1574   { (exit 1); exit 1; }; }
1575fi
1576echo "$as_me:$LINENO: result: yes" >&5
1577echo "${ECHO_T}yes" >&6
1578test "$program_prefix" != NONE &&
1579  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1580# Use a double $ so make ignores it.
1581test "$program_suffix" != NONE &&
1582  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1583# Double any \ or $.  echo might interpret backslashes.
1584# By default was `s,x,x', remove it if useless.
1585cat <<\_ACEOF >conftest.sed
1586s/[\\$]/&&/g;s/;s,x,x,$//
1587_ACEOF
1588program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1589rm conftest.sed
1590
1591# expand $ac_aux_dir to an absolute path
1592am_aux_dir=`cd $ac_aux_dir && pwd`
1593
1594test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1595# Use eval to expand $SHELL
1596if eval "$MISSING --run true"; then
1597  am_missing_run="$MISSING --run "
1598else
1599  am_missing_run=
1600  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1601echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1602fi
1603
1604if mkdir -p -- . 2>/dev/null; then
1605  # Keeping the `.' argument allows $(mkdir_p) to be used without
1606  # argument.  Indeed, we sometimes output rules like
1607  #   $(mkdir_p) $(somedir)
1608  # where $(somedir) is conditionally defined.
1609  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1610  # expensive solution, as it forces Make to start a sub-shell.)
1611  mkdir_p='mkdir -p -- .'
1612else
1613  # On NextStep and OpenStep, the `mkdir' command does not
1614  # recognize any option.  It will interpret all options as
1615  # directories to create, and then abort because `.' already
1616  # exists.
1617  for d in ./-p ./--;
1618  do
1619    test -d $d && rmdir $d
1620  done
1621  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1622  if test -f "$ac_aux_dir/mkinstalldirs"; then
1623    mkdir_p='$(mkinstalldirs)'
1624  else
1625    mkdir_p='$(install_sh) -d'
1626  fi
1627fi
1628
1629for ac_prog in gawk mawk nawk awk
1630do
1631  # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_AWK+set}" = set; then
1636  echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638  if test -n "$AWK"; then
1639  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644  IFS=$as_save_IFS
1645  test -z "$as_dir" && as_dir=.
1646  for ac_exec_ext in '' $ac_executable_extensions; do
1647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648    ac_cv_prog_AWK="$ac_prog"
1649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650    break 2
1651  fi
1652done
1653done
1654
1655fi
1656fi
1657AWK=$ac_cv_prog_AWK
1658if test -n "$AWK"; then
1659  echo "$as_me:$LINENO: result: $AWK" >&5
1660echo "${ECHO_T}$AWK" >&6
1661else
1662  echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666  test -n "$AWK" && break
1667done
1668
1669echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1670echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1671set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1672if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1673  echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675  cat >conftest.make <<\_ACEOF
1676all:
1677        @echo 'ac_maketemp="$(MAKE)"'
1678_ACEOF
1679# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1681if test -n "$ac_maketemp"; then
1682  eval ac_cv_prog_make_${ac_make}_set=yes
1683else
1684  eval ac_cv_prog_make_${ac_make}_set=no
1685fi
1686rm -f conftest.make
1687fi
1688if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1689  echo "$as_me:$LINENO: result: yes" >&5
1690echo "${ECHO_T}yes" >&6
1691  SET_MAKE=
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695  SET_MAKE="MAKE=${MAKE-make}"
1696fi
1697
1698rm -rf .tst 2>/dev/null
1699mkdir .tst 2>/dev/null
1700if test -d .tst; then
1701  am__leading_dot=.
1702else
1703  am__leading_dot=_
1704fi
1705rmdir .tst 2>/dev/null
1706
1707# test to see if srcdir already configured
1708if test "`cd $srcdir && pwd`" != "`pwd`" &&
1709   test -f $srcdir/config.status; then
1710  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1711echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1712   { (exit 1); exit 1; }; }
1713fi
1714
1715# test whether we have cygpath
1716if test -z "$CYGPATH_W"; then
1717  if (cygpath --version) >/dev/null 2>/dev/null; then
1718    CYGPATH_W='cygpath -w'
1719  else
1720    CYGPATH_W=echo
1721  fi
1722fi
1723
1724
1725# Define the identity of the package.
1726 PACKAGE='orxonox'
1727 VERSION='0.3.0_alpha'
1728
1729
1730cat >>confdefs.h <<_ACEOF
1731#define PACKAGE "$PACKAGE"
1732_ACEOF
1733
1734
1735cat >>confdefs.h <<_ACEOF
1736#define VERSION "$VERSION"
1737_ACEOF
1738
1739# Some tools Automake needs.
1740
1741ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1742
1743
1744AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1745
1746
1747AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1748
1749
1750AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1751
1752
1753MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1754
1755
1756AMTAR=${AMTAR-"${am_missing_run}tar"}
1757
1758install_sh=${install_sh-"$am_aux_dir/install-sh"}
1759
1760# Installed binaries are usually stripped using `strip' when the user
1761# run `make install-strip'.  However `strip' might not be the right
1762# tool to use in cross-compilation environments, therefore Automake
1763# will honor the `STRIP' environment variable to overrule this program.
1764if test "$cross_compiling" != no; then
1765  if test -n "$ac_tool_prefix"; then
1766  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1767set dummy ${ac_tool_prefix}strip; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_STRIP+set}" = set; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  if test -n "$STRIP"; then
1774  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1775else
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781  for ac_exec_ext in '' $ac_executable_extensions; do
1782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785    break 2
1786  fi
1787done
1788done
1789
1790fi
1791fi
1792STRIP=$ac_cv_prog_STRIP
1793if test -n "$STRIP"; then
1794  echo "$as_me:$LINENO: result: $STRIP" >&5
1795echo "${ECHO_T}$STRIP" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$ac_cv_prog_STRIP"; then
1803  ac_ct_STRIP=$STRIP
1804  # Extract the first word of "strip", so it can be a program name with args.
1805set dummy strip; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811  if test -n "$ac_ct_STRIP"; then
1812  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819  for ac_exec_ext in '' $ac_executable_extensions; do
1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821    ac_cv_prog_ac_ct_STRIP="strip"
1822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823    break 2
1824  fi
1825done
1826done
1827
1828  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1829fi
1830fi
1831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1832if test -n "$ac_ct_STRIP"; then
1833  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1834echo "${ECHO_T}$ac_ct_STRIP" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840  STRIP=$ac_ct_STRIP
1841else
1842  STRIP="$ac_cv_prog_STRIP"
1843fi
1844
1845fi
1846INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1847
1848# We need awk for the "check" target.  The system "awk" is bad on
1849# some platforms.
1850
1851
1852
1853
1854
1855          ac_config_headers="$ac_config_headers config.h"
1856
1857
1858#########################
1859## Checks for programs ##
1860#########################
1861ac_ext=cc
1862ac_cpp='$CXXCPP $CPPFLAGS'
1863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1866if test -n "$ac_tool_prefix"; then
1867  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1868  do
1869    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1871echo "$as_me:$LINENO: checking for $ac_word" >&5
1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873if test "${ac_cv_prog_CXX+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  if test -n "$CXX"; then
1877  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1878else
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882  IFS=$as_save_IFS
1883  test -z "$as_dir" && as_dir=.
1884  for ac_exec_ext in '' $ac_executable_extensions; do
1885  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888    break 2
1889  fi
1890done
1891done
1892
1893fi
1894fi
1895CXX=$ac_cv_prog_CXX
1896if test -n "$CXX"; then
1897  echo "$as_me:$LINENO: result: $CXX" >&5
1898echo "${ECHO_T}$CXX" >&6
1899else
1900  echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904    test -n "$CXX" && break
1905  done
1906fi
1907if test -z "$CXX"; then
1908  ac_ct_CXX=$CXX
1909  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1910do
1911  # Extract the first word of "$ac_prog", so it can be a program name with args.
1912set dummy $ac_prog; ac_word=$2
1913echo "$as_me:$LINENO: checking for $ac_word" >&5
1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1916  echo $ECHO_N "(cached) $ECHO_C" >&6
1917else
1918  if test -n "$ac_ct_CXX"; then
1919  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1920else
1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922for as_dir in $PATH
1923do
1924  IFS=$as_save_IFS
1925  test -z "$as_dir" && as_dir=.
1926  for ac_exec_ext in '' $ac_executable_extensions; do
1927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928    ac_cv_prog_ac_ct_CXX="$ac_prog"
1929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930    break 2
1931  fi
1932done
1933done
1934
1935fi
1936fi
1937ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1938if test -n "$ac_ct_CXX"; then
1939  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1940echo "${ECHO_T}$ac_ct_CXX" >&6
1941else
1942  echo "$as_me:$LINENO: result: no" >&5
1943echo "${ECHO_T}no" >&6
1944fi
1945
1946  test -n "$ac_ct_CXX" && break
1947done
1948test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1949
1950  CXX=$ac_ct_CXX
1951fi
1952
1953
1954# Provide some information about the compiler.
1955echo "$as_me:$LINENO:" \
1956     "checking for C++ compiler version" >&5
1957ac_compiler=`set X $ac_compile; echo $2`
1958{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1959  (eval $ac_compiler --version </dev/null >&5) 2>&5
1960  ac_status=$?
1961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962  (exit $ac_status); }
1963{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1964  (eval $ac_compiler -v </dev/null >&5) 2>&5
1965  ac_status=$?
1966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967  (exit $ac_status); }
1968{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1969  (eval $ac_compiler -V </dev/null >&5) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); }
1973
1974cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h.  */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h.  */
1980
1981int
1982main ()
1983{
1984
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989ac_clean_files_save=$ac_clean_files
1990ac_clean_files="$ac_clean_files a.out a.exe b.out"
1991# Try to create an executable without -o first, disregard a.out.
1992# It will help us diagnose broken compilers, and finding out an intuition
1993# of exeext.
1994echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1995echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1996ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1997if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1998  (eval $ac_link_default) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }; then
2002  # Find the output, starting from the most likely.  This scheme is
2003# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2004# resort.
2005
2006# Be careful to initialize this variable, since it used to be cached.
2007# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008ac_cv_exeext=
2009# b.out is created by i960 compilers.
2010for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2011do
2012  test -f "$ac_file" || continue
2013  case $ac_file in
2014    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2015        ;;
2016    conftest.$ac_ext )
2017        # This is the source file.
2018        ;;
2019    [ab].out )
2020        # We found the default executable, but exeext='' is most
2021        # certainly right.
2022        break;;
2023    *.* )
2024        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2025        # FIXME: I believe we export ac_cv_exeext for Libtool,
2026        # but it would be cool to find out if it's true.  Does anybody
2027        # maintain Libtool? --akim.
2028        export ac_cv_exeext
2029        break;;
2030    * )
2031        break;;
2032  esac
2033done
2034else
2035  echo "$as_me: failed program was:" >&5
2036sed 's/^/| /' conftest.$ac_ext >&5
2037
2038{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&2;}
2042   { (exit 77); exit 77; }; }
2043fi
2044
2045ac_exeext=$ac_cv_exeext
2046echo "$as_me:$LINENO: result: $ac_file" >&5
2047echo "${ECHO_T}$ac_file" >&6
2048
2049# Check the compiler produces executables we can run.  If not, either
2050# the compiler is broken, or we cross compile.
2051echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2052echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2053# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2054# If not cross compiling, check that we can run a simple program.
2055if test "$cross_compiling" != yes; then
2056  if { ac_try='./$ac_file'
2057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058  (eval $ac_try) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; }; then
2062    cross_compiling=no
2063  else
2064    if test "$cross_compiling" = maybe; then
2065        cross_compiling=yes
2066    else
2067        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2068If you meant to cross compile, use \`--host'.
2069See \`config.log' for more details." >&5
2070echo "$as_me: error: cannot run C++ compiled programs.
2071If you meant to cross compile, use \`--host'.
2072See \`config.log' for more details." >&2;}
2073   { (exit 1); exit 1; }; }
2074    fi
2075  fi
2076fi
2077echo "$as_me:$LINENO: result: yes" >&5
2078echo "${ECHO_T}yes" >&6
2079
2080rm -f a.out a.exe conftest$ac_cv_exeext b.out
2081ac_clean_files=$ac_clean_files_save
2082# Check the compiler produces executables we can run.  If not, either
2083# the compiler is broken, or we cross compile.
2084echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2085echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2086echo "$as_me:$LINENO: result: $cross_compiling" >&5
2087echo "${ECHO_T}$cross_compiling" >&6
2088
2089echo "$as_me:$LINENO: checking for suffix of executables" >&5
2090echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2092  (eval $ac_link) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; then
2096  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2097# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2098# work properly (i.e., refer to `conftest.exe'), while it won't with
2099# `rm'.
2100for ac_file in conftest.exe conftest conftest.*; do
2101  test -f "$ac_file" || continue
2102  case $ac_file in
2103    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2104    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105          export ac_cv_exeext
2106          break;;
2107    * ) break;;
2108  esac
2109done
2110else
2111  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&2;}
2115   { (exit 1); exit 1; }; }
2116fi
2117
2118rm -f conftest$ac_cv_exeext
2119echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2120echo "${ECHO_T}$ac_cv_exeext" >&6
2121
2122rm -f conftest.$ac_ext
2123EXEEXT=$ac_cv_exeext
2124ac_exeext=$EXEEXT
2125echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127if test "${ac_cv_objext+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h.  */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h.  */
2136
2137int
2138main ()
2139{
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145rm -f conftest.o conftest.obj
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147  (eval $ac_compile) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; then
2151  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152  case $ac_file in
2153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155       break;;
2156  esac
2157done
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163See \`config.log' for more details." >&5
2164echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&2;}
2166   { (exit 1); exit 1; }; }
2167fi
2168
2169rm -f conftest.$ac_cv_objext conftest.$ac_ext
2170fi
2171echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172echo "${ECHO_T}$ac_cv_objext" >&6
2173OBJEXT=$ac_cv_objext
2174ac_objext=$OBJEXT
2175echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2176echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2177if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h.  */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h.  */
2186
2187int
2188main ()
2189{
2190#ifndef __GNUC__
2191       choke me
2192#endif
2193
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198rm -f conftest.$ac_objext
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200  (eval $ac_compile) 2>conftest.er1
2201  ac_status=$?
2202  grep -v '^ *+' conftest.er1 >conftest.err
2203  rm -f conftest.er1
2204  cat conftest.err >&5
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); } &&
2207         { ac_try='test -z "$ac_cxx_werror_flag"
2208                         || test ! -s conftest.err'
2209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210  (eval $ac_try) 2>&5
2211  ac_status=$?
2212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213  (exit $ac_status); }; } &&
2214         { ac_try='test -s conftest.$ac_objext'
2215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216  (eval $ac_try) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; }; then
2220  ac_compiler_gnu=yes
2221else
2222  echo "$as_me: failed program was:" >&5
2223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225ac_compiler_gnu=no
2226fi
2227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2229
2230fi
2231echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2232echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2233GXX=`test $ac_compiler_gnu = yes && echo yes`
2234ac_test_CXXFLAGS=${CXXFLAGS+set}
2235ac_save_CXXFLAGS=$CXXFLAGS
2236CXXFLAGS="-g"
2237echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2238echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2239if test "${ac_cv_prog_cxx_g+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h.  */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h.  */
2248
2249int
2250main ()
2251{
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259  (eval $ac_compile) 2>conftest.er1
2260  ac_status=$?
2261  grep -v '^ *+' conftest.er1 >conftest.err
2262  rm -f conftest.er1
2263  cat conftest.err >&5
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); } &&
2266         { ac_try='test -z "$ac_cxx_werror_flag"
2267                         || test ! -s conftest.err'
2268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; } &&
2273         { ac_try='test -s conftest.$ac_objext'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279  ac_cv_prog_cxx_g=yes
2280else
2281  echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284ac_cv_prog_cxx_g=no
2285fi
2286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287fi
2288echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2289echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2290if test "$ac_test_CXXFLAGS" = set; then
2291  CXXFLAGS=$ac_save_CXXFLAGS
2292elif test $ac_cv_prog_cxx_g = yes; then
2293  if test "$GXX" = yes; then
2294    CXXFLAGS="-g -O2"
2295  else
2296    CXXFLAGS="-g"
2297  fi
2298else
2299  if test "$GXX" = yes; then
2300    CXXFLAGS="-O2"
2301  else
2302    CXXFLAGS=
2303  fi
2304fi
2305for ac_declaration in \
2306   '' \
2307   'extern "C" void std::exit (int) throw (); using std::exit;' \
2308   'extern "C" void std::exit (int); using std::exit;' \
2309   'extern "C" void exit (int) throw ();' \
2310   'extern "C" void exit (int);' \
2311   'void exit (int);'
2312do
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319$ac_declaration
2320#include <stdlib.h>
2321int
2322main ()
2323{
2324exit (42);
2325  ;
2326  return 0;
2327}
2328_ACEOF
2329rm -f conftest.$ac_objext
2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331  (eval $ac_compile) 2>conftest.er1
2332  ac_status=$?
2333  grep -v '^ *+' conftest.er1 >conftest.err
2334  rm -f conftest.er1
2335  cat conftest.err >&5
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); } &&
2338         { ac_try='test -z "$ac_cxx_werror_flag"
2339                         || test ! -s conftest.err'
2340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341  (eval $ac_try) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; } &&
2345         { ac_try='test -s conftest.$ac_objext'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; }; then
2351  :
2352else
2353  echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356continue
2357fi
2358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365$ac_declaration
2366int
2367main ()
2368{
2369exit (42);
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374rm -f conftest.$ac_objext
2375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376  (eval $ac_compile) 2>conftest.er1
2377  ac_status=$?
2378  grep -v '^ *+' conftest.er1 >conftest.err
2379  rm -f conftest.er1
2380  cat conftest.err >&5
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); } &&
2383         { ac_try='test -z "$ac_cxx_werror_flag"
2384                         || test ! -s conftest.err'
2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386  (eval $ac_try) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; } &&
2390         { ac_try='test -s conftest.$ac_objext'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; }; then
2396  break
2397else
2398  echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403done
2404rm -f conftest*
2405if test -n "$ac_declaration"; then
2406  echo '#ifdef __cplusplus' >>confdefs.h
2407  echo $ac_declaration      >>confdefs.h
2408  echo '#endif'             >>confdefs.h
2409fi
2410
2411ac_ext=c
2412ac_cpp='$CPP $CPPFLAGS'
2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416DEPDIR="${am__leading_dot}deps"
2417
2418          ac_config_commands="$ac_config_commands depfiles"
2419
2420
2421am_make=${MAKE-make}
2422cat > confinc << 'END'
2423am__doit:
2424        @echo done
2425.PHONY: am__doit
2426END
2427# If we don't find an include directive, just comment out the code.
2428echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2429echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2430am__include="#"
2431am__quote=
2432_am_result=none
2433# First try GNU make style include.
2434echo "include confinc" > confmf
2435# We grep out `Entering directory' and `Leaving directory'
2436# messages which can occur if `w' ends up in MAKEFLAGS.
2437# In particular we don't look at `^make:' because GNU make might
2438# be invoked under some other name (usually "gmake"), in which
2439# case it prints its new name instead of `make'.
2440if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2441   am__include=include
2442   am__quote=
2443   _am_result=GNU
2444fi
2445# Now try BSD make style include.
2446if test "$am__include" = "#"; then
2447   echo '.include "confinc"' > confmf
2448   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2449      am__include=.include
2450      am__quote="\""
2451      _am_result=BSD
2452   fi
2453fi
2454
2455
2456echo "$as_me:$LINENO: result: $_am_result" >&5
2457echo "${ECHO_T}$_am_result" >&6
2458rm -f confinc confmf
2459
2460# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2461if test "${enable_dependency_tracking+set}" = set; then
2462  enableval="$enable_dependency_tracking"
2463
2464fi;
2465if test "x$enable_dependency_tracking" != xno; then
2466  am_depcomp="$ac_aux_dir/depcomp"
2467  AMDEPBACKSLASH='\'
2468fi
2469
2470
2471if test "x$enable_dependency_tracking" != xno; then
2472  AMDEP_TRUE=
2473  AMDEP_FALSE='#'
2474else
2475  AMDEP_TRUE='#'
2476  AMDEP_FALSE=
2477fi
2478
2479
2480
2481
2482depcc="$CXX"  am_compiler_list=
2483
2484echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2485echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2486if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2490  # We make a subdir and do the tests there.  Otherwise we can end up
2491  # making bogus files that we don't know about and never remove.  For
2492  # instance it was reported that on HP-UX the gcc test will end up
2493  # making a dummy file named `D' -- because `-MD' means `put the output
2494  # in D'.
2495  mkdir conftest.dir
2496  # Copy depcomp to subdir because otherwise we won't find it if we're
2497  # using a relative directory.
2498  cp "$am_depcomp" conftest.dir
2499  cd conftest.dir
2500  # We will build objects and dependencies in a subdirectory because
2501  # it helps to detect inapplicable dependency modes.  For instance
2502  # both Tru64's cc and ICC support -MD to output dependencies as a
2503  # side effect of compilation, but ICC will put the dependencies in
2504  # the current directory while Tru64 will put them in the object
2505  # directory.
2506  mkdir sub
2507
2508  am_cv_CXX_dependencies_compiler_type=none
2509  if test "$am_compiler_list" = ""; then
2510     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2511  fi
2512  for depmode in $am_compiler_list; do
2513    # Setup a source with many dependencies, because some compilers
2514    # like to wrap large dependency lists on column 80 (with \), and
2515    # we should not choose a depcomp mode which is confused by this.
2516    #
2517    # We need to recreate these files for each test, as the compiler may
2518    # overwrite some of them when testing with obscure command lines.
2519    # This happens at least with the AIX C compiler.
2520    : > sub/conftest.c
2521    for i in 1 2 3 4 5 6; do
2522      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2523      : > sub/conftst$i.h
2524    done
2525    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2526
2527    case $depmode in
2528    nosideeffect)
2529      # after this tag, mechanisms are not by side-effect, so they'll
2530      # only be used when explicitly requested
2531      if test "x$enable_dependency_tracking" = xyes; then
2532        continue
2533      else
2534        break
2535      fi
2536      ;;
2537    none) break ;;
2538    esac
2539    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2540    # mode.  It turns out that the SunPro C++ compiler does not properly
2541    # handle `-M -o', and we need to detect this.
2542    if depmode=$depmode \
2543       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2544       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2545       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2546         >/dev/null 2>conftest.err &&
2547       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2548       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2549       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2550      # icc doesn't choke on unknown options, it will just issue warnings
2551      # (even with -Werror).  So we grep stderr for any message
2552      # that says an option was ignored.
2553      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2554        am_cv_CXX_dependencies_compiler_type=$depmode
2555        break
2556      fi
2557    fi
2558  done
2559
2560  cd ..
2561  rm -rf conftest.dir
2562else
2563  am_cv_CXX_dependencies_compiler_type=none
2564fi
2565
2566fi
2567echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2568echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2569CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2570
2571
2572
2573if
2574  test "x$enable_dependency_tracking" != xno \
2575  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2576  am__fastdepCXX_TRUE=
2577  am__fastdepCXX_FALSE='#'
2578else
2579  am__fastdepCXX_TRUE='#'
2580  am__fastdepCXX_FALSE=
2581fi
2582
2583
2584if test -n "$ac_tool_prefix"; then
2585  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2587echo "$as_me:$LINENO: checking for $ac_word" >&5
2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2589if test "${ac_cv_prog_RANLIB+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  if test -n "$RANLIB"; then
2593  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600  for ac_exec_ext in '' $ac_executable_extensions; do
2601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607done
2608
2609fi
2610fi
2611RANLIB=$ac_cv_prog_RANLIB
2612if test -n "$RANLIB"; then
2613  echo "$as_me:$LINENO: result: $RANLIB" >&5
2614echo "${ECHO_T}$RANLIB" >&6
2615else
2616  echo "$as_me:$LINENO: result: no" >&5
2617echo "${ECHO_T}no" >&6
2618fi
2619
2620fi
2621if test -z "$ac_cv_prog_RANLIB"; then
2622  ac_ct_RANLIB=$RANLIB
2623  # Extract the first word of "ranlib", so it can be a program name with args.
2624set dummy ranlib; ac_word=$2
2625echo "$as_me:$LINENO: checking for $ac_word" >&5
2626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2627if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2628  echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
2630  if test -n "$ac_ct_RANLIB"; then
2631  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2632else
2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH
2635do
2636  IFS=$as_save_IFS
2637  test -z "$as_dir" && as_dir=.
2638  for ac_exec_ext in '' $ac_executable_extensions; do
2639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640    ac_cv_prog_ac_ct_RANLIB="ranlib"
2641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645done
2646
2647  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2648fi
2649fi
2650ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2651if test -n "$ac_ct_RANLIB"; then
2652  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2653echo "${ECHO_T}$ac_ct_RANLIB" >&6
2654else
2655  echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6
2657fi
2658
2659  RANLIB=$ac_ct_RANLIB
2660else
2661  RANLIB="$ac_cv_prog_RANLIB"
2662fi
2663
2664ac_ext=c
2665ac_cpp='$CPP $CPPFLAGS'
2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669if test -n "$ac_tool_prefix"; then
2670  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671set dummy ${ac_tool_prefix}gcc; ac_word=$2
2672echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674if test "${ac_cv_prog_CC+set}" = set; then
2675  echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677  if test -n "$CC"; then
2678  ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683  IFS=$as_save_IFS
2684  test -z "$as_dir" && as_dir=.
2685  for ac_exec_ext in '' $ac_executable_extensions; do
2686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689    break 2
2690  fi
2691done
2692done
2693
2694fi
2695fi
2696CC=$ac_cv_prog_CC
2697if test -n "$CC"; then
2698  echo "$as_me:$LINENO: result: $CC" >&5
2699echo "${ECHO_T}$CC" >&6
2700else
2701  echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
2703fi
2704
2705fi
2706if test -z "$ac_cv_prog_CC"; then
2707  ac_ct_CC=$CC
2708  # Extract the first word of "gcc", so it can be a program name with args.
2709set dummy gcc; ac_word=$2
2710echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2713  echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715  if test -n "$ac_ct_CC"; then
2716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723  for ac_exec_ext in '' $ac_executable_extensions; do
2724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725    ac_cv_prog_ac_ct_CC="gcc"
2726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727    break 2
2728  fi
2729done
2730done
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2737echo "${ECHO_T}$ac_ct_CC" >&6
2738else
2739  echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
2741fi
2742
2743  CC=$ac_ct_CC
2744else
2745  CC="$ac_cv_prog_CC"
2746fi
2747
2748if test -z "$CC"; then
2749  if test -n "$ac_tool_prefix"; then
2750  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751set dummy ${ac_tool_prefix}cc; ac_word=$2
2752echo "$as_me:$LINENO: checking for $ac_word" >&5
2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754if test "${ac_cv_prog_CC+set}" = set; then
2755  echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757  if test -n "$CC"; then
2758  ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763  IFS=$as_save_IFS
2764  test -z "$as_dir" && as_dir=.
2765  for ac_exec_ext in '' $ac_executable_extensions; do
2766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767    ac_cv_prog_CC="${ac_tool_prefix}cc"
2768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769    break 2
2770  fi
2771done
2772done
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
2778  echo "$as_me:$LINENO: result: $CC" >&5
2779echo "${ECHO_T}$CC" >&6
2780else
2781  echo "$as_me:$LINENO: result: no" >&5
2782echo "${ECHO_T}no" >&6
2783fi
2784
2785fi
2786if test -z "$ac_cv_prog_CC"; then
2787  ac_ct_CC=$CC
2788  # Extract the first word of "cc", so it can be a program name with args.
2789set dummy cc; ac_word=$2
2790echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2793  echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795  if test -n "$ac_ct_CC"; then
2796  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  test -z "$as_dir" && as_dir=.
2803  for ac_exec_ext in '' $ac_executable_extensions; do
2804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_ac_ct_CC="cc"
2806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810done
2811
2812fi
2813fi
2814ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815if test -n "$ac_ct_CC"; then
2816  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817echo "${ECHO_T}$ac_ct_CC" >&6
2818else
2819  echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821fi
2822
2823  CC=$ac_ct_CC
2824else
2825  CC="$ac_cv_prog_CC"
2826fi
2827
2828fi
2829if test -z "$CC"; then
2830  # Extract the first word of "cc", so it can be a program name with args.
2831set dummy cc; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_CC+set}" = set; then
2835  echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840  ac_prog_rejected=no
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846  for ac_exec_ext in '' $ac_executable_extensions; do
2847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2849       ac_prog_rejected=yes
2850       continue
2851     fi
2852    ac_cv_prog_CC="cc"
2853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857done
2858
2859if test $ac_prog_rejected = yes; then
2860  # We found a bogon in the path, so make sure we never use it.
2861  set dummy $ac_cv_prog_CC
2862  shift
2863  if test $# != 0; then
2864    # We chose a different compiler from the bogus one.
2865    # However, it has the same basename, so the bogon will be chosen
2866    # first if we set CC to just the basename; use the full file name.
2867    shift
2868    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2869  fi
2870fi
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
2875  echo "$as_me:$LINENO: result: $CC" >&5
2876echo "${ECHO_T}$CC" >&6
2877else
2878  echo "$as_me:$LINENO: result: no" >&5
2879echo "${ECHO_T}no" >&6
2880fi
2881
2882fi
2883if test -z "$CC"; then
2884  if test -n "$ac_tool_prefix"; then
2885  for ac_prog in cl
2886  do
2887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2889echo "$as_me:$LINENO: checking for $ac_word" >&5
2890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891if test "${ac_cv_prog_CC+set}" = set; then
2892  echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894  if test -n "$CC"; then
2895  ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900  IFS=$as_save_IFS
2901  test -z "$as_dir" && as_dir=.
2902  for ac_exec_ext in '' $ac_executable_extensions; do
2903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906    break 2
2907  fi
2908done
2909done
2910
2911fi
2912fi
2913CC=$ac_cv_prog_CC
2914if test -n "$CC"; then
2915  echo "$as_me:$LINENO: result: $CC" >&5
2916echo "${ECHO_T}$CC" >&6
2917else
2918  echo "$as_me:$LINENO: result: no" >&5
2919echo "${ECHO_T}no" >&6
2920fi
2921
2922    test -n "$CC" && break
2923  done
2924fi
2925if test -z "$CC"; then
2926  ac_ct_CC=$CC
2927  for ac_prog in cl
2928do
2929  # Extract the first word of "$ac_prog", so it can be a program name with args.
2930set dummy $ac_prog; ac_word=$2
2931echo "$as_me:$LINENO: checking for $ac_word" >&5
2932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2934  echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936  if test -n "$ac_ct_CC"; then
2937  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944  for ac_exec_ext in '' $ac_executable_extensions; do
2945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946    ac_cv_prog_ac_ct_CC="$ac_prog"
2947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951done
2952
2953fi
2954fi
2955ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956if test -n "$ac_ct_CC"; then
2957  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2958echo "${ECHO_T}$ac_ct_CC" >&6
2959else
2960  echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
2962fi
2963
2964  test -n "$ac_ct_CC" && break
2965done
2966
2967  CC=$ac_ct_CC
2968fi
2969
2970fi
2971
2972
2973test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2974See \`config.log' for more details." >&5
2975echo "$as_me: error: no acceptable C compiler found in \$PATH
2976See \`config.log' for more details." >&2;}
2977   { (exit 1); exit 1; }; }
2978
2979# Provide some information about the compiler.
2980echo "$as_me:$LINENO:" \
2981     "checking for C compiler version" >&5
2982ac_compiler=`set X $ac_compile; echo $2`
2983{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2984  (eval $ac_compiler --version </dev/null >&5) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }
2988{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2989  (eval $ac_compiler -v </dev/null >&5) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }
2993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2994  (eval $ac_compiler -V </dev/null >&5) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }
2998
2999echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3000echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3001if test "${ac_cv_c_compiler_gnu+set}" = set; then
3002  echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
3004  cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014#ifndef __GNUC__
3015       choke me
3016#endif
3017
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024  (eval $ac_compile) 2>conftest.er1
3025  ac_status=$?
3026  grep -v '^ *+' conftest.er1 >conftest.err
3027  rm -f conftest.er1
3028  cat conftest.err >&5
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); } &&
3031         { ac_try='test -z "$ac_c_werror_flag"
3032                         || test ! -s conftest.err'
3033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; } &&
3038         { ac_try='test -s conftest.$ac_objext'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; }; then
3044  ac_compiler_gnu=yes
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049ac_compiler_gnu=no
3050fi
3051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3052ac_cv_c_compiler_gnu=$ac_compiler_gnu
3053
3054fi
3055echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3057GCC=`test $ac_compiler_gnu = yes && echo yes`
3058ac_test_CFLAGS=${CFLAGS+set}
3059ac_save_CFLAGS=$CFLAGS
3060CFLAGS="-g"
3061echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3062echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3063if test "${ac_cv_prog_cc_g+set}" = set; then
3064  echo $ECHO_N "(cached) $ECHO_C" >&6
3065else
3066  cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083  (eval $ac_compile) 2>conftest.er1
3084  ac_status=$?
3085  grep -v '^ *+' conftest.er1 >conftest.err
3086  rm -f conftest.er1
3087  cat conftest.err >&5
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); } &&
3090         { ac_try='test -z "$ac_c_werror_flag"
3091                         || test ! -s conftest.err'
3092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093  (eval $ac_try) 2>&5
3094  ac_status=$?
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); }; } &&
3097         { ac_try='test -s conftest.$ac_objext'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; }; then
3103  ac_cv_prog_cc_g=yes
3104else
3105  echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108ac_cv_prog_cc_g=no
3109fi
3110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3111fi
3112echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3114if test "$ac_test_CFLAGS" = set; then
3115  CFLAGS=$ac_save_CFLAGS
3116elif test $ac_cv_prog_cc_g = yes; then
3117  if test "$GCC" = yes; then
3118    CFLAGS="-g -O2"
3119  else
3120    CFLAGS="-g"
3121  fi
3122else
3123  if test "$GCC" = yes; then
3124    CFLAGS="-O2"
3125  else
3126    CFLAGS=
3127  fi
3128fi
3129echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3130echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3131if test "${ac_cv_prog_cc_stdc+set}" = set; then
3132  echo $ECHO_N "(cached) $ECHO_C" >&6
3133else
3134  ac_cv_prog_cc_stdc=no
3135ac_save_CC=$CC
3136cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h.  */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h.  */
3142#include <stdarg.h>
3143#include <stdio.h>
3144#include <sys/types.h>
3145#include <sys/stat.h>
3146/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3147struct buf { int x; };
3148FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149static char *e (p, i)
3150     char **p;
3151     int i;
3152{
3153  return p[i];
3154}
3155static char *f (char * (*g) (char **, int), char **p, ...)
3156{
3157  char *s;
3158  va_list v;
3159  va_start (v,p);
3160  s = g (p, va_arg (v,int));
3161  va_end (v);
3162  return s;
3163}
3164
3165/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3166   function prototypes and stuff, but not '\xHH' hex character constants.
3167   These don't provoke an error unfortunately, instead are silently treated
3168   as 'x'.  The following induces an error, until -std1 is added to get
3169   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3170   array size at least.  It's necessary to write '\x00'==0 to get something
3171   that's true only with -std1.  */
3172int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3173
3174int test (int i, double x);
3175struct s1 {int (*f) (int a);};
3176struct s2 {int (*f) (double a);};
3177int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3178int argc;
3179char **argv;
3180int
3181main ()
3182{
3183return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3184  ;
3185  return 0;
3186}
3187_ACEOF
3188# Don't try gcc -ansi; that turns off useful extensions and
3189# breaks some systems' header files.
3190# AIX                   -qlanglvl=ansi
3191# Ultrix and OSF/1      -std1
3192# HP-UX 10.20 and later -Ae
3193# HP-UX older versions  -Aa -D_HPUX_SOURCE
3194# SVR4                  -Xc -D__EXTENSIONS__
3195for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196do
3197  CC="$ac_save_CC $ac_arg"
3198  rm -f conftest.$ac_objext
3199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200  (eval $ac_compile) 2>conftest.er1
3201  ac_status=$?
3202  grep -v '^ *+' conftest.er1 >conftest.err
3203  rm -f conftest.er1
3204  cat conftest.err >&5
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); } &&
3207         { ac_try='test -z "$ac_c_werror_flag"
3208                         || test ! -s conftest.err'
3209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210  (eval $ac_try) 2>&5
3211  ac_status=$?
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); }; } &&
3214         { ac_try='test -s conftest.$ac_objext'
3215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216  (eval $ac_try) 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; }; then
3220  ac_cv_prog_cc_stdc=$ac_arg
3221break
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226fi
3227rm -f conftest.err conftest.$ac_objext
3228done
3229rm -f conftest.$ac_ext conftest.$ac_objext
3230CC=$ac_save_CC
3231
3232fi
3233
3234case "x$ac_cv_prog_cc_stdc" in
3235  x|xno)
3236    echo "$as_me:$LINENO: result: none needed" >&5
3237echo "${ECHO_T}none needed" >&6 ;;
3238  *)
3239    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3240echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3241    CC="$CC $ac_cv_prog_cc_stdc" ;;
3242esac
3243
3244# Some people use a C++ compiler to compile C.  Since we use `exit',
3245# in C++ we need to declare it.  In case someone uses the same compiler
3246# for both compiling C and C++ we need to have the C++ compiler decide
3247# the declaration of exit, since it's the most demanding environment.
3248cat >conftest.$ac_ext <<_ACEOF
3249#ifndef __cplusplus
3250  choke me
3251#endif
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255  (eval $ac_compile) 2>conftest.er1
3256  ac_status=$?
3257  grep -v '^ *+' conftest.er1 >conftest.err
3258  rm -f conftest.er1
3259  cat conftest.err >&5
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); } &&
3262         { ac_try='test -z "$ac_c_werror_flag"
3263                         || test ! -s conftest.err'
3264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265  (eval $ac_try) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }; } &&
3269         { ac_try='test -s conftest.$ac_objext'
3270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271  (eval $ac_try) 2>&5
3272  ac_status=$?
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); }; }; then
3275  for ac_declaration in \
3276   '' \
3277   'extern "C" void std::exit (int) throw (); using std::exit;' \
3278   'extern "C" void std::exit (int); using std::exit;' \
3279   'extern "C" void exit (int) throw ();' \
3280   'extern "C" void exit (int);' \
3281   'void exit (int);'
3282do
3283  cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289$ac_declaration
3290#include <stdlib.h>
3291int
3292main ()
3293{
3294exit (42);
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext
3300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301  (eval $ac_compile) 2>conftest.er1
3302  ac_status=$?
3303  grep -v '^ *+' conftest.er1 >conftest.err
3304  rm -f conftest.er1
3305  cat conftest.err >&5
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); } &&
3308         { ac_try='test -z "$ac_c_werror_flag"
3309                         || test ! -s conftest.err'
3310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311  (eval $ac_try) 2>&5
3312  ac_status=$?
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); }; } &&
3315         { ac_try='test -s conftest.$ac_objext'
3316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317  (eval $ac_try) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; }; then
3321  :
3322else
3323  echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326continue
3327fi
3328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329  cat >conftest.$ac_ext <<_ACEOF
3330/* confdefs.h.  */
3331_ACEOF
3332cat confdefs.h >>conftest.$ac_ext
3333cat >>conftest.$ac_ext <<_ACEOF
3334/* end confdefs.h.  */
3335$ac_declaration
3336int
3337main ()
3338{
3339exit (42);
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346  (eval $ac_compile) 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } &&
3353         { ac_try='test -z "$ac_c_werror_flag"
3354                         || test ! -s conftest.err'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360         { ac_try='test -s conftest.$ac_objext'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; }; then
3366  break
3367else
3368  echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371fi
3372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373done
3374rm -f conftest*
3375if test -n "$ac_declaration"; then
3376  echo '#ifdef __cplusplus' >>confdefs.h
3377  echo $ac_declaration      >>confdefs.h
3378  echo '#endif'             >>confdefs.h
3379fi
3380
3381else
3382  echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392
3393depcc="$CC"   am_compiler_list=
3394
3395echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3396echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3397if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3401  # We make a subdir and do the tests there.  Otherwise we can end up
3402  # making bogus files that we don't know about and never remove.  For
3403  # instance it was reported that on HP-UX the gcc test will end up
3404  # making a dummy file named `D' -- because `-MD' means `put the output
3405  # in D'.
3406  mkdir conftest.dir
3407  # Copy depcomp to subdir because otherwise we won't find it if we're
3408  # using a relative directory.
3409  cp "$am_depcomp" conftest.dir
3410  cd conftest.dir
3411  # We will build objects and dependencies in a subdirectory because
3412  # it helps to detect inapplicable dependency modes.  For instance
3413  # both Tru64's cc and ICC support -MD to output dependencies as a
3414  # side effect of compilation, but ICC will put the dependencies in
3415  # the current directory while Tru64 will put them in the object
3416  # directory.
3417  mkdir sub
3418
3419  am_cv_CC_dependencies_compiler_type=none
3420  if test "$am_compiler_list" = ""; then
3421     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3422  fi
3423  for depmode in $am_compiler_list; do
3424    # Setup a source with many dependencies, because some compilers
3425    # like to wrap large dependency lists on column 80 (with \), and
3426    # we should not choose a depcomp mode which is confused by this.
3427    #
3428    # We need to recreate these files for each test, as the compiler may
3429    # overwrite some of them when testing with obscure command lines.
3430    # This happens at least with the AIX C compiler.
3431    : > sub/conftest.c
3432    for i in 1 2 3 4 5 6; do
3433      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3434      : > sub/conftst$i.h
3435    done
3436    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3437
3438    case $depmode in
3439    nosideeffect)
3440      # after this tag, mechanisms are not by side-effect, so they'll
3441      # only be used when explicitly requested
3442      if test "x$enable_dependency_tracking" = xyes; then
3443        continue
3444      else
3445        break
3446      fi
3447      ;;
3448    none) break ;;
3449    esac
3450    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3451    # mode.  It turns out that the SunPro C++ compiler does not properly
3452    # handle `-M -o', and we need to detect this.
3453    if depmode=$depmode \
3454       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3455       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3456       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3457         >/dev/null 2>conftest.err &&
3458       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3459       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3460       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3461      # icc doesn't choke on unknown options, it will just issue warnings
3462      # (even with -Werror).  So we grep stderr for any message
3463      # that says an option was ignored.
3464      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3465        am_cv_CC_dependencies_compiler_type=$depmode
3466        break
3467      fi
3468    fi
3469  done
3470
3471  cd ..
3472  rm -rf conftest.dir
3473else
3474  am_cv_CC_dependencies_compiler_type=none
3475fi
3476
3477fi
3478echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3479echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3480CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3481
3482
3483
3484if
3485  test "x$enable_dependency_tracking" != xno \
3486  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3487  am__fastdepCC_TRUE=
3488  am__fastdepCC_FALSE='#'
3489else
3490  am__fastdepCC_TRUE='#'
3491  am__fastdepCC_FALSE=
3492fi
3493
3494
3495
3496ac_ext=c
3497ac_cpp='$CPP $CPPFLAGS'
3498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3502echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3503# On Suns, sometimes $CPP names a directory.
3504if test -n "$CPP" && test -d "$CPP"; then
3505  CPP=
3506fi
3507if test -z "$CPP"; then
3508  if test "${ac_cv_prog_CPP+set}" = set; then
3509  echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511      # Double quotes because CPP needs to be expanded
3512    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3513    do
3514      ac_preproc_ok=false
3515for ac_c_preproc_warn_flag in '' yes
3516do
3517  # Use a header file that comes with gcc, so configuring glibc
3518  # with a fresh cross-compiler works.
3519  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520  # <limits.h> exists even on freestanding compilers.
3521  # On the NeXT, cc -E runs the code through the compiler's parser,
3522  # not just through cpp. "Syntax error" is here to catch this case.
3523  cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h.  */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h.  */
3529#ifdef __STDC__
3530# include <limits.h>
3531#else
3532# include <assert.h>
3533#endif
3534                     Syntax error
3535_ACEOF
3536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } >/dev/null; then
3544  if test -s conftest.err; then
3545    ac_cpp_err=$ac_c_preproc_warn_flag
3546    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547  else
3548    ac_cpp_err=
3549  fi
3550else
3551  ac_cpp_err=yes
3552fi
3553if test -z "$ac_cpp_err"; then
3554  :
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559  # Broken: fails on valid input.
3560continue
3561fi
3562rm -f conftest.err conftest.$ac_ext
3563
3564  # OK, works on sane cases.  Now check whether non-existent headers
3565  # can be detected and how.
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572#include <ac_nonexistent.h>
3573_ACEOF
3574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576  ac_status=$?
3577  grep -v '^ *+' conftest.er1 >conftest.err
3578  rm -f conftest.er1
3579  cat conftest.err >&5
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); } >/dev/null; then
3582  if test -s conftest.err; then
3583    ac_cpp_err=$ac_c_preproc_warn_flag
3584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585  else
3586    ac_cpp_err=
3587  fi
3588else
3589  ac_cpp_err=yes
3590fi
3591if test -z "$ac_cpp_err"; then
3592  # Broken: success on invalid input.
3593continue
3594else
3595  echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598  # Passes both tests.
3599ac_preproc_ok=:
3600break
3601fi
3602rm -f conftest.err conftest.$ac_ext
3603
3604done
3605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606rm -f conftest.err conftest.$ac_ext
3607if $ac_preproc_ok; then
3608  break
3609fi
3610
3611    done
3612    ac_cv_prog_CPP=$CPP
3613
3614fi
3615  CPP=$ac_cv_prog_CPP
3616else
3617  ac_cv_prog_CPP=$CPP
3618fi
3619echo "$as_me:$LINENO: result: $CPP" >&5
3620echo "${ECHO_T}$CPP" >&6
3621ac_preproc_ok=false
3622for ac_c_preproc_warn_flag in '' yes
3623do
3624  # Use a header file that comes with gcc, so configuring glibc
3625  # with a fresh cross-compiler works.
3626  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3627  # <limits.h> exists even on freestanding compilers.
3628  # On the NeXT, cc -E runs the code through the compiler's parser,
3629  # not just through cpp. "Syntax error" is here to catch this case.
3630  cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636#ifdef __STDC__
3637# include <limits.h>
3638#else
3639# include <assert.h>
3640#endif
3641                     Syntax error
3642_ACEOF
3643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } >/dev/null; then
3651  if test -s conftest.err; then
3652    ac_cpp_err=$ac_c_preproc_warn_flag
3653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3654  else
3655    ac_cpp_err=
3656  fi
3657else
3658  ac_cpp_err=yes
3659fi
3660if test -z "$ac_cpp_err"; then
3661  :
3662else
3663  echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666  # Broken: fails on valid input.
3667continue
3668fi
3669rm -f conftest.err conftest.$ac_ext
3670
3671  # OK, works on sane cases.  Now check whether non-existent headers
3672  # can be detected and how.
3673  cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h.  */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h.  */
3679#include <ac_nonexistent.h>
3680_ACEOF
3681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3683  ac_status=$?
3684  grep -v '^ *+' conftest.er1 >conftest.err
3685  rm -f conftest.er1
3686  cat conftest.err >&5
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); } >/dev/null; then
3689  if test -s conftest.err; then
3690    ac_cpp_err=$ac_c_preproc_warn_flag
3691    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692  else
3693    ac_cpp_err=
3694  fi
3695else
3696  ac_cpp_err=yes
3697fi
3698if test -z "$ac_cpp_err"; then
3699  # Broken: success on invalid input.
3700continue
3701else
3702  echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705  # Passes both tests.
3706ac_preproc_ok=:
3707break
3708fi
3709rm -f conftest.err conftest.$ac_ext
3710
3711done
3712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3713rm -f conftest.err conftest.$ac_ext
3714if $ac_preproc_ok; then
3715  :
3716else
3717  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3718See \`config.log' for more details." >&5
3719echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3720See \`config.log' for more details." >&2;}
3721   { (exit 1); exit 1; }; }
3722fi
3723
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
3730
3731echo "$as_me:$LINENO: checking for egrep" >&5
3732echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3733if test "${ac_cv_prog_egrep+set}" = set; then
3734  echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3737    then ac_cv_prog_egrep='grep -E'
3738    else ac_cv_prog_egrep='egrep'
3739    fi
3740fi
3741echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3742echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3743 EGREP=$ac_cv_prog_egrep
3744
3745
3746echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3747echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3748if test "${ac_cv_header_stdc+set}" = set; then
3749  echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751  cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757#include <stdlib.h>
3758#include <stdarg.h>
3759#include <string.h>
3760#include <float.h>
3761
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770rm -f conftest.$ac_objext
3771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772  (eval $ac_compile) 2>conftest.er1
3773  ac_status=$?
3774  grep -v '^ *+' conftest.er1 >conftest.err
3775  rm -f conftest.er1
3776  cat conftest.err >&5
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } &&
3779         { ac_try='test -z "$ac_c_werror_flag"
3780                         || test ! -s conftest.err'
3781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782  (eval $ac_try) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; } &&
3786         { ac_try='test -s conftest.$ac_objext'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; }; then
3792  ac_cv_header_stdc=yes
3793else
3794  echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797ac_cv_header_stdc=no
3798fi
3799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800
3801if test $ac_cv_header_stdc = yes; then
3802  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3803  cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h.  */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h.  */
3809#include <string.h>
3810
3811_ACEOF
3812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813  $EGREP "memchr" >/dev/null 2>&1; then
3814  :
3815else
3816  ac_cv_header_stdc=no
3817fi
3818rm -f conftest*
3819
3820fi
3821
3822if test $ac_cv_header_stdc = yes; then
3823  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3824  cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830#include <stdlib.h>
3831
3832_ACEOF
3833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834  $EGREP "free" >/dev/null 2>&1; then
3835  :
3836else
3837  ac_cv_header_stdc=no
3838fi
3839rm -f conftest*
3840
3841fi
3842
3843if test $ac_cv_header_stdc = yes; then
3844  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3845  if test "$cross_compiling" = yes; then
3846  :
3847else
3848  cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h.  */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h.  */
3854#include <ctype.h>
3855#if ((' ' & 0x0FF) == 0x020)
3856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3858#else
3859# define ISLOWER(c) \
3860                   (('a' <= (c) && (c) <= 'i') \
3861                     || ('j' <= (c) && (c) <= 'r') \
3862                     || ('s' <= (c) && (c) <= 'z'))
3863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3864#endif
3865
3866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3867int
3868main ()
3869{
3870  int i;
3871  for (i = 0; i < 256; i++)
3872    if (XOR (islower (i), ISLOWER (i))
3873        || toupper (i) != TOUPPER (i))
3874      exit(2);
3875  exit (0);
3876}
3877_ACEOF
3878rm -f conftest$ac_exeext
3879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880  (eval $ac_link) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; }; then
3889  :
3890else
3891  echo "$as_me: program exited with status $ac_status" >&5
3892echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895( exit $ac_status )
3896ac_cv_header_stdc=no
3897fi
3898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3899fi
3900fi
3901fi
3902echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3903echo "${ECHO_T}$ac_cv_header_stdc" >&6
3904if test $ac_cv_header_stdc = yes; then
3905
3906cat >>confdefs.h <<\_ACEOF
3907#define STDC_HEADERS 1
3908_ACEOF
3909
3910fi
3911
3912
3913## THIS IS OUR DEFAULT-DATA-DIRECTORY
3914
3915##################################
3916## CHECKING  OPTIONAL ARGUMENTS ##
3917##################################
3918#----------------#
3919# Data-Directory #
3920#----------------#
3921DATA_DIR=$datadir
3922echo \$\{prefix\}
3923if test $DATA_DIR = \$\{prefix\}/share ; then
3924        echo "not given"
3925        DATA_DIR=/usr/share
3926else
3927        echo "given: $DATA_DIR"
3928fi
3929
3930cat >>confdefs.h <<_ACEOF
3931#define DATADIR "$DATA_DIR"
3932_ACEOF
3933
3934
3935#-----------------#
3936# DEBUG-statement #
3937#-----------------#
3938DEBUG=no
3939echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3940echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3941# Check whether --enable-debug or --disable-debug was given.
3942if test "${enable_debug+set}" = set; then
3943  enableval="$enable_debug"
3944  DEBUG=$enableval
3945fi;
3946
3947if test x$DEBUG = xno; then
3948        echo "no"
3949        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3950        DEBUG=4
3951elif test x$DEBUG = xyes; then
3952        echo "yes"
3953        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3954        DEBUG=4
3955else
3956        echo "yes: setting debuglevel to to $DEBUG"
3957fi
3958
3959cat >>confdefs.h <<_ACEOF
3960#define DEBUG $DEBUG
3961_ACEOF
3962
3963
3964
3965
3966#---------------#
3967# Modular Debug #
3968#---------------#
3969MODULAR_DEBUG=yes
3970echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3971echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3972# Check whether --enable-modular-debug or --disable-modular-debug was given.
3973if test "${enable_modular_debug+set}" = set; then
3974  enableval="$enable_modular_debug"
3975  MODULAR_DEBUG=$enableval
3976fi;
3977
3978if test x$MODULAR_DEBUG = xno; then
3979        echo "no"
3980elif test x$MODULAR_DEBUG = xyes; then
3981        echo "yes"
3982
3983cat >>confdefs.h <<_ACEOF
3984#define MODULAR_DEBUG 1
3985_ACEOF
3986
3987fi
3988
3989#--------------#
3990# GTK-disabled #
3991#--------------#
3992echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3993echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3994# Check whether --enable-gtk or --disable-gtk was given.
3995if test "${enable_gtk+set}" = set; then
3996  enableval="$enable_gtk"
3997  def_gtk=no
3998else
3999  def_gtk=yes
4000fi;
4001if test x$def_gtk = xyes; then
4002  echo "yes"
4003fi
4004if test x$def_gtk = xno; then
4005  echo "no"
4006fi
4007
4008#------------------#
4009# libCurl-disabled #
4010#------------------#
4011echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4012echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4013# Check whether --enable-curl or --disable-curl was given.
4014if test "${enable_curl+set}" = set; then
4015  enableval="$enable_curl"
4016  def_curl=no
4017else
4018  def_curl=yes
4019fi;
4020if test x$def_curl = xyes; then
4021  echo "yes"
4022fi
4023if test x$def_curl = xno; then
4024  echo "no"
4025fi
4026
4027#-------------------#
4028# SubProject-enable #
4029#-------------------#
4030def_sub_projects=no
4031echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4032echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4033
4034# Check whether --with-sub-projects or --without-sub-projects was given.
4035if test "${with_sub_projects+set}" = set; then
4036  withval="$with_sub_projects"
4037  def_sub_projects=yes
4038fi;
4039if test x$def_sub_projects = xyes; then
4040  echo "yes"
4041fi
4042if test x$def_sub_projects = xno; then
4043  echo "no"
4044fi
4045
4046
4047if test x$def_sub_projects = xyes; then
4048  SUB_PROJECTS_TRUE=
4049  SUB_PROJECTS_FALSE='#'
4050else
4051  SUB_PROJECTS_TRUE='#'
4052  SUB_PROJECTS_FALSE=
4053fi
4054
4055
4056#-------------------#
4057# Profiling Enabled #
4058#-------------------#
4059def_profiling=no
4060echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4061echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4062# Check whether --enable-profile or --disable-profile was given.
4063if test "${enable_profile+set}" = set; then
4064  enableval="$enable_profile"
4065  def_profiling=yes
4066fi;
4067if test x$def_profiling = xyes; then
4068  echo "yes"
4069  CXXFLAGS="$CXXFLAGS -pg"
4070fi
4071if test x$def_profiling = xno; then
4072  echo "no"
4073fi
4074
4075#----------------#
4076# efence Enabled #
4077#----------------#
4078def_efence=no
4079echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4080echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4081# Check whether --enable-efence or --disable-efence was given.
4082if test "${enable_efence+set}" = set; then
4083  enableval="$enable_efence"
4084  def_efence=yes
4085fi;
4086if test x$def_efence = xyes; then
4087  echo "yes"
4088fi
4089if test x$def_efence = xno; then
4090  echo "no"
4091fi
4092
4093#----------------------#
4094# Documentation-enable #
4095#----------------------#
4096def_documentation=no
4097echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4098echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4099# Check whether --enable-documentation or --disable-documentation was given.
4100if test "${enable_documentation+set}" = set; then
4101  enableval="$enable_documentation"
4102  def_documentation=yes
4103fi;
4104if test x$def_documentation = xyes; then
4105  echo "yes"
4106fi
4107if test x$def_documentation = xno; then
4108  echo "no"
4109fi
4110
4111
4112if test x$def_documentation = xyes; then
4113  DOCUMENTATION_TRUE=
4114  DOCUMENTATION_FALSE='#'
4115else
4116  DOCUMENTATION_TRUE='#'
4117  DOCUMENTATION_FALSE=
4118fi
4119
4120
4121#######################
4122## PROGRAMM CHECKING ##
4123## 3. party Programs ##
4124#######################
4125
4126#----------------------#
4127# checking for Doxygen #
4128#----------------------#
4129# Extract the first word of "doxygen", so it can be a program name with args.
4130set dummy doxygen; ac_word=$2
4131echo "$as_me:$LINENO: checking for $ac_word" >&5
4132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133if test "${ac_cv_path_DOXYGEN+set}" = set; then
4134  echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136  case $DOXYGEN in
4137  [\\/]* | ?:[\\/]*)
4138  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4139  ;;
4140  *)
4141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144  IFS=$as_save_IFS
4145  test -z "$as_dir" && as_dir=.
4146  for ac_exec_ext in '' $ac_executable_extensions; do
4147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150    break 2
4151  fi
4152done
4153done
4154
4155  ;;
4156esac
4157fi
4158DOXYGEN=$ac_cv_path_DOXYGEN
4159
4160if test -n "$DOXYGEN"; then
4161  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4162echo "${ECHO_T}$DOXYGEN" >&6
4163else
4164  echo "$as_me:$LINENO: result: no" >&5
4165echo "${ECHO_T}no" >&6
4166fi
4167
4168
4169
4170if test $DOXYGEN; then
4171  DOXYGEN_TRUE=
4172  DOXYGEN_FALSE='#'
4173else
4174  DOXYGEN_TRUE='#'
4175  DOXYGEN_FALSE=
4176fi
4177
4178
4179#--------------------#
4180# checking for gprof #
4181#--------------------#
4182# Extract the first word of "gprof", so it can be a program name with args.
4183set dummy gprof; ac_word=$2
4184echo "$as_me:$LINENO: checking for $ac_word" >&5
4185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186if test "${ac_cv_path_GPROF+set}" = set; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  case $GPROF in
4190  [\\/]* | ?:[\\/]*)
4191  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4192  ;;
4193  *)
4194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199  for ac_exec_ext in '' $ac_executable_extensions; do
4200  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4202    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206done
4207
4208  ;;
4209esac
4210fi
4211GPROF=$ac_cv_path_GPROF
4212
4213if test -n "$GPROF"; then
4214  echo "$as_me:$LINENO: result: $GPROF" >&5
4215echo "${ECHO_T}$GPROF" >&6
4216else
4217  echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
4219fi
4220
4221
4222#-------------------------#
4223# checking for pkg-config #
4224#-------------------------#
4225if test x$def_gtk = xyes; then
4226 # Extract the first word of "pkg-config", so it can be a program name with args.
4227set dummy pkg-config; ac_word=$2
4228echo "$as_me:$LINENO: checking for $ac_word" >&5
4229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4230if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  case $PKG_CONFIG in
4234  [\\/]* | ?:[\\/]*)
4235  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4236  ;;
4237  *)
4238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243  for ac_exec_ext in '' $ac_executable_extensions; do
4244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247    break 2
4248  fi
4249done
4250done
4251
4252  ;;
4253esac
4254fi
4255PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4256
4257if test -n "$PKG_CONFIG"; then
4258  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4259echo "${ECHO_T}$PKG_CONFIG" >&6
4260else
4261  echo "$as_me:$LINENO: result: no" >&5
4262echo "${ECHO_T}no" >&6
4263fi
4264
4265fi
4266
4267
4268#########################
4269## CHECKING FOR SYSTEM ##
4270#########################
4271## here the system is checked, and openGL is included
4272## also checking for SDL on differen Systems
4273
4274echo "$as_me:$LINENO: checking for System" >&5
4275echo $ECHO_N "checking for System... $ECHO_C" >&6
4276## checking for openGL-environment and other sys-specific parameters
4277case "$target" in
4278
4279###########
4280#---------#
4281# WINDOWS #
4282#---------#
4283###########
4284  *-*-mingw32*)
4285echo "mingw-WINDOWS detected"
4286
4287CPPFLAGS="-I/usr/include -I/mingw/include"
4288
4289    mingw="yes"
4290    MSBITFIELDS="-mms-bitfields"
4291    MWINDOWS="-mwindows"
4292
4293
4294
4295# checking for mingw32
4296    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4297echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4298if test "${ac_cv_lib_mingw32_main+set}" = set; then
4299  echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301  ac_check_lib_save_LIBS=$LIBS
4302LIBS="-lmingw32  $LIBS"
4303cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309
4310
4311int
4312main ()
4313{
4314main ();
4315  ;
4316  return 0;
4317}
4318_ACEOF
4319rm -f conftest.$ac_objext conftest$ac_exeext
4320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321  (eval $ac_link) 2>conftest.er1
4322  ac_status=$?
4323  grep -v '^ *+' conftest.er1 >conftest.err
4324  rm -f conftest.er1
4325  cat conftest.err >&5
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); } &&
4328         { ac_try='test -z "$ac_c_werror_flag"
4329                         || test ! -s conftest.err'
4330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331  (eval $ac_try) 2>&5
4332  ac_status=$?
4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); }; } &&
4335         { ac_try='test -s conftest$ac_exeext'
4336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337  (eval $ac_try) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); }; }; then
4341  ac_cv_lib_mingw32_main=yes
4342else
4343  echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346ac_cv_lib_mingw32_main=no
4347fi
4348rm -f conftest.err conftest.$ac_objext \
4349      conftest$ac_exeext conftest.$ac_ext
4350LIBS=$ac_check_lib_save_LIBS
4351fi
4352echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4353echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4354if test $ac_cv_lib_mingw32_main = yes; then
4355  FOUND_mingw32=yes
4356fi
4357
4358    if test x$FOUND_mingw32 = xyes; then
4359        LIBS="$LIBS -lmingw32"
4360    fi
4361
4362#-----------#
4363# SDL (win) #
4364#-----------#
4365# checking for SDL-headers
4366    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4377                  inttypes.h stdint.h unistd.h
4378do
4379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4380echo "$as_me:$LINENO: checking for $ac_header" >&5
4381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4382if eval "test \"\${$as_ac_Header+set}\" = set"; then
4383  echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385  cat >conftest.$ac_ext <<_ACEOF
4386/* confdefs.h.  */
4387_ACEOF
4388cat confdefs.h >>conftest.$ac_ext
4389cat >>conftest.$ac_ext <<_ACEOF
4390/* end confdefs.h.  */
4391$ac_includes_default
4392
4393#include <$ac_header>
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397  (eval $ac_compile) 2>conftest.er1
4398  ac_status=$?
4399  grep -v '^ *+' conftest.er1 >conftest.err
4400  rm -f conftest.er1
4401  cat conftest.err >&5
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); } &&
4404         { ac_try='test -z "$ac_c_werror_flag"
4405                         || test ! -s conftest.err'
4406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407  (eval $ac_try) 2>&5
4408  ac_status=$?
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); }; } &&
4411         { ac_try='test -s conftest.$ac_objext'
4412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413  (eval $ac_try) 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }; }; then
4417  eval "$as_ac_Header=yes"
4418else
4419  echo "$as_me: failed program was:" >&5
4420sed 's/^/| /' conftest.$ac_ext >&5
4421
4422eval "$as_ac_Header=no"
4423fi
4424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4425fi
4426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4428if test `eval echo '${'$as_ac_Header'}'` = yes; then
4429  cat >>confdefs.h <<_ACEOF
4430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431_ACEOF
4432
4433fi
4434
4435done
4436
4437
4438
4439for ac_header in SDL/SDL.h
4440do
4441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443  echo "$as_me:$LINENO: checking for $ac_header" >&5
4444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4445if eval "test \"\${$as_ac_Header+set}\" = set"; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447fi
4448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4450else
4451  # Is the header compilable?
4452echo "$as_me:$LINENO: checking $ac_header usability" >&5
4453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4454cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h.  */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h.  */
4460$ac_includes_default
4461#include <$ac_header>
4462_ACEOF
4463rm -f conftest.$ac_objext
4464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465  (eval $ac_compile) 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } &&
4472         { ac_try='test -z "$ac_c_werror_flag"
4473                         || test ! -s conftest.err'
4474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475  (eval $ac_try) 2>&5
4476  ac_status=$?
4477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); }; } &&
4479         { ac_try='test -s conftest.$ac_objext'
4480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481  (eval $ac_try) 2>&5
4482  ac_status=$?
4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); }; }; then
4485  ac_header_compiler=yes
4486else
4487  echo "$as_me: failed program was:" >&5
4488sed 's/^/| /' conftest.$ac_ext >&5
4489
4490ac_header_compiler=no
4491fi
4492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4494echo "${ECHO_T}$ac_header_compiler" >&6
4495
4496# Is the header present?
4497echo "$as_me:$LINENO: checking $ac_header presence" >&5
4498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4499cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h.  */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h.  */
4505#include <$ac_header>
4506_ACEOF
4507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4509  ac_status=$?
4510  grep -v '^ *+' conftest.er1 >conftest.err
4511  rm -f conftest.er1
4512  cat conftest.err >&5
4513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514  (exit $ac_status); } >/dev/null; then
4515  if test -s conftest.err; then
4516    ac_cpp_err=$ac_c_preproc_warn_flag
4517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4518  else
4519    ac_cpp_err=
4520  fi
4521else
4522  ac_cpp_err=yes
4523fi
4524if test -z "$ac_cpp_err"; then
4525  ac_header_preproc=yes
4526else
4527  echo "$as_me: failed program was:" >&5
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
4530  ac_header_preproc=no
4531fi
4532rm -f conftest.err conftest.$ac_ext
4533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4534echo "${ECHO_T}$ac_header_preproc" >&6
4535
4536# So?  What about this header?
4537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4538  yes:no: )
4539    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4541    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4543    ac_header_preproc=yes
4544    ;;
4545  no:yes:* )
4546    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4548    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4549echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4550    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4552    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4553echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4554    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4556    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4558    (
4559      cat <<\_ASBOX
4560## ---------------------------------------------- ##
4561## Report this to orxonox-dev at mail.datacore.ch ##
4562## ---------------------------------------------- ##
4563_ASBOX
4564    ) |
4565      sed "s/^/$as_me: WARNING:     /" >&2
4566    ;;
4567esac
4568echo "$as_me:$LINENO: checking for $ac_header" >&5
4569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571  echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573  eval "$as_ac_Header=\$ac_header_preproc"
4574fi
4575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4577
4578fi
4579if test `eval echo '${'$as_ac_Header'}'` = yes; then
4580  cat >>confdefs.h <<_ACEOF
4581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4582_ACEOF
4583
4584else
4585  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4586echo "$as_me: error: cannot find SDL headers" >&2;}
4587   { (exit 1); exit 1; }; }
4588fi
4589
4590done
4591
4592
4593#checking for libSDL
4594    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4595echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4596if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4597  echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599  ac_check_lib_save_LIBS=$LIBS
4600LIBS="-lsdlmain  $LIBS"
4601cat >conftest.$ac_ext <<_ACEOF
4602/* confdefs.h.  */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h.  */
4607
4608
4609int
4610main ()
4611{
4612main ();
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext conftest$ac_exeext
4618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4619  (eval $ac_link) 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } &&
4626         { ac_try='test -z "$ac_c_werror_flag"
4627                         || test ! -s conftest.err'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; } &&
4633         { ac_try='test -s conftest$ac_exeext'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  ac_cv_lib_sdlmain_main=yes
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644ac_cv_lib_sdlmain_main=no
4645fi
4646rm -f conftest.err conftest.$ac_objext \
4647      conftest$ac_exeext conftest.$ac_ext
4648LIBS=$ac_check_lib_save_LIBS
4649fi
4650echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4651echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4652if test $ac_cv_lib_sdlmain_main = yes; then
4653  FOUND_sdlmain=yes
4654fi
4655
4656    if test x$FOUND_sdlmain = xyes ; then
4657       LIBS="$LIBS -lsdlmain"
4658    else
4659        echo "------------------"
4660        echo "SDL library not found."
4661        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4662        echo "------------------"
4663        exit 1
4664    fi
4665    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4666echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4667if test "${ac_cv_lib_sdl_main+set}" = set; then
4668  echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670  ac_check_lib_save_LIBS=$LIBS
4671LIBS="-lsdl  $LIBS"
4672cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h.  */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h.  */
4678
4679
4680int
4681main ()
4682{
4683main ();
4684  ;
4685  return 0;
4686}
4687_ACEOF
4688rm -f conftest.$ac_objext conftest$ac_exeext
4689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690  (eval $ac_link) 2>conftest.er1
4691  ac_status=$?
4692  grep -v '^ *+' conftest.er1 >conftest.err
4693  rm -f conftest.er1
4694  cat conftest.err >&5
4695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); } &&
4697         { ac_try='test -z "$ac_c_werror_flag"
4698                         || test ! -s conftest.err'
4699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700  (eval $ac_try) 2>&5
4701  ac_status=$?
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); }; } &&
4704         { ac_try='test -s conftest$ac_exeext'
4705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706  (eval $ac_try) 2>&5
4707  ac_status=$?
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); }; }; then
4710  ac_cv_lib_sdl_main=yes
4711else
4712  echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715ac_cv_lib_sdl_main=no
4716fi
4717rm -f conftest.err conftest.$ac_objext \
4718      conftest$ac_exeext conftest.$ac_ext
4719LIBS=$ac_check_lib_save_LIBS
4720fi
4721echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4722echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4723if test $ac_cv_lib_sdl_main = yes; then
4724  FOUND_sdl=yes
4725fi
4726
4727    if test x$FOUND_sdl = xyes ; then
4728       LIBS="$LIBS -lsdl"
4729    else
4730        echo "------------------"
4731        echo "SDL library not found."
4732        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4733        echo "------------------"
4734        exit -1
4735    fi
4736
4737#---------------#
4738# open-GL (win) #
4739#---------------#
4740# checking gl header
4741
4742for ac_header in GL/gl.h
4743do
4744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4745if eval "test \"\${$as_ac_Header+set}\" = set"; then
4746  echo "$as_me:$LINENO: checking for $ac_header" >&5
4747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4748if eval "test \"\${$as_ac_Header+set}\" = set"; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750fi
4751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4753else
4754  # Is the header compilable?
4755echo "$as_me:$LINENO: checking $ac_header usability" >&5
4756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4757cat >conftest.$ac_ext <<_ACEOF
4758/* confdefs.h.  */
4759_ACEOF
4760cat confdefs.h >>conftest.$ac_ext
4761cat >>conftest.$ac_ext <<_ACEOF
4762/* end confdefs.h.  */
4763$ac_includes_default
4764#include <$ac_header>
4765_ACEOF
4766rm -f conftest.$ac_objext
4767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768  (eval $ac_compile) 2>conftest.er1
4769  ac_status=$?
4770  grep -v '^ *+' conftest.er1 >conftest.err
4771  rm -f conftest.er1
4772  cat conftest.err >&5
4773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774  (exit $ac_status); } &&
4775         { ac_try='test -z "$ac_c_werror_flag"
4776                         || test ! -s conftest.err'
4777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778  (eval $ac_try) 2>&5
4779  ac_status=$?
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); }; } &&
4782         { ac_try='test -s conftest.$ac_objext'
4783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784  (eval $ac_try) 2>&5
4785  ac_status=$?
4786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787  (exit $ac_status); }; }; then
4788  ac_header_compiler=yes
4789else
4790  echo "$as_me: failed program was:" >&5
4791sed 's/^/| /' conftest.$ac_ext >&5
4792
4793ac_header_compiler=no
4794fi
4795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4797echo "${ECHO_T}$ac_header_compiler" >&6
4798
4799# Is the header present?
4800echo "$as_me:$LINENO: checking $ac_header presence" >&5
4801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4802cat >conftest.$ac_ext <<_ACEOF
4803/* confdefs.h.  */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h.  */
4808#include <$ac_header>
4809_ACEOF
4810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4811  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4812  ac_status=$?
4813  grep -v '^ *+' conftest.er1 >conftest.err
4814  rm -f conftest.er1
4815  cat conftest.err >&5
4816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817  (exit $ac_status); } >/dev/null; then
4818  if test -s conftest.err; then
4819    ac_cpp_err=$ac_c_preproc_warn_flag
4820    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4821  else
4822    ac_cpp_err=
4823  fi
4824else
4825  ac_cpp_err=yes
4826fi
4827if test -z "$ac_cpp_err"; then
4828  ac_header_preproc=yes
4829else
4830  echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833  ac_header_preproc=no
4834fi
4835rm -f conftest.err conftest.$ac_ext
4836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4837echo "${ECHO_T}$ac_header_preproc" >&6
4838
4839# So?  What about this header?
4840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4841  yes:no: )
4842    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4844    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4846    ac_header_preproc=yes
4847    ;;
4848  no:yes:* )
4849    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4851    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4852echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4853    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4855    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4856echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4859    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4861    (
4862      cat <<\_ASBOX
4863## ---------------------------------------------- ##
4864## Report this to orxonox-dev at mail.datacore.ch ##
4865## ---------------------------------------------- ##
4866_ASBOX
4867    ) |
4868      sed "s/^/$as_me: WARNING:     /" >&2
4869    ;;
4870esac
4871echo "$as_me:$LINENO: checking for $ac_header" >&5
4872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4873if eval "test \"\${$as_ac_Header+set}\" = set"; then
4874  echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876  eval "$as_ac_Header=\$ac_header_preproc"
4877fi
4878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4880
4881fi
4882if test `eval echo '${'$as_ac_Header'}'` = yes; then
4883  cat >>confdefs.h <<_ACEOF
4884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4885_ACEOF
4886
4887else
4888  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4889echo "$as_me: error: cannot find opengl headers" >&2;}
4890   { (exit 1); exit 1; }; }
4891fi
4892
4893done
4894
4895#   checking for Windows openGl library
4896    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4897echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4898if test "${ac_cv_lib_opengl32_main+set}" = set; then
4899  echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901  ac_check_lib_save_LIBS=$LIBS
4902LIBS="-lopengl32  $LIBS"
4903cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909
4910
4911int
4912main ()
4913{
4914main ();
4915  ;
4916  return 0;
4917}
4918_ACEOF
4919rm -f conftest.$ac_objext conftest$ac_exeext
4920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921  (eval $ac_link) 2>conftest.er1
4922  ac_status=$?
4923  grep -v '^ *+' conftest.er1 >conftest.err
4924  rm -f conftest.er1
4925  cat conftest.err >&5
4926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927  (exit $ac_status); } &&
4928         { ac_try='test -z "$ac_c_werror_flag"
4929                         || test ! -s conftest.err'
4930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931  (eval $ac_try) 2>&5
4932  ac_status=$?
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); }; } &&
4935         { ac_try='test -s conftest$ac_exeext'
4936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937  (eval $ac_try) 2>&5
4938  ac_status=$?
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); }; }; then
4941  ac_cv_lib_opengl32_main=yes
4942else
4943  echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946ac_cv_lib_opengl32_main=no
4947fi
4948rm -f conftest.err conftest.$ac_objext \
4949      conftest$ac_exeext conftest.$ac_ext
4950LIBS=$ac_check_lib_save_LIBS
4951fi
4952echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4953echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4954if test $ac_cv_lib_opengl32_main = yes; then
4955  FOUND_opengl32=yes
4956else
4957  "gl/gl.h"
4958fi
4959
4960    if test x$FOUND_opengl32 = xyes ; then
4961        LIBS="$LIBS -lopengl32"
4962    else
4963         echo "------------------"
4964         echo "opengl not found."
4965         echo "please install the opengl package which can be found at http://www.opengl.org"
4966         echo "------------------"
4967         exit -1
4968    fi
4969
4970# cheking for GLU-header
4971
4972for ac_header in GL/glu.h
4973do
4974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4975if eval "test \"\${$as_ac_Header+set}\" = set"; then
4976  echo "$as_me:$LINENO: checking for $ac_header" >&5
4977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4978if eval "test \"\${$as_ac_Header+set}\" = set"; then
4979  echo $ECHO_N "(cached) $ECHO_C" >&6
4980fi
4981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4983else
4984  # Is the header compilable?
4985echo "$as_me:$LINENO: checking $ac_header usability" >&5
4986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993$ac_includes_default
4994#include <$ac_header>
4995_ACEOF
4996rm -f conftest.$ac_objext
4997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998  (eval $ac_compile) 2>conftest.er1
4999  ac_status=$?
5000  grep -v '^ *+' conftest.er1 >conftest.err
5001  rm -f conftest.er1
5002  cat conftest.err >&5
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); } &&
5005         { ac_try='test -z "$ac_c_werror_flag"
5006                         || test ! -s conftest.err'
5007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008  (eval $ac_try) 2>&5
5009  ac_status=$?
5010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011  (exit $ac_status); }; } &&
5012         { ac_try='test -s conftest.$ac_objext'
5013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014  (eval $ac_try) 2>&5
5015  ac_status=$?
5016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017  (exit $ac_status); }; }; then
5018  ac_header_compiler=yes
5019else
5020  echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023ac_header_compiler=no
5024fi
5025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5027echo "${ECHO_T}$ac_header_compiler" >&6
5028
5029# Is the header present?
5030echo "$as_me:$LINENO: checking $ac_header presence" >&5
5031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5032cat >conftest.$ac_ext <<_ACEOF
5033/* confdefs.h.  */
5034_ACEOF
5035cat confdefs.h >>conftest.$ac_ext
5036cat >>conftest.$ac_ext <<_ACEOF
5037/* end confdefs.h.  */
5038#include <$ac_header>
5039_ACEOF
5040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5041  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } >/dev/null; then
5048  if test -s conftest.err; then
5049    ac_cpp_err=$ac_c_preproc_warn_flag
5050    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5051  else
5052    ac_cpp_err=
5053  fi
5054else
5055  ac_cpp_err=yes
5056fi
5057if test -z "$ac_cpp_err"; then
5058  ac_header_preproc=yes
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063  ac_header_preproc=no
5064fi
5065rm -f conftest.err conftest.$ac_ext
5066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5067echo "${ECHO_T}$ac_header_preproc" >&6
5068
5069# So?  What about this header?
5070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5071  yes:no: )
5072    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5076    ac_header_preproc=yes
5077    ;;
5078  no:yes:* )
5079    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5081    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5082echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5083    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5085    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5086echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5089    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5091    (
5092      cat <<\_ASBOX
5093## ---------------------------------------------- ##
5094## Report this to orxonox-dev at mail.datacore.ch ##
5095## ---------------------------------------------- ##
5096_ASBOX
5097    ) |
5098      sed "s/^/$as_me: WARNING:     /" >&2
5099    ;;
5100esac
5101echo "$as_me:$LINENO: checking for $ac_header" >&5
5102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5103if eval "test \"\${$as_ac_Header+set}\" = set"; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  eval "$as_ac_Header=\$ac_header_preproc"
5107fi
5108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5110
5111fi
5112if test `eval echo '${'$as_ac_Header'}'` = yes; then
5113  cat >>confdefs.h <<_ACEOF
5114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5115_ACEOF
5116
5117else
5118  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5119echo "$as_me: error: cannot find opengl headers" >&2;}
5120   { (exit 1); exit 1; }; }
5121fi
5122
5123done
5124
5125
5126# checking for libGLU
5127    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5128echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5129if test "${ac_cv_lib_glu32_main+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  ac_check_lib_save_LIBS=$LIBS
5133LIBS="-lglu32  $LIBS"
5134cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h.  */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h.  */
5140
5141
5142int
5143main ()
5144{
5145main ();
5146  ;
5147  return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext conftest$ac_exeext
5151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152  (eval $ac_link) 2>conftest.er1
5153  ac_status=$?
5154  grep -v '^ *+' conftest.er1 >conftest.err
5155  rm -f conftest.er1
5156  cat conftest.err >&5
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); } &&
5159         { ac_try='test -z "$ac_c_werror_flag"
5160                         || test ! -s conftest.err'
5161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162  (eval $ac_try) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); }; } &&
5166         { ac_try='test -s conftest$ac_exeext'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; }; then
5172  ac_cv_lib_glu32_main=yes
5173else
5174  echo "$as_me: failed program was:" >&5
5175sed 's/^/| /' conftest.$ac_ext >&5
5176
5177ac_cv_lib_glu32_main=no
5178fi
5179rm -f conftest.err conftest.$ac_objext \
5180      conftest$ac_exeext conftest.$ac_ext
5181LIBS=$ac_check_lib_save_LIBS
5182fi
5183echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5184echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5185if test $ac_cv_lib_glu32_main = yes; then
5186  FOUND_glu32=yes
5187fi
5188
5189    if test x$FOUND_glu32 = xyes ; then
5190        LIBS="$LIBS -lGLU32"
5191    else
5192         echo "------------------"
5193         echo "GLU library not found."
5194         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5195         echo "------------------"
5196         exit -1
5197    fi
5198
5199#--------#
5200# openAL #
5201#--------#
5202# checking for openAL-headers
5203
5204for ac_header in AL/al.h
5205do
5206as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208  echo "$as_me:$LINENO: checking for $ac_header" >&5
5209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211  echo $ECHO_N "(cached) $ECHO_C" >&6
5212fi
5213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215else
5216  # Is the header compilable?
5217echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219cat >conftest.$ac_ext <<_ACEOF
5220/* confdefs.h.  */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h.  */
5225$ac_includes_default
5226#include <$ac_header>
5227_ACEOF
5228rm -f conftest.$ac_objext
5229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230  (eval $ac_compile) 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } &&
5237         { ac_try='test -z "$ac_c_werror_flag"
5238                         || test ! -s conftest.err'
5239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240  (eval $ac_try) 2>&5
5241  ac_status=$?
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); }; } &&
5244         { ac_try='test -s conftest.$ac_objext'
5245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246  (eval $ac_try) 2>&5
5247  ac_status=$?
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); }; }; then
5250  ac_header_compiler=yes
5251else
5252  echo "$as_me: failed program was:" >&5
5253sed 's/^/| /' conftest.$ac_ext >&5
5254
5255ac_header_compiler=no
5256fi
5257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5259echo "${ECHO_T}$ac_header_compiler" >&6
5260
5261# Is the header present?
5262echo "$as_me:$LINENO: checking $ac_header presence" >&5
5263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5264cat >conftest.$ac_ext <<_ACEOF
5265/* confdefs.h.  */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h.  */
5270#include <$ac_header>
5271_ACEOF
5272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5273  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5274  ac_status=$?
5275  grep -v '^ *+' conftest.er1 >conftest.err
5276  rm -f conftest.er1
5277  cat conftest.err >&5
5278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279  (exit $ac_status); } >/dev/null; then
5280  if test -s conftest.err; then
5281    ac_cpp_err=$ac_c_preproc_warn_flag
5282    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5283  else
5284    ac_cpp_err=
5285  fi
5286else
5287  ac_cpp_err=yes
5288fi
5289if test -z "$ac_cpp_err"; then
5290  ac_header_preproc=yes
5291else
5292  echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295  ac_header_preproc=no
5296fi
5297rm -f conftest.err conftest.$ac_ext
5298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5299echo "${ECHO_T}$ac_header_preproc" >&6
5300
5301# So?  What about this header?
5302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5303  yes:no: )
5304    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5306    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5308    ac_header_preproc=yes
5309    ;;
5310  no:yes:* )
5311    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5313    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5314echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5315    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5317    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5318echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5319    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5321    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5323    (
5324      cat <<\_ASBOX
5325## ---------------------------------------------- ##
5326## Report this to orxonox-dev at mail.datacore.ch ##
5327## ---------------------------------------------- ##
5328_ASBOX
5329    ) |
5330      sed "s/^/$as_me: WARNING:     /" >&2
5331    ;;
5332esac
5333echo "$as_me:$LINENO: checking for $ac_header" >&5
5334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5335if eval "test \"\${$as_ac_Header+set}\" = set"; then
5336  echo $ECHO_N "(cached) $ECHO_C" >&6
5337else
5338  eval "$as_ac_Header=\$ac_header_preproc"
5339fi
5340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5342
5343fi
5344if test `eval echo '${'$as_ac_Header'}'` = yes; then
5345  cat >>confdefs.h <<_ACEOF
5346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347_ACEOF
5348
5349else
5350  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5351echo "$as_me: error: cannot find openAL header." >&2;}
5352   { (exit 1); exit 1; }; }
5353fi
5354
5355done
5356
5357# checking for openAL-lib
5358  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5359echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5360if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  ac_check_lib_save_LIBS=$LIBS
5364LIBS="-lOpenAL32  $LIBS"
5365cat >conftest.$ac_ext <<_ACEOF
5366/* confdefs.h.  */
5367_ACEOF
5368cat confdefs.h >>conftest.$ac_ext
5369cat >>conftest.$ac_ext <<_ACEOF
5370/* end confdefs.h.  */
5371
5372
5373int
5374main ()
5375{
5376main ();
5377  ;
5378  return 0;
5379}
5380_ACEOF
5381rm -f conftest.$ac_objext conftest$ac_exeext
5382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383  (eval $ac_link) 2>conftest.er1
5384  ac_status=$?
5385  grep -v '^ *+' conftest.er1 >conftest.err
5386  rm -f conftest.er1
5387  cat conftest.err >&5
5388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389  (exit $ac_status); } &&
5390         { ac_try='test -z "$ac_c_werror_flag"
5391                         || test ! -s conftest.err'
5392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393  (eval $ac_try) 2>&5
5394  ac_status=$?
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); }; } &&
5397         { ac_try='test -s conftest$ac_exeext'
5398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399  (eval $ac_try) 2>&5
5400  ac_status=$?
5401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402  (exit $ac_status); }; }; then
5403  ac_cv_lib_OpenAL32_main=yes
5404else
5405  echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408ac_cv_lib_OpenAL32_main=no
5409fi
5410rm -f conftest.err conftest.$ac_objext \
5411      conftest$ac_exeext conftest.$ac_ext
5412LIBS=$ac_check_lib_save_LIBS
5413fi
5414echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5415echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5416if test $ac_cv_lib_OpenAL32_main = yes; then
5417  FOUND_openal=yes
5418fi
5419
5420  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5421echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5422if test "${ac_cv_lib_ALut_main+set}" = set; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425  ac_check_lib_save_LIBS=$LIBS
5426LIBS="-lALut  $LIBS"
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h.  */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h.  */
5433
5434
5435int
5436main ()
5437{
5438main ();
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443rm -f conftest.$ac_objext conftest$ac_exeext
5444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445  (eval $ac_link) 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } &&
5452         { ac_try='test -z "$ac_c_werror_flag"
5453                         || test ! -s conftest.err'
5454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455  (eval $ac_try) 2>&5
5456  ac_status=$?
5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); }; } &&
5459         { ac_try='test -s conftest$ac_exeext'
5460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461  (eval $ac_try) 2>&5
5462  ac_status=$?
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); }; }; then
5465  ac_cv_lib_ALut_main=yes
5466else
5467  echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470ac_cv_lib_ALut_main=no
5471fi
5472rm -f conftest.err conftest.$ac_objext \
5473      conftest$ac_exeext conftest.$ac_ext
5474LIBS=$ac_check_lib_save_LIBS
5475fi
5476echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5477echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5478if test $ac_cv_lib_ALut_main = yes; then
5479  FOUND_ALut=yes
5480fi
5481
5482     if test x$FOUND_openal = xyes ; then
5483      if test x$FOUND_ALut = xyes ; then
5484       LIBS="$LIBS -lALut -lOpenAL32"
5485     else
5486        echo "------------------"
5487        echo "openal library not found."
5488        echo "please install the openal library, which can be found at http://www.openal.org"
5489        echo "------------------"
5490        exit -1
5491      fi
5492     fi
5493    ;;
5494
5495#########
5496#-------#
5497# LINUX #
5498#-------#
5499#########
5500 *-*-linux*)
5501echo "Linux detected"
5502
5503 Linux="yes"
5504
5505CPPFLAGS="-I/usr/X11R6/include -I/usr/include"
5506LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5507# checking gl header
5508
5509for ac_header in GL/gl.h
5510do
5511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512if eval "test \"\${$as_ac_Header+set}\" = set"; then
5513  echo "$as_me:$LINENO: checking for $ac_header" >&5
5514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5515if eval "test \"\${$as_ac_Header+set}\" = set"; then
5516  echo $ECHO_N "(cached) $ECHO_C" >&6
5517fi
5518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5520else
5521  # Is the header compilable?
5522echo "$as_me:$LINENO: checking $ac_header usability" >&5
5523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5524cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h.  */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h.  */
5530$ac_includes_default
5531#include <$ac_header>
5532_ACEOF
5533rm -f conftest.$ac_objext
5534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535  (eval $ac_compile) 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); } &&
5542         { ac_try='test -z "$ac_c_werror_flag"
5543                         || test ! -s conftest.err'
5544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545  (eval $ac_try) 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); }; } &&
5549         { ac_try='test -s conftest.$ac_objext'
5550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551  (eval $ac_try) 2>&5
5552  ac_status=$?
5553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554  (exit $ac_status); }; }; then
5555  ac_header_compiler=yes
5556else
5557  echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
5560ac_header_compiler=no
5561fi
5562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5564echo "${ECHO_T}$ac_header_compiler" >&6
5565
5566# Is the header present?
5567echo "$as_me:$LINENO: checking $ac_header presence" >&5
5568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5569cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h.  */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h.  */
5575#include <$ac_header>
5576_ACEOF
5577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5578  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5579  ac_status=$?
5580  grep -v '^ *+' conftest.er1 >conftest.err
5581  rm -f conftest.er1
5582  cat conftest.err >&5
5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); } >/dev/null; then
5585  if test -s conftest.err; then
5586    ac_cpp_err=$ac_c_preproc_warn_flag
5587    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5588  else
5589    ac_cpp_err=
5590  fi
5591else
5592  ac_cpp_err=yes
5593fi
5594if test -z "$ac_cpp_err"; then
5595  ac_header_preproc=yes
5596else
5597  echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600  ac_header_preproc=no
5601fi
5602rm -f conftest.err conftest.$ac_ext
5603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5604echo "${ECHO_T}$ac_header_preproc" >&6
5605
5606# So?  What about this header?
5607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5608  yes:no: )
5609    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5613    ac_header_preproc=yes
5614    ;;
5615  no:yes:* )
5616    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5618    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5619echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5620    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5622    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5623echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5626    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5628    (
5629      cat <<\_ASBOX
5630## ---------------------------------------------- ##
5631## Report this to orxonox-dev at mail.datacore.ch ##
5632## ---------------------------------------------- ##
5633_ASBOX
5634    ) |
5635      sed "s/^/$as_me: WARNING:     /" >&2
5636    ;;
5637esac
5638echo "$as_me:$LINENO: checking for $ac_header" >&5
5639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5640if eval "test \"\${$as_ac_Header+set}\" = set"; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  eval "$as_ac_Header=\$ac_header_preproc"
5644fi
5645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5647
5648fi
5649if test `eval echo '${'$as_ac_Header'}'` = yes; then
5650  cat >>confdefs.h <<_ACEOF
5651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652_ACEOF
5653
5654else
5655  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5656echo "$as_me: error: cannot find opengl headers" >&2;}
5657   { (exit 1); exit 1; }; }
5658fi
5659
5660done
5661
5662
5663#  checking for Unix GL
5664   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5665echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5666if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669  ac_check_lib_save_LIBS=$LIBS
5670LIBS="-lGL  $LIBS"
5671cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h.  */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h.  */
5677
5678/* Override any gcc2 internal prototype to avoid an error.  */
5679#ifdef __cplusplus
5680extern "C"
5681#endif
5682/* We use char because int might match the return type of a gcc2
5683   builtin and then its argument prototype would still apply.  */
5684char glLoadIdentity ();
5685int
5686main ()
5687{
5688glLoadIdentity ();
5689  ;
5690  return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695  (eval $ac_link) 2>conftest.er1
5696  ac_status=$?
5697  grep -v '^ *+' conftest.er1 >conftest.err
5698  rm -f conftest.er1
5699  cat conftest.err >&5
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); } &&
5702         { ac_try='test -z "$ac_c_werror_flag"
5703                         || test ! -s conftest.err'
5704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705  (eval $ac_try) 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }; } &&
5709         { ac_try='test -s conftest$ac_exeext'
5710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711  (eval $ac_try) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }; }; then
5715  ac_cv_lib_GL_glLoadIdentity=yes
5716else
5717  echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720ac_cv_lib_GL_glLoadIdentity=no
5721fi
5722rm -f conftest.err conftest.$ac_objext \
5723      conftest$ac_exeext conftest.$ac_ext
5724LIBS=$ac_check_lib_save_LIBS
5725fi
5726echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5727echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5728if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5729  FOUND_GL=yes
5730fi
5731
5732   if test x$FOUND_GL = xyes ; then
5733     LIBS="$LIBS -lGL"
5734   else
5735         echo "------------------"
5736         echo "opengl not found."
5737         echo "please install the opengl package which can be found at http://www.opengl.org"
5738         echo "------------------"
5739         exit -1
5740   fi
5741
5742# cheking for GLU-header
5743
5744for ac_header in GL/glu.h
5745do
5746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5747if eval "test \"\${$as_ac_Header+set}\" = set"; then
5748  echo "$as_me:$LINENO: checking for $ac_header" >&5
5749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5750if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751  echo $ECHO_N "(cached) $ECHO_C" >&6
5752fi
5753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5755else
5756  # Is the header compilable?
5757echo "$as_me:$LINENO: checking $ac_header usability" >&5
5758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h.  */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h.  */
5765$ac_includes_default
5766#include <$ac_header>
5767_ACEOF
5768rm -f conftest.$ac_objext
5769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770  (eval $ac_compile) 2>conftest.er1
5771  ac_status=$?
5772  grep -v '^ *+' conftest.er1 >conftest.err
5773  rm -f conftest.er1
5774  cat conftest.err >&5
5775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776  (exit $ac_status); } &&
5777         { ac_try='test -z "$ac_c_werror_flag"
5778                         || test ! -s conftest.err'
5779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780  (eval $ac_try) 2>&5
5781  ac_status=$?
5782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783  (exit $ac_status); }; } &&
5784         { ac_try='test -s conftest.$ac_objext'
5785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786  (eval $ac_try) 2>&5
5787  ac_status=$?
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); }; }; then
5790  ac_header_compiler=yes
5791else
5792  echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795ac_header_compiler=no
5796fi
5797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5799echo "${ECHO_T}$ac_header_compiler" >&6
5800
5801# Is the header present?
5802echo "$as_me:$LINENO: checking $ac_header presence" >&5
5803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5804cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h.  */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h.  */
5810#include <$ac_header>
5811_ACEOF
5812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5814  ac_status=$?
5815  grep -v '^ *+' conftest.er1 >conftest.err
5816  rm -f conftest.er1
5817  cat conftest.err >&5
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); } >/dev/null; then
5820  if test -s conftest.err; then
5821    ac_cpp_err=$ac_c_preproc_warn_flag
5822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5823  else
5824    ac_cpp_err=
5825  fi
5826else
5827  ac_cpp_err=yes
5828fi
5829if test -z "$ac_cpp_err"; then
5830  ac_header_preproc=yes
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835  ac_header_preproc=no
5836fi
5837rm -f conftest.err conftest.$ac_ext
5838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5839echo "${ECHO_T}$ac_header_preproc" >&6
5840
5841# So?  What about this header?
5842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5843  yes:no: )
5844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5848    ac_header_preproc=yes
5849    ;;
5850  no:yes:* )
5851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5863    (
5864      cat <<\_ASBOX
5865## ---------------------------------------------- ##
5866## Report this to orxonox-dev at mail.datacore.ch ##
5867## ---------------------------------------------- ##
5868_ASBOX
5869    ) |
5870      sed "s/^/$as_me: WARNING:     /" >&2
5871    ;;
5872esac
5873echo "$as_me:$LINENO: checking for $ac_header" >&5
5874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5875if eval "test \"\${$as_ac_Header+set}\" = set"; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  eval "$as_ac_Header=\$ac_header_preproc"
5879fi
5880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5882
5883fi
5884if test `eval echo '${'$as_ac_Header'}'` = yes; then
5885  cat >>confdefs.h <<_ACEOF
5886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887_ACEOF
5888
5889else
5890  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5891echo "$as_me: error: cannot find opengl headers" >&2;}
5892   { (exit 1); exit 1; }; }
5893fi
5894
5895done
5896
5897
5898    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5899echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5900if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  ac_check_lib_save_LIBS=$LIBS
5904LIBS="-lGLU  $LIBS"
5905cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911
5912/* Override any gcc2 internal prototype to avoid an error.  */
5913#ifdef __cplusplus
5914extern "C"
5915#endif
5916/* We use char because int might match the return type of a gcc2
5917   builtin and then its argument prototype would still apply.  */
5918char gluProject ();
5919int
5920main ()
5921{
5922gluProject ();
5923  ;
5924  return 0;
5925}
5926_ACEOF
5927rm -f conftest.$ac_objext conftest$ac_exeext
5928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929  (eval $ac_link) 2>conftest.er1
5930  ac_status=$?
5931  grep -v '^ *+' conftest.er1 >conftest.err
5932  rm -f conftest.er1
5933  cat conftest.err >&5
5934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935  (exit $ac_status); } &&
5936         { ac_try='test -z "$ac_c_werror_flag"
5937                         || test ! -s conftest.err'
5938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939  (eval $ac_try) 2>&5
5940  ac_status=$?
5941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942  (exit $ac_status); }; } &&
5943         { ac_try='test -s conftest$ac_exeext'
5944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945  (eval $ac_try) 2>&5
5946  ac_status=$?
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); }; }; then
5949  ac_cv_lib_GLU_gluProject=yes
5950else
5951  echo "$as_me: failed program was:" >&5
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
5954ac_cv_lib_GLU_gluProject=no
5955fi
5956rm -f conftest.err conftest.$ac_objext \
5957      conftest$ac_exeext conftest.$ac_ext
5958LIBS=$ac_check_lib_save_LIBS
5959fi
5960echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5961echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5962if test $ac_cv_lib_GLU_gluProject = yes; then
5963  FOUND_GLU=yes
5964fi
5965
5966    if test x$FOUND_GLU = xyes ; then
5967      LIBS="$LIBS -lGLU"
5968    else
5969         echo "------------------"
5970         echo "GLU library not found."
5971         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5972         echo "------------------"
5973         exit -1
5974    fi
5975
5976#--------#
5977# openAL #
5978#--------#
5979# checking for openAL-headers
5980
5981for ac_header in AL/al.h
5982do
5983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5984if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985  echo "$as_me:$LINENO: checking for $ac_header" >&5
5986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5987if eval "test \"\${$as_ac_Header+set}\" = set"; then
5988  echo $ECHO_N "(cached) $ECHO_C" >&6
5989fi
5990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5992else
5993  # Is the header compilable?
5994echo "$as_me:$LINENO: checking $ac_header usability" >&5
5995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h.  */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h.  */
6002$ac_includes_default
6003#include <$ac_header>
6004_ACEOF
6005rm -f conftest.$ac_objext
6006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6007  (eval $ac_compile) 2>conftest.er1
6008  ac_status=$?
6009  grep -v '^ *+' conftest.er1 >conftest.err
6010  rm -f conftest.er1
6011  cat conftest.err >&5
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); } &&
6014         { ac_try='test -z "$ac_c_werror_flag"
6015                         || test ! -s conftest.err'
6016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017  (eval $ac_try) 2>&5
6018  ac_status=$?
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); }; } &&
6021         { ac_try='test -s conftest.$ac_objext'
6022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023  (eval $ac_try) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); }; }; then
6027  ac_header_compiler=yes
6028else
6029  echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032ac_header_compiler=no
6033fi
6034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6036echo "${ECHO_T}$ac_header_compiler" >&6
6037
6038# Is the header present?
6039echo "$as_me:$LINENO: checking $ac_header presence" >&5
6040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6041cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h.  */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h.  */
6047#include <$ac_header>
6048_ACEOF
6049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051  ac_status=$?
6052  grep -v '^ *+' conftest.er1 >conftest.err
6053  rm -f conftest.er1
6054  cat conftest.err >&5
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); } >/dev/null; then
6057  if test -s conftest.err; then
6058    ac_cpp_err=$ac_c_preproc_warn_flag
6059    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6060  else
6061    ac_cpp_err=
6062  fi
6063else
6064  ac_cpp_err=yes
6065fi
6066if test -z "$ac_cpp_err"; then
6067  ac_header_preproc=yes
6068else
6069  echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072  ac_header_preproc=no
6073fi
6074rm -f conftest.err conftest.$ac_ext
6075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6076echo "${ECHO_T}$ac_header_preproc" >&6
6077
6078# So?  What about this header?
6079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6080  yes:no: )
6081    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6083    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6085    ac_header_preproc=yes
6086    ;;
6087  no:yes:* )
6088    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6090    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6091echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6092    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6094    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6095echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6096    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6098    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6100    (
6101      cat <<\_ASBOX
6102## ---------------------------------------------- ##
6103## Report this to orxonox-dev at mail.datacore.ch ##
6104## ---------------------------------------------- ##
6105_ASBOX
6106    ) |
6107      sed "s/^/$as_me: WARNING:     /" >&2
6108    ;;
6109esac
6110echo "$as_me:$LINENO: checking for $ac_header" >&5
6111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113  echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115  eval "$as_ac_Header=\$ac_header_preproc"
6116fi
6117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6119
6120fi
6121if test `eval echo '${'$as_ac_Header'}'` = yes; then
6122  cat >>confdefs.h <<_ACEOF
6123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6124_ACEOF
6125
6126else
6127  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6128echo "$as_me: error: cannot find openAL header." >&2;}
6129   { (exit 1); exit 1; }; }
6130fi
6131
6132done
6133
6134# checking for openAL-lib
6135  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6136echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6137if test "${ac_cv_lib_openal_main+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  ac_check_lib_save_LIBS=$LIBS
6141LIBS="-lopenal  $LIBS"
6142cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h.  */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h.  */
6148
6149
6150int
6151main ()
6152{
6153main ();
6154  ;
6155  return 0;
6156}
6157_ACEOF
6158rm -f conftest.$ac_objext conftest$ac_exeext
6159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160  (eval $ac_link) 2>conftest.er1
6161  ac_status=$?
6162  grep -v '^ *+' conftest.er1 >conftest.err
6163  rm -f conftest.er1
6164  cat conftest.err >&5
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); } &&
6167         { ac_try='test -z "$ac_c_werror_flag"
6168                         || test ! -s conftest.err'
6169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170  (eval $ac_try) 2>&5
6171  ac_status=$?
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); }; } &&
6174         { ac_try='test -s conftest$ac_exeext'
6175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176  (eval $ac_try) 2>&5
6177  ac_status=$?
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); }; }; then
6180  ac_cv_lib_openal_main=yes
6181else
6182  echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185ac_cv_lib_openal_main=no
6186fi
6187rm -f conftest.err conftest.$ac_objext \
6188      conftest$ac_exeext conftest.$ac_ext
6189LIBS=$ac_check_lib_save_LIBS
6190fi
6191echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6192echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6193if test $ac_cv_lib_openal_main = yes; then
6194  FOUND_openal=yes
6195fi
6196
6197     if test x$FOUND_openal = xyes ; then
6198       LIBS="$LIBS -lopenal"
6199     else
6200        echo "------------------"
6201        echo "openal library not found."
6202        echo "please install the openal library, which can be found at http://www.openal.org"
6203        echo "------------------"
6204        exit -1
6205     fi
6206
6207# checking for SDL
6208  echo "$as_me:$LINENO: checking for SDL-version" >&5
6209echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6210  SDL_VERSION=`sdl-config --version`
6211  echo $SDL_VERSION
6212
6213   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
6214
6215for ac_header in SDL.h
6216do
6217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219  echo "$as_me:$LINENO: checking for $ac_header" >&5
6220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6221if eval "test \"\${$as_ac_Header+set}\" = set"; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223fi
6224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6226else
6227  # Is the header compilable?
6228echo "$as_me:$LINENO: checking $ac_header usability" >&5
6229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6230cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h.  */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
6235/* end confdefs.h.  */
6236$ac_includes_default
6237#include <$ac_header>
6238_ACEOF
6239rm -f conftest.$ac_objext
6240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241  (eval $ac_compile) 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); } &&
6248         { ac_try='test -z "$ac_c_werror_flag"
6249                         || test ! -s conftest.err'
6250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251  (eval $ac_try) 2>&5
6252  ac_status=$?
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); }; } &&
6255         { ac_try='test -s conftest.$ac_objext'
6256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257  (eval $ac_try) 2>&5
6258  ac_status=$?
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); }; }; then
6261  ac_header_compiler=yes
6262else
6263  echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
6266ac_header_compiler=no
6267fi
6268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6270echo "${ECHO_T}$ac_header_compiler" >&6
6271
6272# Is the header present?
6273echo "$as_me:$LINENO: checking $ac_header presence" >&5
6274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6275cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h.  */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h.  */
6281#include <$ac_header>
6282_ACEOF
6283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } >/dev/null; then
6291  if test -s conftest.err; then
6292    ac_cpp_err=$ac_c_preproc_warn_flag
6293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294  else
6295    ac_cpp_err=
6296  fi
6297else
6298  ac_cpp_err=yes
6299fi
6300if test -z "$ac_cpp_err"; then
6301  ac_header_preproc=yes
6302else
6303  echo "$as_me: failed program was:" >&5
6304sed 's/^/| /' conftest.$ac_ext >&5
6305
6306  ac_header_preproc=no
6307fi
6308rm -f conftest.err conftest.$ac_ext
6309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6310echo "${ECHO_T}$ac_header_preproc" >&6
6311
6312# So?  What about this header?
6313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6314  yes:no: )
6315    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6319    ac_header_preproc=yes
6320    ;;
6321  no:yes:* )
6322    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6324    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6325echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6326    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6328    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6329echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6330    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6332    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6334    (
6335      cat <<\_ASBOX
6336## ---------------------------------------------- ##
6337## Report this to orxonox-dev at mail.datacore.ch ##
6338## ---------------------------------------------- ##
6339_ASBOX
6340    ) |
6341      sed "s/^/$as_me: WARNING:     /" >&2
6342    ;;
6343esac
6344echo "$as_me:$LINENO: checking for $ac_header" >&5
6345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6346if eval "test \"\${$as_ac_Header+set}\" = set"; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  eval "$as_ac_Header=\$ac_header_preproc"
6350fi
6351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6353
6354fi
6355if test `eval echo '${'$as_ac_Header'}'` = yes; then
6356  cat >>confdefs.h <<_ACEOF
6357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358_ACEOF
6359
6360else
6361
6362for ac_header in SDL/SDL.h
6363do
6364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366  echo "$as_me:$LINENO: checking for $ac_header" >&5
6367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6373else
6374  # Is the header compilable?
6375echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h.  */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h.  */
6383$ac_includes_default
6384#include <$ac_header>
6385_ACEOF
6386rm -f conftest.$ac_objext
6387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388  (eval $ac_compile) 2>conftest.er1
6389  ac_status=$?
6390  grep -v '^ *+' conftest.er1 >conftest.err
6391  rm -f conftest.er1
6392  cat conftest.err >&5
6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394  (exit $ac_status); } &&
6395         { ac_try='test -z "$ac_c_werror_flag"
6396                         || test ! -s conftest.err'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; } &&
6402         { ac_try='test -s conftest.$ac_objext'
6403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404  (eval $ac_try) 2>&5
6405  ac_status=$?
6406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407  (exit $ac_status); }; }; then
6408  ac_header_compiler=yes
6409else
6410  echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413ac_header_compiler=no
6414fi
6415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417echo "${ECHO_T}$ac_header_compiler" >&6
6418
6419# Is the header present?
6420echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h.  */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h.  */
6428#include <$ac_header>
6429_ACEOF
6430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432  ac_status=$?
6433  grep -v '^ *+' conftest.er1 >conftest.err
6434  rm -f conftest.er1
6435  cat conftest.err >&5
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); } >/dev/null; then
6438  if test -s conftest.err; then
6439    ac_cpp_err=$ac_c_preproc_warn_flag
6440    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6441  else
6442    ac_cpp_err=
6443  fi
6444else
6445  ac_cpp_err=yes
6446fi
6447if test -z "$ac_cpp_err"; then
6448  ac_header_preproc=yes
6449else
6450  echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453  ac_header_preproc=no
6454fi
6455rm -f conftest.err conftest.$ac_ext
6456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457echo "${ECHO_T}$ac_header_preproc" >&6
6458
6459# So?  What about this header?
6460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461  yes:no: )
6462    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466    ac_header_preproc=yes
6467    ;;
6468  no:yes:* )
6469    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6472echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6473    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6476echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6477    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6481    (
6482      cat <<\_ASBOX
6483## ---------------------------------------------- ##
6484## Report this to orxonox-dev at mail.datacore.ch ##
6485## ---------------------------------------------- ##
6486_ASBOX
6487    ) |
6488      sed "s/^/$as_me: WARNING:     /" >&2
6489    ;;
6490esac
6491echo "$as_me:$LINENO: checking for $ac_header" >&5
6492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494  echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496  eval "$as_ac_Header=\$ac_header_preproc"
6497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
6501fi
6502if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503  cat >>confdefs.h <<_ACEOF
6504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505_ACEOF
6506
6507else
6508  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6509echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6510   { (exit 1); exit 1; }; }
6511fi
6512
6513done
6514
6515fi
6516
6517done
6518
6519
6520   LIBS="`sdl-config --libs` $LIBS"
6521    ;;
6522
6523#############
6524#-----------#
6525# MAC -OS X #
6526#-----------#
6527#############
6528 *darwin*)
6529 echo "OS X detected"
6530
6531 osX="yes"
6532
6533 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
6534# checking gl header
6535
6536for ac_header in OpenGL/gl.h
6537do
6538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539if eval "test \"\${$as_ac_Header+set}\" = set"; then
6540  echo "$as_me:$LINENO: checking for $ac_header" >&5
6541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6542if eval "test \"\${$as_ac_Header+set}\" = set"; then
6543  echo $ECHO_N "(cached) $ECHO_C" >&6
6544fi
6545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547else
6548  # Is the header compilable?
6549echo "$as_me:$LINENO: checking $ac_header usability" >&5
6550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6551cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h.  */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h.  */
6557$ac_includes_default
6558#include <$ac_header>
6559_ACEOF
6560rm -f conftest.$ac_objext
6561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562  (eval $ac_compile) 2>conftest.er1
6563  ac_status=$?
6564  grep -v '^ *+' conftest.er1 >conftest.err
6565  rm -f conftest.er1
6566  cat conftest.err >&5
6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); } &&
6569         { ac_try='test -z "$ac_c_werror_flag"
6570                         || test ! -s conftest.err'
6571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572  (eval $ac_try) 2>&5
6573  ac_status=$?
6574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575  (exit $ac_status); }; } &&
6576         { ac_try='test -s conftest.$ac_objext'
6577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578  (eval $ac_try) 2>&5
6579  ac_status=$?
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); }; }; then
6582  ac_header_compiler=yes
6583else
6584  echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587ac_header_compiler=no
6588fi
6589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6590echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6591echo "${ECHO_T}$ac_header_compiler" >&6
6592
6593# Is the header present?
6594echo "$as_me:$LINENO: checking $ac_header presence" >&5
6595echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6596cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h.  */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h.  */
6602#include <$ac_header>
6603_ACEOF
6604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6605  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6606  ac_status=$?
6607  grep -v '^ *+' conftest.er1 >conftest.err
6608  rm -f conftest.er1
6609  cat conftest.err >&5
6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611  (exit $ac_status); } >/dev/null; then
6612  if test -s conftest.err; then
6613    ac_cpp_err=$ac_c_preproc_warn_flag
6614    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6615  else
6616    ac_cpp_err=
6617  fi
6618else
6619  ac_cpp_err=yes
6620fi
6621if test -z "$ac_cpp_err"; then
6622  ac_header_preproc=yes
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627  ac_header_preproc=no
6628fi
6629rm -f conftest.err conftest.$ac_ext
6630echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6631echo "${ECHO_T}$ac_header_preproc" >&6
6632
6633# So?  What about this header?
6634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6635  yes:no: )
6636    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6637echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6638    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6639echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6640    ac_header_preproc=yes
6641    ;;
6642  no:yes:* )
6643    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6645    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6646echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6647    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6648echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6649    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6650echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6653    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6654echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6655    (
6656      cat <<\_ASBOX
6657## ---------------------------------------------- ##
6658## Report this to orxonox-dev at mail.datacore.ch ##
6659## ---------------------------------------------- ##
6660_ASBOX
6661    ) |
6662      sed "s/^/$as_me: WARNING:     /" >&2
6663    ;;
6664esac
6665echo "$as_me:$LINENO: checking for $ac_header" >&5
6666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6667if eval "test \"\${$as_ac_Header+set}\" = set"; then
6668  echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670  eval "$as_ac_Header=\$ac_header_preproc"
6671fi
6672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6674
6675fi
6676if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677  cat >>confdefs.h <<_ACEOF
6678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6679_ACEOF
6680
6681else
6682  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6683echo "$as_me: error: cannot find opengl headers" >&2;}
6684   { (exit 1); exit 1; }; }
6685fi
6686
6687done
6688
6689# cheking for GLU-header
6690
6691for ac_header in OpenGL/glu.h
6692do
6693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694if eval "test \"\${$as_ac_Header+set}\" = set"; then
6695  echo "$as_me:$LINENO: checking for $ac_header" >&5
6696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699fi
6700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6702else
6703  # Is the header compilable?
6704echo "$as_me:$LINENO: checking $ac_header usability" >&5
6705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6706cat >conftest.$ac_ext <<_ACEOF
6707/* confdefs.h.  */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h.  */
6712$ac_includes_default
6713#include <$ac_header>
6714_ACEOF
6715rm -f conftest.$ac_objext
6716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717  (eval $ac_compile) 2>conftest.er1
6718  ac_status=$?
6719  grep -v '^ *+' conftest.er1 >conftest.err
6720  rm -f conftest.er1
6721  cat conftest.err >&5
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); } &&
6724         { ac_try='test -z "$ac_c_werror_flag"
6725                         || test ! -s conftest.err'
6726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727  (eval $ac_try) 2>&5
6728  ac_status=$?
6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); }; } &&
6731         { ac_try='test -s conftest.$ac_objext'
6732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733  (eval $ac_try) 2>&5
6734  ac_status=$?
6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); }; }; then
6737  ac_header_compiler=yes
6738else
6739  echo "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742ac_header_compiler=no
6743fi
6744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6746echo "${ECHO_T}$ac_header_compiler" >&6
6747
6748# Is the header present?
6749echo "$as_me:$LINENO: checking $ac_header presence" >&5
6750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6751cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h.  */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h.  */
6757#include <$ac_header>
6758_ACEOF
6759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6761  ac_status=$?
6762  grep -v '^ *+' conftest.er1 >conftest.err
6763  rm -f conftest.er1
6764  cat conftest.err >&5
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); } >/dev/null; then
6767  if test -s conftest.err; then
6768    ac_cpp_err=$ac_c_preproc_warn_flag
6769    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6770  else
6771    ac_cpp_err=
6772  fi
6773else
6774  ac_cpp_err=yes
6775fi
6776if test -z "$ac_cpp_err"; then
6777  ac_header_preproc=yes
6778else
6779  echo "$as_me: failed program was:" >&5
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782  ac_header_preproc=no
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6786echo "${ECHO_T}$ac_header_preproc" >&6
6787
6788# So?  What about this header?
6789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6790  yes:no: )
6791    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6795    ac_header_preproc=yes
6796    ;;
6797  no:yes:* )
6798    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6800    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6801echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6802    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6804    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6805echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6808    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6810    (
6811      cat <<\_ASBOX
6812## ---------------------------------------------- ##
6813## Report this to orxonox-dev at mail.datacore.ch ##
6814## ---------------------------------------------- ##
6815_ASBOX
6816    ) |
6817      sed "s/^/$as_me: WARNING:     /" >&2
6818    ;;
6819esac
6820echo "$as_me:$LINENO: checking for $ac_header" >&5
6821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6822if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823  echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825  eval "$as_ac_Header=\$ac_header_preproc"
6826fi
6827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6829
6830fi
6831if test `eval echo '${'$as_ac_Header'}'` = yes; then
6832  cat >>confdefs.h <<_ACEOF
6833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6834_ACEOF
6835
6836else
6837  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6838echo "$as_me: error: cannot find opengl headers" >&2;}
6839   { (exit 1); exit 1; }; }
6840fi
6841
6842done
6843
6844
6845   LIBS="$LIBS -framework OpenGL"
6846
6847
6848## SDL-check
6849       SDL_CFLAGS=`sdl-config --cflags`
6850       SDL_LIBS=`sdl-config --libs`
6851       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6852       LIBS="$LIBS $SDL_LIBS"
6853
6854
6855# checking for SDL-headers
6856#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6857#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6858
6859## checking for SDL
6860#    SDL_VERSION=1.2.7
6861#    AM_PATH_SDL($SDL_VERSION,
6862#      :,
6863#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6864#      )
6865
6866
6867    ;;
6868
6869  *)
6870    ;;
6871esac
6872
6873
6874
6875###################################
6876## CHECKING FOR HEADERS AND LIBS ##
6877###################################
6878
6879#---------#
6880# SDL_ttf #
6881#---------#
6882# checking for SDL_ttf-headers
6883
6884for ac_header in SDL_ttf.h
6885do
6886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887if eval "test \"\${$as_ac_Header+set}\" = set"; then
6888  echo "$as_me:$LINENO: checking for $ac_header" >&5
6889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6890if eval "test \"\${$as_ac_Header+set}\" = set"; then
6891  echo $ECHO_N "(cached) $ECHO_C" >&6
6892fi
6893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895else
6896  # Is the header compilable?
6897echo "$as_me:$LINENO: checking $ac_header usability" >&5
6898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6899cat >conftest.$ac_ext <<_ACEOF
6900/* confdefs.h.  */
6901_ACEOF
6902cat confdefs.h >>conftest.$ac_ext
6903cat >>conftest.$ac_ext <<_ACEOF
6904/* end confdefs.h.  */
6905$ac_includes_default
6906#include <$ac_header>
6907_ACEOF
6908rm -f conftest.$ac_objext
6909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910  (eval $ac_compile) 2>conftest.er1
6911  ac_status=$?
6912  grep -v '^ *+' conftest.er1 >conftest.err
6913  rm -f conftest.er1
6914  cat conftest.err >&5
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); } &&
6917         { ac_try='test -z "$ac_c_werror_flag"
6918                         || test ! -s conftest.err'
6919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920  (eval $ac_try) 2>&5
6921  ac_status=$?
6922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923  (exit $ac_status); }; } &&
6924         { ac_try='test -s conftest.$ac_objext'
6925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926  (eval $ac_try) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); }; }; then
6930  ac_header_compiler=yes
6931else
6932  echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935ac_header_compiler=no
6936fi
6937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6939echo "${ECHO_T}$ac_header_compiler" >&6
6940
6941# Is the header present?
6942echo "$as_me:$LINENO: checking $ac_header presence" >&5
6943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6944cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h.  */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h.  */
6950#include <$ac_header>
6951_ACEOF
6952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6954  ac_status=$?
6955  grep -v '^ *+' conftest.er1 >conftest.err
6956  rm -f conftest.er1
6957  cat conftest.err >&5
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); } >/dev/null; then
6960  if test -s conftest.err; then
6961    ac_cpp_err=$ac_c_preproc_warn_flag
6962    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6963  else
6964    ac_cpp_err=
6965  fi
6966else
6967  ac_cpp_err=yes
6968fi
6969if test -z "$ac_cpp_err"; then
6970  ac_header_preproc=yes
6971else
6972  echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975  ac_header_preproc=no
6976fi
6977rm -f conftest.err conftest.$ac_ext
6978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6979echo "${ECHO_T}$ac_header_preproc" >&6
6980
6981# So?  What about this header?
6982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6983  yes:no: )
6984    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6988    ac_header_preproc=yes
6989    ;;
6990  no:yes:* )
6991    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6993    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6994echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6995    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6997    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6998echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7001    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7003    (
7004      cat <<\_ASBOX
7005## ---------------------------------------------- ##
7006## Report this to orxonox-dev at mail.datacore.ch ##
7007## ---------------------------------------------- ##
7008_ASBOX
7009    ) |
7010      sed "s/^/$as_me: WARNING:     /" >&2
7011    ;;
7012esac
7013echo "$as_me:$LINENO: checking for $ac_header" >&5
7014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016  echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018  eval "$as_ac_Header=\$ac_header_preproc"
7019fi
7020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022
7023fi
7024if test `eval echo '${'$as_ac_Header'}'` = yes; then
7025  cat >>confdefs.h <<_ACEOF
7026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027_ACEOF
7028
7029else
7030
7031for ac_header in SDL/SDL_ttf.h
7032do
7033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7034if eval "test \"\${$as_ac_Header+set}\" = set"; then
7035  echo "$as_me:$LINENO: checking for $ac_header" >&5
7036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7037if eval "test \"\${$as_ac_Header+set}\" = set"; then
7038  echo $ECHO_N "(cached) $ECHO_C" >&6
7039fi
7040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7042else
7043  # Is the header compilable?
7044echo "$as_me:$LINENO: checking $ac_header usability" >&5
7045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7046cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h.  */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h.  */
7052$ac_includes_default
7053#include <$ac_header>
7054_ACEOF
7055rm -f conftest.$ac_objext
7056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057  (eval $ac_compile) 2>conftest.er1
7058  ac_status=$?
7059  grep -v '^ *+' conftest.er1 >conftest.err
7060  rm -f conftest.er1
7061  cat conftest.err >&5
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); } &&
7064         { ac_try='test -z "$ac_c_werror_flag"
7065                         || test ! -s conftest.err'
7066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067  (eval $ac_try) 2>&5
7068  ac_status=$?
7069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070  (exit $ac_status); }; } &&
7071         { ac_try='test -s conftest.$ac_objext'
7072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073  (eval $ac_try) 2>&5
7074  ac_status=$?
7075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076  (exit $ac_status); }; }; then
7077  ac_header_compiler=yes
7078else
7079  echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
7082ac_header_compiler=no
7083fi
7084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7086echo "${ECHO_T}$ac_header_compiler" >&6
7087
7088# Is the header present?
7089echo "$as_me:$LINENO: checking $ac_header presence" >&5
7090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7091cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h.  */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h.  */
7097#include <$ac_header>
7098_ACEOF
7099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7101  ac_status=$?
7102  grep -v '^ *+' conftest.er1 >conftest.err
7103  rm -f conftest.er1
7104  cat conftest.err >&5
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); } >/dev/null; then
7107  if test -s conftest.err; then
7108    ac_cpp_err=$ac_c_preproc_warn_flag
7109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7110  else
7111    ac_cpp_err=
7112  fi
7113else
7114  ac_cpp_err=yes
7115fi
7116if test -z "$ac_cpp_err"; then
7117  ac_header_preproc=yes
7118else
7119  echo "$as_me: failed program was:" >&5
7120sed 's/^/| /' conftest.$ac_ext >&5
7121
7122  ac_header_preproc=no
7123fi
7124rm -f conftest.err conftest.$ac_ext
7125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7126echo "${ECHO_T}$ac_header_preproc" >&6
7127
7128# So?  What about this header?
7129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7130  yes:no: )
7131    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7135    ac_header_preproc=yes
7136    ;;
7137  no:yes:* )
7138    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7140    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7141echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7142    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7144    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7145echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7148    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7150    (
7151      cat <<\_ASBOX
7152## ---------------------------------------------- ##
7153## Report this to orxonox-dev at mail.datacore.ch ##
7154## ---------------------------------------------- ##
7155_ASBOX
7156    ) |
7157      sed "s/^/$as_me: WARNING:     /" >&2
7158    ;;
7159esac
7160echo "$as_me:$LINENO: checking for $ac_header" >&5
7161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7162if eval "test \"\${$as_ac_Header+set}\" = set"; then
7163  echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165  eval "$as_ac_Header=\$ac_header_preproc"
7166fi
7167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7169
7170fi
7171if test `eval echo '${'$as_ac_Header'}'` = yes; then
7172  cat >>confdefs.h <<_ACEOF
7173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174_ACEOF
7175
7176else
7177  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7178echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7179   { (exit 1); exit 1; }; }
7180fi
7181
7182done
7183
7184fi
7185
7186done
7187
7188# checking for SDL_ttf-lib
7189  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7190echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7191if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194  ac_check_lib_save_LIBS=$LIBS
7195LIBS="-lSDL_ttf  $LIBS"
7196cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h.  */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h.  */
7202
7203/* Override any gcc2 internal prototype to avoid an error.  */
7204#ifdef __cplusplus
7205extern "C"
7206#endif
7207/* We use char because int might match the return type of a gcc2
7208   builtin and then its argument prototype would still apply.  */
7209char TTF_OpenFont ();
7210int
7211main ()
7212{
7213TTF_OpenFont ();
7214  ;
7215  return 0;
7216}
7217_ACEOF
7218rm -f conftest.$ac_objext conftest$ac_exeext
7219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220  (eval $ac_link) 2>conftest.er1
7221  ac_status=$?
7222  grep -v '^ *+' conftest.er1 >conftest.err
7223  rm -f conftest.er1
7224  cat conftest.err >&5
7225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226  (exit $ac_status); } &&
7227         { ac_try='test -z "$ac_c_werror_flag"
7228                         || test ! -s conftest.err'
7229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230  (eval $ac_try) 2>&5
7231  ac_status=$?
7232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233  (exit $ac_status); }; } &&
7234         { ac_try='test -s conftest$ac_exeext'
7235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236  (eval $ac_try) 2>&5
7237  ac_status=$?
7238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239  (exit $ac_status); }; }; then
7240  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7241else
7242  echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
7245ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7246fi
7247rm -f conftest.err conftest.$ac_objext \
7248      conftest$ac_exeext conftest.$ac_ext
7249LIBS=$ac_check_lib_save_LIBS
7250fi
7251echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7252echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7253if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7254  FOUND_SDL_ttf=yes
7255fi
7256
7257     if test x$FOUND_SDL_ttf = xyes ; then
7258       LIBS="$LIBS -lSDL_ttf"
7259     else
7260        echo "------------------"
7261        echo "SDL_ttf library not found."
7262        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7263        echo "------------------"
7264        exit -1
7265     fi
7266
7267
7268#-----------#
7269# SDL_Image #
7270#-----------#
7271# checking for SDL_image-headers
7272
7273for ac_header in SDL_image.h
7274do
7275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7276if eval "test \"\${$as_ac_Header+set}\" = set"; then
7277  echo "$as_me:$LINENO: checking for $ac_header" >&5
7278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7279if eval "test \"\${$as_ac_Header+set}\" = set"; then
7280  echo $ECHO_N "(cached) $ECHO_C" >&6
7281fi
7282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7284else
7285  # Is the header compilable?
7286echo "$as_me:$LINENO: checking $ac_header usability" >&5
7287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7288cat >conftest.$ac_ext <<_ACEOF
7289/* confdefs.h.  */
7290_ACEOF
7291cat confdefs.h >>conftest.$ac_ext
7292cat >>conftest.$ac_ext <<_ACEOF
7293/* end confdefs.h.  */
7294$ac_includes_default
7295#include <$ac_header>
7296_ACEOF
7297rm -f conftest.$ac_objext
7298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7299  (eval $ac_compile) 2>conftest.er1
7300  ac_status=$?
7301  grep -v '^ *+' conftest.er1 >conftest.err
7302  rm -f conftest.er1
7303  cat conftest.err >&5
7304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305  (exit $ac_status); } &&
7306         { ac_try='test -z "$ac_c_werror_flag"
7307                         || test ! -s conftest.err'
7308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309  (eval $ac_try) 2>&5
7310  ac_status=$?
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); }; } &&
7313         { ac_try='test -s conftest.$ac_objext'
7314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315  (eval $ac_try) 2>&5
7316  ac_status=$?
7317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318  (exit $ac_status); }; }; then
7319  ac_header_compiler=yes
7320else
7321  echo "$as_me: failed program was:" >&5
7322sed 's/^/| /' conftest.$ac_ext >&5
7323
7324ac_header_compiler=no
7325fi
7326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7328echo "${ECHO_T}$ac_header_compiler" >&6
7329
7330# Is the header present?
7331echo "$as_me:$LINENO: checking $ac_header presence" >&5
7332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7333cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h.  */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h.  */
7339#include <$ac_header>
7340_ACEOF
7341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7342  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7343  ac_status=$?
7344  grep -v '^ *+' conftest.er1 >conftest.err
7345  rm -f conftest.er1
7346  cat conftest.err >&5
7347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348  (exit $ac_status); } >/dev/null; then
7349  if test -s conftest.err; then
7350    ac_cpp_err=$ac_c_preproc_warn_flag
7351    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7352  else
7353    ac_cpp_err=
7354  fi
7355else
7356  ac_cpp_err=yes
7357fi
7358if test -z "$ac_cpp_err"; then
7359  ac_header_preproc=yes
7360else
7361  echo "$as_me: failed program was:" >&5
7362sed 's/^/| /' conftest.$ac_ext >&5
7363
7364  ac_header_preproc=no
7365fi
7366rm -f conftest.err conftest.$ac_ext
7367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7368echo "${ECHO_T}$ac_header_preproc" >&6
7369
7370# So?  What about this header?
7371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7372  yes:no: )
7373    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7375    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7377    ac_header_preproc=yes
7378    ;;
7379  no:yes:* )
7380    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7382    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7383echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7384    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7386    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7387echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7388    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7390    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7392    (
7393      cat <<\_ASBOX
7394## ---------------------------------------------- ##
7395## Report this to orxonox-dev at mail.datacore.ch ##
7396## ---------------------------------------------- ##
7397_ASBOX
7398    ) |
7399      sed "s/^/$as_me: WARNING:     /" >&2
7400    ;;
7401esac
7402echo "$as_me:$LINENO: checking for $ac_header" >&5
7403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7404if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405  echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407  eval "$as_ac_Header=\$ac_header_preproc"
7408fi
7409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411
7412fi
7413if test `eval echo '${'$as_ac_Header'}'` = yes; then
7414  cat >>confdefs.h <<_ACEOF
7415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7416_ACEOF
7417
7418else
7419
7420for ac_header in SDL/SDL_image.h
7421do
7422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7423if eval "test \"\${$as_ac_Header+set}\" = set"; then
7424  echo "$as_me:$LINENO: checking for $ac_header" >&5
7425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7426if eval "test \"\${$as_ac_Header+set}\" = set"; then
7427  echo $ECHO_N "(cached) $ECHO_C" >&6
7428fi
7429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431else
7432  # Is the header compilable?
7433echo "$as_me:$LINENO: checking $ac_header usability" >&5
7434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7435cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h.  */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h.  */
7441$ac_includes_default
7442#include <$ac_header>
7443_ACEOF
7444rm -f conftest.$ac_objext
7445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7446  (eval $ac_compile) 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } &&
7453         { ac_try='test -z "$ac_c_werror_flag"
7454                         || test ! -s conftest.err'
7455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456  (eval $ac_try) 2>&5
7457  ac_status=$?
7458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459  (exit $ac_status); }; } &&
7460         { ac_try='test -s conftest.$ac_objext'
7461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462  (eval $ac_try) 2>&5
7463  ac_status=$?
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); }; }; then
7466  ac_header_compiler=yes
7467else
7468  echo "$as_me: failed program was:" >&5
7469sed 's/^/| /' conftest.$ac_ext >&5
7470
7471ac_header_compiler=no
7472fi
7473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7475echo "${ECHO_T}$ac_header_compiler" >&6
7476
7477# Is the header present?
7478echo "$as_me:$LINENO: checking $ac_header presence" >&5
7479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7480cat >conftest.$ac_ext <<_ACEOF
7481/* confdefs.h.  */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h.  */
7486#include <$ac_header>
7487_ACEOF
7488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7489  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7490  ac_status=$?
7491  grep -v '^ *+' conftest.er1 >conftest.err
7492  rm -f conftest.er1
7493  cat conftest.err >&5
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); } >/dev/null; then
7496  if test -s conftest.err; then
7497    ac_cpp_err=$ac_c_preproc_warn_flag
7498    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7499  else
7500    ac_cpp_err=
7501  fi
7502else
7503  ac_cpp_err=yes
7504fi
7505if test -z "$ac_cpp_err"; then
7506  ac_header_preproc=yes
7507else
7508  echo "$as_me: failed program was:" >&5
7509sed 's/^/| /' conftest.$ac_ext >&5
7510
7511  ac_header_preproc=no
7512fi
7513rm -f conftest.err conftest.$ac_ext
7514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7515echo "${ECHO_T}$ac_header_preproc" >&6
7516
7517# So?  What about this header?
7518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7519  yes:no: )
7520    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7522    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7524    ac_header_preproc=yes
7525    ;;
7526  no:yes:* )
7527    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7529    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7530echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7531    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7533    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7534echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7535    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7537    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7539    (
7540      cat <<\_ASBOX
7541## ---------------------------------------------- ##
7542## Report this to orxonox-dev at mail.datacore.ch ##
7543## ---------------------------------------------- ##
7544_ASBOX
7545    ) |
7546      sed "s/^/$as_me: WARNING:     /" >&2
7547    ;;
7548esac
7549echo "$as_me:$LINENO: checking for $ac_header" >&5
7550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7551if eval "test \"\${$as_ac_Header+set}\" = set"; then
7552  echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554  eval "$as_ac_Header=\$ac_header_preproc"
7555fi
7556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7558
7559fi
7560if test `eval echo '${'$as_ac_Header'}'` = yes; then
7561  cat >>confdefs.h <<_ACEOF
7562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7563_ACEOF
7564
7565else
7566  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
7567echo "$as_me: error: SDL_image header not found." >&2;}
7568   { (exit 1); exit 1; }; }
7569fi
7570
7571done
7572
7573fi
7574
7575done
7576
7577# checking for SDL_image-lib
7578echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
7579echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
7580if test "${ac_cv_lib_SDL_image_main+set}" = set; then
7581  echo $ECHO_N "(cached) $ECHO_C" >&6
7582else
7583  ac_check_lib_save_LIBS=$LIBS
7584LIBS="-lSDL_image  $LIBS"
7585cat >conftest.$ac_ext <<_ACEOF
7586/* confdefs.h.  */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h.  */
7591
7592
7593int
7594main ()
7595{
7596main ();
7597  ;
7598  return 0;
7599}
7600_ACEOF
7601rm -f conftest.$ac_objext conftest$ac_exeext
7602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7603  (eval $ac_link) 2>conftest.er1
7604  ac_status=$?
7605  grep -v '^ *+' conftest.er1 >conftest.err
7606  rm -f conftest.er1
7607  cat conftest.err >&5
7608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609  (exit $ac_status); } &&
7610         { ac_try='test -z "$ac_c_werror_flag"
7611                         || test ! -s conftest.err'
7612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613  (eval $ac_try) 2>&5
7614  ac_status=$?
7615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616  (exit $ac_status); }; } &&
7617         { ac_try='test -s conftest$ac_exeext'
7618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619  (eval $ac_try) 2>&5
7620  ac_status=$?
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); }; }; then
7623  ac_cv_lib_SDL_image_main=yes
7624else
7625  echo "$as_me: failed program was:" >&5
7626sed 's/^/| /' conftest.$ac_ext >&5
7627
7628ac_cv_lib_SDL_image_main=no
7629fi
7630rm -f conftest.err conftest.$ac_objext \
7631      conftest$ac_exeext conftest.$ac_ext
7632LIBS=$ac_check_lib_save_LIBS
7633fi
7634echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
7635echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
7636if test $ac_cv_lib_SDL_image_main = yes; then
7637  FOUND_SDL_image=yes
7638fi
7639
7640   if test x$FOUND_SDL_image = xyes ; then
7641     LIBS="$LIBS -lSDL_image"
7642   else
7643      echo "------------------"
7644      echo "SDL_image library not found."
7645      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
7646      echo "------------------"
7647      exit -1
7648   fi
7649
7650#-----#
7651# ogg #
7652#-----#
7653# checking for ogg-headers
7654
7655for ac_header in ogg/ogg.h
7656do
7657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7658if eval "test \"\${$as_ac_Header+set}\" = set"; then
7659  echo "$as_me:$LINENO: checking for $ac_header" >&5
7660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7661if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662  echo $ECHO_N "(cached) $ECHO_C" >&6
7663fi
7664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666else
7667  # Is the header compilable?
7668echo "$as_me:$LINENO: checking $ac_header usability" >&5
7669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7670cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h.  */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h.  */
7676$ac_includes_default
7677#include <$ac_header>
7678_ACEOF
7679rm -f conftest.$ac_objext
7680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681  (eval $ac_compile) 2>conftest.er1
7682  ac_status=$?
7683  grep -v '^ *+' conftest.er1 >conftest.err
7684  rm -f conftest.er1
7685  cat conftest.err >&5
7686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687  (exit $ac_status); } &&
7688         { ac_try='test -z "$ac_c_werror_flag"
7689                         || test ! -s conftest.err'
7690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691  (eval $ac_try) 2>&5
7692  ac_status=$?
7693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694  (exit $ac_status); }; } &&
7695         { ac_try='test -s conftest.$ac_objext'
7696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697  (eval $ac_try) 2>&5
7698  ac_status=$?
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); }; }; then
7701  ac_header_compiler=yes
7702else
7703  echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7706ac_header_compiler=no
7707fi
7708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7710echo "${ECHO_T}$ac_header_compiler" >&6
7711
7712# Is the header present?
7713echo "$as_me:$LINENO: checking $ac_header presence" >&5
7714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7715cat >conftest.$ac_ext <<_ACEOF
7716/* confdefs.h.  */
7717_ACEOF
7718cat confdefs.h >>conftest.$ac_ext
7719cat >>conftest.$ac_ext <<_ACEOF
7720/* end confdefs.h.  */
7721#include <$ac_header>
7722_ACEOF
7723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7724  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7725  ac_status=$?
7726  grep -v '^ *+' conftest.er1 >conftest.err
7727  rm -f conftest.er1
7728  cat conftest.err >&5
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); } >/dev/null; then
7731  if test -s conftest.err; then
7732    ac_cpp_err=$ac_c_preproc_warn_flag
7733    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7734  else
7735    ac_cpp_err=
7736  fi
7737else
7738  ac_cpp_err=yes
7739fi
7740if test -z "$ac_cpp_err"; then
7741  ac_header_preproc=yes
7742else
7743  echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746  ac_header_preproc=no
7747fi
7748rm -f conftest.err conftest.$ac_ext
7749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7750echo "${ECHO_T}$ac_header_preproc" >&6
7751
7752# So?  What about this header?
7753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7754  yes:no: )
7755    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7757    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7759    ac_header_preproc=yes
7760    ;;
7761  no:yes:* )
7762    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7764    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7765echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7766    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7768    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7769echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7772    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7774    (
7775      cat <<\_ASBOX
7776## ---------------------------------------------- ##
7777## Report this to orxonox-dev at mail.datacore.ch ##
7778## ---------------------------------------------- ##
7779_ASBOX
7780    ) |
7781      sed "s/^/$as_me: WARNING:     /" >&2
7782    ;;
7783esac
7784echo "$as_me:$LINENO: checking for $ac_header" >&5
7785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787  echo $ECHO_N "(cached) $ECHO_C" >&6
7788else
7789  eval "$as_ac_Header=\$ac_header_preproc"
7790fi
7791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7793
7794fi
7795if test `eval echo '${'$as_ac_Header'}'` = yes; then
7796  cat >>confdefs.h <<_ACEOF
7797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798_ACEOF
7799
7800else
7801  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
7802echo "$as_me: error: cannot find ogg header." >&2;}
7803   { (exit 1); exit 1; }; }
7804fi
7805
7806done
7807
7808# checking for ogg-lib
7809  echo "$as_me:$LINENO: checking for main in -logg" >&5
7810echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
7811if test "${ac_cv_lib_ogg_main+set}" = set; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814  ac_check_lib_save_LIBS=$LIBS
7815LIBS="-logg  $LIBS"
7816cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h.  */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h.  */
7822
7823
7824int
7825main ()
7826{
7827main ();
7828  ;
7829  return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext conftest$ac_exeext
7833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834  (eval $ac_link) 2>conftest.er1
7835  ac_status=$?
7836  grep -v '^ *+' conftest.er1 >conftest.err
7837  rm -f conftest.er1
7838  cat conftest.err >&5
7839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840  (exit $ac_status); } &&
7841         { ac_try='test -z "$ac_c_werror_flag"
7842                         || test ! -s conftest.err'
7843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844  (eval $ac_try) 2>&5
7845  ac_status=$?
7846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); }; } &&
7848         { ac_try='test -s conftest$ac_exeext'
7849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850  (eval $ac_try) 2>&5
7851  ac_status=$?
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); }; }; then
7854  ac_cv_lib_ogg_main=yes
7855else
7856  echo "$as_me: failed program was:" >&5
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859ac_cv_lib_ogg_main=no
7860fi
7861rm -f conftest.err conftest.$ac_objext \
7862      conftest$ac_exeext conftest.$ac_ext
7863LIBS=$ac_check_lib_save_LIBS
7864fi
7865echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
7866echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
7867if test $ac_cv_lib_ogg_main = yes; then
7868  FOUND_ogg=yes
7869fi
7870
7871     if test x$FOUND_ogg = xyes ; then
7872       LIBS="$LIBS -logg"
7873     else
7874        echo "------------------"
7875        echo "ogg library not found."
7876        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7877        echo "------------------"
7878        exit -1
7879     fi
7880
7881#--------#
7882# vorbis #
7883#--------#
7884# checking for vorbis-lib
7885  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
7886echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
7887if test "${ac_cv_lib_vorbis_main+set}" = set; then
7888  echo $ECHO_N "(cached) $ECHO_C" >&6
7889else
7890  ac_check_lib_save_LIBS=$LIBS
7891LIBS="-lvorbis  $LIBS"
7892cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h.  */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h.  */
7898
7899
7900int
7901main ()
7902{
7903main ();
7904  ;
7905  return 0;
7906}
7907_ACEOF
7908rm -f conftest.$ac_objext conftest$ac_exeext
7909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910  (eval $ac_link) 2>conftest.er1
7911  ac_status=$?
7912  grep -v '^ *+' conftest.er1 >conftest.err
7913  rm -f conftest.er1
7914  cat conftest.err >&5
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); } &&
7917         { ac_try='test -z "$ac_c_werror_flag"
7918                         || test ! -s conftest.err'
7919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920  (eval $ac_try) 2>&5
7921  ac_status=$?
7922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923  (exit $ac_status); }; } &&
7924         { ac_try='test -s conftest$ac_exeext'
7925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926  (eval $ac_try) 2>&5
7927  ac_status=$?
7928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929  (exit $ac_status); }; }; then
7930  ac_cv_lib_vorbis_main=yes
7931else
7932  echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935ac_cv_lib_vorbis_main=no
7936fi
7937rm -f conftest.err conftest.$ac_objext \
7938      conftest$ac_exeext conftest.$ac_ext
7939LIBS=$ac_check_lib_save_LIBS
7940fi
7941echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
7942echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
7943if test $ac_cv_lib_vorbis_main = yes; then
7944  FOUND_vorbis=yes
7945fi
7946
7947     if test x$FOUND_vorbis = xyes ; then
7948       LIBS="$LIBS -lvorbis"
7949     else
7950        echo "------------------"
7951        echo "vorbis library not found."
7952        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7953        echo "------------------"
7954        exit -1
7955     fi
7956
7957#------------#
7958# vorbisfile #
7959#------------#
7960# checking for vorbis-headers
7961
7962for ac_header in vorbis/vorbisfile.h
7963do
7964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7965if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966  echo "$as_me:$LINENO: checking for $ac_header" >&5
7967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7968if eval "test \"\${$as_ac_Header+set}\" = set"; then
7969  echo $ECHO_N "(cached) $ECHO_C" >&6
7970fi
7971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7972echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7973else
7974  # Is the header compilable?
7975echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7977cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h.  */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h.  */
7983$ac_includes_default
7984#include <$ac_header>
7985_ACEOF
7986rm -f conftest.$ac_objext
7987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988  (eval $ac_compile) 2>conftest.er1
7989  ac_status=$?
7990  grep -v '^ *+' conftest.er1 >conftest.err
7991  rm -f conftest.er1
7992  cat conftest.err >&5
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); } &&
7995         { ac_try='test -z "$ac_c_werror_flag"
7996                         || test ! -s conftest.err'
7997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998  (eval $ac_try) 2>&5
7999  ac_status=$?
8000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001  (exit $ac_status); }; } &&
8002         { ac_try='test -s conftest.$ac_objext'
8003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004  (eval $ac_try) 2>&5
8005  ac_status=$?
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); }; }; then
8008  ac_header_compiler=yes
8009else
8010  echo "$as_me: failed program was:" >&5
8011sed 's/^/| /' conftest.$ac_ext >&5
8012
8013ac_header_compiler=no
8014fi
8015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8017echo "${ECHO_T}$ac_header_compiler" >&6
8018
8019# Is the header present?
8020echo "$as_me:$LINENO: checking $ac_header presence" >&5
8021echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8022cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h.  */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h.  */
8028#include <$ac_header>
8029_ACEOF
8030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8031  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8032  ac_status=$?
8033  grep -v '^ *+' conftest.er1 >conftest.err
8034  rm -f conftest.er1
8035  cat conftest.err >&5
8036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037  (exit $ac_status); } >/dev/null; then
8038  if test -s conftest.err; then
8039    ac_cpp_err=$ac_c_preproc_warn_flag
8040    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8041  else
8042    ac_cpp_err=
8043  fi
8044else
8045  ac_cpp_err=yes
8046fi
8047if test -z "$ac_cpp_err"; then
8048  ac_header_preproc=yes
8049else
8050  echo "$as_me: failed program was:" >&5
8051sed 's/^/| /' conftest.$ac_ext >&5
8052
8053  ac_header_preproc=no
8054fi
8055rm -f conftest.err conftest.$ac_ext
8056echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8057echo "${ECHO_T}$ac_header_preproc" >&6
8058
8059# So?  What about this header?
8060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8061  yes:no: )
8062    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8064    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8066    ac_header_preproc=yes
8067    ;;
8068  no:yes:* )
8069    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8071    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8072echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8073    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8075    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8076echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8077    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8079    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8081    (
8082      cat <<\_ASBOX
8083## ---------------------------------------------- ##
8084## Report this to orxonox-dev at mail.datacore.ch ##
8085## ---------------------------------------------- ##
8086_ASBOX
8087    ) |
8088      sed "s/^/$as_me: WARNING:     /" >&2
8089    ;;
8090esac
8091echo "$as_me:$LINENO: checking for $ac_header" >&5
8092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8093if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094  echo $ECHO_N "(cached) $ECHO_C" >&6
8095else
8096  eval "$as_ac_Header=\$ac_header_preproc"
8097fi
8098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8100
8101fi
8102if test `eval echo '${'$as_ac_Header'}'` = yes; then
8103  cat >>confdefs.h <<_ACEOF
8104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105_ACEOF
8106
8107else
8108  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8109echo "$as_me: error: cannot find vorbisfile header." >&2;}
8110   { (exit 1); exit 1; }; }
8111fi
8112
8113done
8114
8115# checking for vorbisfile-lib
8116  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8117echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8118if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121  ac_check_lib_save_LIBS=$LIBS
8122LIBS="-lvorbisfile  $LIBS"
8123cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h.  */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h.  */
8129
8130
8131int
8132main ()
8133{
8134main ();
8135  ;
8136  return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext conftest$ac_exeext
8140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141  (eval $ac_link) 2>conftest.er1
8142  ac_status=$?
8143  grep -v '^ *+' conftest.er1 >conftest.err
8144  rm -f conftest.er1
8145  cat conftest.err >&5
8146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147  (exit $ac_status); } &&
8148         { ac_try='test -z "$ac_c_werror_flag"
8149                         || test ! -s conftest.err'
8150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151  (eval $ac_try) 2>&5
8152  ac_status=$?
8153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154  (exit $ac_status); }; } &&
8155         { ac_try='test -s conftest$ac_exeext'
8156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157  (eval $ac_try) 2>&5
8158  ac_status=$?
8159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160  (exit $ac_status); }; }; then
8161  ac_cv_lib_vorbisfile_main=yes
8162else
8163  echo "$as_me: failed program was:" >&5
8164sed 's/^/| /' conftest.$ac_ext >&5
8165
8166ac_cv_lib_vorbisfile_main=no
8167fi
8168rm -f conftest.err conftest.$ac_objext \
8169      conftest$ac_exeext conftest.$ac_ext
8170LIBS=$ac_check_lib_save_LIBS
8171fi
8172echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8173echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8174if test $ac_cv_lib_vorbisfile_main = yes; then
8175  FOUND_vorbisfile=yes
8176fi
8177
8178     if test x$FOUND_vorbisfile = xyes ; then
8179       LIBS="$LIBS -lvorbisfile"
8180     else
8181        echo "------------------"
8182        echo "vorbisfile library not found."
8183        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8184        echo "------------------"
8185        exit -1
8186     fi
8187
8188#-----#
8189# GTK #
8190#-----#
8191if test x$def_gtk = xyes; then
8192        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
8193        echo "$as_me:$LINENO: checking for gtk2.0" >&5
8194echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
8195        if `$PKG_CONFIG --exists gtk+-2.0`; then
8196                echo "yes"
8197                have_gtk2=yes
8198                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8199                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8200
8201cat >>confdefs.h <<_ACEOF
8202#define HAVE_GTK2 1
8203_ACEOF
8204
8205                if test $DEBUG -ge 3; then
8206                 echo "cflags: $GTK2_CFLAGS"
8207                 echo "libs: $GTK2_LIBS"
8208                fi
8209        else
8210                echo "no"
8211        fi
8212
8213fi
8214
8215
8216
8217
8218if test x$have_gtk2 = xyes; then
8219  HAVE_GTK2_TRUE=
8220  HAVE_GTK2_FALSE='#'
8221else
8222  HAVE_GTK2_TRUE='#'
8223  HAVE_GTK2_FALSE=
8224fi
8225
8226
8227#---------#
8228# libcURL #
8229#---------#
8230if test x$def_curl = xyes; then
8231
8232
8233for ac_header in curl/curl.h
8234do
8235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8236if eval "test \"\${$as_ac_Header+set}\" = set"; then
8237  echo "$as_me:$LINENO: checking for $ac_header" >&5
8238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8239if eval "test \"\${$as_ac_Header+set}\" = set"; then
8240  echo $ECHO_N "(cached) $ECHO_C" >&6
8241fi
8242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8244else
8245  # Is the header compilable?
8246echo "$as_me:$LINENO: checking $ac_header usability" >&5
8247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8248cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h.  */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h.  */
8254$ac_includes_default
8255#include <$ac_header>
8256_ACEOF
8257rm -f conftest.$ac_objext
8258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259  (eval $ac_compile) 2>conftest.er1
8260  ac_status=$?
8261  grep -v '^ *+' conftest.er1 >conftest.err
8262  rm -f conftest.er1
8263  cat conftest.err >&5
8264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265  (exit $ac_status); } &&
8266         { ac_try='test -z "$ac_c_werror_flag"
8267                         || test ! -s conftest.err'
8268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269  (eval $ac_try) 2>&5
8270  ac_status=$?
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); }; } &&
8273         { ac_try='test -s conftest.$ac_objext'
8274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275  (eval $ac_try) 2>&5
8276  ac_status=$?
8277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278  (exit $ac_status); }; }; then
8279  ac_header_compiler=yes
8280else
8281  echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284ac_header_compiler=no
8285fi
8286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288echo "${ECHO_T}$ac_header_compiler" >&6
8289
8290# Is the header present?
8291echo "$as_me:$LINENO: checking $ac_header presence" >&5
8292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8293cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h.  */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h.  */
8299#include <$ac_header>
8300_ACEOF
8301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8303  ac_status=$?
8304  grep -v '^ *+' conftest.er1 >conftest.err
8305  rm -f conftest.er1
8306  cat conftest.err >&5
8307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308  (exit $ac_status); } >/dev/null; then
8309  if test -s conftest.err; then
8310    ac_cpp_err=$ac_c_preproc_warn_flag
8311    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8312  else
8313    ac_cpp_err=
8314  fi
8315else
8316  ac_cpp_err=yes
8317fi
8318if test -z "$ac_cpp_err"; then
8319  ac_header_preproc=yes
8320else
8321  echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324  ac_header_preproc=no
8325fi
8326rm -f conftest.err conftest.$ac_ext
8327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328echo "${ECHO_T}$ac_header_preproc" >&6
8329
8330# So?  What about this header?
8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332  yes:no: )
8333    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8337    ac_header_preproc=yes
8338    ;;
8339  no:yes:* )
8340    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8342    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8343echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8344    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8346    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8347echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8348    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8350    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8352    (
8353      cat <<\_ASBOX
8354## ---------------------------------------------- ##
8355## Report this to orxonox-dev at mail.datacore.ch ##
8356## ---------------------------------------------- ##
8357_ASBOX
8358    ) |
8359      sed "s/^/$as_me: WARNING:     /" >&2
8360    ;;
8361esac
8362echo "$as_me:$LINENO: checking for $ac_header" >&5
8363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8364if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365  echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367  eval "$as_ac_Header=\$ac_header_preproc"
8368fi
8369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371
8372fi
8373if test `eval echo '${'$as_ac_Header'}'` = yes; then
8374  cat >>confdefs.h <<_ACEOF
8375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8376_ACEOF
8377 curlHeader="yes"
8378else
8379  curlHeader="no"
8380fi
8381
8382done
8383
8384 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
8385echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
8386if test "${ac_cv_lib_curl_main+set}" = set; then
8387  echo $ECHO_N "(cached) $ECHO_C" >&6
8388else
8389  ac_check_lib_save_LIBS=$LIBS
8390LIBS="-lcurl  $LIBS"
8391cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h.  */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h.  */
8397
8398
8399int
8400main ()
8401{
8402main ();
8403  ;
8404  return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409  (eval $ac_link) 2>conftest.er1
8410  ac_status=$?
8411  grep -v '^ *+' conftest.er1 >conftest.err
8412  rm -f conftest.er1
8413  cat conftest.err >&5
8414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415  (exit $ac_status); } &&
8416         { ac_try='test -z "$ac_c_werror_flag"
8417                         || test ! -s conftest.err'
8418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419  (eval $ac_try) 2>&5
8420  ac_status=$?
8421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422  (exit $ac_status); }; } &&
8423         { ac_try='test -s conftest$ac_exeext'
8424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425  (eval $ac_try) 2>&5
8426  ac_status=$?
8427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428  (exit $ac_status); }; }; then
8429  ac_cv_lib_curl_main=yes
8430else
8431  echo "$as_me: failed program was:" >&5
8432sed 's/^/| /' conftest.$ac_ext >&5
8433
8434ac_cv_lib_curl_main=no
8435fi
8436rm -f conftest.err conftest.$ac_objext \
8437      conftest$ac_exeext conftest.$ac_ext
8438LIBS=$ac_check_lib_save_LIBS
8439fi
8440echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
8441echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
8442if test $ac_cv_lib_curl_main = yes; then
8443  FOUND_curl=yes
8444fi
8445
8446 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
8447  have_curl=yes
8448  CURL_LIBS=`curl-config --libs`
8449  CURLCFLAGS=`curl-config --cflags`
8450
8451cat >>confdefs.h <<_ACEOF
8452#define HAVE_CURL 1
8453_ACEOF
8454
8455 else
8456  have_curl=no
8457 fi
8458
8459fi
8460
8461
8462
8463
8464if test x$have_curl = xyes; then
8465  HAVE_CURL_TRUE=
8466  HAVE_CURL_FALSE='#'
8467else
8468  HAVE_CURL_TRUE='#'
8469  HAVE_CURL_FALSE=
8470fi
8471
8472
8473#--------#
8474# efence #
8475#--------#
8476if test x$def_efence = xyes ; then
8477  echo "$as_me:$LINENO: checking for main in -lefence" >&5
8478echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
8479if test "${ac_cv_lib_efence_main+set}" = set; then
8480  echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482  ac_check_lib_save_LIBS=$LIBS
8483LIBS="-lefence  $LIBS"
8484cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h.  */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h.  */
8490
8491
8492int
8493main ()
8494{
8495main ();
8496  ;
8497  return 0;
8498}
8499_ACEOF
8500rm -f conftest.$ac_objext conftest$ac_exeext
8501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502  (eval $ac_link) 2>conftest.er1
8503  ac_status=$?
8504  grep -v '^ *+' conftest.er1 >conftest.err
8505  rm -f conftest.er1
8506  cat conftest.err >&5
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); } &&
8509         { ac_try='test -z "$ac_c_werror_flag"
8510                         || test ! -s conftest.err'
8511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512  (eval $ac_try) 2>&5
8513  ac_status=$?
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); }; } &&
8516         { ac_try='test -s conftest$ac_exeext'
8517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518  (eval $ac_try) 2>&5
8519  ac_status=$?
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); }; }; then
8522  ac_cv_lib_efence_main=yes
8523else
8524  echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527ac_cv_lib_efence_main=no
8528fi
8529rm -f conftest.err conftest.$ac_objext \
8530      conftest$ac_exeext conftest.$ac_ext
8531LIBS=$ac_check_lib_save_LIBS
8532fi
8533echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8534echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8535if test $ac_cv_lib_efence_main = yes; then
8536  FOUND_efence=yes
8537fi
8538
8539   if test x$FOUND_efence = xyes ; then
8540      LIBS="$LIBS -lefence"
8541   fi
8542
8543fi
8544
8545# FIXME: Replace `main' with a function in `-lm':
8546
8547echo "$as_me:$LINENO: checking for main in -lm" >&5
8548echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8549if test "${ac_cv_lib_m_main+set}" = set; then
8550  echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552  ac_check_lib_save_LIBS=$LIBS
8553LIBS="-lm  $LIBS"
8554cat >conftest.$ac_ext <<_ACEOF
8555/* confdefs.h.  */
8556_ACEOF
8557cat confdefs.h >>conftest.$ac_ext
8558cat >>conftest.$ac_ext <<_ACEOF
8559/* end confdefs.h.  */
8560
8561
8562int
8563main ()
8564{
8565main ();
8566  ;
8567  return 0;
8568}
8569_ACEOF
8570rm -f conftest.$ac_objext conftest$ac_exeext
8571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8572  (eval $ac_link) 2>conftest.er1
8573  ac_status=$?
8574  grep -v '^ *+' conftest.er1 >conftest.err
8575  rm -f conftest.er1
8576  cat conftest.err >&5
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); } &&
8579         { ac_try='test -z "$ac_c_werror_flag"
8580                         || test ! -s conftest.err'
8581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582  (eval $ac_try) 2>&5
8583  ac_status=$?
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); }; } &&
8586         { ac_try='test -s conftest$ac_exeext'
8587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588  (eval $ac_try) 2>&5
8589  ac_status=$?
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); }; }; then
8592  ac_cv_lib_m_main=yes
8593else
8594  echo "$as_me: failed program was:" >&5
8595sed 's/^/| /' conftest.$ac_ext >&5
8596
8597ac_cv_lib_m_main=no
8598fi
8599rm -f conftest.err conftest.$ac_objext \
8600      conftest$ac_exeext conftest.$ac_ext
8601LIBS=$ac_check_lib_save_LIBS
8602fi
8603echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8604echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8605if test $ac_cv_lib_m_main = yes; then
8606  cat >>confdefs.h <<_ACEOF
8607#define HAVE_LIBM 1
8608_ACEOF
8609
8610  LIBS="-lm $LIBS"
8611
8612fi
8613
8614
8615
8616# Checks for header files.
8617echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8618echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8619if test "${ac_cv_header_stdc+set}" = set; then
8620  echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622  cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h.  */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h.  */
8628#include <stdlib.h>
8629#include <stdarg.h>
8630#include <string.h>
8631#include <float.h>
8632
8633int
8634main ()
8635{
8636
8637  ;
8638  return 0;
8639}
8640_ACEOF
8641rm -f conftest.$ac_objext
8642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8643  (eval $ac_compile) 2>conftest.er1
8644  ac_status=$?
8645  grep -v '^ *+' conftest.er1 >conftest.err
8646  rm -f conftest.er1
8647  cat conftest.err >&5
8648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649  (exit $ac_status); } &&
8650         { ac_try='test -z "$ac_c_werror_flag"
8651                         || test ! -s conftest.err'
8652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653  (eval $ac_try) 2>&5
8654  ac_status=$?
8655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656  (exit $ac_status); }; } &&
8657         { ac_try='test -s conftest.$ac_objext'
8658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659  (eval $ac_try) 2>&5
8660  ac_status=$?
8661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); }; }; then
8663  ac_cv_header_stdc=yes
8664else
8665  echo "$as_me: failed program was:" >&5
8666sed 's/^/| /' conftest.$ac_ext >&5
8667
8668ac_cv_header_stdc=no
8669fi
8670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8671
8672if test $ac_cv_header_stdc = yes; then
8673  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8674  cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h.  */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h.  */
8680#include <string.h>
8681
8682_ACEOF
8683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8684  $EGREP "memchr" >/dev/null 2>&1; then
8685  :
8686else
8687  ac_cv_header_stdc=no
8688fi
8689rm -f conftest*
8690
8691fi
8692
8693if test $ac_cv_header_stdc = yes; then
8694  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8695  cat >conftest.$ac_ext <<_ACEOF
8696/* confdefs.h.  */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h.  */
8701#include <stdlib.h>
8702
8703_ACEOF
8704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8705  $EGREP "free" >/dev/null 2>&1; then
8706  :
8707else
8708  ac_cv_header_stdc=no
8709fi
8710rm -f conftest*
8711
8712fi
8713
8714if test $ac_cv_header_stdc = yes; then
8715  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8716  if test "$cross_compiling" = yes; then
8717  :
8718else
8719  cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h.  */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h.  */
8725#include <ctype.h>
8726#if ((' ' & 0x0FF) == 0x020)
8727# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8728# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8729#else
8730# define ISLOWER(c) \
8731                   (('a' <= (c) && (c) <= 'i') \
8732                     || ('j' <= (c) && (c) <= 'r') \
8733                     || ('s' <= (c) && (c) <= 'z'))
8734# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8735#endif
8736
8737#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8738int
8739main ()
8740{
8741  int i;
8742  for (i = 0; i < 256; i++)
8743    if (XOR (islower (i), ISLOWER (i))
8744        || toupper (i) != TOUPPER (i))
8745      exit(2);
8746  exit (0);
8747}
8748_ACEOF
8749rm -f conftest$ac_exeext
8750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751  (eval $ac_link) 2>&5
8752  ac_status=$?
8753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756  (eval $ac_try) 2>&5
8757  ac_status=$?
8758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759  (exit $ac_status); }; }; then
8760  :
8761else
8762  echo "$as_me: program exited with status $ac_status" >&5
8763echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766( exit $ac_status )
8767ac_cv_header_stdc=no
8768fi
8769rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8770fi
8771fi
8772fi
8773echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8774echo "${ECHO_T}$ac_cv_header_stdc" >&6
8775if test $ac_cv_header_stdc = yes; then
8776
8777cat >>confdefs.h <<\_ACEOF
8778#define STDC_HEADERS 1
8779_ACEOF
8780
8781fi
8782
8783
8784
8785for ac_header in stdlib.h string.h
8786do
8787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8788if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789  echo "$as_me:$LINENO: checking for $ac_header" >&5
8790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8791if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792  echo $ECHO_N "(cached) $ECHO_C" >&6
8793fi
8794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8796else
8797  # Is the header compilable?
8798echo "$as_me:$LINENO: checking $ac_header usability" >&5
8799echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8800cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h.  */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h.  */
8806$ac_includes_default
8807#include <$ac_header>
8808_ACEOF
8809rm -f conftest.$ac_objext
8810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811  (eval $ac_compile) 2>conftest.er1
8812  ac_status=$?
8813  grep -v '^ *+' conftest.er1 >conftest.err
8814  rm -f conftest.er1
8815  cat conftest.err >&5
8816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817  (exit $ac_status); } &&
8818         { ac_try='test -z "$ac_c_werror_flag"
8819                         || test ! -s conftest.err'
8820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821  (eval $ac_try) 2>&5
8822  ac_status=$?
8823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824  (exit $ac_status); }; } &&
8825         { ac_try='test -s conftest.$ac_objext'
8826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827  (eval $ac_try) 2>&5
8828  ac_status=$?
8829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830  (exit $ac_status); }; }; then
8831  ac_header_compiler=yes
8832else
8833  echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836ac_header_compiler=no
8837fi
8838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8839echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8840echo "${ECHO_T}$ac_header_compiler" >&6
8841
8842# Is the header present?
8843echo "$as_me:$LINENO: checking $ac_header presence" >&5
8844echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8845cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h.  */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h.  */
8851#include <$ac_header>
8852_ACEOF
8853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8855  ac_status=$?
8856  grep -v '^ *+' conftest.er1 >conftest.err
8857  rm -f conftest.er1
8858  cat conftest.err >&5
8859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860  (exit $ac_status); } >/dev/null; then
8861  if test -s conftest.err; then
8862    ac_cpp_err=$ac_c_preproc_warn_flag
8863    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8864  else
8865    ac_cpp_err=
8866  fi
8867else
8868  ac_cpp_err=yes
8869fi
8870if test -z "$ac_cpp_err"; then
8871  ac_header_preproc=yes
8872else
8873  echo "$as_me: failed program was:" >&5
8874sed 's/^/| /' conftest.$ac_ext >&5
8875
8876  ac_header_preproc=no
8877fi
8878rm -f conftest.err conftest.$ac_ext
8879echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8880echo "${ECHO_T}$ac_header_preproc" >&6
8881
8882# So?  What about this header?
8883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8884  yes:no: )
8885    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8886echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8887    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8888echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8889    ac_header_preproc=yes
8890    ;;
8891  no:yes:* )
8892    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8894    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8895echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8896    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8897echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8898    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8899echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8900    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8902    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8903echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8904    (
8905      cat <<\_ASBOX
8906## ---------------------------------------------- ##
8907## Report this to orxonox-dev at mail.datacore.ch ##
8908## ---------------------------------------------- ##
8909_ASBOX
8910    ) |
8911      sed "s/^/$as_me: WARNING:     /" >&2
8912    ;;
8913esac
8914echo "$as_me:$LINENO: checking for $ac_header" >&5
8915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8916if eval "test \"\${$as_ac_Header+set}\" = set"; then
8917  echo $ECHO_N "(cached) $ECHO_C" >&6
8918else
8919  eval "$as_ac_Header=\$ac_header_preproc"
8920fi
8921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8923
8924fi
8925if test `eval echo '${'$as_ac_Header'}'` = yes; then
8926  cat >>confdefs.h <<_ACEOF
8927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8928_ACEOF
8929
8930fi
8931
8932done
8933
8934
8935# Checks for typedefs, structures, and compiler characteristics.
8936echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8937echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8938if test "${ac_cv_header_stdbool_h+set}" = set; then
8939  echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941  cat >conftest.$ac_ext <<_ACEOF
8942/* confdefs.h.  */
8943_ACEOF
8944cat confdefs.h >>conftest.$ac_ext
8945cat >>conftest.$ac_ext <<_ACEOF
8946/* end confdefs.h.  */
8947
8948#include <stdbool.h>
8949#ifndef bool
8950# error bool is not defined
8951#endif
8952#ifndef false
8953# error false is not defined
8954#endif
8955#if false
8956# error false is not 0
8957#endif
8958#ifndef true
8959# error true is not defined
8960#endif
8961#if true != 1
8962# error true is not 1
8963#endif
8964#ifndef __bool_true_false_are_defined
8965# error __bool_true_false_are_defined is not defined
8966#endif
8967
8968        struct s { _Bool s: 1; _Bool t; } s;
8969
8970        char a[true == 1 ? 1 : -1];
8971        char b[false == 0 ? 1 : -1];
8972        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8973        char d[(bool) -0.5 == true ? 1 : -1];
8974        bool e = &s;
8975        char f[(_Bool) -0.0 == false ? 1 : -1];
8976        char g[true];
8977        char h[sizeof (_Bool)];
8978        char i[sizeof s.t];
8979
8980int
8981main ()
8982{
8983 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8984  ;
8985  return 0;
8986}
8987_ACEOF
8988rm -f conftest.$ac_objext
8989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8990  (eval $ac_compile) 2>conftest.er1
8991  ac_status=$?
8992  grep -v '^ *+' conftest.er1 >conftest.err
8993  rm -f conftest.er1
8994  cat conftest.err >&5
8995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996  (exit $ac_status); } &&
8997         { ac_try='test -z "$ac_c_werror_flag"
8998                         || test ! -s conftest.err'
8999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000  (eval $ac_try) 2>&5
9001  ac_status=$?
9002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003  (exit $ac_status); }; } &&
9004         { ac_try='test -s conftest.$ac_objext'
9005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006  (eval $ac_try) 2>&5
9007  ac_status=$?
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); }; }; then
9010  ac_cv_header_stdbool_h=yes
9011else
9012  echo "$as_me: failed program was:" >&5
9013sed 's/^/| /' conftest.$ac_ext >&5
9014
9015ac_cv_header_stdbool_h=no
9016fi
9017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9018fi
9019echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9020echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9021echo "$as_me:$LINENO: checking for _Bool" >&5
9022echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9023if test "${ac_cv_type__Bool+set}" = set; then
9024  echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026  cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h.  */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h.  */
9032$ac_includes_default
9033int
9034main ()
9035{
9036if ((_Bool *) 0)
9037  return 0;
9038if (sizeof (_Bool))
9039  return 0;
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044rm -f conftest.$ac_objext
9045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046  (eval $ac_compile) 2>conftest.er1
9047  ac_status=$?
9048  grep -v '^ *+' conftest.er1 >conftest.err
9049  rm -f conftest.er1
9050  cat conftest.err >&5
9051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052  (exit $ac_status); } &&
9053         { ac_try='test -z "$ac_c_werror_flag"
9054                         || test ! -s conftest.err'
9055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056  (eval $ac_try) 2>&5
9057  ac_status=$?
9058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059  (exit $ac_status); }; } &&
9060         { ac_try='test -s conftest.$ac_objext'
9061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062  (eval $ac_try) 2>&5
9063  ac_status=$?
9064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065  (exit $ac_status); }; }; then
9066  ac_cv_type__Bool=yes
9067else
9068  echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
9071ac_cv_type__Bool=no
9072fi
9073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9074fi
9075echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9076echo "${ECHO_T}$ac_cv_type__Bool" >&6
9077if test $ac_cv_type__Bool = yes; then
9078
9079cat >>confdefs.h <<_ACEOF
9080#define HAVE__BOOL 1
9081_ACEOF
9082
9083
9084fi
9085
9086if test $ac_cv_header_stdbool_h = yes; then
9087
9088cat >>confdefs.h <<\_ACEOF
9089#define HAVE_STDBOOL_H 1
9090_ACEOF
9091
9092fi
9093
9094
9095# Checks for library functions.
9096
9097for ac_header in stdlib.h
9098do
9099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9100if eval "test \"\${$as_ac_Header+set}\" = set"; then
9101  echo "$as_me:$LINENO: checking for $ac_header" >&5
9102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9103if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104  echo $ECHO_N "(cached) $ECHO_C" >&6
9105fi
9106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9108else
9109  # Is the header compilable?
9110echo "$as_me:$LINENO: checking $ac_header usability" >&5
9111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9112cat >conftest.$ac_ext <<_ACEOF
9113/* confdefs.h.  */
9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h.  */
9118$ac_includes_default
9119#include <$ac_header>
9120_ACEOF
9121rm -f conftest.$ac_objext
9122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123  (eval $ac_compile) 2>conftest.er1
9124  ac_status=$?
9125  grep -v '^ *+' conftest.er1 >conftest.err
9126  rm -f conftest.er1
9127  cat conftest.err >&5
9128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129  (exit $ac_status); } &&
9130         { ac_try='test -z "$ac_c_werror_flag"
9131                         || test ! -s conftest.err'
9132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133  (eval $ac_try) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; } &&
9137         { ac_try='test -s conftest.$ac_objext'
9138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139  (eval $ac_try) 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); }; }; then
9143  ac_header_compiler=yes
9144else
9145  echo "$as_me: failed program was:" >&5
9146sed 's/^/| /' conftest.$ac_ext >&5
9147
9148ac_header_compiler=no
9149fi
9150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9152echo "${ECHO_T}$ac_header_compiler" >&6
9153
9154# Is the header present?
9155echo "$as_me:$LINENO: checking $ac_header presence" >&5
9156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9157cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h.  */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h.  */
9163#include <$ac_header>
9164_ACEOF
9165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9167  ac_status=$?
9168  grep -v '^ *+' conftest.er1 >conftest.err
9169  rm -f conftest.er1
9170  cat conftest.err >&5
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); } >/dev/null; then
9173  if test -s conftest.err; then
9174    ac_cpp_err=$ac_c_preproc_warn_flag
9175    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9176  else
9177    ac_cpp_err=
9178  fi
9179else
9180  ac_cpp_err=yes
9181fi
9182if test -z "$ac_cpp_err"; then
9183  ac_header_preproc=yes
9184else
9185  echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188  ac_header_preproc=no
9189fi
9190rm -f conftest.err conftest.$ac_ext
9191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9192echo "${ECHO_T}$ac_header_preproc" >&6
9193
9194# So?  What about this header?
9195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9196  yes:no: )
9197    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9199    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9201    ac_header_preproc=yes
9202    ;;
9203  no:yes:* )
9204    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9206    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9207echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9208    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9210    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9211echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9212    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9214    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9216    (
9217      cat <<\_ASBOX
9218## ---------------------------------------------- ##
9219## Report this to orxonox-dev at mail.datacore.ch ##
9220## ---------------------------------------------- ##
9221_ASBOX
9222    ) |
9223      sed "s/^/$as_me: WARNING:     /" >&2
9224    ;;
9225esac
9226echo "$as_me:$LINENO: checking for $ac_header" >&5
9227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9228if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229  echo $ECHO_N "(cached) $ECHO_C" >&6
9230else
9231  eval "$as_ac_Header=\$ac_header_preproc"
9232fi
9233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9235
9236fi
9237if test `eval echo '${'$as_ac_Header'}'` = yes; then
9238  cat >>confdefs.h <<_ACEOF
9239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9240_ACEOF
9241
9242fi
9243
9244done
9245
9246echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9247echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9248if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9249  echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251  if test "$cross_compiling" = yes; then
9252  ac_cv_func_malloc_0_nonnull=no
9253else
9254  cat >conftest.$ac_ext <<_ACEOF
9255/* confdefs.h.  */
9256_ACEOF
9257cat confdefs.h >>conftest.$ac_ext
9258cat >>conftest.$ac_ext <<_ACEOF
9259/* end confdefs.h.  */
9260#if STDC_HEADERS || HAVE_STDLIB_H
9261# include <stdlib.h>
9262#else
9263char *malloc ();
9264#endif
9265
9266int
9267main ()
9268{
9269exit (malloc (0) ? 0 : 1);
9270  ;
9271  return 0;
9272}
9273_ACEOF
9274rm -f conftest$ac_exeext
9275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276  (eval $ac_link) 2>&5
9277  ac_status=$?
9278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281  (eval $ac_try) 2>&5
9282  ac_status=$?
9283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284  (exit $ac_status); }; }; then
9285  ac_cv_func_malloc_0_nonnull=yes
9286else
9287  echo "$as_me: program exited with status $ac_status" >&5
9288echo "$as_me: failed program was:" >&5
9289sed 's/^/| /' conftest.$ac_ext >&5
9290
9291( exit $ac_status )
9292ac_cv_func_malloc_0_nonnull=no
9293fi
9294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9295fi
9296fi
9297echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9298echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
9299if test $ac_cv_func_malloc_0_nonnull = yes; then
9300
9301cat >>confdefs.h <<\_ACEOF
9302#define HAVE_MALLOC 1
9303_ACEOF
9304
9305else
9306  cat >>confdefs.h <<\_ACEOF
9307#define HAVE_MALLOC 0
9308_ACEOF
9309
9310   case $LIBOBJS in
9311    "malloc.$ac_objext"   | \
9312  *" malloc.$ac_objext"   | \
9313    "malloc.$ac_objext "* | \
9314  *" malloc.$ac_objext "* ) ;;
9315  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
9316esac
9317
9318
9319cat >>confdefs.h <<\_ACEOF
9320#define malloc rpl_malloc
9321_ACEOF
9322
9323fi
9324
9325
9326
9327
9328
9329for ac_func in bzero sqrt
9330do
9331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9332echo "$as_me:$LINENO: checking for $ac_func" >&5
9333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9334if eval "test \"\${$as_ac_var+set}\" = set"; then
9335  echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337  cat >conftest.$ac_ext <<_ACEOF
9338/* confdefs.h.  */
9339_ACEOF
9340cat confdefs.h >>conftest.$ac_ext
9341cat >>conftest.$ac_ext <<_ACEOF
9342/* end confdefs.h.  */
9343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9344   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9345#define $ac_func innocuous_$ac_func
9346
9347/* System header to define __stub macros and hopefully few prototypes,
9348    which can conflict with char $ac_func (); below.
9349    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350    <limits.h> exists even on freestanding compilers.  */
9351
9352#ifdef __STDC__
9353# include <limits.h>
9354#else
9355# include <assert.h>
9356#endif
9357
9358#undef $ac_func
9359
9360/* Override any gcc2 internal prototype to avoid an error.  */
9361#ifdef __cplusplus
9362extern "C"
9363{
9364#endif
9365/* We use char because int might match the return type of a gcc2
9366   builtin and then its argument prototype would still apply.  */
9367char $ac_func ();
9368/* The GNU C library defines this for functions which it implements
9369    to always fail with ENOSYS.  Some functions are actually named
9370    something starting with __ and the normal name is an alias.  */
9371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9372choke me
9373#else
9374char (*f) () = $ac_func;
9375#endif
9376#ifdef __cplusplus
9377}
9378#endif
9379
9380int
9381main ()
9382{
9383return f != $ac_func;
9384  ;
9385  return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext conftest$ac_exeext
9389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390  (eval $ac_link) 2>conftest.er1
9391  ac_status=$?
9392  grep -v '^ *+' conftest.er1 >conftest.err
9393  rm -f conftest.er1
9394  cat conftest.err >&5
9395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396  (exit $ac_status); } &&
9397         { ac_try='test -z "$ac_c_werror_flag"
9398                         || test ! -s conftest.err'
9399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400  (eval $ac_try) 2>&5
9401  ac_status=$?
9402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403  (exit $ac_status); }; } &&
9404         { ac_try='test -s conftest$ac_exeext'
9405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406  (eval $ac_try) 2>&5
9407  ac_status=$?
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); }; }; then
9410  eval "$as_ac_var=yes"
9411else
9412  echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
9414
9415eval "$as_ac_var=no"
9416fi
9417rm -f conftest.err conftest.$ac_objext \
9418      conftest$ac_exeext conftest.$ac_ext
9419fi
9420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9422if test `eval echo '${'$as_ac_var'}'` = yes; then
9423  cat >>confdefs.h <<_ACEOF
9424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9425_ACEOF
9426
9427fi
9428done
9429
9430
9431######################
9432## OUTPUT CONFIGURE ##
9433######################
9434                                                                                                                                                                                              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/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 src/subprojects/gui/Makefile"
9435
9436
9437cat >confcache <<\_ACEOF
9438# This file is a shell script that caches the results of configure
9439# tests run on this system so they can be shared between configure
9440# scripts and configure runs, see configure's option --config-cache.
9441# It is not useful on other systems.  If it contains results you don't
9442# want to keep, you may remove or edit it.
9443#
9444# config.status only pays attention to the cache file if you give it
9445# the --recheck option to rerun configure.
9446#
9447# `ac_cv_env_foo' variables (set or unset) will be overridden when
9448# loading this file, other *unset* `ac_cv_foo' will be assigned the
9449# following values.
9450
9451_ACEOF
9452
9453# The following way of writing the cache mishandles newlines in values,
9454# but we know of no workaround that is simple, portable, and efficient.
9455# So, don't put newlines in cache variables' values.
9456# Ultrix sh set writes to stderr and can't be redirected directly,
9457# and sets the high bit in the cache file unless we assign to the vars.
9458{
9459  (set) 2>&1 |
9460    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9461    *ac_space=\ *)
9462      # `set' does not quote correctly, so add quotes (double-quote
9463      # substitution turns \\\\ into \\, and sed turns \\ into \).
9464      sed -n \
9465        "s/'/'\\\\''/g;
9466          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9467      ;;
9468    *)
9469      # `set' quotes correctly as required by POSIX, so do not add quotes.
9470      sed -n \
9471        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9472      ;;
9473    esac;
9474} |
9475  sed '
9476     t clear
9477     : clear
9478     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9479     t end
9480     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9481     : end' >>confcache
9482if diff $cache_file confcache >/dev/null 2>&1; then :; else
9483  if test -w $cache_file; then
9484    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9485    cat confcache >$cache_file
9486  else
9487    echo "not updating unwritable cache $cache_file"
9488  fi
9489fi
9490rm -f confcache
9491
9492test "x$prefix" = xNONE && prefix=$ac_default_prefix
9493# Let make expand exec_prefix.
9494test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9495
9496# VPATH may cause trouble with some makes, so we remove $(srcdir),
9497# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9498# trailing colons and then remove the whole line if VPATH becomes empty
9499# (actually we leave an empty line to preserve line numbers).
9500if test "x$srcdir" = x.; then
9501  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9502s/:*\$(srcdir):*/:/;
9503s/:*\${srcdir}:*/:/;
9504s/:*@srcdir@:*/:/;
9505s/^\([^=]*=[     ]*\):*/\1/;
9506s/:*$//;
9507s/^[^=]*=[       ]*$//;
9508}'
9509fi
9510
9511DEFS=-DHAVE_CONFIG_H
9512
9513ac_libobjs=
9514ac_ltlibobjs=
9515for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9516  # 1. Remove the extension, and $U if already installed.
9517  ac_i=`echo "$ac_i" |
9518         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9519  # 2. Add them.
9520  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9521  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9522done
9523LIBOBJS=$ac_libobjs
9524
9525LTLIBOBJS=$ac_ltlibobjs
9526
9527
9528if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9529  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9530Usually this means the macro was only invoked conditionally." >&5
9531echo "$as_me: error: conditional \"AMDEP\" was never defined.
9532Usually this means the macro was only invoked conditionally." >&2;}
9533   { (exit 1); exit 1; }; }
9534fi
9535if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9536  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9537Usually this means the macro was only invoked conditionally." >&5
9538echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9539Usually this means the macro was only invoked conditionally." >&2;}
9540   { (exit 1); exit 1; }; }
9541fi
9542if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9543  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9544Usually this means the macro was only invoked conditionally." >&5
9545echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9546Usually this means the macro was only invoked conditionally." >&2;}
9547   { (exit 1); exit 1; }; }
9548fi
9549if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
9550  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
9551Usually this means the macro was only invoked conditionally." >&5
9552echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
9553Usually this means the macro was only invoked conditionally." >&2;}
9554   { (exit 1); exit 1; }; }
9555fi
9556if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
9557  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
9558Usually this means the macro was only invoked conditionally." >&5
9559echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
9560Usually this means the macro was only invoked conditionally." >&2;}
9561   { (exit 1); exit 1; }; }
9562fi
9563if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
9564  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
9565Usually this means the macro was only invoked conditionally." >&5
9566echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
9567Usually this means the macro was only invoked conditionally." >&2;}
9568   { (exit 1); exit 1; }; }
9569fi
9570if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
9571  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
9572Usually this means the macro was only invoked conditionally." >&5
9573echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
9574Usually this means the macro was only invoked conditionally." >&2;}
9575   { (exit 1); exit 1; }; }
9576fi
9577if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
9578  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
9579Usually this means the macro was only invoked conditionally." >&5
9580echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
9581Usually this means the macro was only invoked conditionally." >&2;}
9582   { (exit 1); exit 1; }; }
9583fi
9584
9585: ${CONFIG_STATUS=./config.status}
9586ac_clean_files_save=$ac_clean_files
9587ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9588{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9589echo "$as_me: creating $CONFIG_STATUS" >&6;}
9590cat >$CONFIG_STATUS <<_ACEOF
9591#! $SHELL
9592# Generated by $as_me.
9593# Run this file to recreate the current configuration.
9594# Compiler output produced by configure, useful for debugging
9595# configure, is in config.log if it exists.
9596
9597debug=false
9598ac_cs_recheck=false
9599ac_cs_silent=false
9600SHELL=\${CONFIG_SHELL-$SHELL}
9601_ACEOF
9602
9603cat >>$CONFIG_STATUS <<\_ACEOF
9604## --------------------- ##
9605## M4sh Initialization.  ##
9606## --------------------- ##
9607
9608# Be Bourne compatible
9609if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9610  emulate sh
9611  NULLCMD=:
9612  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9613  # is contrary to our usage.  Disable this feature.
9614  alias -g '${1+"$@"}'='"$@"'
9615elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9616  set -o posix
9617fi
9618DUALCASE=1; export DUALCASE # for MKS sh
9619
9620# Support unset when possible.
9621if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9622  as_unset=unset
9623else
9624  as_unset=false
9625fi
9626
9627
9628# Work around bugs in pre-3.0 UWIN ksh.
9629$as_unset ENV MAIL MAILPATH
9630PS1='$ '
9631PS2='> '
9632PS4='+ '
9633
9634# NLS nuisances.
9635for as_var in \
9636  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9637  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9638  LC_TELEPHONE LC_TIME
9639do
9640  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9641    eval $as_var=C; export $as_var
9642  else
9643    $as_unset $as_var
9644  fi
9645done
9646
9647# Required to use basename.
9648if expr a : '\(a\)' >/dev/null 2>&1; then
9649  as_expr=expr
9650else
9651  as_expr=false
9652fi
9653
9654if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9655  as_basename=basename
9656else
9657  as_basename=false
9658fi
9659
9660
9661# Name of the executable.
9662as_me=`$as_basename "$0" ||
9663$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9664         X"$0" : 'X\(//\)$' \| \
9665         X"$0" : 'X\(/\)$' \| \
9666         .     : '\(.\)' 2>/dev/null ||
9667echo X/"$0" |
9668    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9669          /^X\/\(\/\/\)$/{ s//\1/; q; }
9670          /^X\/\(\/\).*/{ s//\1/; q; }
9671          s/.*/./; q'`
9672
9673
9674# PATH needs CR, and LINENO needs CR and PATH.
9675# Avoid depending upon Character Ranges.
9676as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9678as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9679as_cr_digits='0123456789'
9680as_cr_alnum=$as_cr_Letters$as_cr_digits
9681
9682# The user is always right.
9683if test "${PATH_SEPARATOR+set}" != set; then
9684  echo "#! /bin/sh" >conf$$.sh
9685  echo  "exit 0"   >>conf$$.sh
9686  chmod +x conf$$.sh
9687  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9688    PATH_SEPARATOR=';'
9689  else
9690    PATH_SEPARATOR=:
9691  fi
9692  rm -f conf$$.sh
9693fi
9694
9695
9696  as_lineno_1=$LINENO
9697  as_lineno_2=$LINENO
9698  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9699  test "x$as_lineno_1" != "x$as_lineno_2" &&
9700  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9701  # Find who we are.  Look in the path if we contain no path at all
9702  # relative or not.
9703  case $0 in
9704    *[\\/]* ) as_myself=$0 ;;
9705    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708  IFS=$as_save_IFS
9709  test -z "$as_dir" && as_dir=.
9710  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9711done
9712
9713       ;;
9714  esac
9715  # We did not find ourselves, most probably we were run as `sh COMMAND'
9716  # in which case we are not to be found in the path.
9717  if test "x$as_myself" = x; then
9718    as_myself=$0
9719  fi
9720  if test ! -f "$as_myself"; then
9721    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9722echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9723   { (exit 1); exit 1; }; }
9724  fi
9725  case $CONFIG_SHELL in
9726  '')
9727    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9729do
9730  IFS=$as_save_IFS
9731  test -z "$as_dir" && as_dir=.
9732  for as_base in sh bash ksh sh5; do
9733         case $as_dir in
9734         /*)
9735           if ("$as_dir/$as_base" -c '
9736  as_lineno_1=$LINENO
9737  as_lineno_2=$LINENO
9738  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9739  test "x$as_lineno_1" != "x$as_lineno_2" &&
9740  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9741             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9742             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9743             CONFIG_SHELL=$as_dir/$as_base
9744             export CONFIG_SHELL
9745             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9746           fi;;
9747         esac
9748       done
9749done
9750;;
9751  esac
9752
9753  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9754  # uniformly replaced by the line number.  The first 'sed' inserts a
9755  # line-number line before each line; the second 'sed' does the real
9756  # work.  The second script uses 'N' to pair each line-number line
9757  # with the numbered line, and appends trailing '-' during
9758  # substitution so that $LINENO is not a special case at line end.
9759  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9760  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9761  sed '=' <$as_myself |
9762    sed '
9763      N
9764      s,$,-,
9765      : loop
9766      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9767      t loop
9768      s,-$,,
9769      s,^['$as_cr_digits']*\n,,
9770    ' >$as_me.lineno &&
9771  chmod +x $as_me.lineno ||
9772    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9773echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9774   { (exit 1); exit 1; }; }
9775
9776  # Don't try to exec as it changes $[0], causing all sort of problems
9777  # (the dirname of $[0] is not the place where we might find the
9778  # original and so on.  Autoconf is especially sensible to this).
9779  . ./$as_me.lineno
9780  # Exit status is that of the last command.
9781  exit
9782}
9783
9784
9785case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9786  *c*,-n*) ECHO_N= ECHO_C='
9787' ECHO_T='      ' ;;
9788  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9789  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9790esac
9791
9792if expr a : '\(a\)' >/dev/null 2>&1; then
9793  as_expr=expr
9794else
9795  as_expr=false
9796fi
9797
9798rm -f conf$$ conf$$.exe conf$$.file
9799echo >conf$$.file
9800if ln -s conf$$.file conf$$ 2>/dev/null; then
9801  # We could just check for DJGPP; but this test a) works b) is more generic
9802  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9803  if test -f conf$$.exe; then
9804    # Don't use ln at all; we don't have any links
9805    as_ln_s='cp -p'
9806  else
9807    as_ln_s='ln -s'
9808  fi
9809elif ln conf$$.file conf$$ 2>/dev/null; then
9810  as_ln_s=ln
9811else
9812  as_ln_s='cp -p'
9813fi
9814rm -f conf$$ conf$$.exe conf$$.file
9815
9816if mkdir -p . 2>/dev/null; then
9817  as_mkdir_p=:
9818else
9819  test -d ./-p && rmdir ./-p
9820  as_mkdir_p=false
9821fi
9822
9823as_executable_p="test -f"
9824
9825# Sed expression to map a string onto a valid CPP name.
9826as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9827
9828# Sed expression to map a string onto a valid variable name.
9829as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9830
9831
9832# IFS
9833# We need space, tab and new line, in precisely that order.
9834as_nl='
9835'
9836IFS="   $as_nl"
9837
9838# CDPATH.
9839$as_unset CDPATH
9840
9841exec 6>&1
9842
9843# Open the log real soon, to keep \$[0] and so on meaningful, and to
9844# report actual input values of CONFIG_FILES etc. instead of their
9845# values after options handling.  Logging --version etc. is OK.
9846exec 5>>config.log
9847{
9848  echo
9849  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9850## Running $as_me. ##
9851_ASBOX
9852} >&5
9853cat >&5 <<_CSEOF
9854
9855This file was extended by orxonox $as_me 0.3.0_alpha, which was
9856generated by GNU Autoconf 2.59.  Invocation command line was
9857
9858  CONFIG_FILES    = $CONFIG_FILES
9859  CONFIG_HEADERS  = $CONFIG_HEADERS
9860  CONFIG_LINKS    = $CONFIG_LINKS
9861  CONFIG_COMMANDS = $CONFIG_COMMANDS
9862  $ $0 $@
9863
9864_CSEOF
9865echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9866echo >&5
9867_ACEOF
9868
9869# Files that config.status was made for.
9870if test -n "$ac_config_files"; then
9871  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9872fi
9873
9874if test -n "$ac_config_headers"; then
9875  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9876fi
9877
9878if test -n "$ac_config_links"; then
9879  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9880fi
9881
9882if test -n "$ac_config_commands"; then
9883  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9884fi
9885
9886cat >>$CONFIG_STATUS <<\_ACEOF
9887
9888ac_cs_usage="\
9889\`$as_me' instantiates files from templates according to the
9890current configuration.
9891
9892Usage: $0 [OPTIONS] [FILE]...
9893
9894  -h, --help       print this help, then exit
9895  -V, --version    print version number, then exit
9896  -q, --quiet      do not print progress messages
9897  -d, --debug      don't remove temporary files
9898      --recheck    update $as_me by reconfiguring in the same conditions
9899  --file=FILE[:TEMPLATE]
9900                   instantiate the configuration file FILE
9901  --header=FILE[:TEMPLATE]
9902                   instantiate the configuration header FILE
9903
9904Configuration files:
9905$config_files
9906
9907Configuration headers:
9908$config_headers
9909
9910Configuration commands:
9911$config_commands
9912
9913Report bugs to <bug-autoconf@gnu.org>."
9914_ACEOF
9915
9916cat >>$CONFIG_STATUS <<_ACEOF
9917ac_cs_version="\\
9918orxonox config.status 0.3.0_alpha
9919configured by $0, generated by GNU Autoconf 2.59,
9920  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9921
9922Copyright (C) 2003 Free Software Foundation, Inc.
9923This config.status script is free software; the Free Software Foundation
9924gives unlimited permission to copy, distribute and modify it."
9925srcdir=$srcdir
9926INSTALL="$INSTALL"
9927_ACEOF
9928
9929cat >>$CONFIG_STATUS <<\_ACEOF
9930# If no file are specified by the user, then we need to provide default
9931# value.  By we need to know if files were specified by the user.
9932ac_need_defaults=:
9933while test $# != 0
9934do
9935  case $1 in
9936  --*=*)
9937    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9938    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9939    ac_shift=:
9940    ;;
9941  -*)
9942    ac_option=$1
9943    ac_optarg=$2
9944    ac_shift=shift
9945    ;;
9946  *) # This is not an option, so the user has probably given explicit
9947     # arguments.
9948     ac_option=$1
9949     ac_need_defaults=false;;
9950  esac
9951
9952  case $ac_option in
9953  # Handling of the options.
9954_ACEOF
9955cat >>$CONFIG_STATUS <<\_ACEOF
9956  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9957    ac_cs_recheck=: ;;
9958  --version | --vers* | -V )
9959    echo "$ac_cs_version"; exit 0 ;;
9960  --he | --h)
9961    # Conflict between --help and --header
9962    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9963Try \`$0 --help' for more information." >&5
9964echo "$as_me: error: ambiguous option: $1
9965Try \`$0 --help' for more information." >&2;}
9966   { (exit 1); exit 1; }; };;
9967  --help | --hel | -h )
9968    echo "$ac_cs_usage"; exit 0 ;;
9969  --debug | --d* | -d )
9970    debug=: ;;
9971  --file | --fil | --fi | --f )
9972    $ac_shift
9973    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9974    ac_need_defaults=false;;
9975  --header | --heade | --head | --hea )
9976    $ac_shift
9977    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9978    ac_need_defaults=false;;
9979  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9980  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9981    ac_cs_silent=: ;;
9982
9983  # This is an error.
9984  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9985Try \`$0 --help' for more information." >&5
9986echo "$as_me: error: unrecognized option: $1
9987Try \`$0 --help' for more information." >&2;}
9988   { (exit 1); exit 1; }; } ;;
9989
9990  *) ac_config_targets="$ac_config_targets $1" ;;
9991
9992  esac
9993  shift
9994done
9995
9996ac_configure_extra_args=
9997
9998if $ac_cs_silent; then
9999  exec 6>/dev/null
10000  ac_configure_extra_args="$ac_configure_extra_args --silent"
10001fi
10002
10003_ACEOF
10004cat >>$CONFIG_STATUS <<_ACEOF
10005if \$ac_cs_recheck; then
10006  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10007  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10008fi
10009
10010_ACEOF
10011
10012cat >>$CONFIG_STATUS <<_ACEOF
10013#
10014# INIT-COMMANDS section.
10015#
10016
10017AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10018
10019_ACEOF
10020
10021
10022
10023cat >>$CONFIG_STATUS <<\_ACEOF
10024for ac_config_target in $ac_config_targets
10025do
10026  case "$ac_config_target" in
10027  # Handling of arguments.
10028  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10029  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10030  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10031  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
10032  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
10033  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
10034  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
10035  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
10036  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
10037  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
10038  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
10039  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
10040  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
10041  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10042  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
10043  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
10044  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
10045  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
10046  "src/subprojects/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/gui/Makefile" ;;
10047  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10048  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10049  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10050echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10051   { (exit 1); exit 1; }; };;
10052  esac
10053done
10054
10055# If the user did not use the arguments to specify the items to instantiate,
10056# then the envvar interface is used.  Set only those that are not.
10057# We use the long form for the default assignment because of an extremely
10058# bizarre bug on SunOS 4.1.3.
10059if $ac_need_defaults; then
10060  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10061  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10062  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10063fi
10064
10065# Have a temporary directory for convenience.  Make it in the build tree
10066# simply because there is no reason to put it here, and in addition,
10067# creating and moving files from /tmp can sometimes cause problems.
10068# Create a temporary directory, and hook for its removal unless debugging.
10069$debug ||
10070{
10071  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10072  trap '{ (exit 1); exit 1; }' 1 2 13 15
10073}
10074
10075# Create a (secure) tmp directory for tmp files.
10076
10077{
10078  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10079  test -n "$tmp" && test -d "$tmp"
10080}  ||
10081{
10082  tmp=./confstat$$-$RANDOM
10083  (umask 077 && mkdir $tmp)
10084} ||
10085{
10086   echo "$me: cannot create a temporary directory in ." >&2
10087   { (exit 1); exit 1; }
10088}
10089
10090_ACEOF
10091
10092cat >>$CONFIG_STATUS <<_ACEOF
10093
10094#
10095# CONFIG_FILES section.
10096#
10097
10098# No need to generate the scripts if there are no CONFIG_FILES.
10099# This happens for instance when ./config.status config.h
10100if test -n "\$CONFIG_FILES"; then
10101  # Protect against being on the right side of a sed subst in config.status.
10102  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10103   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10104s,@SHELL@,$SHELL,;t t
10105s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10106s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10107s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10108s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10109s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10110s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10111s,@exec_prefix@,$exec_prefix,;t t
10112s,@prefix@,$prefix,;t t
10113s,@program_transform_name@,$program_transform_name,;t t
10114s,@bindir@,$bindir,;t t
10115s,@sbindir@,$sbindir,;t t
10116s,@libexecdir@,$libexecdir,;t t
10117s,@datadir@,$datadir,;t t
10118s,@sysconfdir@,$sysconfdir,;t t
10119s,@sharedstatedir@,$sharedstatedir,;t t
10120s,@localstatedir@,$localstatedir,;t t
10121s,@libdir@,$libdir,;t t
10122s,@includedir@,$includedir,;t t
10123s,@oldincludedir@,$oldincludedir,;t t
10124s,@infodir@,$infodir,;t t
10125s,@mandir@,$mandir,;t t
10126s,@build_alias@,$build_alias,;t t
10127s,@host_alias@,$host_alias,;t t
10128s,@target_alias@,$target_alias,;t t
10129s,@DEFS@,$DEFS,;t t
10130s,@ECHO_C@,$ECHO_C,;t t
10131s,@ECHO_N@,$ECHO_N,;t t
10132s,@ECHO_T@,$ECHO_T,;t t
10133s,@LIBS@,$LIBS,;t t
10134s,@build@,$build,;t t
10135s,@build_cpu@,$build_cpu,;t t
10136s,@build_vendor@,$build_vendor,;t t
10137s,@build_os@,$build_os,;t t
10138s,@host@,$host,;t t
10139s,@host_cpu@,$host_cpu,;t t
10140s,@host_vendor@,$host_vendor,;t t
10141s,@host_os@,$host_os,;t t
10142s,@target@,$target,;t t
10143s,@target_cpu@,$target_cpu,;t t
10144s,@target_vendor@,$target_vendor,;t t
10145s,@target_os@,$target_os,;t t
10146s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10147s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10148s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10149s,@CYGPATH_W@,$CYGPATH_W,;t t
10150s,@PACKAGE@,$PACKAGE,;t t
10151s,@VERSION@,$VERSION,;t t
10152s,@ACLOCAL@,$ACLOCAL,;t t
10153s,@AUTOCONF@,$AUTOCONF,;t t
10154s,@AUTOMAKE@,$AUTOMAKE,;t t
10155s,@AUTOHEADER@,$AUTOHEADER,;t t
10156s,@MAKEINFO@,$MAKEINFO,;t t
10157s,@AMTAR@,$AMTAR,;t t
10158s,@install_sh@,$install_sh,;t t
10159s,@STRIP@,$STRIP,;t t
10160s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10161s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10162s,@mkdir_p@,$mkdir_p,;t t
10163s,@AWK@,$AWK,;t t
10164s,@SET_MAKE@,$SET_MAKE,;t t
10165s,@am__leading_dot@,$am__leading_dot,;t t
10166s,@CXX@,$CXX,;t t
10167s,@CXXFLAGS@,$CXXFLAGS,;t t
10168s,@LDFLAGS@,$LDFLAGS,;t t
10169s,@CPPFLAGS@,$CPPFLAGS,;t t
10170s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10171s,@EXEEXT@,$EXEEXT,;t t
10172s,@OBJEXT@,$OBJEXT,;t t
10173s,@DEPDIR@,$DEPDIR,;t t
10174s,@am__include@,$am__include,;t t
10175s,@am__quote@,$am__quote,;t t
10176s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10177s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10178s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10179s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10180s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10181s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10182s,@RANLIB@,$RANLIB,;t t
10183s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10184s,@CC@,$CC,;t t
10185s,@CFLAGS@,$CFLAGS,;t t
10186s,@ac_ct_CC@,$ac_ct_CC,;t t
10187s,@CCDEPMODE@,$CCDEPMODE,;t t
10188s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10189s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10190s,@CPP@,$CPP,;t t
10191s,@EGREP@,$EGREP,;t t
10192s,@DEBUG@,$DEBUG,;t t
10193s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10194s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
10195s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10196s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
10197s,@DOXYGEN@,$DOXYGEN,;t t
10198s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10199s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
10200s,@GPROF@,$GPROF,;t t
10201s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10202s,@MSBITFIELDS@,$MSBITFIELDS,;t t
10203s,@GTK2_LIBS@,$GTK2_LIBS,;t t
10204s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10205s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10206s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
10207s,@CURL_LIBS@,$CURL_LIBS,;t t
10208s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10209s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10210s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
10211s,@LIBOBJS@,$LIBOBJS,;t t
10212s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10213CEOF
10214
10215_ACEOF
10216
10217  cat >>$CONFIG_STATUS <<\_ACEOF
10218  # Split the substitutions into bite-sized pieces for seds with
10219  # small command number limits, like on Digital OSF/1 and HP-UX.
10220  ac_max_sed_lines=48
10221  ac_sed_frag=1 # Number of current file.
10222  ac_beg=1 # First line for current file.
10223  ac_end=$ac_max_sed_lines # Line after last line for current file.
10224  ac_more_lines=:
10225  ac_sed_cmds=
10226  while $ac_more_lines; do
10227    if test $ac_beg -gt 1; then
10228      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10229    else
10230      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10231    fi
10232    if test ! -s $tmp/subs.frag; then
10233      ac_more_lines=false
10234    else
10235      # The purpose of the label and of the branching condition is to
10236      # speed up the sed processing (if there are no `@' at all, there
10237      # is no need to browse any of the substitutions).
10238      # These are the two extra sed commands mentioned above.
10239      (echo ':t
10240  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10241      if test -z "$ac_sed_cmds"; then
10242        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10243      else
10244        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10245      fi
10246      ac_sed_frag=`expr $ac_sed_frag + 1`
10247      ac_beg=$ac_end
10248      ac_end=`expr $ac_end + $ac_max_sed_lines`
10249    fi
10250  done
10251  if test -z "$ac_sed_cmds"; then
10252    ac_sed_cmds=cat
10253  fi
10254fi # test -n "$CONFIG_FILES"
10255
10256_ACEOF
10257cat >>$CONFIG_STATUS <<\_ACEOF
10258for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10259  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10260  case $ac_file in
10261  - | *:- | *:-:* ) # input from stdin
10262        cat >$tmp/stdin
10263        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10264        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10265  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10266        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10267  * )   ac_file_in=$ac_file.in ;;
10268  esac
10269
10270  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10271  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10273         X"$ac_file" : 'X\(//\)[^/]' \| \
10274         X"$ac_file" : 'X\(//\)$' \| \
10275         X"$ac_file" : 'X\(/\)' \| \
10276         .     : '\(.\)' 2>/dev/null ||
10277echo X"$ac_file" |
10278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10279          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10280          /^X\(\/\/\)$/{ s//\1/; q; }
10281          /^X\(\/\).*/{ s//\1/; q; }
10282          s/.*/./; q'`
10283  { if $as_mkdir_p; then
10284    mkdir -p "$ac_dir"
10285  else
10286    as_dir="$ac_dir"
10287    as_dirs=
10288    while test ! -d "$as_dir"; do
10289      as_dirs="$as_dir $as_dirs"
10290      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10292         X"$as_dir" : 'X\(//\)[^/]' \| \
10293         X"$as_dir" : 'X\(//\)$' \| \
10294         X"$as_dir" : 'X\(/\)' \| \
10295         .     : '\(.\)' 2>/dev/null ||
10296echo X"$as_dir" |
10297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10298          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10299          /^X\(\/\/\)$/{ s//\1/; q; }
10300          /^X\(\/\).*/{ s//\1/; q; }
10301          s/.*/./; q'`
10302    done
10303    test ! -n "$as_dirs" || mkdir $as_dirs
10304  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10306   { (exit 1); exit 1; }; }; }
10307
10308  ac_builddir=.
10309
10310if test "$ac_dir" != .; then
10311  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10312  # A "../" for each directory in $ac_dir_suffix.
10313  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10314else
10315  ac_dir_suffix= ac_top_builddir=
10316fi
10317
10318case $srcdir in
10319  .)  # No --srcdir option.  We are building in place.
10320    ac_srcdir=.
10321    if test -z "$ac_top_builddir"; then
10322       ac_top_srcdir=.
10323    else
10324       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10325    fi ;;
10326  [\\/]* | ?:[\\/]* )  # Absolute path.
10327    ac_srcdir=$srcdir$ac_dir_suffix;
10328    ac_top_srcdir=$srcdir ;;
10329  *) # Relative path.
10330    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10331    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10332esac
10333
10334# Do not use `cd foo && pwd` to compute absolute paths, because
10335# the directories may not exist.
10336case `pwd` in
10337.) ac_abs_builddir="$ac_dir";;
10338*)
10339  case "$ac_dir" in
10340  .) ac_abs_builddir=`pwd`;;
10341  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10342  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10343  esac;;
10344esac
10345case $ac_abs_builddir in
10346.) ac_abs_top_builddir=${ac_top_builddir}.;;
10347*)
10348  case ${ac_top_builddir}. in
10349  .) ac_abs_top_builddir=$ac_abs_builddir;;
10350  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10351  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10352  esac;;
10353esac
10354case $ac_abs_builddir in
10355.) ac_abs_srcdir=$ac_srcdir;;
10356*)
10357  case $ac_srcdir in
10358  .) ac_abs_srcdir=$ac_abs_builddir;;
10359  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10360  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10361  esac;;
10362esac
10363case $ac_abs_builddir in
10364.) ac_abs_top_srcdir=$ac_top_srcdir;;
10365*)
10366  case $ac_top_srcdir in
10367  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10368  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10369  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10370  esac;;
10371esac
10372
10373
10374  case $INSTALL in
10375  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10376  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10377  esac
10378
10379  if test x"$ac_file" != x-; then
10380    { echo "$as_me:$LINENO: creating $ac_file" >&5
10381echo "$as_me: creating $ac_file" >&6;}
10382    rm -f "$ac_file"
10383  fi
10384  # Let's still pretend it is `configure' which instantiates (i.e., don't
10385  # use $as_me), people would be surprised to read:
10386  #    /* config.h.  Generated by config.status.  */
10387  if test x"$ac_file" = x-; then
10388    configure_input=
10389  else
10390    configure_input="$ac_file.  "
10391  fi
10392  configure_input=$configure_input"Generated from `echo $ac_file_in |
10393                                     sed 's,.*/,,'` by configure."
10394
10395  # First look for the input files in the build tree, otherwise in the
10396  # src tree.
10397  ac_file_inputs=`IFS=:
10398    for f in $ac_file_in; do
10399      case $f in
10400      -) echo $tmp/stdin ;;
10401      [\\/$]*)
10402         # Absolute (can't be DOS-style, as IFS=:)
10403         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10404echo "$as_me: error: cannot find input file: $f" >&2;}
10405   { (exit 1); exit 1; }; }
10406         echo "$f";;
10407      *) # Relative
10408         if test -f "$f"; then
10409           # Build tree
10410           echo "$f"
10411         elif test -f "$srcdir/$f"; then
10412           # Source tree
10413           echo "$srcdir/$f"
10414         else
10415           # /dev/null tree
10416           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10417echo "$as_me: error: cannot find input file: $f" >&2;}
10418   { (exit 1); exit 1; }; }
10419         fi;;
10420      esac
10421    done` || { (exit 1); exit 1; }
10422_ACEOF
10423cat >>$CONFIG_STATUS <<_ACEOF
10424  sed "$ac_vpsub
10425$extrasub
10426_ACEOF
10427cat >>$CONFIG_STATUS <<\_ACEOF
10428:t
10429/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10430s,@configure_input@,$configure_input,;t t
10431s,@srcdir@,$ac_srcdir,;t t
10432s,@abs_srcdir@,$ac_abs_srcdir,;t t
10433s,@top_srcdir@,$ac_top_srcdir,;t t
10434s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10435s,@builddir@,$ac_builddir,;t t
10436s,@abs_builddir@,$ac_abs_builddir,;t t
10437s,@top_builddir@,$ac_top_builddir,;t t
10438s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10439s,@INSTALL@,$ac_INSTALL,;t t
10440" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10441  rm -f $tmp/stdin
10442  if test x"$ac_file" != x-; then
10443    mv $tmp/out $ac_file
10444  else
10445    cat $tmp/out
10446    rm -f $tmp/out
10447  fi
10448
10449done
10450_ACEOF
10451cat >>$CONFIG_STATUS <<\_ACEOF
10452
10453#
10454# CONFIG_HEADER section.
10455#
10456
10457# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10458# NAME is the cpp macro being defined and VALUE is the value it is being given.
10459#
10460# ac_d sets the value in "#define NAME VALUE" lines.
10461ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10462ac_dB='[         ].*$,\1#\2'
10463ac_dC=' '
10464ac_dD=',;t'
10465# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10466ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10467ac_uB='$,\1#\2define\3'
10468ac_uC=' '
10469ac_uD=',;t'
10470
10471for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10472  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10473  case $ac_file in
10474  - | *:- | *:-:* ) # input from stdin
10475        cat >$tmp/stdin
10476        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10477        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10478  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10479        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10480  * )   ac_file_in=$ac_file.in ;;
10481  esac
10482
10483  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10484echo "$as_me: creating $ac_file" >&6;}
10485
10486  # First look for the input files in the build tree, otherwise in the
10487  # src tree.
10488  ac_file_inputs=`IFS=:
10489    for f in $ac_file_in; do
10490      case $f in
10491      -) echo $tmp/stdin ;;
10492      [\\/$]*)
10493         # Absolute (can't be DOS-style, as IFS=:)
10494         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10495echo "$as_me: error: cannot find input file: $f" >&2;}
10496   { (exit 1); exit 1; }; }
10497         # Do quote $f, to prevent DOS paths from being IFS'd.
10498         echo "$f";;
10499      *) # Relative
10500         if test -f "$f"; then
10501           # Build tree
10502           echo "$f"
10503         elif test -f "$srcdir/$f"; then
10504           # Source tree
10505           echo "$srcdir/$f"
10506         else
10507           # /dev/null tree
10508           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10509echo "$as_me: error: cannot find input file: $f" >&2;}
10510   { (exit 1); exit 1; }; }
10511         fi;;
10512      esac
10513    done` || { (exit 1); exit 1; }
10514  # Remove the trailing spaces.
10515  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10516
10517_ACEOF
10518
10519# Transform confdefs.h into two sed scripts, `conftest.defines' and
10520# `conftest.undefs', that substitutes the proper values into
10521# config.h.in to produce config.h.  The first handles `#define'
10522# templates, and the second `#undef' templates.
10523# And first: Protect against being on the right side of a sed subst in
10524# config.status.  Protect against being in an unquoted here document
10525# in config.status.
10526rm -f conftest.defines conftest.undefs
10527# Using a here document instead of a string reduces the quoting nightmare.
10528# Putting comments in sed scripts is not portable.
10529#
10530# `end' is used to avoid that the second main sed command (meant for
10531# 0-ary CPP macros) applies to n-ary macro definitions.
10532# See the Autoconf documentation for `clear'.
10533cat >confdef2sed.sed <<\_ACEOF
10534s/[\\&,]/\\&/g
10535s,[\\$`],\\&,g
10536t clear
10537: clear
10538s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10539t end
10540s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10541: end
10542_ACEOF
10543# If some macros were called several times there might be several times
10544# the same #defines, which is useless.  Nevertheless, we may not want to
10545# sort them, since we want the *last* AC-DEFINE to be honored.
10546uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10547sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10548rm -f confdef2sed.sed
10549
10550# This sed command replaces #undef with comments.  This is necessary, for
10551# example, in the case of _POSIX_SOURCE, which is predefined and required
10552# on some systems where configure will not decide to define it.
10553cat >>conftest.undefs <<\_ACEOF
10554s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10555_ACEOF
10556
10557# Break up conftest.defines because some shells have a limit on the size
10558# of here documents, and old seds have small limits too (100 cmds).
10559echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10560echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10561echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10562echo '  :' >>$CONFIG_STATUS
10563rm -f conftest.tail
10564while grep . conftest.defines >/dev/null
10565do
10566  # Write a limited-size here document to $tmp/defines.sed.
10567  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10568  # Speed up: don't consider the non `#define' lines.
10569  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10570  # Work around the forget-to-reset-the-flag bug.
10571  echo 't clr' >>$CONFIG_STATUS
10572  echo ': clr' >>$CONFIG_STATUS
10573  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10574  echo 'CEOF
10575  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10576  rm -f $tmp/in
10577  mv $tmp/out $tmp/in
10578' >>$CONFIG_STATUS
10579  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10580  rm -f conftest.defines
10581  mv conftest.tail conftest.defines
10582done
10583rm -f conftest.defines
10584echo '  fi # grep' >>$CONFIG_STATUS
10585echo >>$CONFIG_STATUS
10586
10587# Break up conftest.undefs because some shells have a limit on the size
10588# of here documents, and old seds have small limits too (100 cmds).
10589echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10590rm -f conftest.tail
10591while grep . conftest.undefs >/dev/null
10592do
10593  # Write a limited-size here document to $tmp/undefs.sed.
10594  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10595  # Speed up: don't consider the non `#undef'
10596  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10597  # Work around the forget-to-reset-the-flag bug.
10598  echo 't clr' >>$CONFIG_STATUS
10599  echo ': clr' >>$CONFIG_STATUS
10600  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10601  echo 'CEOF
10602  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10603  rm -f $tmp/in
10604  mv $tmp/out $tmp/in
10605' >>$CONFIG_STATUS
10606  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10607  rm -f conftest.undefs
10608  mv conftest.tail conftest.undefs
10609done
10610rm -f conftest.undefs
10611
10612cat >>$CONFIG_STATUS <<\_ACEOF
10613  # Let's still pretend it is `configure' which instantiates (i.e., don't
10614  # use $as_me), people would be surprised to read:
10615  #    /* config.h.  Generated by config.status.  */
10616  if test x"$ac_file" = x-; then
10617    echo "/* Generated by configure.  */" >$tmp/config.h
10618  else
10619    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10620  fi
10621  cat $tmp/in >>$tmp/config.h
10622  rm -f $tmp/in
10623  if test x"$ac_file" != x-; then
10624    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10625      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10626echo "$as_me: $ac_file is unchanged" >&6;}
10627    else
10628      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10630         X"$ac_file" : 'X\(//\)[^/]' \| \
10631         X"$ac_file" : 'X\(//\)$' \| \
10632         X"$ac_file" : 'X\(/\)' \| \
10633         .     : '\(.\)' 2>/dev/null ||
10634echo X"$ac_file" |
10635    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10636          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10637          /^X\(\/\/\)$/{ s//\1/; q; }
10638          /^X\(\/\).*/{ s//\1/; q; }
10639          s/.*/./; q'`
10640      { if $as_mkdir_p; then
10641    mkdir -p "$ac_dir"
10642  else
10643    as_dir="$ac_dir"
10644    as_dirs=
10645    while test ! -d "$as_dir"; do
10646      as_dirs="$as_dir $as_dirs"
10647      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10649         X"$as_dir" : 'X\(//\)[^/]' \| \
10650         X"$as_dir" : 'X\(//\)$' \| \
10651         X"$as_dir" : 'X\(/\)' \| \
10652         .     : '\(.\)' 2>/dev/null ||
10653echo X"$as_dir" |
10654    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10655          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10656          /^X\(\/\/\)$/{ s//\1/; q; }
10657          /^X\(\/\).*/{ s//\1/; q; }
10658          s/.*/./; q'`
10659    done
10660    test ! -n "$as_dirs" || mkdir $as_dirs
10661  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10662echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10663   { (exit 1); exit 1; }; }; }
10664
10665      rm -f $ac_file
10666      mv $tmp/config.h $ac_file
10667    fi
10668  else
10669    cat $tmp/config.h
10670    rm -f $tmp/config.h
10671  fi
10672# Compute $ac_file's index in $config_headers.
10673_am_stamp_count=1
10674for _am_header in $config_headers :; do
10675  case $_am_header in
10676    $ac_file | $ac_file:* )
10677      break ;;
10678    * )
10679      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10680  esac
10681done
10682echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10683$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10684         X$ac_file : 'X\(//\)[^/]' \| \
10685         X$ac_file : 'X\(//\)$' \| \
10686         X$ac_file : 'X\(/\)' \| \
10687         .     : '\(.\)' 2>/dev/null ||
10688echo X$ac_file |
10689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10690          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10691          /^X\(\/\/\)$/{ s//\1/; q; }
10692          /^X\(\/\).*/{ s//\1/; q; }
10693          s/.*/./; q'`/stamp-h$_am_stamp_count
10694done
10695_ACEOF
10696cat >>$CONFIG_STATUS <<\_ACEOF
10697
10698#
10699# CONFIG_COMMANDS section.
10700#
10701for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10702  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10703  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10704  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10705$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10706         X"$ac_dest" : 'X\(//\)[^/]' \| \
10707         X"$ac_dest" : 'X\(//\)$' \| \
10708         X"$ac_dest" : 'X\(/\)' \| \
10709         .     : '\(.\)' 2>/dev/null ||
10710echo X"$ac_dest" |
10711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10712          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10713          /^X\(\/\/\)$/{ s//\1/; q; }
10714          /^X\(\/\).*/{ s//\1/; q; }
10715          s/.*/./; q'`
10716  { if $as_mkdir_p; then
10717    mkdir -p "$ac_dir"
10718  else
10719    as_dir="$ac_dir"
10720    as_dirs=
10721    while test ! -d "$as_dir"; do
10722      as_dirs="$as_dir $as_dirs"
10723      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10725         X"$as_dir" : 'X\(//\)[^/]' \| \
10726         X"$as_dir" : 'X\(//\)$' \| \
10727         X"$as_dir" : 'X\(/\)' \| \
10728         .     : '\(.\)' 2>/dev/null ||
10729echo X"$as_dir" |
10730    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10731          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10732          /^X\(\/\/\)$/{ s//\1/; q; }
10733          /^X\(\/\).*/{ s//\1/; q; }
10734          s/.*/./; q'`
10735    done
10736    test ! -n "$as_dirs" || mkdir $as_dirs
10737  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10739   { (exit 1); exit 1; }; }; }
10740
10741  ac_builddir=.
10742
10743if test "$ac_dir" != .; then
10744  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10745  # A "../" for each directory in $ac_dir_suffix.
10746  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10747else
10748  ac_dir_suffix= ac_top_builddir=
10749fi
10750
10751case $srcdir in
10752  .)  # No --srcdir option.  We are building in place.
10753    ac_srcdir=.
10754    if test -z "$ac_top_builddir"; then
10755       ac_top_srcdir=.
10756    else
10757       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10758    fi ;;
10759  [\\/]* | ?:[\\/]* )  # Absolute path.
10760    ac_srcdir=$srcdir$ac_dir_suffix;
10761    ac_top_srcdir=$srcdir ;;
10762  *) # Relative path.
10763    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10764    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10765esac
10766
10767# Do not use `cd foo && pwd` to compute absolute paths, because
10768# the directories may not exist.
10769case `pwd` in
10770.) ac_abs_builddir="$ac_dir";;
10771*)
10772  case "$ac_dir" in
10773  .) ac_abs_builddir=`pwd`;;
10774  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10775  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10776  esac;;
10777esac
10778case $ac_abs_builddir in
10779.) ac_abs_top_builddir=${ac_top_builddir}.;;
10780*)
10781  case ${ac_top_builddir}. in
10782  .) ac_abs_top_builddir=$ac_abs_builddir;;
10783  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10784  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10785  esac;;
10786esac
10787case $ac_abs_builddir in
10788.) ac_abs_srcdir=$ac_srcdir;;
10789*)
10790  case $ac_srcdir in
10791  .) ac_abs_srcdir=$ac_abs_builddir;;
10792  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10793  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10794  esac;;
10795esac
10796case $ac_abs_builddir in
10797.) ac_abs_top_srcdir=$ac_top_srcdir;;
10798*)
10799  case $ac_top_srcdir in
10800  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10801  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10802  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10803  esac;;
10804esac
10805
10806
10807  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10808echo "$as_me: executing $ac_dest commands" >&6;}
10809  case $ac_dest in
10810    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10811  # Strip MF so we end up with the name of the file.
10812  mf=`echo "$mf" | sed -e 's/:.*$//'`
10813  # Check whether this is an Automake generated Makefile or not.
10814  # We used to match only the files named `Makefile.in', but
10815  # some people rename them; so instead we look at the file content.
10816  # Grep'ing the first line is not enough: some people post-process
10817  # each Makefile.in and add a new line on top of each file to say so.
10818  # So let's grep whole file.
10819  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10820    dirpart=`(dirname "$mf") 2>/dev/null ||
10821$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10822         X"$mf" : 'X\(//\)[^/]' \| \
10823         X"$mf" : 'X\(//\)$' \| \
10824         X"$mf" : 'X\(/\)' \| \
10825         .     : '\(.\)' 2>/dev/null ||
10826echo X"$mf" |
10827    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10828          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10829          /^X\(\/\/\)$/{ s//\1/; q; }
10830          /^X\(\/\).*/{ s//\1/; q; }
10831          s/.*/./; q'`
10832  else
10833    continue
10834  fi
10835  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10836  # Extract the definition of DEP_FILES from the Makefile without
10837  # running `make'.
10838  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10839  test -z "$DEPDIR" && continue
10840  # When using ansi2knr, U may be empty or an underscore; expand it
10841  U=`sed -n -e '/^U = / s///p' < "$mf"`
10842  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10843  # We invoke sed twice because it is the simplest approach to
10844  # changing $(DEPDIR) to its actual value in the expansion.
10845  for file in `sed -n -e '
10846    /^DEP_FILES = .*\\\\$/ {
10847      s/^DEP_FILES = //
10848      :loop
10849        s/\\\\$//
10850        p
10851        n
10852        /\\\\$/ b loop
10853      p
10854    }
10855    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10856       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10857    # Make sure the directory exists.
10858    test -f "$dirpart/$file" && continue
10859    fdir=`(dirname "$file") 2>/dev/null ||
10860$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10861         X"$file" : 'X\(//\)[^/]' \| \
10862         X"$file" : 'X\(//\)$' \| \
10863         X"$file" : 'X\(/\)' \| \
10864         .     : '\(.\)' 2>/dev/null ||
10865echo X"$file" |
10866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10867          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10868          /^X\(\/\/\)$/{ s//\1/; q; }
10869          /^X\(\/\).*/{ s//\1/; q; }
10870          s/.*/./; q'`
10871    { if $as_mkdir_p; then
10872    mkdir -p $dirpart/$fdir
10873  else
10874    as_dir=$dirpart/$fdir
10875    as_dirs=
10876    while test ! -d "$as_dir"; do
10877      as_dirs="$as_dir $as_dirs"
10878      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10880         X"$as_dir" : 'X\(//\)[^/]' \| \
10881         X"$as_dir" : 'X\(//\)$' \| \
10882         X"$as_dir" : 'X\(/\)' \| \
10883         .     : '\(.\)' 2>/dev/null ||
10884echo X"$as_dir" |
10885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10886          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10887          /^X\(\/\/\)$/{ s//\1/; q; }
10888          /^X\(\/\).*/{ s//\1/; q; }
10889          s/.*/./; q'`
10890    done
10891    test ! -n "$as_dirs" || mkdir $as_dirs
10892  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10893echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10894   { (exit 1); exit 1; }; }; }
10895
10896    # echo "creating $dirpart/$file"
10897    echo '# dummy' > "$dirpart/$file"
10898  done
10899done
10900 ;;
10901  esac
10902done
10903_ACEOF
10904
10905cat >>$CONFIG_STATUS <<\_ACEOF
10906
10907{ (exit 0); exit 0; }
10908_ACEOF
10909chmod +x $CONFIG_STATUS
10910ac_clean_files=$ac_clean_files_save
10911
10912
10913# configure is writing to config.log, and then calls config.status.
10914# config.status does its own redirection, appending to config.log.
10915# Unfortunately, on DOS this fails, as config.log is still kept open
10916# by configure, so config.status won't be able to write to it; its
10917# output is simply discarded.  So we exec the FD to /dev/null,
10918# effectively closing config.log, so it can be properly (re)opened and
10919# appended to by config.status.  When coming back to configure, we
10920# need to make the FD available again.
10921if test "$no_create" != yes; then
10922  ac_cs_success=:
10923  ac_config_status_args=
10924  test "$silent" = yes &&
10925    ac_config_status_args="$ac_config_status_args --quiet"
10926  exec 5>/dev/null
10927  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10928  exec 5>>config.log
10929  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10930  # would make configure fail if this is the last instruction.
10931  $ac_cs_success || { (exit 1); exit 1; }
10932fi
10933
Note: See TracBrowser for help on using the repository browser.