Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: better ebuild, and the default data-dir can now be specified through ./configure —datadir=bla

  • Property svn:executable set to *
File size: 314.9 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 --version . >/dev/null 2>&1 && test ! -d ./--version; 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 ./--version;
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      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2524      # Solaris 8's {/usr,}/bin/sh.
2525      touch sub/conftst$i.h
2526    done
2527    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2528
2529    case $depmode in
2530    nosideeffect)
2531      # after this tag, mechanisms are not by side-effect, so they'll
2532      # only be used when explicitly requested
2533      if test "x$enable_dependency_tracking" = xyes; then
2534        continue
2535      else
2536        break
2537      fi
2538      ;;
2539    none) break ;;
2540    esac
2541    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2542    # mode.  It turns out that the SunPro C++ compiler does not properly
2543    # handle `-M -o', and we need to detect this.
2544    if depmode=$depmode \
2545       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2546       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2547       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2548         >/dev/null 2>conftest.err &&
2549       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2550       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2551       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2552      # icc doesn't choke on unknown options, it will just issue warnings
2553      # or remarks (even with -Werror).  So we grep stderr for any message
2554      # that says an option was ignored or not supported.
2555      # When given -MP, icc 7.0 and 7.1 complain thusly:
2556      #   icc: Command line warning: ignoring option '-M'; no argument required
2557      # The diagnosis changed in icc 8.0:
2558      #   icc: Command line remark: option '-MP' not supported
2559      if (grep 'ignoring option' conftest.err ||
2560          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2561        am_cv_CXX_dependencies_compiler_type=$depmode
2562        break
2563      fi
2564    fi
2565  done
2566
2567  cd ..
2568  rm -rf conftest.dir
2569else
2570  am_cv_CXX_dependencies_compiler_type=none
2571fi
2572
2573fi
2574echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2575echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2576CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2577
2578
2579
2580if
2581  test "x$enable_dependency_tracking" != xno \
2582  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2583  am__fastdepCXX_TRUE=
2584  am__fastdepCXX_FALSE='#'
2585else
2586  am__fastdepCXX_TRUE='#'
2587  am__fastdepCXX_FALSE=
2588fi
2589
2590
2591if test -n "$ac_tool_prefix"; then
2592  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2594echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596if test "${ac_cv_prog_RANLIB+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  if test -n "$RANLIB"; then
2600  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607  for ac_exec_ext in '' $ac_executable_extensions; do
2608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614done
2615
2616fi
2617fi
2618RANLIB=$ac_cv_prog_RANLIB
2619if test -n "$RANLIB"; then
2620  echo "$as_me:$LINENO: result: $RANLIB" >&5
2621echo "${ECHO_T}$RANLIB" >&6
2622else
2623  echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6
2625fi
2626
2627fi
2628if test -z "$ac_cv_prog_RANLIB"; then
2629  ac_ct_RANLIB=$RANLIB
2630  # Extract the first word of "ranlib", so it can be a program name with args.
2631set dummy ranlib; ac_word=$2
2632echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  if test -n "$ac_ct_RANLIB"; then
2638  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645  for ac_exec_ext in '' $ac_executable_extensions; do
2646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647    ac_cv_prog_ac_ct_RANLIB="ranlib"
2648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652done
2653
2654  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2655fi
2656fi
2657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2658if test -n "$ac_ct_RANLIB"; then
2659  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2660echo "${ECHO_T}$ac_ct_RANLIB" >&6
2661else
2662  echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
2664fi
2665
2666  RANLIB=$ac_ct_RANLIB
2667else
2668  RANLIB="$ac_cv_prog_RANLIB"
2669fi
2670
2671ac_ext=c
2672ac_cpp='$CPP $CPPFLAGS'
2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676if test -n "$ac_tool_prefix"; then
2677  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681if test "${ac_cv_prog_CC+set}" = set; then
2682  echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684  if test -n "$CC"; then
2685  ac_cv_prog_CC="$CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692  for ac_exec_ext in '' $ac_executable_extensions; do
2693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699done
2700
2701fi
2702fi
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705  echo "$as_me:$LINENO: result: $CC" >&5
2706echo "${ECHO_T}$CC" >&6
2707else
2708  echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710fi
2711
2712fi
2713if test -z "$ac_cv_prog_CC"; then
2714  ac_ct_CC=$CC
2715  # Extract the first word of "gcc", so it can be a program name with args.
2716set dummy gcc; ac_word=$2
2717echo "$as_me:$LINENO: checking for $ac_word" >&5
2718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2719if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2720  echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722  if test -n "$ac_ct_CC"; then
2723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724else
2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726for as_dir in $PATH
2727do
2728  IFS=$as_save_IFS
2729  test -z "$as_dir" && as_dir=.
2730  for ac_exec_ext in '' $ac_executable_extensions; do
2731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732    ac_cv_prog_ac_ct_CC="gcc"
2733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734    break 2
2735  fi
2736done
2737done
2738
2739fi
2740fi
2741ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742if test -n "$ac_ct_CC"; then
2743  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2744echo "${ECHO_T}$ac_ct_CC" >&6
2745else
2746  echo "$as_me:$LINENO: result: no" >&5
2747echo "${ECHO_T}no" >&6
2748fi
2749
2750  CC=$ac_ct_CC
2751else
2752  CC="$ac_cv_prog_CC"
2753fi
2754
2755if test -z "$CC"; then
2756  if test -n "$ac_tool_prefix"; then
2757  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758set dummy ${ac_tool_prefix}cc; ac_word=$2
2759echo "$as_me:$LINENO: checking for $ac_word" >&5
2760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761if test "${ac_cv_prog_CC+set}" = set; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763else
2764  if test -n "$CC"; then
2765  ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770  IFS=$as_save_IFS
2771  test -z "$as_dir" && as_dir=.
2772  for ac_exec_ext in '' $ac_executable_extensions; do
2773  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774    ac_cv_prog_CC="${ac_tool_prefix}cc"
2775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776    break 2
2777  fi
2778done
2779done
2780
2781fi
2782fi
2783CC=$ac_cv_prog_CC
2784if test -n "$CC"; then
2785  echo "$as_me:$LINENO: result: $CC" >&5
2786echo "${ECHO_T}$CC" >&6
2787else
2788  echo "$as_me:$LINENO: result: no" >&5
2789echo "${ECHO_T}no" >&6
2790fi
2791
2792fi
2793if test -z "$ac_cv_prog_CC"; then
2794  ac_ct_CC=$CC
2795  # Extract the first word of "cc", so it can be a program name with args.
2796set dummy cc; ac_word=$2
2797echo "$as_me:$LINENO: checking for $ac_word" >&5
2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800  echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
2802  if test -n "$ac_ct_CC"; then
2803  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  test -z "$as_dir" && as_dir=.
2810  for ac_exec_ext in '' $ac_executable_extensions; do
2811  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812    ac_cv_prog_ac_ct_CC="cc"
2813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814    break 2
2815  fi
2816done
2817done
2818
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
2823  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824echo "${ECHO_T}$ac_ct_CC" >&6
2825else
2826  echo "$as_me:$LINENO: result: no" >&5
2827echo "${ECHO_T}no" >&6
2828fi
2829
2830  CC=$ac_ct_CC
2831else
2832  CC="$ac_cv_prog_CC"
2833fi
2834
2835fi
2836if test -z "$CC"; then
2837  # Extract the first word of "cc", so it can be a program name with args.
2838set dummy cc; ac_word=$2
2839echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841if test "${ac_cv_prog_CC+set}" = set; then
2842  echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844  if test -n "$CC"; then
2845  ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847  ac_prog_rejected=no
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851  IFS=$as_save_IFS
2852  test -z "$as_dir" && as_dir=.
2853  for ac_exec_ext in '' $ac_executable_extensions; do
2854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2856       ac_prog_rejected=yes
2857       continue
2858     fi
2859    ac_cv_prog_CC="cc"
2860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864done
2865
2866if test $ac_prog_rejected = yes; then
2867  # We found a bogon in the path, so make sure we never use it.
2868  set dummy $ac_cv_prog_CC
2869  shift
2870  if test $# != 0; then
2871    # We chose a different compiler from the bogus one.
2872    # However, it has the same basename, so the bogon will be chosen
2873    # first if we set CC to just the basename; use the full file name.
2874    shift
2875    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2876  fi
2877fi
2878fi
2879fi
2880CC=$ac_cv_prog_CC
2881if test -n "$CC"; then
2882  echo "$as_me:$LINENO: result: $CC" >&5
2883echo "${ECHO_T}$CC" >&6
2884else
2885  echo "$as_me:$LINENO: result: no" >&5
2886echo "${ECHO_T}no" >&6
2887fi
2888
2889fi
2890if test -z "$CC"; then
2891  if test -n "$ac_tool_prefix"; then
2892  for ac_prog in cl
2893  do
2894    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896echo "$as_me:$LINENO: checking for $ac_word" >&5
2897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2898if test "${ac_cv_prog_CC+set}" = set; then
2899  echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909  for ac_exec_ext in '' $ac_executable_extensions; do
2910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916done
2917
2918fi
2919fi
2920CC=$ac_cv_prog_CC
2921if test -n "$CC"; then
2922  echo "$as_me:$LINENO: result: $CC" >&5
2923echo "${ECHO_T}$CC" >&6
2924else
2925  echo "$as_me:$LINENO: result: no" >&5
2926echo "${ECHO_T}no" >&6
2927fi
2928
2929    test -n "$CC" && break
2930  done
2931fi
2932if test -z "$CC"; then
2933  ac_ct_CC=$CC
2934  for ac_prog in cl
2935do
2936  # Extract the first word of "$ac_prog", so it can be a program name with args.
2937set dummy $ac_prog; ac_word=$2
2938echo "$as_me:$LINENO: checking for $ac_word" >&5
2939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2941  echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943  if test -n "$ac_ct_CC"; then
2944  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  test -z "$as_dir" && as_dir=.
2951  for ac_exec_ext in '' $ac_executable_extensions; do
2952  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953    ac_cv_prog_ac_ct_CC="$ac_prog"
2954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955    break 2
2956  fi
2957done
2958done
2959
2960fi
2961fi
2962ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963if test -n "$ac_ct_CC"; then
2964  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2965echo "${ECHO_T}$ac_ct_CC" >&6
2966else
2967  echo "$as_me:$LINENO: result: no" >&5
2968echo "${ECHO_T}no" >&6
2969fi
2970
2971  test -n "$ac_ct_CC" && break
2972done
2973
2974  CC=$ac_ct_CC
2975fi
2976
2977fi
2978
2979
2980test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2981See \`config.log' for more details." >&5
2982echo "$as_me: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&2;}
2984   { (exit 1); exit 1; }; }
2985
2986# Provide some information about the compiler.
2987echo "$as_me:$LINENO:" \
2988     "checking for C compiler version" >&5
2989ac_compiler=`set X $ac_compile; echo $2`
2990{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2991  (eval $ac_compiler --version </dev/null >&5) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }
2995{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2996  (eval $ac_compiler -v </dev/null >&5) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }
3000{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3001  (eval $ac_compiler -V </dev/null >&5) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }
3005
3006echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009  echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011  cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h.  */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h.  */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022       choke me
3023#endif
3024
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
3030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031  (eval $ac_compile) 2>conftest.er1
3032  ac_status=$?
3033  grep -v '^ *+' conftest.er1 >conftest.err
3034  rm -f conftest.er1
3035  cat conftest.err >&5
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); } &&
3038         { ac_try='test -z "$ac_c_werror_flag"
3039                         || test ! -s conftest.err'
3040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041  (eval $ac_try) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; } &&
3045         { ac_try='test -s conftest.$ac_objext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  ac_compiler_gnu=yes
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056ac_compiler_gnu=no
3057fi
3058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060
3061fi
3062echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3063echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3064GCC=`test $ac_compiler_gnu = yes && echo yes`
3065ac_test_CFLAGS=${CFLAGS+set}
3066ac_save_CFLAGS=$CFLAGS
3067CFLAGS="-g"
3068echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3070if test "${ac_cv_prog_cc_g+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090  (eval $ac_compile) 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } &&
3097         { ac_try='test -z "$ac_c_werror_flag"
3098                         || test ! -s conftest.err'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; } &&
3104         { ac_try='test -s conftest.$ac_objext'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; }; then
3110  ac_cv_prog_cc_g=yes
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_cv_prog_cc_g=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118fi
3119echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3120echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3121if test "$ac_test_CFLAGS" = set; then
3122  CFLAGS=$ac_save_CFLAGS
3123elif test $ac_cv_prog_cc_g = yes; then
3124  if test "$GCC" = yes; then
3125    CFLAGS="-g -O2"
3126  else
3127    CFLAGS="-g"
3128  fi
3129else
3130  if test "$GCC" = yes; then
3131    CFLAGS="-O2"
3132  else
3133    CFLAGS=
3134  fi
3135fi
3136echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3137echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3138if test "${ac_cv_prog_cc_stdc+set}" = set; then
3139  echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141  ac_cv_prog_cc_stdc=no
3142ac_save_CC=$CC
3143cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149#include <stdarg.h>
3150#include <stdio.h>
3151#include <sys/types.h>
3152#include <sys/stat.h>
3153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3154struct buf { int x; };
3155FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156static char *e (p, i)
3157     char **p;
3158     int i;
3159{
3160  return p[i];
3161}
3162static char *f (char * (*g) (char **, int), char **p, ...)
3163{
3164  char *s;
3165  va_list v;
3166  va_start (v,p);
3167  s = g (p, va_arg (v,int));
3168  va_end (v);
3169  return s;
3170}
3171
3172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3173   function prototypes and stuff, but not '\xHH' hex character constants.
3174   These don't provoke an error unfortunately, instead are silently treated
3175   as 'x'.  The following induces an error, until -std1 is added to get
3176   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3177   array size at least.  It's necessary to write '\x00'==0 to get something
3178   that's true only with -std1.  */
3179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180
3181int test (int i, double x);
3182struct s1 {int (*f) (int a);};
3183struct s2 {int (*f) (double a);};
3184int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3185int argc;
3186char **argv;
3187int
3188main ()
3189{
3190return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3191  ;
3192  return 0;
3193}
3194_ACEOF
3195# Don't try gcc -ansi; that turns off useful extensions and
3196# breaks some systems' header files.
3197# AIX                   -qlanglvl=ansi
3198# Ultrix and OSF/1      -std1
3199# HP-UX 10.20 and later -Ae
3200# HP-UX older versions  -Aa -D_HPUX_SOURCE
3201# SVR4                  -Xc -D__EXTENSIONS__
3202for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3203do
3204  CC="$ac_save_CC $ac_arg"
3205  rm -f conftest.$ac_objext
3206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3207  (eval $ac_compile) 2>conftest.er1
3208  ac_status=$?
3209  grep -v '^ *+' conftest.er1 >conftest.err
3210  rm -f conftest.er1
3211  cat conftest.err >&5
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); } &&
3214         { ac_try='test -z "$ac_c_werror_flag"
3215                         || test ! -s conftest.err'
3216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217  (eval $ac_try) 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }; } &&
3221         { ac_try='test -s conftest.$ac_objext'
3222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223  (eval $ac_try) 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }; }; then
3227  ac_cv_prog_cc_stdc=$ac_arg
3228break
3229else
3230  echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233fi
3234rm -f conftest.err conftest.$ac_objext
3235done
3236rm -f conftest.$ac_ext conftest.$ac_objext
3237CC=$ac_save_CC
3238
3239fi
3240
3241case "x$ac_cv_prog_cc_stdc" in
3242  x|xno)
3243    echo "$as_me:$LINENO: result: none needed" >&5
3244echo "${ECHO_T}none needed" >&6 ;;
3245  *)
3246    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3247echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3248    CC="$CC $ac_cv_prog_cc_stdc" ;;
3249esac
3250
3251# Some people use a C++ compiler to compile C.  Since we use `exit',
3252# in C++ we need to declare it.  In case someone uses the same compiler
3253# for both compiling C and C++ we need to have the C++ compiler decide
3254# the declaration of exit, since it's the most demanding environment.
3255cat >conftest.$ac_ext <<_ACEOF
3256#ifndef __cplusplus
3257  choke me
3258#endif
3259_ACEOF
3260rm -f conftest.$ac_objext
3261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3262  (eval $ac_compile) 2>conftest.er1
3263  ac_status=$?
3264  grep -v '^ *+' conftest.er1 >conftest.err
3265  rm -f conftest.er1
3266  cat conftest.err >&5
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); } &&
3269         { ac_try='test -z "$ac_c_werror_flag"
3270                         || test ! -s conftest.err'
3271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272  (eval $ac_try) 2>&5
3273  ac_status=$?
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); }; } &&
3276         { ac_try='test -s conftest.$ac_objext'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; }; then
3282  for ac_declaration in \
3283   '' \
3284   'extern "C" void std::exit (int) throw (); using std::exit;' \
3285   'extern "C" void std::exit (int); using std::exit;' \
3286   'extern "C" void exit (int) throw ();' \
3287   'extern "C" void exit (int);' \
3288   'void exit (int);'
3289do
3290  cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h.  */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h.  */
3296$ac_declaration
3297#include <stdlib.h>
3298int
3299main ()
3300{
3301exit (42);
3302  ;
3303  return 0;
3304}
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308  (eval $ac_compile) 2>conftest.er1
3309  ac_status=$?
3310  grep -v '^ *+' conftest.er1 >conftest.err
3311  rm -f conftest.er1
3312  cat conftest.err >&5
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); } &&
3315         { ac_try='test -z "$ac_c_werror_flag"
3316                         || test ! -s conftest.err'
3317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318  (eval $ac_try) 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); }; } &&
3322         { ac_try='test -s conftest.$ac_objext'
3323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324  (eval $ac_try) 2>&5
3325  ac_status=$?
3326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327  (exit $ac_status); }; }; then
3328  :
3329else
3330  echo "$as_me: failed program was:" >&5
3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333continue
3334fi
3335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3336  cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h.  */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h.  */
3342$ac_declaration
3343int
3344main ()
3345{
3346exit (42);
3347  ;
3348  return 0;
3349}
3350_ACEOF
3351rm -f conftest.$ac_objext
3352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353  (eval $ac_compile) 2>conftest.er1
3354  ac_status=$?
3355  grep -v '^ *+' conftest.er1 >conftest.err
3356  rm -f conftest.er1
3357  cat conftest.err >&5
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); } &&
3360         { ac_try='test -z "$ac_c_werror_flag"
3361                         || test ! -s conftest.err'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; } &&
3367         { ac_try='test -s conftest.$ac_objext'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; }; then
3373  break
3374else
3375  echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378fi
3379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380done
3381rm -f conftest*
3382if test -n "$ac_declaration"; then
3383  echo '#ifdef __cplusplus' >>confdefs.h
3384  echo $ac_declaration      >>confdefs.h
3385  echo '#endif'             >>confdefs.h
3386fi
3387
3388else
3389  echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392fi
3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394ac_ext=c
3395ac_cpp='$CPP $CPPFLAGS'
3396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400depcc="$CC"   am_compiler_list=
3401
3402echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3403echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3404if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3408  # We make a subdir and do the tests there.  Otherwise we can end up
3409  # making bogus files that we don't know about and never remove.  For
3410  # instance it was reported that on HP-UX the gcc test will end up
3411  # making a dummy file named `D' -- because `-MD' means `put the output
3412  # in D'.
3413  mkdir conftest.dir
3414  # Copy depcomp to subdir because otherwise we won't find it if we're
3415  # using a relative directory.
3416  cp "$am_depcomp" conftest.dir
3417  cd conftest.dir
3418  # We will build objects and dependencies in a subdirectory because
3419  # it helps to detect inapplicable dependency modes.  For instance
3420  # both Tru64's cc and ICC support -MD to output dependencies as a
3421  # side effect of compilation, but ICC will put the dependencies in
3422  # the current directory while Tru64 will put them in the object
3423  # directory.
3424  mkdir sub
3425
3426  am_cv_CC_dependencies_compiler_type=none
3427  if test "$am_compiler_list" = ""; then
3428     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3429  fi
3430  for depmode in $am_compiler_list; do
3431    # Setup a source with many dependencies, because some compilers
3432    # like to wrap large dependency lists on column 80 (with \), and
3433    # we should not choose a depcomp mode which is confused by this.
3434    #
3435    # We need to recreate these files for each test, as the compiler may
3436    # overwrite some of them when testing with obscure command lines.
3437    # This happens at least with the AIX C compiler.
3438    : > sub/conftest.c
3439    for i in 1 2 3 4 5 6; do
3440      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3441      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3442      # Solaris 8's {/usr,}/bin/sh.
3443      touch sub/conftst$i.h
3444    done
3445    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3446
3447    case $depmode in
3448    nosideeffect)
3449      # after this tag, mechanisms are not by side-effect, so they'll
3450      # only be used when explicitly requested
3451      if test "x$enable_dependency_tracking" = xyes; then
3452        continue
3453      else
3454        break
3455      fi
3456      ;;
3457    none) break ;;
3458    esac
3459    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3460    # mode.  It turns out that the SunPro C++ compiler does not properly
3461    # handle `-M -o', and we need to detect this.
3462    if depmode=$depmode \
3463       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3464       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3465       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3466         >/dev/null 2>conftest.err &&
3467       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3468       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3469       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3470      # icc doesn't choke on unknown options, it will just issue warnings
3471      # or remarks (even with -Werror).  So we grep stderr for any message
3472      # that says an option was ignored or not supported.
3473      # When given -MP, icc 7.0 and 7.1 complain thusly:
3474      #   icc: Command line warning: ignoring option '-M'; no argument required
3475      # The diagnosis changed in icc 8.0:
3476      #   icc: Command line remark: option '-MP' not supported
3477      if (grep 'ignoring option' conftest.err ||
3478          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3479        am_cv_CC_dependencies_compiler_type=$depmode
3480        break
3481      fi
3482    fi
3483  done
3484
3485  cd ..
3486  rm -rf conftest.dir
3487else
3488  am_cv_CC_dependencies_compiler_type=none
3489fi
3490
3491fi
3492echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3493echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3494CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3495
3496
3497
3498if
3499  test "x$enable_dependency_tracking" != xno \
3500  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3501  am__fastdepCC_TRUE=
3502  am__fastdepCC_FALSE='#'
3503else
3504  am__fastdepCC_TRUE='#'
3505  am__fastdepCC_FALSE=
3506fi
3507
3508
3509
3510ac_ext=c
3511ac_cpp='$CPP $CPPFLAGS'
3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3516echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3517# On Suns, sometimes $CPP names a directory.
3518if test -n "$CPP" && test -d "$CPP"; then
3519  CPP=
3520fi
3521if test -z "$CPP"; then
3522  if test "${ac_cv_prog_CPP+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525      # Double quotes because CPP needs to be expanded
3526    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3527    do
3528      ac_preproc_ok=false
3529for ac_c_preproc_warn_flag in '' yes
3530do
3531  # Use a header file that comes with gcc, so configuring glibc
3532  # with a fresh cross-compiler works.
3533  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3534  # <limits.h> exists even on freestanding compilers.
3535  # On the NeXT, cc -E runs the code through the compiler's parser,
3536  # not just through cpp. "Syntax error" is here to catch this case.
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543#ifdef __STDC__
3544# include <limits.h>
3545#else
3546# include <assert.h>
3547#endif
3548                     Syntax error
3549_ACEOF
3550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3551  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552  ac_status=$?
3553  grep -v '^ *+' conftest.er1 >conftest.err
3554  rm -f conftest.er1
3555  cat conftest.err >&5
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); } >/dev/null; then
3558  if test -s conftest.err; then
3559    ac_cpp_err=$ac_c_preproc_warn_flag
3560    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561  else
3562    ac_cpp_err=
3563  fi
3564else
3565  ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568  :
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573  # Broken: fails on valid input.
3574continue
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577
3578  # OK, works on sane cases.  Now check whether non-existent headers
3579  # can be detected and how.
3580  cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h.  */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h.  */
3586#include <ac_nonexistent.h>
3587_ACEOF
3588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } >/dev/null; then
3596  if test -s conftest.err; then
3597    ac_cpp_err=$ac_c_preproc_warn_flag
3598    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599  else
3600    ac_cpp_err=
3601  fi
3602else
3603  ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
3606  # Broken: success on invalid input.
3607continue
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612  # Passes both tests.
3613ac_preproc_ok=:
3614break
3615fi
3616rm -f conftest.err conftest.$ac_ext
3617
3618done
3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620rm -f conftest.err conftest.$ac_ext
3621if $ac_preproc_ok; then
3622  break
3623fi
3624
3625    done
3626    ac_cv_prog_CPP=$CPP
3627
3628fi
3629  CPP=$ac_cv_prog_CPP
3630else
3631  ac_cv_prog_CPP=$CPP
3632fi
3633echo "$as_me:$LINENO: result: $CPP" >&5
3634echo "${ECHO_T}$CPP" >&6
3635ac_preproc_ok=false
3636for ac_c_preproc_warn_flag in '' yes
3637do
3638  # Use a header file that comes with gcc, so configuring glibc
3639  # with a fresh cross-compiler works.
3640  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3641  # <limits.h> exists even on freestanding compilers.
3642  # On the NeXT, cc -E runs the code through the compiler's parser,
3643  # not just through cpp. "Syntax error" is here to catch this case.
3644  cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h.  */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h.  */
3650#ifdef __STDC__
3651# include <limits.h>
3652#else
3653# include <assert.h>
3654#endif
3655                     Syntax error
3656_ACEOF
3657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659  ac_status=$?
3660  grep -v '^ *+' conftest.er1 >conftest.err
3661  rm -f conftest.er1
3662  cat conftest.err >&5
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); } >/dev/null; then
3665  if test -s conftest.err; then
3666    ac_cpp_err=$ac_c_preproc_warn_flag
3667    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3668  else
3669    ac_cpp_err=
3670  fi
3671else
3672  ac_cpp_err=yes
3673fi
3674if test -z "$ac_cpp_err"; then
3675  :
3676else
3677  echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680  # Broken: fails on valid input.
3681continue
3682fi
3683rm -f conftest.err conftest.$ac_ext
3684
3685  # OK, works on sane cases.  Now check whether non-existent headers
3686  # can be detected and how.
3687  cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h.  */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693#include <ac_nonexistent.h>
3694_ACEOF
3695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697  ac_status=$?
3698  grep -v '^ *+' conftest.er1 >conftest.err
3699  rm -f conftest.er1
3700  cat conftest.err >&5
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); } >/dev/null; then
3703  if test -s conftest.err; then
3704    ac_cpp_err=$ac_c_preproc_warn_flag
3705    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3706  else
3707    ac_cpp_err=
3708  fi
3709else
3710  ac_cpp_err=yes
3711fi
3712if test -z "$ac_cpp_err"; then
3713  # Broken: success on invalid input.
3714continue
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719  # Passes both tests.
3720ac_preproc_ok=:
3721break
3722fi
3723rm -f conftest.err conftest.$ac_ext
3724
3725done
3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727rm -f conftest.err conftest.$ac_ext
3728if $ac_preproc_ok; then
3729  :
3730else
3731  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732See \`config.log' for more details." >&5
3733echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&2;}
3735   { (exit 1); exit 1; }; }
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745echo "$as_me:$LINENO: checking for egrep" >&5
3746echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3747if test "${ac_cv_prog_egrep+set}" = set; then
3748  echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3751    then ac_cv_prog_egrep='grep -E'
3752    else ac_cv_prog_egrep='egrep'
3753    fi
3754fi
3755echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3756echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3757 EGREP=$ac_cv_prog_egrep
3758
3759
3760echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3762if test "${ac_cv_header_stdc+set}" = set; then
3763  echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765  cat >conftest.$ac_ext <<_ACEOF
3766/* confdefs.h.  */
3767_ACEOF
3768cat confdefs.h >>conftest.$ac_ext
3769cat >>conftest.$ac_ext <<_ACEOF
3770/* end confdefs.h.  */
3771#include <stdlib.h>
3772#include <stdarg.h>
3773#include <string.h>
3774#include <float.h>
3775
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786  (eval $ac_compile) 2>conftest.er1
3787  ac_status=$?
3788  grep -v '^ *+' conftest.er1 >conftest.err
3789  rm -f conftest.er1
3790  cat conftest.err >&5
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); } &&
3793         { ac_try='test -z "$ac_c_werror_flag"
3794                         || test ! -s conftest.err'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; } &&
3800         { ac_try='test -s conftest.$ac_objext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  ac_cv_header_stdc=yes
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811ac_cv_header_stdc=no
3812fi
3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814
3815if test $ac_cv_header_stdc = yes; then
3816  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817  cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h.  */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823#include <string.h>
3824
3825_ACEOF
3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827  $EGREP "memchr" >/dev/null 2>&1; then
3828  :
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f conftest*
3833
3834fi
3835
3836if test $ac_cv_header_stdc = yes; then
3837  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838  cat >conftest.$ac_ext <<_ACEOF
3839/* confdefs.h.  */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h.  */
3844#include <stdlib.h>
3845
3846_ACEOF
3847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848  $EGREP "free" >/dev/null 2>&1; then
3849  :
3850else
3851  ac_cv_header_stdc=no
3852fi
3853rm -f conftest*
3854
3855fi
3856
3857if test $ac_cv_header_stdc = yes; then
3858  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859  if test "$cross_compiling" = yes; then
3860  :
3861else
3862  cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h.  */
3868#include <ctype.h>
3869#if ((' ' & 0x0FF) == 0x020)
3870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872#else
3873# define ISLOWER(c) \
3874                   (('a' <= (c) && (c) <= 'i') \
3875                     || ('j' <= (c) && (c) <= 'r') \
3876                     || ('s' <= (c) && (c) <= 'z'))
3877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878#endif
3879
3880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881int
3882main ()
3883{
3884  int i;
3885  for (i = 0; i < 256; i++)
3886    if (XOR (islower (i), ISLOWER (i))
3887        || toupper (i) != TOUPPER (i))
3888      exit(2);
3889  exit (0);
3890}
3891_ACEOF
3892rm -f conftest$ac_exeext
3893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3894  (eval $ac_link) 2>&5
3895  ac_status=$?
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899  (eval $ac_try) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; }; then
3903  :
3904else
3905  echo "$as_me: program exited with status $ac_status" >&5
3906echo "$as_me: failed program was:" >&5
3907sed 's/^/| /' conftest.$ac_ext >&5
3908
3909( exit $ac_status )
3910ac_cv_header_stdc=no
3911fi
3912rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3913fi
3914fi
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3917echo "${ECHO_T}$ac_cv_header_stdc" >&6
3918if test $ac_cv_header_stdc = yes; then
3919
3920cat >>confdefs.h <<\_ACEOF
3921#define STDC_HEADERS 1
3922_ACEOF
3923
3924fi
3925
3926
3927## THIS IS OUR DEFAULT-DATA-DIRECTORY
3928
3929##################################
3930## CHECKING  OPTIONAL ARGUMENTS ##
3931##################################
3932#----------------#
3933# Data-Directory #
3934#----------------#
3935DATA_DIR=$datadir
3936echo \$\{prefix\}
3937if test $DATA_DIR = \$\{prefix\}/share ; then
3938        echo "not given"
3939        DATA_DIR=/usr/share
3940else
3941        echo "given: $DATA_DIR"
3942fi
3943
3944cat >>confdefs.h <<_ACEOF
3945#define DATADIR "$DATA_DIR"
3946_ACEOF
3947
3948
3949#-----------------#
3950# DEBUG-statement #
3951#-----------------#
3952DEBUG=no
3953echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3954echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3955# Check whether --enable-debug or --disable-debug was given.
3956if test "${enable_debug+set}" = set; then
3957  enableval="$enable_debug"
3958  DEBUG=$enableval
3959fi;
3960
3961if test x$DEBUG = xno; then
3962        echo "no"
3963        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3964        DEBUG=4
3965elif test x$DEBUG = xyes; then
3966        echo "yes"
3967        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3968        DEBUG=4
3969else
3970        echo "yes: setting debuglevel to to $DEBUG"
3971fi
3972
3973cat >>confdefs.h <<_ACEOF
3974#define DEBUG $DEBUG
3975_ACEOF
3976
3977
3978
3979
3980#---------------#
3981# Modular Debug #
3982#---------------#
3983MODULAR_DEBUG=yes
3984echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3985echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3986# Check whether --enable-modular-debug or --disable-modular-debug was given.
3987if test "${enable_modular_debug+set}" = set; then
3988  enableval="$enable_modular_debug"
3989  MODULAR_DEBUG=$enableval
3990fi;
3991
3992if test x$MODULAR_DEBUG = xno; then
3993        echo "no"
3994elif test x$MODULAR_DEBUG = xyes; then
3995        echo "yes"
3996
3997cat >>confdefs.h <<_ACEOF
3998#define MODULAR_DEBUG 1
3999_ACEOF
4000
4001fi
4002
4003#--------------#
4004# GTK-disabled #
4005#--------------#
4006echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4007echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
4008# Check whether --enable-gtk or --disable-gtk was given.
4009if test "${enable_gtk+set}" = set; then
4010  enableval="$enable_gtk"
4011  def_gtk=no
4012else
4013  def_gtk=yes
4014fi;
4015if test x$def_gtk = xyes; then
4016  echo "yes"
4017fi
4018if test x$def_gtk = xno; then
4019  echo "no"
4020fi
4021
4022#------------------#
4023# libCurl-disabled #
4024#------------------#
4025echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4026echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4027# Check whether --enable-curl or --disable-curl was given.
4028if test "${enable_curl+set}" = set; then
4029  enableval="$enable_curl"
4030  def_curl=no
4031else
4032  def_curl=yes
4033fi;
4034if test x$def_curl = xyes; then
4035  echo "yes"
4036fi
4037if test x$def_curl = xno; then
4038  echo "no"
4039fi
4040
4041#-------------------#
4042# SubProject-enable #
4043#-------------------#
4044def_sub_projects=no
4045echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4046echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4047
4048# Check whether --with-sub-projects or --without-sub-projects was given.
4049if test "${with_sub_projects+set}" = set; then
4050  withval="$with_sub_projects"
4051  def_sub_projects=yes
4052fi;
4053if test x$def_sub_projects = xyes; then
4054  echo "yes"
4055fi
4056if test x$def_sub_projects = xno; then
4057  echo "no"
4058fi
4059
4060
4061if test x$def_sub_projects = xyes; then
4062  SUB_PROJECTS_TRUE=
4063  SUB_PROJECTS_FALSE='#'
4064else
4065  SUB_PROJECTS_TRUE='#'
4066  SUB_PROJECTS_FALSE=
4067fi
4068
4069
4070#-------------------#
4071# Profiling Enabled #
4072#-------------------#
4073def_profiling=no
4074echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4075echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4076# Check whether --enable-profile or --disable-profile was given.
4077if test "${enable_profile+set}" = set; then
4078  enableval="$enable_profile"
4079  def_profiling=yes
4080fi;
4081if test x$def_profiling = xyes; then
4082  echo "yes"
4083  CXXFLAGS="$CXXFLAGS -pg"
4084fi
4085if test x$def_profiling = xno; then
4086  echo "no"
4087fi
4088
4089#----------------#
4090# efence Enabled #
4091#----------------#
4092def_efence=no
4093echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4094echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4095# Check whether --enable-efence or --disable-efence was given.
4096if test "${enable_efence+set}" = set; then
4097  enableval="$enable_efence"
4098  def_efence=yes
4099fi;
4100if test x$def_efence = xyes; then
4101  echo "yes"
4102fi
4103if test x$def_efence = xno; then
4104  echo "no"
4105fi
4106
4107#----------------------#
4108# Documentation-enable #
4109#----------------------#
4110def_documentation=no
4111echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4112echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4113# Check whether --enable-documentation or --disable-documentation was given.
4114if test "${enable_documentation+set}" = set; then
4115  enableval="$enable_documentation"
4116  def_documentation=yes
4117fi;
4118if test x$def_documentation = xyes; then
4119  echo "yes"
4120fi
4121if test x$def_documentation = xno; then
4122  echo "no"
4123fi
4124
4125
4126if test x$def_documentation = xyes; then
4127  DOCUMENTATION_TRUE=
4128  DOCUMENTATION_FALSE='#'
4129else
4130  DOCUMENTATION_TRUE='#'
4131  DOCUMENTATION_FALSE=
4132fi
4133
4134
4135#######################
4136## PROGRAMM CHECKING ##
4137## 3. party Programs ##
4138#######################
4139
4140#----------------------#
4141# checking for Doxygen #
4142#----------------------#
4143# Extract the first word of "doxygen", so it can be a program name with args.
4144set dummy doxygen; ac_word=$2
4145echo "$as_me:$LINENO: checking for $ac_word" >&5
4146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147if test "${ac_cv_path_DOXYGEN+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  case $DOXYGEN in
4151  [\\/]* | ?:[\\/]*)
4152  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4153  ;;
4154  *)
4155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160  for ac_exec_ext in '' $ac_executable_extensions; do
4161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167done
4168
4169  ;;
4170esac
4171fi
4172DOXYGEN=$ac_cv_path_DOXYGEN
4173
4174if test -n "$DOXYGEN"; then
4175  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4176echo "${ECHO_T}$DOXYGEN" >&6
4177else
4178  echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180fi
4181
4182
4183
4184if test $DOXYGEN; then
4185  DOXYGEN_TRUE=
4186  DOXYGEN_FALSE='#'
4187else
4188  DOXYGEN_TRUE='#'
4189  DOXYGEN_FALSE=
4190fi
4191
4192
4193#--------------------#
4194# checking for gprof #
4195#--------------------#
4196# Extract the first word of "gprof", so it can be a program name with args.
4197set dummy gprof; ac_word=$2
4198echo "$as_me:$LINENO: checking for $ac_word" >&5
4199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200if test "${ac_cv_path_GPROF+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  case $GPROF in
4204  [\\/]* | ?:[\\/]*)
4205  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4206  ;;
4207  *)
4208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211  IFS=$as_save_IFS
4212  test -z "$as_dir" && as_dir=.
4213  for ac_exec_ext in '' $ac_executable_extensions; do
4214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217    break 2
4218  fi
4219done
4220done
4221
4222  ;;
4223esac
4224fi
4225GPROF=$ac_cv_path_GPROF
4226
4227if test -n "$GPROF"; then
4228  echo "$as_me:$LINENO: result: $GPROF" >&5
4229echo "${ECHO_T}$GPROF" >&6
4230else
4231  echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233fi
4234
4235
4236#-------------------------#
4237# checking for pkg-config #
4238#-------------------------#
4239if test x$def_gtk = xyes; then
4240 # Extract the first word of "pkg-config", so it can be a program name with args.
4241set dummy pkg-config; ac_word=$2
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4245  echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247  case $PKG_CONFIG in
4248  [\\/]* | ?:[\\/]*)
4249  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4250  ;;
4251  *)
4252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257  for ac_exec_ext in '' $ac_executable_extensions; do
4258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264done
4265
4266  ;;
4267esac
4268fi
4269PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4270
4271if test -n "$PKG_CONFIG"; then
4272  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4273echo "${ECHO_T}$PKG_CONFIG" >&6
4274else
4275  echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277fi
4278
4279fi
4280
4281
4282#########################
4283## CHECKING FOR SYSTEM ##
4284#########################
4285## here the system is checked, and openGL is included
4286## also checking for SDL on differen Systems
4287
4288echo "$as_me:$LINENO: checking for System" >&5
4289echo $ECHO_N "checking for System... $ECHO_C" >&6
4290## checking for openGL-environment and other sys-specific parameters
4291case "$target" in
4292#---------#
4293# WINDOWS #
4294#---------#
4295  *-*-mingw32*)
4296echo "mingw-WINDOWS detected"
4297
4298CPPFLAGS="-I/usr/include -I/mingw/include"
4299
4300    mingw="yes"
4301    MSBITFIELDS="-mms-bitfields"
4302    MWINDOWS="-mwindows"
4303
4304
4305
4306# checking for mingw32
4307    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4308echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4309if test "${ac_cv_lib_mingw32_main+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  ac_check_lib_save_LIBS=$LIBS
4313LIBS="-lmingw32  $LIBS"
4314cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h.  */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h.  */
4320
4321
4322int
4323main ()
4324{
4325main ();
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext conftest$ac_exeext
4331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332  (eval $ac_link) 2>conftest.er1
4333  ac_status=$?
4334  grep -v '^ *+' conftest.er1 >conftest.err
4335  rm -f conftest.er1
4336  cat conftest.err >&5
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); } &&
4339         { ac_try='test -z "$ac_c_werror_flag"
4340                         || test ! -s conftest.err'
4341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342  (eval $ac_try) 2>&5
4343  ac_status=$?
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); }; } &&
4346         { ac_try='test -s conftest$ac_exeext'
4347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348  (eval $ac_try) 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }; }; then
4352  ac_cv_lib_mingw32_main=yes
4353else
4354  echo "$as_me: failed program was:" >&5
4355sed 's/^/| /' conftest.$ac_ext >&5
4356
4357ac_cv_lib_mingw32_main=no
4358fi
4359rm -f conftest.err conftest.$ac_objext \
4360      conftest$ac_exeext conftest.$ac_ext
4361LIBS=$ac_check_lib_save_LIBS
4362fi
4363echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4364echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4365if test $ac_cv_lib_mingw32_main = yes; then
4366  FOUND_mingw32=yes
4367fi
4368
4369    if test x$FOUND_mingw32 = xyes; then
4370        LIBS="$LIBS -lmingw32"
4371    fi
4372
4373#-----------#
4374# SDL (win) #
4375#-----------#
4376# checking for SDL-headers
4377    # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4388                  inttypes.h stdint.h unistd.h
4389do
4390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4391echo "$as_me:$LINENO: checking for $ac_header" >&5
4392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4393if eval "test \"\${$as_ac_Header+set}\" = set"; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  cat >conftest.$ac_ext <<_ACEOF
4397/* confdefs.h.  */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h.  */
4402$ac_includes_default
4403
4404#include <$ac_header>
4405_ACEOF
4406rm -f conftest.$ac_objext
4407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408  (eval $ac_compile) 2>conftest.er1
4409  ac_status=$?
4410  grep -v '^ *+' conftest.er1 >conftest.err
4411  rm -f conftest.er1
4412  cat conftest.err >&5
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } &&
4415         { ac_try='test -z "$ac_c_werror_flag"
4416                         || test ! -s conftest.err'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; } &&
4422         { ac_try='test -s conftest.$ac_objext'
4423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424  (eval $ac_try) 2>&5
4425  ac_status=$?
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); }; }; then
4428  eval "$as_ac_Header=yes"
4429else
4430  echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433eval "$as_ac_Header=no"
4434fi
4435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
4437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440  cat >>confdefs.h <<_ACEOF
4441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4442_ACEOF
4443
4444fi
4445
4446done
4447
4448
4449
4450for ac_header in SDL/SDL.h
4451do
4452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454  echo "$as_me:$LINENO: checking for $ac_header" >&5
4455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4456if eval "test \"\${$as_ac_Header+set}\" = set"; then
4457  echo $ECHO_N "(cached) $ECHO_C" >&6
4458fi
4459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4461else
4462  # Is the header compilable?
4463echo "$as_me:$LINENO: checking $ac_header usability" >&5
4464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4465cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h.  */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h.  */
4471$ac_includes_default
4472#include <$ac_header>
4473_ACEOF
4474rm -f conftest.$ac_objext
4475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476  (eval $ac_compile) 2>conftest.er1
4477  ac_status=$?
4478  grep -v '^ *+' conftest.er1 >conftest.err
4479  rm -f conftest.er1
4480  cat conftest.err >&5
4481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); } &&
4483         { ac_try='test -z "$ac_c_werror_flag"
4484                         || test ! -s conftest.err'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; } &&
4490         { ac_try='test -s conftest.$ac_objext'
4491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492  (eval $ac_try) 2>&5
4493  ac_status=$?
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; }; then
4496  ac_header_compiler=yes
4497else
4498  echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
4501ac_header_compiler=no
4502fi
4503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4505echo "${ECHO_T}$ac_header_compiler" >&6
4506
4507# Is the header present?
4508echo "$as_me:$LINENO: checking $ac_header presence" >&5
4509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h.  */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h.  */
4516#include <$ac_header>
4517_ACEOF
4518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4519  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4520  ac_status=$?
4521  grep -v '^ *+' conftest.er1 >conftest.err
4522  rm -f conftest.er1
4523  cat conftest.err >&5
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); } >/dev/null; then
4526  if test -s conftest.err; then
4527    ac_cpp_err=$ac_c_preproc_warn_flag
4528    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4529  else
4530    ac_cpp_err=
4531  fi
4532else
4533  ac_cpp_err=yes
4534fi
4535if test -z "$ac_cpp_err"; then
4536  ac_header_preproc=yes
4537else
4538  echo "$as_me: failed program was:" >&5
4539sed 's/^/| /' conftest.$ac_ext >&5
4540
4541  ac_header_preproc=no
4542fi
4543rm -f conftest.err conftest.$ac_ext
4544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4545echo "${ECHO_T}$ac_header_preproc" >&6
4546
4547# So?  What about this header?
4548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4549  yes:no: )
4550    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4554    ac_header_preproc=yes
4555    ;;
4556  no:yes:* )
4557    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4559    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4560echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4561    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4563    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4564echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4565    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4567    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4569    (
4570      cat <<\_ASBOX
4571## ---------------------------------------------- ##
4572## Report this to orxonox-dev at mail.datacore.ch ##
4573## ---------------------------------------------- ##
4574_ASBOX
4575    ) |
4576      sed "s/^/$as_me: WARNING:     /" >&2
4577    ;;
4578esac
4579echo "$as_me:$LINENO: checking for $ac_header" >&5
4580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  eval "$as_ac_Header=\$ac_header_preproc"
4585fi
4586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4588
4589fi
4590if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591  cat >>confdefs.h <<_ACEOF
4592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593_ACEOF
4594
4595else
4596  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4597echo "$as_me: error: cannot find SDL headers" >&2;}
4598   { (exit 1); exit 1; }; }
4599fi
4600
4601done
4602
4603
4604#checking for libSDL
4605    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4606echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4607if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4608  echo $ECHO_N "(cached) $ECHO_C" >&6
4609else
4610  ac_check_lib_save_LIBS=$LIBS
4611LIBS="-lsdlmain  $LIBS"
4612cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h.  */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h.  */
4618
4619
4620int
4621main ()
4622{
4623main ();
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628rm -f conftest.$ac_objext conftest$ac_exeext
4629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630  (eval $ac_link) 2>conftest.er1
4631  ac_status=$?
4632  grep -v '^ *+' conftest.er1 >conftest.err
4633  rm -f conftest.er1
4634  cat conftest.err >&5
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); } &&
4637         { ac_try='test -z "$ac_c_werror_flag"
4638                         || test ! -s conftest.err'
4639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640  (eval $ac_try) 2>&5
4641  ac_status=$?
4642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643  (exit $ac_status); }; } &&
4644         { ac_try='test -s conftest$ac_exeext'
4645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646  (eval $ac_try) 2>&5
4647  ac_status=$?
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); }; }; then
4650  ac_cv_lib_sdlmain_main=yes
4651else
4652  echo "$as_me: failed program was:" >&5
4653sed 's/^/| /' conftest.$ac_ext >&5
4654
4655ac_cv_lib_sdlmain_main=no
4656fi
4657rm -f conftest.err conftest.$ac_objext \
4658      conftest$ac_exeext conftest.$ac_ext
4659LIBS=$ac_check_lib_save_LIBS
4660fi
4661echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4662echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4663if test $ac_cv_lib_sdlmain_main = yes; then
4664  FOUND_sdlmain=yes
4665fi
4666
4667    if test x$FOUND_sdlmain = xyes ; then
4668       LIBS="$LIBS -lsdlmain"
4669    else
4670        echo "------------------"
4671        echo "SDL library not found."
4672        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4673        echo "------------------"
4674        exit 1
4675    fi
4676    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4677echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4678if test "${ac_cv_lib_sdl_main+set}" = set; then
4679  echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681  ac_check_lib_save_LIBS=$LIBS
4682LIBS="-lsdl  $LIBS"
4683cat >conftest.$ac_ext <<_ACEOF
4684/* confdefs.h.  */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h.  */
4689
4690
4691int
4692main ()
4693{
4694main ();
4695  ;
4696  return 0;
4697}
4698_ACEOF
4699rm -f conftest.$ac_objext conftest$ac_exeext
4700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701  (eval $ac_link) 2>conftest.er1
4702  ac_status=$?
4703  grep -v '^ *+' conftest.er1 >conftest.err
4704  rm -f conftest.er1
4705  cat conftest.err >&5
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); } &&
4708         { ac_try='test -z "$ac_c_werror_flag"
4709                         || test ! -s conftest.err'
4710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711  (eval $ac_try) 2>&5
4712  ac_status=$?
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); }; } &&
4715         { ac_try='test -s conftest$ac_exeext'
4716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717  (eval $ac_try) 2>&5
4718  ac_status=$?
4719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); }; }; then
4721  ac_cv_lib_sdl_main=yes
4722else
4723  echo "$as_me: failed program was:" >&5
4724sed 's/^/| /' conftest.$ac_ext >&5
4725
4726ac_cv_lib_sdl_main=no
4727fi
4728rm -f conftest.err conftest.$ac_objext \
4729      conftest$ac_exeext conftest.$ac_ext
4730LIBS=$ac_check_lib_save_LIBS
4731fi
4732echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4733echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4734if test $ac_cv_lib_sdl_main = yes; then
4735  FOUND_sdl=yes
4736fi
4737
4738    if test x$FOUND_sdl = xyes ; then
4739       LIBS="$LIBS -lsdl"
4740    else
4741        echo "------------------"
4742        echo "SDL library not found."
4743        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4744        echo "------------------"
4745        exit -1
4746    fi
4747
4748#---------------#
4749# open-GL (win) #
4750#---------------#
4751# checking gl header
4752
4753for ac_header in GL/gl.h
4754do
4755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756if eval "test \"\${$as_ac_Header+set}\" = set"; then
4757  echo "$as_me:$LINENO: checking for $ac_header" >&5
4758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760  echo $ECHO_N "(cached) $ECHO_C" >&6
4761fi
4762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4764else
4765  # Is the header compilable?
4766echo "$as_me:$LINENO: checking $ac_header usability" >&5
4767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4768cat >conftest.$ac_ext <<_ACEOF
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774$ac_includes_default
4775#include <$ac_header>
4776_ACEOF
4777rm -f conftest.$ac_objext
4778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779  (eval $ac_compile) 2>conftest.er1
4780  ac_status=$?
4781  grep -v '^ *+' conftest.er1 >conftest.err
4782  rm -f conftest.er1
4783  cat conftest.err >&5
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); } &&
4786         { ac_try='test -z "$ac_c_werror_flag"
4787                         || test ! -s conftest.err'
4788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789  (eval $ac_try) 2>&5
4790  ac_status=$?
4791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); }; } &&
4793         { ac_try='test -s conftest.$ac_objext'
4794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795  (eval $ac_try) 2>&5
4796  ac_status=$?
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); }; }; then
4799  ac_header_compiler=yes
4800else
4801  echo "$as_me: failed program was:" >&5
4802sed 's/^/| /' conftest.$ac_ext >&5
4803
4804ac_header_compiler=no
4805fi
4806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4808echo "${ECHO_T}$ac_header_compiler" >&6
4809
4810# Is the header present?
4811echo "$as_me:$LINENO: checking $ac_header presence" >&5
4812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4813cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h.  */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h.  */
4819#include <$ac_header>
4820_ACEOF
4821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4822  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4823  ac_status=$?
4824  grep -v '^ *+' conftest.er1 >conftest.err
4825  rm -f conftest.er1
4826  cat conftest.err >&5
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); } >/dev/null; then
4829  if test -s conftest.err; then
4830    ac_cpp_err=$ac_c_preproc_warn_flag
4831    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4832  else
4833    ac_cpp_err=
4834  fi
4835else
4836  ac_cpp_err=yes
4837fi
4838if test -z "$ac_cpp_err"; then
4839  ac_header_preproc=yes
4840else
4841  echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844  ac_header_preproc=no
4845fi
4846rm -f conftest.err conftest.$ac_ext
4847echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4848echo "${ECHO_T}$ac_header_preproc" >&6
4849
4850# So?  What about this header?
4851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4852  yes:no: )
4853    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4855    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4857    ac_header_preproc=yes
4858    ;;
4859  no:yes:* )
4860    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4862    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4863echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4864    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4866    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4867echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4870    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4872    (
4873      cat <<\_ASBOX
4874## ---------------------------------------------- ##
4875## Report this to orxonox-dev at mail.datacore.ch ##
4876## ---------------------------------------------- ##
4877_ASBOX
4878    ) |
4879      sed "s/^/$as_me: WARNING:     /" >&2
4880    ;;
4881esac
4882echo "$as_me:$LINENO: checking for $ac_header" >&5
4883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4884if eval "test \"\${$as_ac_Header+set}\" = set"; then
4885  echo $ECHO_N "(cached) $ECHO_C" >&6
4886else
4887  eval "$as_ac_Header=\$ac_header_preproc"
4888fi
4889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4891
4892fi
4893if test `eval echo '${'$as_ac_Header'}'` = yes; then
4894  cat >>confdefs.h <<_ACEOF
4895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4896_ACEOF
4897
4898else
4899  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4900echo "$as_me: error: cannot find opengl headers" >&2;}
4901   { (exit 1); exit 1; }; }
4902fi
4903
4904done
4905
4906#   checking for Windows openGl library
4907    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4908echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4909if test "${ac_cv_lib_opengl32_main+set}" = set; then
4910  echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912  ac_check_lib_save_LIBS=$LIBS
4913LIBS="-lopengl32  $LIBS"
4914cat >conftest.$ac_ext <<_ACEOF
4915/* confdefs.h.  */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h.  */
4920
4921
4922int
4923main ()
4924{
4925main ();
4926  ;
4927  return 0;
4928}
4929_ACEOF
4930rm -f conftest.$ac_objext conftest$ac_exeext
4931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932  (eval $ac_link) 2>conftest.er1
4933  ac_status=$?
4934  grep -v '^ *+' conftest.er1 >conftest.err
4935  rm -f conftest.er1
4936  cat conftest.err >&5
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); } &&
4939         { ac_try='test -z "$ac_c_werror_flag"
4940                         || test ! -s conftest.err'
4941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942  (eval $ac_try) 2>&5
4943  ac_status=$?
4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945  (exit $ac_status); }; } &&
4946         { ac_try='test -s conftest$ac_exeext'
4947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948  (eval $ac_try) 2>&5
4949  ac_status=$?
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); }; }; then
4952  ac_cv_lib_opengl32_main=yes
4953else
4954  echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957ac_cv_lib_opengl32_main=no
4958fi
4959rm -f conftest.err conftest.$ac_objext \
4960      conftest$ac_exeext conftest.$ac_ext
4961LIBS=$ac_check_lib_save_LIBS
4962fi
4963echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4964echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4965if test $ac_cv_lib_opengl32_main = yes; then
4966  FOUND_opengl32=yes
4967else
4968  "gl/gl.h"
4969fi
4970
4971    if test x$FOUND_opengl32 = xyes ; then
4972        LIBS="$LIBS -lopengl32"
4973    else
4974         echo "------------------"
4975         echo "opengl not found."
4976         echo "please install the opengl package which can be found at http://www.opengl.org"
4977         echo "------------------"
4978         exit -1
4979    fi
4980
4981# cheking for GLU-header
4982
4983for ac_header in GL/glu.h
4984do
4985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986if eval "test \"\${$as_ac_Header+set}\" = set"; then
4987  echo "$as_me:$LINENO: checking for $ac_header" >&5
4988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4989if eval "test \"\${$as_ac_Header+set}\" = set"; then
4990  echo $ECHO_N "(cached) $ECHO_C" >&6
4991fi
4992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4994else
4995  # Is the header compilable?
4996echo "$as_me:$LINENO: checking $ac_header usability" >&5
4997echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4998cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h.  */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h.  */
5004$ac_includes_default
5005#include <$ac_header>
5006_ACEOF
5007rm -f conftest.$ac_objext
5008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009  (eval $ac_compile) 2>conftest.er1
5010  ac_status=$?
5011  grep -v '^ *+' conftest.er1 >conftest.err
5012  rm -f conftest.er1
5013  cat conftest.err >&5
5014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015  (exit $ac_status); } &&
5016         { ac_try='test -z "$ac_c_werror_flag"
5017                         || test ! -s conftest.err'
5018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019  (eval $ac_try) 2>&5
5020  ac_status=$?
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); }; } &&
5023         { ac_try='test -s conftest.$ac_objext'
5024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025  (eval $ac_try) 2>&5
5026  ac_status=$?
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); }; }; then
5029  ac_header_compiler=yes
5030else
5031  echo "$as_me: failed program was:" >&5
5032sed 's/^/| /' conftest.$ac_ext >&5
5033
5034ac_header_compiler=no
5035fi
5036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5038echo "${ECHO_T}$ac_header_compiler" >&6
5039
5040# Is the header present?
5041echo "$as_me:$LINENO: checking $ac_header presence" >&5
5042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5043cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h.  */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h.  */
5049#include <$ac_header>
5050_ACEOF
5051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053  ac_status=$?
5054  grep -v '^ *+' conftest.er1 >conftest.err
5055  rm -f conftest.er1
5056  cat conftest.err >&5
5057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058  (exit $ac_status); } >/dev/null; then
5059  if test -s conftest.err; then
5060    ac_cpp_err=$ac_c_preproc_warn_flag
5061    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5062  else
5063    ac_cpp_err=
5064  fi
5065else
5066  ac_cpp_err=yes
5067fi
5068if test -z "$ac_cpp_err"; then
5069  ac_header_preproc=yes
5070else
5071  echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074  ac_header_preproc=no
5075fi
5076rm -f conftest.err conftest.$ac_ext
5077echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5078echo "${ECHO_T}$ac_header_preproc" >&6
5079
5080# So?  What about this header?
5081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5082  yes:no: )
5083    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5085    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5087    ac_header_preproc=yes
5088    ;;
5089  no:yes:* )
5090    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5092    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5093echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5094    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5096    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5097echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5098    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5100    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5102    (
5103      cat <<\_ASBOX
5104## ---------------------------------------------- ##
5105## Report this to orxonox-dev at mail.datacore.ch ##
5106## ---------------------------------------------- ##
5107_ASBOX
5108    ) |
5109      sed "s/^/$as_me: WARNING:     /" >&2
5110    ;;
5111esac
5112echo "$as_me:$LINENO: checking for $ac_header" >&5
5113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5114if eval "test \"\${$as_ac_Header+set}\" = set"; then
5115  echo $ECHO_N "(cached) $ECHO_C" >&6
5116else
5117  eval "$as_ac_Header=\$ac_header_preproc"
5118fi
5119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5121
5122fi
5123if test `eval echo '${'$as_ac_Header'}'` = yes; then
5124  cat >>confdefs.h <<_ACEOF
5125#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5126_ACEOF
5127
5128else
5129  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5130echo "$as_me: error: cannot find opengl headers" >&2;}
5131   { (exit 1); exit 1; }; }
5132fi
5133
5134done
5135
5136
5137# checking for libGLU
5138    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
5139echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
5140if test "${ac_cv_lib_glu32_main+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  ac_check_lib_save_LIBS=$LIBS
5144LIBS="-lglu32  $LIBS"
5145cat >conftest.$ac_ext <<_ACEOF
5146/* confdefs.h.  */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h.  */
5151
5152
5153int
5154main ()
5155{
5156main ();
5157  ;
5158  return 0;
5159}
5160_ACEOF
5161rm -f conftest.$ac_objext conftest$ac_exeext
5162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163  (eval $ac_link) 2>conftest.er1
5164  ac_status=$?
5165  grep -v '^ *+' conftest.er1 >conftest.err
5166  rm -f conftest.er1
5167  cat conftest.err >&5
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); } &&
5170         { ac_try='test -z "$ac_c_werror_flag"
5171                         || test ! -s conftest.err'
5172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173  (eval $ac_try) 2>&5
5174  ac_status=$?
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); }; } &&
5177         { ac_try='test -s conftest$ac_exeext'
5178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179  (eval $ac_try) 2>&5
5180  ac_status=$?
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); }; }; then
5183  ac_cv_lib_glu32_main=yes
5184else
5185  echo "$as_me: failed program was:" >&5
5186sed 's/^/| /' conftest.$ac_ext >&5
5187
5188ac_cv_lib_glu32_main=no
5189fi
5190rm -f conftest.err conftest.$ac_objext \
5191      conftest$ac_exeext conftest.$ac_ext
5192LIBS=$ac_check_lib_save_LIBS
5193fi
5194echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
5195echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
5196if test $ac_cv_lib_glu32_main = yes; then
5197  FOUND_glu32=yes
5198fi
5199
5200    if test x$FOUND_glu32 = xyes ; then
5201        LIBS="$LIBS -lGLU32"
5202    else
5203         echo "------------------"
5204         echo "GLU library not found."
5205         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5206         echo "------------------"
5207         exit -1
5208    fi
5209
5210#--------#
5211# openAL #
5212#--------#
5213# checking for openAL-headers
5214
5215for ac_header in AL/al.h
5216do
5217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5218if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219  echo "$as_me:$LINENO: checking for $ac_header" >&5
5220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5221if eval "test \"\${$as_ac_Header+set}\" = set"; then
5222  echo $ECHO_N "(cached) $ECHO_C" >&6
5223fi
5224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226else
5227  # Is the header compilable?
5228echo "$as_me:$LINENO: checking $ac_header usability" >&5
5229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5230cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h.  */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h.  */
5236$ac_includes_default
5237#include <$ac_header>
5238_ACEOF
5239rm -f conftest.$ac_objext
5240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241  (eval $ac_compile) 2>conftest.er1
5242  ac_status=$?
5243  grep -v '^ *+' conftest.er1 >conftest.err
5244  rm -f conftest.er1
5245  cat conftest.err >&5
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); } &&
5248         { ac_try='test -z "$ac_c_werror_flag"
5249                         || test ! -s conftest.err'
5250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251  (eval $ac_try) 2>&5
5252  ac_status=$?
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); }; } &&
5255         { ac_try='test -s conftest.$ac_objext'
5256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257  (eval $ac_try) 2>&5
5258  ac_status=$?
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); }; }; then
5261  ac_header_compiler=yes
5262else
5263  echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
5266ac_header_compiler=no
5267fi
5268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270echo "${ECHO_T}$ac_header_compiler" >&6
5271
5272# Is the header present?
5273echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5275cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h.  */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h.  */
5281#include <$ac_header>
5282_ACEOF
5283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5285  ac_status=$?
5286  grep -v '^ *+' conftest.er1 >conftest.err
5287  rm -f conftest.er1
5288  cat conftest.err >&5
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); } >/dev/null; then
5291  if test -s conftest.err; then
5292    ac_cpp_err=$ac_c_preproc_warn_flag
5293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5294  else
5295    ac_cpp_err=
5296  fi
5297else
5298  ac_cpp_err=yes
5299fi
5300if test -z "$ac_cpp_err"; then
5301  ac_header_preproc=yes
5302else
5303  echo "$as_me: failed program was:" >&5
5304sed 's/^/| /' conftest.$ac_ext >&5
5305
5306  ac_header_preproc=no
5307fi
5308rm -f conftest.err conftest.$ac_ext
5309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310echo "${ECHO_T}$ac_header_preproc" >&6
5311
5312# So?  What about this header?
5313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5314  yes:no: )
5315    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319    ac_header_preproc=yes
5320    ;;
5321  no:yes:* )
5322    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5325echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5326    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5329echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5330    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334    (
5335      cat <<\_ASBOX
5336## ---------------------------------------------- ##
5337## Report this to orxonox-dev at mail.datacore.ch ##
5338## ---------------------------------------------- ##
5339_ASBOX
5340    ) |
5341      sed "s/^/$as_me: WARNING:     /" >&2
5342    ;;
5343esac
5344echo "$as_me:$LINENO: checking for $ac_header" >&5
5345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5346if eval "test \"\${$as_ac_Header+set}\" = set"; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349  eval "$as_ac_Header=\$ac_header_preproc"
5350fi
5351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353
5354fi
5355if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356  cat >>confdefs.h <<_ACEOF
5357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358_ACEOF
5359
5360else
5361  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5362echo "$as_me: error: cannot find openAL header." >&2;}
5363   { (exit 1); exit 1; }; }
5364fi
5365
5366done
5367
5368# checking for openAL-lib
5369  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5370echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5371if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
5372  echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374  ac_check_lib_save_LIBS=$LIBS
5375LIBS="-lOpenAL32  $LIBS"
5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h.  */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h.  */
5382
5383
5384int
5385main ()
5386{
5387main ();
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392rm -f conftest.$ac_objext conftest$ac_exeext
5393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394  (eval $ac_link) 2>conftest.er1
5395  ac_status=$?
5396  grep -v '^ *+' conftest.er1 >conftest.err
5397  rm -f conftest.er1
5398  cat conftest.err >&5
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); } &&
5401         { ac_try='test -z "$ac_c_werror_flag"
5402                         || test ! -s conftest.err'
5403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404  (eval $ac_try) 2>&5
5405  ac_status=$?
5406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407  (exit $ac_status); }; } &&
5408         { ac_try='test -s conftest$ac_exeext'
5409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410  (eval $ac_try) 2>&5
5411  ac_status=$?
5412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413  (exit $ac_status); }; }; then
5414  ac_cv_lib_OpenAL32_main=yes
5415else
5416  echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
5419ac_cv_lib_OpenAL32_main=no
5420fi
5421rm -f conftest.err conftest.$ac_objext \
5422      conftest$ac_exeext conftest.$ac_ext
5423LIBS=$ac_check_lib_save_LIBS
5424fi
5425echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5426echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5427if test $ac_cv_lib_OpenAL32_main = yes; then
5428  FOUND_openal=yes
5429fi
5430
5431  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5432echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5433if test "${ac_cv_lib_ALut_main+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  ac_check_lib_save_LIBS=$LIBS
5437LIBS="-lALut  $LIBS"
5438cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h.  */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h.  */
5444
5445
5446int
5447main ()
5448{
5449main ();
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext conftest$ac_exeext
5455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456  (eval $ac_link) 2>conftest.er1
5457  ac_status=$?
5458  grep -v '^ *+' conftest.er1 >conftest.err
5459  rm -f conftest.er1
5460  cat conftest.err >&5
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); } &&
5463         { ac_try='test -z "$ac_c_werror_flag"
5464                         || test ! -s conftest.err'
5465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466  (eval $ac_try) 2>&5
5467  ac_status=$?
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }; } &&
5470         { ac_try='test -s conftest$ac_exeext'
5471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472  (eval $ac_try) 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); }; }; then
5476  ac_cv_lib_ALut_main=yes
5477else
5478  echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481ac_cv_lib_ALut_main=no
5482fi
5483rm -f conftest.err conftest.$ac_objext \
5484      conftest$ac_exeext conftest.$ac_ext
5485LIBS=$ac_check_lib_save_LIBS
5486fi
5487echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5488echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5489if test $ac_cv_lib_ALut_main = yes; then
5490  FOUND_ALut=yes
5491fi
5492
5493     if test x$FOUND_openal = xyes ; then
5494      if test x$FOUND_ALut = xyes ; then
5495       LIBS="$LIBS -lALut -lOpenAL32"
5496     else
5497        echo "------------------"
5498        echo "openal library not found."
5499        echo "please install the openal library, which can be found at http://www.openal.org"
5500        echo "------------------"
5501        exit -1
5502      fi
5503     fi
5504    ;;
5505#-------#
5506# LINUX #
5507#-------#
5508 *-*-linux*)
5509echo "Linux detected"
5510
5511 Linux="yes"
5512
5513CPPFLAGS="-I/usr/X11R6/include -I/usr/include"
5514LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5515# checking gl header
5516
5517for ac_header in GL/gl.h
5518do
5519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520if eval "test \"\${$as_ac_Header+set}\" = set"; then
5521  echo "$as_me:$LINENO: checking for $ac_header" >&5
5522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5523if eval "test \"\${$as_ac_Header+set}\" = set"; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525fi
5526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528else
5529  # Is the header compilable?
5530echo "$as_me:$LINENO: checking $ac_header usability" >&5
5531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5532cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538$ac_includes_default
5539#include <$ac_header>
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543  (eval $ac_compile) 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } &&
5550         { ac_try='test -z "$ac_c_werror_flag"
5551                         || test ! -s conftest.err'
5552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553  (eval $ac_try) 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); }; } &&
5557         { ac_try='test -s conftest.$ac_objext'
5558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559  (eval $ac_try) 2>&5
5560  ac_status=$?
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); }; }; then
5563  ac_header_compiler=yes
5564else
5565  echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568ac_header_compiler=no
5569fi
5570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5572echo "${ECHO_T}$ac_header_compiler" >&6
5573
5574# Is the header present?
5575echo "$as_me:$LINENO: checking $ac_header presence" >&5
5576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5577cat >conftest.$ac_ext <<_ACEOF
5578/* confdefs.h.  */
5579_ACEOF
5580cat confdefs.h >>conftest.$ac_ext
5581cat >>conftest.$ac_ext <<_ACEOF
5582/* end confdefs.h.  */
5583#include <$ac_header>
5584_ACEOF
5585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5586  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5587  ac_status=$?
5588  grep -v '^ *+' conftest.er1 >conftest.err
5589  rm -f conftest.er1
5590  cat conftest.err >&5
5591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592  (exit $ac_status); } >/dev/null; then
5593  if test -s conftest.err; then
5594    ac_cpp_err=$ac_c_preproc_warn_flag
5595    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5596  else
5597    ac_cpp_err=
5598  fi
5599else
5600  ac_cpp_err=yes
5601fi
5602if test -z "$ac_cpp_err"; then
5603  ac_header_preproc=yes
5604else
5605  echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
5608  ac_header_preproc=no
5609fi
5610rm -f conftest.err conftest.$ac_ext
5611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5612echo "${ECHO_T}$ac_header_preproc" >&6
5613
5614# So?  What about this header?
5615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5616  yes:no: )
5617    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5621    ac_header_preproc=yes
5622    ;;
5623  no:yes:* )
5624    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5626    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5627echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5628    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5630    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5631echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5634    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5636    (
5637      cat <<\_ASBOX
5638## ---------------------------------------------- ##
5639## Report this to orxonox-dev at mail.datacore.ch ##
5640## ---------------------------------------------- ##
5641_ASBOX
5642    ) |
5643      sed "s/^/$as_me: WARNING:     /" >&2
5644    ;;
5645esac
5646echo "$as_me:$LINENO: checking for $ac_header" >&5
5647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5648if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  eval "$as_ac_Header=\$ac_header_preproc"
5652fi
5653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5655
5656fi
5657if test `eval echo '${'$as_ac_Header'}'` = yes; then
5658  cat >>confdefs.h <<_ACEOF
5659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5660_ACEOF
5661
5662else
5663  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5664echo "$as_me: error: cannot find opengl headers" >&2;}
5665   { (exit 1); exit 1; }; }
5666fi
5667
5668done
5669
5670
5671#  checking for Unix GL
5672   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5673echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5674if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5675  echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677  ac_check_lib_save_LIBS=$LIBS
5678LIBS="-lGL  $LIBS"
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685
5686/* Override any gcc2 internal prototype to avoid an error.  */
5687#ifdef __cplusplus
5688extern "C"
5689#endif
5690/* We use char because int might match the return type of a gcc2
5691   builtin and then its argument prototype would still apply.  */
5692char glLoadIdentity ();
5693int
5694main ()
5695{
5696glLoadIdentity ();
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext conftest$ac_exeext
5702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703  (eval $ac_link) 2>conftest.er1
5704  ac_status=$?
5705  grep -v '^ *+' conftest.er1 >conftest.err
5706  rm -f conftest.er1
5707  cat conftest.err >&5
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); } &&
5710         { ac_try='test -z "$ac_c_werror_flag"
5711                         || test ! -s conftest.err'
5712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713  (eval $ac_try) 2>&5
5714  ac_status=$?
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); }; } &&
5717         { ac_try='test -s conftest$ac_exeext'
5718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719  (eval $ac_try) 2>&5
5720  ac_status=$?
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); }; }; then
5723  ac_cv_lib_GL_glLoadIdentity=yes
5724else
5725  echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728ac_cv_lib_GL_glLoadIdentity=no
5729fi
5730rm -f conftest.err conftest.$ac_objext \
5731      conftest$ac_exeext conftest.$ac_ext
5732LIBS=$ac_check_lib_save_LIBS
5733fi
5734echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5735echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5736if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5737  FOUND_GL=yes
5738fi
5739
5740   if test x$FOUND_GL = xyes ; then
5741     LIBS="$LIBS -lGL"
5742   else
5743         echo "------------------"
5744         echo "opengl not found."
5745         echo "please install the opengl package which can be found at http://www.opengl.org"
5746         echo "------------------"
5747         exit -1
5748   fi
5749
5750# cheking for GLU-header
5751
5752for ac_header in GL/glu.h
5753do
5754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5755if eval "test \"\${$as_ac_Header+set}\" = set"; then
5756  echo "$as_me:$LINENO: checking for $ac_header" >&5
5757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5758if eval "test \"\${$as_ac_Header+set}\" = set"; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760fi
5761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5763else
5764  # Is the header compilable?
5765echo "$as_me:$LINENO: checking $ac_header usability" >&5
5766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5767cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h.  */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h.  */
5773$ac_includes_default
5774#include <$ac_header>
5775_ACEOF
5776rm -f conftest.$ac_objext
5777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778  (eval $ac_compile) 2>conftest.er1
5779  ac_status=$?
5780  grep -v '^ *+' conftest.er1 >conftest.err
5781  rm -f conftest.er1
5782  cat conftest.err >&5
5783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784  (exit $ac_status); } &&
5785         { ac_try='test -z "$ac_c_werror_flag"
5786                         || test ! -s conftest.err'
5787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788  (eval $ac_try) 2>&5
5789  ac_status=$?
5790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791  (exit $ac_status); }; } &&
5792         { ac_try='test -s conftest.$ac_objext'
5793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794  (eval $ac_try) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }; }; then
5798  ac_header_compiler=yes
5799else
5800  echo "$as_me: failed program was:" >&5
5801sed 's/^/| /' conftest.$ac_ext >&5
5802
5803ac_header_compiler=no
5804fi
5805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5807echo "${ECHO_T}$ac_header_compiler" >&6
5808
5809# Is the header present?
5810echo "$as_me:$LINENO: checking $ac_header presence" >&5
5811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5812cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h.  */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h.  */
5818#include <$ac_header>
5819_ACEOF
5820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5822  ac_status=$?
5823  grep -v '^ *+' conftest.er1 >conftest.err
5824  rm -f conftest.er1
5825  cat conftest.err >&5
5826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827  (exit $ac_status); } >/dev/null; then
5828  if test -s conftest.err; then
5829    ac_cpp_err=$ac_c_preproc_warn_flag
5830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5831  else
5832    ac_cpp_err=
5833  fi
5834else
5835  ac_cpp_err=yes
5836fi
5837if test -z "$ac_cpp_err"; then
5838  ac_header_preproc=yes
5839else
5840  echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
5843  ac_header_preproc=no
5844fi
5845rm -f conftest.err conftest.$ac_ext
5846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5847echo "${ECHO_T}$ac_header_preproc" >&6
5848
5849# So?  What about this header?
5850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5851  yes:no: )
5852    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5854    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5856    ac_header_preproc=yes
5857    ;;
5858  no:yes:* )
5859    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5861    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5862echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5863    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5865    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5866echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5867    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5869    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5871    (
5872      cat <<\_ASBOX
5873## ---------------------------------------------- ##
5874## Report this to orxonox-dev at mail.datacore.ch ##
5875## ---------------------------------------------- ##
5876_ASBOX
5877    ) |
5878      sed "s/^/$as_me: WARNING:     /" >&2
5879    ;;
5880esac
5881echo "$as_me:$LINENO: checking for $ac_header" >&5
5882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5883if eval "test \"\${$as_ac_Header+set}\" = set"; then
5884  echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886  eval "$as_ac_Header=\$ac_header_preproc"
5887fi
5888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890
5891fi
5892if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893  cat >>confdefs.h <<_ACEOF
5894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895_ACEOF
5896
5897else
5898  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5899echo "$as_me: error: cannot find opengl headers" >&2;}
5900   { (exit 1); exit 1; }; }
5901fi
5902
5903done
5904
5905
5906    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5907echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5908if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911  ac_check_lib_save_LIBS=$LIBS
5912LIBS="-lGLU  $LIBS"
5913cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h.  */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h.  */
5919
5920/* Override any gcc2 internal prototype to avoid an error.  */
5921#ifdef __cplusplus
5922extern "C"
5923#endif
5924/* We use char because int might match the return type of a gcc2
5925   builtin and then its argument prototype would still apply.  */
5926char gluProject ();
5927int
5928main ()
5929{
5930gluProject ();
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext conftest$ac_exeext
5936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937  (eval $ac_link) 2>conftest.er1
5938  ac_status=$?
5939  grep -v '^ *+' conftest.er1 >conftest.err
5940  rm -f conftest.er1
5941  cat conftest.err >&5
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } &&
5944         { ac_try='test -z "$ac_c_werror_flag"
5945                         || test ! -s conftest.err'
5946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947  (eval $ac_try) 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); }; } &&
5951         { ac_try='test -s conftest$ac_exeext'
5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953  (eval $ac_try) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); }; }; then
5957  ac_cv_lib_GLU_gluProject=yes
5958else
5959  echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962ac_cv_lib_GLU_gluProject=no
5963fi
5964rm -f conftest.err conftest.$ac_objext \
5965      conftest$ac_exeext conftest.$ac_ext
5966LIBS=$ac_check_lib_save_LIBS
5967fi
5968echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5969echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5970if test $ac_cv_lib_GLU_gluProject = yes; then
5971  FOUND_GLU=yes
5972fi
5973
5974    if test x$FOUND_GLU = xyes ; then
5975      LIBS="$LIBS -lGLU"
5976    else
5977         echo "------------------"
5978         echo "GLU library not found."
5979         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5980         echo "------------------"
5981         exit -1
5982    fi
5983
5984#--------#
5985# openAL #
5986#--------#
5987# checking for openAL-headers
5988
5989for ac_header in AL/al.h
5990do
5991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992if eval "test \"\${$as_ac_Header+set}\" = set"; then
5993  echo "$as_me:$LINENO: checking for $ac_header" >&5
5994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5995if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997fi
5998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6000else
6001  # Is the header compilable?
6002echo "$as_me:$LINENO: checking $ac_header usability" >&5
6003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6004cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h.  */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h.  */
6010$ac_includes_default
6011#include <$ac_header>
6012_ACEOF
6013rm -f conftest.$ac_objext
6014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015  (eval $ac_compile) 2>conftest.er1
6016  ac_status=$?
6017  grep -v '^ *+' conftest.er1 >conftest.err
6018  rm -f conftest.er1
6019  cat conftest.err >&5
6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021  (exit $ac_status); } &&
6022         { ac_try='test -z "$ac_c_werror_flag"
6023                         || test ! -s conftest.err'
6024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025  (eval $ac_try) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; } &&
6029         { ac_try='test -s conftest.$ac_objext'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; }; then
6035  ac_header_compiler=yes
6036else
6037  echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
6039
6040ac_header_compiler=no
6041fi
6042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044echo "${ECHO_T}$ac_header_compiler" >&6
6045
6046# Is the header present?
6047echo "$as_me:$LINENO: checking $ac_header presence" >&5
6048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6049cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h.  */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h.  */
6055#include <$ac_header>
6056_ACEOF
6057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6058  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059  ac_status=$?
6060  grep -v '^ *+' conftest.er1 >conftest.err
6061  rm -f conftest.er1
6062  cat conftest.err >&5
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); } >/dev/null; then
6065  if test -s conftest.err; then
6066    ac_cpp_err=$ac_c_preproc_warn_flag
6067    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6068  else
6069    ac_cpp_err=
6070  fi
6071else
6072  ac_cpp_err=yes
6073fi
6074if test -z "$ac_cpp_err"; then
6075  ac_header_preproc=yes
6076else
6077  echo "$as_me: failed program was:" >&5
6078sed 's/^/| /' conftest.$ac_ext >&5
6079
6080  ac_header_preproc=no
6081fi
6082rm -f conftest.err conftest.$ac_ext
6083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6084echo "${ECHO_T}$ac_header_preproc" >&6
6085
6086# So?  What about this header?
6087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088  yes:no: )
6089    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6091    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6093    ac_header_preproc=yes
6094    ;;
6095  no:yes:* )
6096    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6098    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6099echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6100    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6102    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6103echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6104    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6106    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6108    (
6109      cat <<\_ASBOX
6110## ---------------------------------------------- ##
6111## Report this to orxonox-dev at mail.datacore.ch ##
6112## ---------------------------------------------- ##
6113_ASBOX
6114    ) |
6115      sed "s/^/$as_me: WARNING:     /" >&2
6116    ;;
6117esac
6118echo "$as_me:$LINENO: checking for $ac_header" >&5
6119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6120if eval "test \"\${$as_ac_Header+set}\" = set"; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123  eval "$as_ac_Header=\$ac_header_preproc"
6124fi
6125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6127
6128fi
6129if test `eval echo '${'$as_ac_Header'}'` = yes; then
6130  cat >>confdefs.h <<_ACEOF
6131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6132_ACEOF
6133
6134else
6135  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6136echo "$as_me: error: cannot find openAL header." >&2;}
6137   { (exit 1); exit 1; }; }
6138fi
6139
6140done
6141
6142# checking for openAL-lib
6143  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6144echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6145if test "${ac_cv_lib_openal_main+set}" = set; then
6146  echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148  ac_check_lib_save_LIBS=$LIBS
6149LIBS="-lopenal  $LIBS"
6150cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h.  */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h.  */
6156
6157
6158int
6159main ()
6160{
6161main ();
6162  ;
6163  return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext conftest$ac_exeext
6167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168  (eval $ac_link) 2>conftest.er1
6169  ac_status=$?
6170  grep -v '^ *+' conftest.er1 >conftest.err
6171  rm -f conftest.er1
6172  cat conftest.err >&5
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); } &&
6175         { ac_try='test -z "$ac_c_werror_flag"
6176                         || test ! -s conftest.err'
6177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178  (eval $ac_try) 2>&5
6179  ac_status=$?
6180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); }; } &&
6182         { ac_try='test -s conftest$ac_exeext'
6183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184  (eval $ac_try) 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); }; }; then
6188  ac_cv_lib_openal_main=yes
6189else
6190  echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193ac_cv_lib_openal_main=no
6194fi
6195rm -f conftest.err conftest.$ac_objext \
6196      conftest$ac_exeext conftest.$ac_ext
6197LIBS=$ac_check_lib_save_LIBS
6198fi
6199echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6200echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6201if test $ac_cv_lib_openal_main = yes; then
6202  FOUND_openal=yes
6203fi
6204
6205     if test x$FOUND_openal = xyes ; then
6206       LIBS="$LIBS -lopenal"
6207     else
6208        echo "------------------"
6209        echo "openal library not found."
6210        echo "please install the openal library, which can be found at http://www.openal.org"
6211        echo "------------------"
6212        exit -1
6213     fi
6214
6215# checking for SDL
6216  echo "$as_me:$LINENO: checking for SDL-version" >&5
6217echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6218  SDL_VERSION=`sdl-config --version`
6219  echo $SDL_VERSION
6220
6221   CPPFLAGS="`sdl-config --cflags` $CPPFLAGS"
6222
6223for ac_header in SDL.h
6224do
6225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6226if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227  echo "$as_me:$LINENO: checking for $ac_header" >&5
6228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6229if eval "test \"\${$as_ac_Header+set}\" = set"; then
6230  echo $ECHO_N "(cached) $ECHO_C" >&6
6231fi
6232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6234else
6235  # Is the header compilable?
6236echo "$as_me:$LINENO: checking $ac_header usability" >&5
6237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6238cat >conftest.$ac_ext <<_ACEOF
6239/* confdefs.h.  */
6240_ACEOF
6241cat confdefs.h >>conftest.$ac_ext
6242cat >>conftest.$ac_ext <<_ACEOF
6243/* end confdefs.h.  */
6244$ac_includes_default
6245#include <$ac_header>
6246_ACEOF
6247rm -f conftest.$ac_objext
6248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6249  (eval $ac_compile) 2>conftest.er1
6250  ac_status=$?
6251  grep -v '^ *+' conftest.er1 >conftest.err
6252  rm -f conftest.er1
6253  cat conftest.err >&5
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); } &&
6256         { ac_try='test -z "$ac_c_werror_flag"
6257                         || test ! -s conftest.err'
6258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259  (eval $ac_try) 2>&5
6260  ac_status=$?
6261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); }; } &&
6263         { ac_try='test -s conftest.$ac_objext'
6264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265  (eval $ac_try) 2>&5
6266  ac_status=$?
6267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268  (exit $ac_status); }; }; then
6269  ac_header_compiler=yes
6270else
6271  echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274ac_header_compiler=no
6275fi
6276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6278echo "${ECHO_T}$ac_header_compiler" >&6
6279
6280# Is the header present?
6281echo "$as_me:$LINENO: checking $ac_header presence" >&5
6282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6283cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h.  */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h.  */
6289#include <$ac_header>
6290_ACEOF
6291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6293  ac_status=$?
6294  grep -v '^ *+' conftest.er1 >conftest.err
6295  rm -f conftest.er1
6296  cat conftest.err >&5
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); } >/dev/null; then
6299  if test -s conftest.err; then
6300    ac_cpp_err=$ac_c_preproc_warn_flag
6301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6302  else
6303    ac_cpp_err=
6304  fi
6305else
6306  ac_cpp_err=yes
6307fi
6308if test -z "$ac_cpp_err"; then
6309  ac_header_preproc=yes
6310else
6311  echo "$as_me: failed program was:" >&5
6312sed 's/^/| /' conftest.$ac_ext >&5
6313
6314  ac_header_preproc=no
6315fi
6316rm -f conftest.err conftest.$ac_ext
6317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318echo "${ECHO_T}$ac_header_preproc" >&6
6319
6320# So?  What about this header?
6321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6322  yes:no: )
6323    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6327    ac_header_preproc=yes
6328    ;;
6329  no:yes:* )
6330    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6332    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6333echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6334    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6336    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6337echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6338    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6340    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6342    (
6343      cat <<\_ASBOX
6344## ---------------------------------------------- ##
6345## Report this to orxonox-dev at mail.datacore.ch ##
6346## ---------------------------------------------- ##
6347_ASBOX
6348    ) |
6349      sed "s/^/$as_me: WARNING:     /" >&2
6350    ;;
6351esac
6352echo "$as_me:$LINENO: checking for $ac_header" >&5
6353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355  echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357  eval "$as_ac_Header=\$ac_header_preproc"
6358fi
6359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6361
6362fi
6363if test `eval echo '${'$as_ac_Header'}'` = yes; then
6364  cat >>confdefs.h <<_ACEOF
6365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366_ACEOF
6367
6368else
6369
6370for ac_header in SDL/SDL.h
6371do
6372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374  echo "$as_me:$LINENO: checking for $ac_header" >&5
6375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377  echo $ECHO_N "(cached) $ECHO_C" >&6
6378fi
6379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381else
6382  # Is the header compilable?
6383echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h.  */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h.  */
6391$ac_includes_default
6392#include <$ac_header>
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396  (eval $ac_compile) 2>conftest.er1
6397  ac_status=$?
6398  grep -v '^ *+' conftest.er1 >conftest.err
6399  rm -f conftest.er1
6400  cat conftest.err >&5
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } &&
6403         { ac_try='test -z "$ac_c_werror_flag"
6404                         || test ! -s conftest.err'
6405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406  (eval $ac_try) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }; } &&
6410         { ac_try='test -s conftest.$ac_objext'
6411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412  (eval $ac_try) 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); }; }; then
6416  ac_header_compiler=yes
6417else
6418  echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421ac_header_compiler=no
6422fi
6423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425echo "${ECHO_T}$ac_header_compiler" >&6
6426
6427# Is the header present?
6428echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h.  */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h.  */
6436#include <$ac_header>
6437_ACEOF
6438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440  ac_status=$?
6441  grep -v '^ *+' conftest.er1 >conftest.err
6442  rm -f conftest.er1
6443  cat conftest.err >&5
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); } >/dev/null; then
6446  if test -s conftest.err; then
6447    ac_cpp_err=$ac_c_preproc_warn_flag
6448    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6449  else
6450    ac_cpp_err=
6451  fi
6452else
6453  ac_cpp_err=yes
6454fi
6455if test -z "$ac_cpp_err"; then
6456  ac_header_preproc=yes
6457else
6458  echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461  ac_header_preproc=no
6462fi
6463rm -f conftest.err conftest.$ac_ext
6464echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465echo "${ECHO_T}$ac_header_preproc" >&6
6466
6467# So?  What about this header?
6468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469  yes:no: )
6470    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474    ac_header_preproc=yes
6475    ;;
6476  no:yes:* )
6477    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6480echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6481    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6484echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6489    (
6490      cat <<\_ASBOX
6491## ---------------------------------------------- ##
6492## Report this to orxonox-dev at mail.datacore.ch ##
6493## ---------------------------------------------- ##
6494_ASBOX
6495    ) |
6496      sed "s/^/$as_me: WARNING:     /" >&2
6497    ;;
6498esac
6499echo "$as_me:$LINENO: checking for $ac_header" >&5
6500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502  echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504  eval "$as_ac_Header=\$ac_header_preproc"
6505fi
6506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6508
6509fi
6510if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511  cat >>confdefs.h <<_ACEOF
6512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513_ACEOF
6514
6515else
6516  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
6517echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
6518   { (exit 1); exit 1; }; }
6519fi
6520
6521done
6522
6523fi
6524
6525done
6526
6527
6528   LIBS="`sdl-config --libs` $LIBS"
6529    ;;
6530
6531#-----------#
6532# MAC -OS X #
6533#-----------#
6534 *darwin*)
6535 echo "OS X detected"
6536
6537 osX="yes"
6538
6539 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
6540# checking gl header
6541
6542for ac_header in OpenGL/gl.h
6543do
6544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546  echo "$as_me:$LINENO: checking for $ac_header" >&5
6547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549  echo $ECHO_N "(cached) $ECHO_C" >&6
6550fi
6551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553else
6554  # Is the header compilable?
6555echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6557cat >conftest.$ac_ext <<_ACEOF
6558/* confdefs.h.  */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h.  */
6563$ac_includes_default
6564#include <$ac_header>
6565_ACEOF
6566rm -f conftest.$ac_objext
6567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568  (eval $ac_compile) 2>conftest.er1
6569  ac_status=$?
6570  grep -v '^ *+' conftest.er1 >conftest.err
6571  rm -f conftest.er1
6572  cat conftest.err >&5
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); } &&
6575         { ac_try='test -z "$ac_c_werror_flag"
6576                         || test ! -s conftest.err'
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); }; } &&
6582         { ac_try='test -s conftest.$ac_objext'
6583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584  (eval $ac_try) 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }; }; then
6588  ac_header_compiler=yes
6589else
6590  echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593ac_header_compiler=no
6594fi
6595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597echo "${ECHO_T}$ac_header_compiler" >&6
6598
6599# Is the header present?
6600echo "$as_me:$LINENO: checking $ac_header presence" >&5
6601echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6602cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h.  */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h.  */
6608#include <$ac_header>
6609_ACEOF
6610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612  ac_status=$?
6613  grep -v '^ *+' conftest.er1 >conftest.err
6614  rm -f conftest.er1
6615  cat conftest.err >&5
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); } >/dev/null; then
6618  if test -s conftest.err; then
6619    ac_cpp_err=$ac_c_preproc_warn_flag
6620    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6621  else
6622    ac_cpp_err=
6623  fi
6624else
6625  ac_cpp_err=yes
6626fi
6627if test -z "$ac_cpp_err"; then
6628  ac_header_preproc=yes
6629else
6630  echo "$as_me: failed program was:" >&5
6631sed 's/^/| /' conftest.$ac_ext >&5
6632
6633  ac_header_preproc=no
6634fi
6635rm -f conftest.err conftest.$ac_ext
6636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637echo "${ECHO_T}$ac_header_preproc" >&6
6638
6639# So?  What about this header?
6640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6641  yes:no: )
6642    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6643echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6645echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6646    ac_header_preproc=yes
6647    ;;
6648  no:yes:* )
6649    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6650echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6651    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6652echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6653    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6654echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6655    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6656echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6657    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6658echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6659    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6660echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6661    (
6662      cat <<\_ASBOX
6663## ---------------------------------------------- ##
6664## Report this to orxonox-dev at mail.datacore.ch ##
6665## ---------------------------------------------- ##
6666_ASBOX
6667    ) |
6668      sed "s/^/$as_me: WARNING:     /" >&2
6669    ;;
6670esac
6671echo "$as_me:$LINENO: checking for $ac_header" >&5
6672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674  echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676  eval "$as_ac_Header=\$ac_header_preproc"
6677fi
6678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6680
6681fi
6682if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683  cat >>confdefs.h <<_ACEOF
6684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685_ACEOF
6686
6687else
6688  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6689echo "$as_me: error: cannot find opengl headers" >&2;}
6690   { (exit 1); exit 1; }; }
6691fi
6692
6693done
6694
6695# cheking for GLU-header
6696
6697for ac_header in OpenGL/glu.h
6698do
6699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701  echo "$as_me:$LINENO: checking for $ac_header" >&5
6702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6703if eval "test \"\${$as_ac_Header+set}\" = set"; then
6704  echo $ECHO_N "(cached) $ECHO_C" >&6
6705fi
6706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6708else
6709  # Is the header compilable?
6710echo "$as_me:$LINENO: checking $ac_header usability" >&5
6711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6712cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718$ac_includes_default
6719#include <$ac_header>
6720_ACEOF
6721rm -f conftest.$ac_objext
6722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6723  (eval $ac_compile) 2>conftest.er1
6724  ac_status=$?
6725  grep -v '^ *+' conftest.er1 >conftest.err
6726  rm -f conftest.er1
6727  cat conftest.err >&5
6728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729  (exit $ac_status); } &&
6730         { ac_try='test -z "$ac_c_werror_flag"
6731                         || test ! -s conftest.err'
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); }; } &&
6737         { ac_try='test -s conftest.$ac_objext'
6738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739  (eval $ac_try) 2>&5
6740  ac_status=$?
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); }; }; then
6743  ac_header_compiler=yes
6744else
6745  echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748ac_header_compiler=no
6749fi
6750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752echo "${ECHO_T}$ac_header_compiler" >&6
6753
6754# Is the header present?
6755echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6757cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763#include <$ac_header>
6764_ACEOF
6765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6767  ac_status=$?
6768  grep -v '^ *+' conftest.er1 >conftest.err
6769  rm -f conftest.er1
6770  cat conftest.err >&5
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); } >/dev/null; then
6773  if test -s conftest.err; then
6774    ac_cpp_err=$ac_c_preproc_warn_flag
6775    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6776  else
6777    ac_cpp_err=
6778  fi
6779else
6780  ac_cpp_err=yes
6781fi
6782if test -z "$ac_cpp_err"; then
6783  ac_header_preproc=yes
6784else
6785  echo "$as_me: failed program was:" >&5
6786sed 's/^/| /' conftest.$ac_ext >&5
6787
6788  ac_header_preproc=no
6789fi
6790rm -f conftest.err conftest.$ac_ext
6791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6792echo "${ECHO_T}$ac_header_preproc" >&6
6793
6794# So?  What about this header?
6795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6796  yes:no: )
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6801    ac_header_preproc=yes
6802    ;;
6803  no:yes:* )
6804    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6806    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6807echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6808    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6810    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6811echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6812    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6814    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6816    (
6817      cat <<\_ASBOX
6818## ---------------------------------------------- ##
6819## Report this to orxonox-dev at mail.datacore.ch ##
6820## ---------------------------------------------- ##
6821_ASBOX
6822    ) |
6823      sed "s/^/$as_me: WARNING:     /" >&2
6824    ;;
6825esac
6826echo "$as_me:$LINENO: checking for $ac_header" >&5
6827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6828if eval "test \"\${$as_ac_Header+set}\" = set"; then
6829  echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831  eval "$as_ac_Header=\$ac_header_preproc"
6832fi
6833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835
6836fi
6837if test `eval echo '${'$as_ac_Header'}'` = yes; then
6838  cat >>confdefs.h <<_ACEOF
6839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6840_ACEOF
6841
6842else
6843  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6844echo "$as_me: error: cannot find opengl headers" >&2;}
6845   { (exit 1); exit 1; }; }
6846fi
6847
6848done
6849
6850
6851   LIBS="$LIBS -framework OpenGL"
6852
6853
6854## SDL-check
6855       SDL_CFLAGS=`sdl-config --cflags`
6856       SDL_LIBS=`sdl-config --libs`
6857       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6858       LIBS="$LIBS $SDL_LIBS"
6859
6860
6861# checking for SDL-headers
6862#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6863#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6864
6865## checking for SDL
6866#    SDL_VERSION=1.2.7
6867#    AM_PATH_SDL($SDL_VERSION,
6868#      :,
6869#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6870#      )
6871
6872
6873    ;;
6874
6875  *)
6876    ;;
6877esac
6878
6879
6880
6881###################################
6882## CHECKING FOR HEADERS AND LIBS ##
6883###################################
6884
6885#---------#
6886# SDL_ttf #
6887#---------#
6888# checking for SDL_ttf-headers
6889
6890for ac_header in SDL_ttf.h
6891do
6892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893if eval "test \"\${$as_ac_Header+set}\" = set"; then
6894  echo "$as_me:$LINENO: checking for $ac_header" >&5
6895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6896if eval "test \"\${$as_ac_Header+set}\" = set"; then
6897  echo $ECHO_N "(cached) $ECHO_C" >&6
6898fi
6899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6901else
6902  # Is the header compilable?
6903echo "$as_me:$LINENO: checking $ac_header usability" >&5
6904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6905cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h.  */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h.  */
6911$ac_includes_default
6912#include <$ac_header>
6913_ACEOF
6914rm -f conftest.$ac_objext
6915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916  (eval $ac_compile) 2>conftest.er1
6917  ac_status=$?
6918  grep -v '^ *+' conftest.er1 >conftest.err
6919  rm -f conftest.er1
6920  cat conftest.err >&5
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); } &&
6923         { ac_try='test -z "$ac_c_werror_flag"
6924                         || test ! -s conftest.err'
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); }; } &&
6930         { ac_try='test -s conftest.$ac_objext'
6931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932  (eval $ac_try) 2>&5
6933  ac_status=$?
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }; }; then
6936  ac_header_compiler=yes
6937else
6938  echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941ac_header_compiler=no
6942fi
6943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6945echo "${ECHO_T}$ac_header_compiler" >&6
6946
6947# Is the header present?
6948echo "$as_me:$LINENO: checking $ac_header presence" >&5
6949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6950cat >conftest.$ac_ext <<_ACEOF
6951/* confdefs.h.  */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h.  */
6956#include <$ac_header>
6957_ACEOF
6958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6959  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6960  ac_status=$?
6961  grep -v '^ *+' conftest.er1 >conftest.err
6962  rm -f conftest.er1
6963  cat conftest.err >&5
6964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965  (exit $ac_status); } >/dev/null; then
6966  if test -s conftest.err; then
6967    ac_cpp_err=$ac_c_preproc_warn_flag
6968    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6969  else
6970    ac_cpp_err=
6971  fi
6972else
6973  ac_cpp_err=yes
6974fi
6975if test -z "$ac_cpp_err"; then
6976  ac_header_preproc=yes
6977else
6978  echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981  ac_header_preproc=no
6982fi
6983rm -f conftest.err conftest.$ac_ext
6984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6985echo "${ECHO_T}$ac_header_preproc" >&6
6986
6987# So?  What about this header?
6988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6989  yes:no: )
6990    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6991echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6992    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6993echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6994    ac_header_preproc=yes
6995    ;;
6996  no:yes:* )
6997    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6998echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6999    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7000echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7001    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7002echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7003    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7004echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7005    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7007    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7008echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7009    (
7010      cat <<\_ASBOX
7011## ---------------------------------------------- ##
7012## Report this to orxonox-dev at mail.datacore.ch ##
7013## ---------------------------------------------- ##
7014_ASBOX
7015    ) |
7016      sed "s/^/$as_me: WARNING:     /" >&2
7017    ;;
7018esac
7019echo "$as_me:$LINENO: checking for $ac_header" >&5
7020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7021if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024  eval "$as_ac_Header=\$ac_header_preproc"
7025fi
7026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7028
7029fi
7030if test `eval echo '${'$as_ac_Header'}'` = yes; then
7031  cat >>confdefs.h <<_ACEOF
7032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033_ACEOF
7034
7035else
7036
7037for ac_header in SDL/SDL_ttf.h
7038do
7039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040if eval "test \"\${$as_ac_Header+set}\" = set"; then
7041  echo "$as_me:$LINENO: checking for $ac_header" >&5
7042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044  echo $ECHO_N "(cached) $ECHO_C" >&6
7045fi
7046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7048else
7049  # Is the header compilable?
7050echo "$as_me:$LINENO: checking $ac_header usability" >&5
7051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7052cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058$ac_includes_default
7059#include <$ac_header>
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063  (eval $ac_compile) 2>conftest.er1
7064  ac_status=$?
7065  grep -v '^ *+' conftest.er1 >conftest.err
7066  rm -f conftest.er1
7067  cat conftest.err >&5
7068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069  (exit $ac_status); } &&
7070         { ac_try='test -z "$ac_c_werror_flag"
7071                         || test ! -s conftest.err'
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); }; } &&
7077         { ac_try='test -s conftest.$ac_objext'
7078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079  (eval $ac_try) 2>&5
7080  ac_status=$?
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); }; }; then
7083  ac_header_compiler=yes
7084else
7085  echo "$as_me: failed program was:" >&5
7086sed 's/^/| /' conftest.$ac_ext >&5
7087
7088ac_header_compiler=no
7089fi
7090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092echo "${ECHO_T}$ac_header_compiler" >&6
7093
7094# Is the header present?
7095echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7097cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h.  */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h.  */
7103#include <$ac_header>
7104_ACEOF
7105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107  ac_status=$?
7108  grep -v '^ *+' conftest.er1 >conftest.err
7109  rm -f conftest.er1
7110  cat conftest.err >&5
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); } >/dev/null; then
7113  if test -s conftest.err; then
7114    ac_cpp_err=$ac_c_preproc_warn_flag
7115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7116  else
7117    ac_cpp_err=
7118  fi
7119else
7120  ac_cpp_err=yes
7121fi
7122if test -z "$ac_cpp_err"; then
7123  ac_header_preproc=yes
7124else
7125  echo "$as_me: failed program was:" >&5
7126sed 's/^/| /' conftest.$ac_ext >&5
7127
7128  ac_header_preproc=no
7129fi
7130rm -f conftest.err conftest.$ac_ext
7131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7132echo "${ECHO_T}$ac_header_preproc" >&6
7133
7134# So?  What about this header?
7135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7136  yes:no: )
7137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7141    ac_header_preproc=yes
7142    ;;
7143  no:yes:* )
7144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7156    (
7157      cat <<\_ASBOX
7158## ---------------------------------------------- ##
7159## Report this to orxonox-dev at mail.datacore.ch ##
7160## ---------------------------------------------- ##
7161_ASBOX
7162    ) |
7163      sed "s/^/$as_me: WARNING:     /" >&2
7164    ;;
7165esac
7166echo "$as_me:$LINENO: checking for $ac_header" >&5
7167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7168if eval "test \"\${$as_ac_Header+set}\" = set"; then
7169  echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171  eval "$as_ac_Header=\$ac_header_preproc"
7172fi
7173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7175
7176fi
7177if test `eval echo '${'$as_ac_Header'}'` = yes; then
7178  cat >>confdefs.h <<_ACEOF
7179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7180_ACEOF
7181
7182else
7183  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7184echo "$as_me: error: cannot find SDL_ttf header." >&2;}
7185   { (exit 1); exit 1; }; }
7186fi
7187
7188done
7189
7190fi
7191
7192done
7193
7194# checking for SDL_ttf-lib
7195  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7196echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7197if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200  ac_check_lib_save_LIBS=$LIBS
7201LIBS="-lSDL_ttf  $LIBS"
7202cat >conftest.$ac_ext <<_ACEOF
7203/* confdefs.h.  */
7204_ACEOF
7205cat confdefs.h >>conftest.$ac_ext
7206cat >>conftest.$ac_ext <<_ACEOF
7207/* end confdefs.h.  */
7208
7209/* Override any gcc2 internal prototype to avoid an error.  */
7210#ifdef __cplusplus
7211extern "C"
7212#endif
7213/* We use char because int might match the return type of a gcc2
7214   builtin and then its argument prototype would still apply.  */
7215char TTF_OpenFont ();
7216int
7217main ()
7218{
7219TTF_OpenFont ();
7220  ;
7221  return 0;
7222}
7223_ACEOF
7224rm -f conftest.$ac_objext conftest$ac_exeext
7225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7226  (eval $ac_link) 2>conftest.er1
7227  ac_status=$?
7228  grep -v '^ *+' conftest.er1 >conftest.err
7229  rm -f conftest.er1
7230  cat conftest.err >&5
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); } &&
7233         { ac_try='test -z "$ac_c_werror_flag"
7234                         || test ! -s conftest.err'
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); }; } &&
7240         { ac_try='test -s conftest$ac_exeext'
7241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242  (eval $ac_try) 2>&5
7243  ac_status=$?
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); }; }; then
7246  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
7247else
7248  echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
7251ac_cv_lib_SDL_ttf_TTF_OpenFont=no
7252fi
7253rm -f conftest.err conftest.$ac_objext \
7254      conftest$ac_exeext conftest.$ac_ext
7255LIBS=$ac_check_lib_save_LIBS
7256fi
7257echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
7258echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
7259if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
7260  FOUND_SDL_ttf=yes
7261fi
7262
7263     if test x$FOUND_SDL_ttf = xyes ; then
7264       LIBS="$LIBS -lSDL_ttf"
7265     else
7266        echo "------------------"
7267        echo "SDL_ttf library not found."
7268        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
7269        echo "------------------"
7270        exit -1
7271     fi
7272
7273
7274#-----------#
7275# SDL_Image #
7276#-----------#
7277# checking for SDL_image-headers
7278
7279for ac_header in SDL_image.h
7280do
7281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7282if eval "test \"\${$as_ac_Header+set}\" = set"; then
7283  echo "$as_me:$LINENO: checking for $ac_header" >&5
7284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7285if eval "test \"\${$as_ac_Header+set}\" = set"; then
7286  echo $ECHO_N "(cached) $ECHO_C" >&6
7287fi
7288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7290else
7291  # Is the header compilable?
7292echo "$as_me:$LINENO: checking $ac_header usability" >&5
7293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7294cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h.  */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h.  */
7300$ac_includes_default
7301#include <$ac_header>
7302_ACEOF
7303rm -f conftest.$ac_objext
7304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7305  (eval $ac_compile) 2>conftest.er1
7306  ac_status=$?
7307  grep -v '^ *+' conftest.er1 >conftest.err
7308  rm -f conftest.er1
7309  cat conftest.err >&5
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); } &&
7312         { ac_try='test -z "$ac_c_werror_flag"
7313                         || test ! -s conftest.err'
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); }; } &&
7319         { ac_try='test -s conftest.$ac_objext'
7320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321  (eval $ac_try) 2>&5
7322  ac_status=$?
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); }; }; then
7325  ac_header_compiler=yes
7326else
7327  echo "$as_me: failed program was:" >&5
7328sed 's/^/| /' conftest.$ac_ext >&5
7329
7330ac_header_compiler=no
7331fi
7332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7334echo "${ECHO_T}$ac_header_compiler" >&6
7335
7336# Is the header present?
7337echo "$as_me:$LINENO: checking $ac_header presence" >&5
7338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7339cat >conftest.$ac_ext <<_ACEOF
7340/* confdefs.h.  */
7341_ACEOF
7342cat confdefs.h >>conftest.$ac_ext
7343cat >>conftest.$ac_ext <<_ACEOF
7344/* end confdefs.h.  */
7345#include <$ac_header>
7346_ACEOF
7347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7348  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7349  ac_status=$?
7350  grep -v '^ *+' conftest.er1 >conftest.err
7351  rm -f conftest.er1
7352  cat conftest.err >&5
7353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354  (exit $ac_status); } >/dev/null; then
7355  if test -s conftest.err; then
7356    ac_cpp_err=$ac_c_preproc_warn_flag
7357    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7358  else
7359    ac_cpp_err=
7360  fi
7361else
7362  ac_cpp_err=yes
7363fi
7364if test -z "$ac_cpp_err"; then
7365  ac_header_preproc=yes
7366else
7367  echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370  ac_header_preproc=no
7371fi
7372rm -f conftest.err conftest.$ac_ext
7373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7374echo "${ECHO_T}$ac_header_preproc" >&6
7375
7376# So?  What about this header?
7377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7378  yes:no: )
7379    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7381    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7383    ac_header_preproc=yes
7384    ;;
7385  no:yes:* )
7386    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7388    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7389echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7390    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7392    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7393echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7394    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7396    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7398    (
7399      cat <<\_ASBOX
7400## ---------------------------------------------- ##
7401## Report this to orxonox-dev at mail.datacore.ch ##
7402## ---------------------------------------------- ##
7403_ASBOX
7404    ) |
7405      sed "s/^/$as_me: WARNING:     /" >&2
7406    ;;
7407esac
7408echo "$as_me:$LINENO: checking for $ac_header" >&5
7409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7410if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411  echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413  eval "$as_ac_Header=\$ac_header_preproc"
7414fi
7415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7417
7418fi
7419if test `eval echo '${'$as_ac_Header'}'` = yes; then
7420  cat >>confdefs.h <<_ACEOF
7421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7422_ACEOF
7423
7424else
7425
7426for ac_header in SDL/SDL_image.h
7427do
7428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429if eval "test \"\${$as_ac_Header+set}\" = set"; then
7430  echo "$as_me:$LINENO: checking for $ac_header" >&5
7431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7432if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433  echo $ECHO_N "(cached) $ECHO_C" >&6
7434fi
7435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7437else
7438  # Is the header compilable?
7439echo "$as_me:$LINENO: checking $ac_header usability" >&5
7440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7441cat >conftest.$ac_ext <<_ACEOF
7442/* confdefs.h.  */
7443_ACEOF
7444cat confdefs.h >>conftest.$ac_ext
7445cat >>conftest.$ac_ext <<_ACEOF
7446/* end confdefs.h.  */
7447$ac_includes_default
7448#include <$ac_header>
7449_ACEOF
7450rm -f conftest.$ac_objext
7451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452  (eval $ac_compile) 2>conftest.er1
7453  ac_status=$?
7454  grep -v '^ *+' conftest.er1 >conftest.err
7455  rm -f conftest.er1
7456  cat conftest.err >&5
7457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458  (exit $ac_status); } &&
7459         { ac_try='test -z "$ac_c_werror_flag"
7460                         || test ! -s conftest.err'
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); }; } &&
7466         { ac_try='test -s conftest.$ac_objext'
7467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468  (eval $ac_try) 2>&5
7469  ac_status=$?
7470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471  (exit $ac_status); }; }; then
7472  ac_header_compiler=yes
7473else
7474  echo "$as_me: failed program was:" >&5
7475sed 's/^/| /' conftest.$ac_ext >&5
7476
7477ac_header_compiler=no
7478fi
7479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7481echo "${ECHO_T}$ac_header_compiler" >&6
7482
7483# Is the header present?
7484echo "$as_me:$LINENO: checking $ac_header presence" >&5
7485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7486cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h.  */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h.  */
7492#include <$ac_header>
7493_ACEOF
7494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7496  ac_status=$?
7497  grep -v '^ *+' conftest.er1 >conftest.err
7498  rm -f conftest.er1
7499  cat conftest.err >&5
7500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501  (exit $ac_status); } >/dev/null; then
7502  if test -s conftest.err; then
7503    ac_cpp_err=$ac_c_preproc_warn_flag
7504    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7505  else
7506    ac_cpp_err=
7507  fi
7508else
7509  ac_cpp_err=yes
7510fi
7511if test -z "$ac_cpp_err"; then
7512  ac_header_preproc=yes
7513else
7514  echo "$as_me: failed program was:" >&5
7515sed 's/^/| /' conftest.$ac_ext >&5
7516
7517  ac_header_preproc=no
7518fi
7519rm -f conftest.err conftest.$ac_ext
7520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7521echo "${ECHO_T}$ac_header_preproc" >&6
7522
7523# So?  What about this header?
7524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7525  yes:no: )
7526    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7528    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7530    ac_header_preproc=yes
7531    ;;
7532  no:yes:* )
7533    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7535    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7536echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7537    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7539    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7540echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7541    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7543    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7545    (
7546      cat <<\_ASBOX
7547## ---------------------------------------------- ##
7548## Report this to orxonox-dev at mail.datacore.ch ##
7549## ---------------------------------------------- ##
7550_ASBOX
7551    ) |
7552      sed "s/^/$as_me: WARNING:     /" >&2
7553    ;;
7554esac
7555echo "$as_me:$LINENO: checking for $ac_header" >&5
7556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7557if eval "test \"\${$as_ac_Header+set}\" = set"; then
7558  echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560  eval "$as_ac_Header=\$ac_header_preproc"
7561fi
7562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7564
7565fi
7566if test `eval echo '${'$as_ac_Header'}'` = yes; then
7567  cat >>confdefs.h <<_ACEOF
7568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7569_ACEOF
7570
7571else
7572  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
7573echo "$as_me: error: SDL_image header not found." >&2;}
7574   { (exit 1); exit 1; }; }
7575fi
7576
7577done
7578
7579fi
7580
7581done
7582
7583# checking for SDL_image-lib
7584echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
7585echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
7586if test "${ac_cv_lib_SDL_image_main+set}" = set; then
7587  echo $ECHO_N "(cached) $ECHO_C" >&6
7588else
7589  ac_check_lib_save_LIBS=$LIBS
7590LIBS="-lSDL_image  $LIBS"
7591cat >conftest.$ac_ext <<_ACEOF
7592/* confdefs.h.  */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h.  */
7597
7598
7599int
7600main ()
7601{
7602main ();
7603  ;
7604  return 0;
7605}
7606_ACEOF
7607rm -f conftest.$ac_objext conftest$ac_exeext
7608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609  (eval $ac_link) 2>conftest.er1
7610  ac_status=$?
7611  grep -v '^ *+' conftest.er1 >conftest.err
7612  rm -f conftest.er1
7613  cat conftest.err >&5
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); } &&
7616         { ac_try='test -z "$ac_c_werror_flag"
7617                         || test ! -s conftest.err'
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); }; } &&
7623         { ac_try='test -s conftest$ac_exeext'
7624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625  (eval $ac_try) 2>&5
7626  ac_status=$?
7627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628  (exit $ac_status); }; }; then
7629  ac_cv_lib_SDL_image_main=yes
7630else
7631  echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634ac_cv_lib_SDL_image_main=no
7635fi
7636rm -f conftest.err conftest.$ac_objext \
7637      conftest$ac_exeext conftest.$ac_ext
7638LIBS=$ac_check_lib_save_LIBS
7639fi
7640echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
7641echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
7642if test $ac_cv_lib_SDL_image_main = yes; then
7643  FOUND_SDL_image=yes
7644fi
7645
7646   if test x$FOUND_SDL_image = xyes ; then
7647     LIBS="$LIBS -lSDL_image"
7648   else
7649      echo "------------------"
7650      echo "SDL_image library not found."
7651      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
7652      echo "------------------"
7653      exit -1
7654   fi
7655
7656#-----#
7657# ogg #
7658#-----#
7659## checking for ogg-headers
7660#  AC_CHECK_HEADERS([ogg/ogg.h] ,,
7661#      [AC_MSG_ERROR([cannot find ogg header.])])
7662## checking for ogg-lib
7663#  AC_CHECK_LIB([ogg], [main], [FOUND_ogg=yes])
7664#     if test x$FOUND_ogg = xyes ; then
7665#       LIBS="$LIBS -logg"
7666#     else
7667#        echo "------------------"
7668#        echo "ogg library not found."
7669#        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7670#        echo "------------------"
7671#        exit -1
7672#     fi
7673
7674#--------#
7675# vorbis #
7676#--------#
7677## checking for vorbis-lib
7678#  AC_CHECK_LIB([vorbis], [main], [FOUND_vorbis=yes])
7679#     if test x$FOUND_vorbis = xyes ; then
7680#       LIBS="$LIBS -lvorbis"
7681#     else
7682#        echo "------------------"
7683#        echo "vorbis library not found."
7684#        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7685#        echo "------------------"
7686#        exit -1
7687#     fi
7688
7689#------------#
7690# vorbisfile #
7691#------------#
7692## checking for vorbis-headers
7693#  AC_CHECK_HEADERS([vorbis/vorbisfile.h] ,,
7694#      [AC_MSG_ERROR([cannot find vorbisfile header.])])
7695## checking for vorbisfile-lib
7696#  AC_CHECK_LIB([vorbisfile], [main], [FOUND_vorbisfile=yes])
7697#     if test x$FOUND_vorbisfile = xyes ; then
7698#       LIBS="$LIBS -lvorbisfile"
7699#     else
7700#        echo "------------------"
7701#        echo "vorbisfile library not found."
7702#        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
7703#        echo "------------------"
7704#        exit -1
7705#     fi
7706
7707#-----#
7708# GTK #
7709#-----#
7710if test x$def_gtk = xyes; then
7711        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
7712        echo "$as_me:$LINENO: checking for gtk2.0" >&5
7713echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
7714        if `$PKG_CONFIG --exists gtk+-2.0`; then
7715                echo "yes"
7716                have_gtk2=yes
7717                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7718                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7719
7720cat >>confdefs.h <<_ACEOF
7721#define HAVE_GTK2 1
7722_ACEOF
7723
7724                if test $DEBUG -ge 3; then
7725                 echo "cflags: $GTK2_CFLAGS"
7726                 echo "libs: $GTK2_LIBS"
7727                fi
7728        else
7729                echo "no"
7730        fi
7731
7732fi
7733
7734
7735
7736
7737if test x$have_gtk2 = xyes; then
7738  HAVE_GTK2_TRUE=
7739  HAVE_GTK2_FALSE='#'
7740else
7741  HAVE_GTK2_TRUE='#'
7742  HAVE_GTK2_FALSE=
7743fi
7744
7745
7746#---------#
7747# libcURL #
7748#---------#
7749if test x$def_curl = xyes; then
7750
7751
7752for ac_header in curl/curl.h
7753do
7754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7755if eval "test \"\${$as_ac_Header+set}\" = set"; then
7756  echo "$as_me:$LINENO: checking for $ac_header" >&5
7757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7758if eval "test \"\${$as_ac_Header+set}\" = set"; then
7759  echo $ECHO_N "(cached) $ECHO_C" >&6
7760fi
7761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7763else
7764  # Is the header compilable?
7765echo "$as_me:$LINENO: checking $ac_header usability" >&5
7766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7767cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h.  */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h.  */
7773$ac_includes_default
7774#include <$ac_header>
7775_ACEOF
7776rm -f conftest.$ac_objext
7777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778  (eval $ac_compile) 2>conftest.er1
7779  ac_status=$?
7780  grep -v '^ *+' conftest.er1 >conftest.err
7781  rm -f conftest.er1
7782  cat conftest.err >&5
7783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784  (exit $ac_status); } &&
7785         { ac_try='test -z "$ac_c_werror_flag"
7786                         || test ! -s conftest.err'
7787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788  (eval $ac_try) 2>&5
7789  ac_status=$?
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); }; } &&
7792         { ac_try='test -s conftest.$ac_objext'
7793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794  (eval $ac_try) 2>&5
7795  ac_status=$?
7796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797  (exit $ac_status); }; }; then
7798  ac_header_compiler=yes
7799else
7800  echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803ac_header_compiler=no
7804fi
7805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7807echo "${ECHO_T}$ac_header_compiler" >&6
7808
7809# Is the header present?
7810echo "$as_me:$LINENO: checking $ac_header presence" >&5
7811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7812cat >conftest.$ac_ext <<_ACEOF
7813/* confdefs.h.  */
7814_ACEOF
7815cat confdefs.h >>conftest.$ac_ext
7816cat >>conftest.$ac_ext <<_ACEOF
7817/* end confdefs.h.  */
7818#include <$ac_header>
7819_ACEOF
7820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7822  ac_status=$?
7823  grep -v '^ *+' conftest.er1 >conftest.err
7824  rm -f conftest.er1
7825  cat conftest.err >&5
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); } >/dev/null; then
7828  if test -s conftest.err; then
7829    ac_cpp_err=$ac_c_preproc_warn_flag
7830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7831  else
7832    ac_cpp_err=
7833  fi
7834else
7835  ac_cpp_err=yes
7836fi
7837if test -z "$ac_cpp_err"; then
7838  ac_header_preproc=yes
7839else
7840  echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843  ac_header_preproc=no
7844fi
7845rm -f conftest.err conftest.$ac_ext
7846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7847echo "${ECHO_T}$ac_header_preproc" >&6
7848
7849# So?  What about this header?
7850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7851  yes:no: )
7852    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7854    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7856    ac_header_preproc=yes
7857    ;;
7858  no:yes:* )
7859    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7861    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7862echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7863    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7865    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7866echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7867    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7869    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7871    (
7872      cat <<\_ASBOX
7873## ---------------------------------------------- ##
7874## Report this to orxonox-dev at mail.datacore.ch ##
7875## ---------------------------------------------- ##
7876_ASBOX
7877    ) |
7878      sed "s/^/$as_me: WARNING:     /" >&2
7879    ;;
7880esac
7881echo "$as_me:$LINENO: checking for $ac_header" >&5
7882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7883if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884  echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886  eval "$as_ac_Header=\$ac_header_preproc"
7887fi
7888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7890
7891fi
7892if test `eval echo '${'$as_ac_Header'}'` = yes; then
7893  cat >>confdefs.h <<_ACEOF
7894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7895_ACEOF
7896 curlHeader="yes"
7897else
7898  curlHeader="no"
7899fi
7900
7901done
7902
7903 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
7904echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
7905if test "${ac_cv_lib_curl_main+set}" = set; then
7906  echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908  ac_check_lib_save_LIBS=$LIBS
7909LIBS="-lcurl  $LIBS"
7910cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h.  */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h.  */
7916
7917
7918int
7919main ()
7920{
7921main ();
7922  ;
7923  return 0;
7924}
7925_ACEOF
7926rm -f conftest.$ac_objext conftest$ac_exeext
7927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928  (eval $ac_link) 2>conftest.er1
7929  ac_status=$?
7930  grep -v '^ *+' conftest.er1 >conftest.err
7931  rm -f conftest.er1
7932  cat conftest.err >&5
7933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934  (exit $ac_status); } &&
7935         { ac_try='test -z "$ac_c_werror_flag"
7936                         || test ! -s conftest.err'
7937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938  (eval $ac_try) 2>&5
7939  ac_status=$?
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); }; } &&
7942         { ac_try='test -s conftest$ac_exeext'
7943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944  (eval $ac_try) 2>&5
7945  ac_status=$?
7946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947  (exit $ac_status); }; }; then
7948  ac_cv_lib_curl_main=yes
7949else
7950  echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953ac_cv_lib_curl_main=no
7954fi
7955rm -f conftest.err conftest.$ac_objext \
7956      conftest$ac_exeext conftest.$ac_ext
7957LIBS=$ac_check_lib_save_LIBS
7958fi
7959echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7960echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7961if test $ac_cv_lib_curl_main = yes; then
7962  FOUND_curl=yes
7963fi
7964
7965 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7966  have_curl=yes
7967  CURL_LIBS=`curl-config --libs`
7968  CURLCFLAGS=`curl-config --cflags`
7969
7970cat >>confdefs.h <<_ACEOF
7971#define HAVE_CURL 1
7972_ACEOF
7973
7974 else
7975  have_curl=no
7976 fi
7977
7978fi
7979
7980
7981
7982
7983if test x$have_curl = xyes; then
7984  HAVE_CURL_TRUE=
7985  HAVE_CURL_FALSE='#'
7986else
7987  HAVE_CURL_TRUE='#'
7988  HAVE_CURL_FALSE=
7989fi
7990
7991
7992#--------#
7993# efence #
7994#--------#
7995if test x$def_efence = xyes ; then
7996  echo "$as_me:$LINENO: checking for main in -lefence" >&5
7997echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
7998if test "${ac_cv_lib_efence_main+set}" = set; then
7999  echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001  ac_check_lib_save_LIBS=$LIBS
8002LIBS="-lefence  $LIBS"
8003cat >conftest.$ac_ext <<_ACEOF
8004/* confdefs.h.  */
8005_ACEOF
8006cat confdefs.h >>conftest.$ac_ext
8007cat >>conftest.$ac_ext <<_ACEOF
8008/* end confdefs.h.  */
8009
8010
8011int
8012main ()
8013{
8014main ();
8015  ;
8016  return 0;
8017}
8018_ACEOF
8019rm -f conftest.$ac_objext conftest$ac_exeext
8020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021  (eval $ac_link) 2>conftest.er1
8022  ac_status=$?
8023  grep -v '^ *+' conftest.er1 >conftest.err
8024  rm -f conftest.er1
8025  cat conftest.err >&5
8026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027  (exit $ac_status); } &&
8028         { ac_try='test -z "$ac_c_werror_flag"
8029                         || test ! -s conftest.err'
8030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031  (eval $ac_try) 2>&5
8032  ac_status=$?
8033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034  (exit $ac_status); }; } &&
8035         { ac_try='test -s conftest$ac_exeext'
8036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037  (eval $ac_try) 2>&5
8038  ac_status=$?
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); }; }; then
8041  ac_cv_lib_efence_main=yes
8042else
8043  echo "$as_me: failed program was:" >&5
8044sed 's/^/| /' conftest.$ac_ext >&5
8045
8046ac_cv_lib_efence_main=no
8047fi
8048rm -f conftest.err conftest.$ac_objext \
8049      conftest$ac_exeext conftest.$ac_ext
8050LIBS=$ac_check_lib_save_LIBS
8051fi
8052echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
8053echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
8054if test $ac_cv_lib_efence_main = yes; then
8055  FOUND_efence=yes
8056fi
8057
8058   if test x$FOUND_efence = xyes ; then
8059      LIBS="$LIBS -lefence"
8060   fi
8061
8062fi
8063
8064# FIXME: Replace `main' with a function in `-lm':
8065
8066echo "$as_me:$LINENO: checking for main in -lm" >&5
8067echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8068if test "${ac_cv_lib_m_main+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  ac_check_lib_save_LIBS=$LIBS
8072LIBS="-lm  $LIBS"
8073cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h.  */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h.  */
8079
8080
8081int
8082main ()
8083{
8084main ();
8085  ;
8086  return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext conftest$ac_exeext
8090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091  (eval $ac_link) 2>conftest.er1
8092  ac_status=$?
8093  grep -v '^ *+' conftest.er1 >conftest.err
8094  rm -f conftest.er1
8095  cat conftest.err >&5
8096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097  (exit $ac_status); } &&
8098         { ac_try='test -z "$ac_c_werror_flag"
8099                         || test ! -s conftest.err'
8100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101  (eval $ac_try) 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; } &&
8105         { ac_try='test -s conftest$ac_exeext'
8106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107  (eval $ac_try) 2>&5
8108  ac_status=$?
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); }; }; then
8111  ac_cv_lib_m_main=yes
8112else
8113  echo "$as_me: failed program was:" >&5
8114sed 's/^/| /' conftest.$ac_ext >&5
8115
8116ac_cv_lib_m_main=no
8117fi
8118rm -f conftest.err conftest.$ac_objext \
8119      conftest$ac_exeext conftest.$ac_ext
8120LIBS=$ac_check_lib_save_LIBS
8121fi
8122echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8123echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8124if test $ac_cv_lib_m_main = yes; then
8125  cat >>confdefs.h <<_ACEOF
8126#define HAVE_LIBM 1
8127_ACEOF
8128
8129  LIBS="-lm $LIBS"
8130
8131fi
8132
8133
8134
8135# Checks for header files.
8136echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8137echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8138if test "${ac_cv_header_stdc+set}" = set; then
8139  echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141  cat >conftest.$ac_ext <<_ACEOF
8142/* confdefs.h.  */
8143_ACEOF
8144cat confdefs.h >>conftest.$ac_ext
8145cat >>conftest.$ac_ext <<_ACEOF
8146/* end confdefs.h.  */
8147#include <stdlib.h>
8148#include <stdarg.h>
8149#include <string.h>
8150#include <float.h>
8151
8152int
8153main ()
8154{
8155
8156  ;
8157  return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext
8161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162  (eval $ac_compile) 2>conftest.er1
8163  ac_status=$?
8164  grep -v '^ *+' conftest.er1 >conftest.err
8165  rm -f conftest.er1
8166  cat conftest.err >&5
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); } &&
8169         { ac_try='test -z "$ac_c_werror_flag"
8170                         || test ! -s conftest.err'
8171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172  (eval $ac_try) 2>&5
8173  ac_status=$?
8174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175  (exit $ac_status); }; } &&
8176         { ac_try='test -s conftest.$ac_objext'
8177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178  (eval $ac_try) 2>&5
8179  ac_status=$?
8180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181  (exit $ac_status); }; }; then
8182  ac_cv_header_stdc=yes
8183else
8184  echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187ac_cv_header_stdc=no
8188fi
8189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8190
8191if test $ac_cv_header_stdc = yes; then
8192  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8193  cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h.  */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h.  */
8199#include <string.h>
8200
8201_ACEOF
8202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203  $EGREP "memchr" >/dev/null 2>&1; then
8204  :
8205else
8206  ac_cv_header_stdc=no
8207fi
8208rm -f conftest*
8209
8210fi
8211
8212if test $ac_cv_header_stdc = yes; then
8213  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8214  cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h.  */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h.  */
8220#include <stdlib.h>
8221
8222_ACEOF
8223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224  $EGREP "free" >/dev/null 2>&1; then
8225  :
8226else
8227  ac_cv_header_stdc=no
8228fi
8229rm -f conftest*
8230
8231fi
8232
8233if test $ac_cv_header_stdc = yes; then
8234  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8235  if test "$cross_compiling" = yes; then
8236  :
8237else
8238  cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h.  */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h.  */
8244#include <ctype.h>
8245#if ((' ' & 0x0FF) == 0x020)
8246# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8247# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8248#else
8249# define ISLOWER(c) \
8250                   (('a' <= (c) && (c) <= 'i') \
8251                     || ('j' <= (c) && (c) <= 'r') \
8252                     || ('s' <= (c) && (c) <= 'z'))
8253# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8254#endif
8255
8256#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8257int
8258main ()
8259{
8260  int i;
8261  for (i = 0; i < 256; i++)
8262    if (XOR (islower (i), ISLOWER (i))
8263        || toupper (i) != TOUPPER (i))
8264      exit(2);
8265  exit (0);
8266}
8267_ACEOF
8268rm -f conftest$ac_exeext
8269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270  (eval $ac_link) 2>&5
8271  ac_status=$?
8272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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  :
8280else
8281  echo "$as_me: program exited with status $ac_status" >&5
8282echo "$as_me: failed program was:" >&5
8283sed 's/^/| /' conftest.$ac_ext >&5
8284
8285( exit $ac_status )
8286ac_cv_header_stdc=no
8287fi
8288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8289fi
8290fi
8291fi
8292echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8293echo "${ECHO_T}$ac_cv_header_stdc" >&6
8294if test $ac_cv_header_stdc = yes; then
8295
8296cat >>confdefs.h <<\_ACEOF
8297#define STDC_HEADERS 1
8298_ACEOF
8299
8300fi
8301
8302
8303
8304for ac_header in stdlib.h string.h
8305do
8306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307if eval "test \"\${$as_ac_Header+set}\" = set"; then
8308  echo "$as_me:$LINENO: checking for $ac_header" >&5
8309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8310if eval "test \"\${$as_ac_Header+set}\" = set"; then
8311  echo $ECHO_N "(cached) $ECHO_C" >&6
8312fi
8313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8315else
8316  # Is the header compilable?
8317echo "$as_me:$LINENO: checking $ac_header usability" >&5
8318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8319cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h.  */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h.  */
8325$ac_includes_default
8326#include <$ac_header>
8327_ACEOF
8328rm -f conftest.$ac_objext
8329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330  (eval $ac_compile) 2>conftest.er1
8331  ac_status=$?
8332  grep -v '^ *+' conftest.er1 >conftest.err
8333  rm -f conftest.er1
8334  cat conftest.err >&5
8335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336  (exit $ac_status); } &&
8337         { ac_try='test -z "$ac_c_werror_flag"
8338                         || test ! -s conftest.err'
8339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340  (eval $ac_try) 2>&5
8341  ac_status=$?
8342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343  (exit $ac_status); }; } &&
8344         { ac_try='test -s conftest.$ac_objext'
8345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346  (eval $ac_try) 2>&5
8347  ac_status=$?
8348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349  (exit $ac_status); }; }; then
8350  ac_header_compiler=yes
8351else
8352  echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355ac_header_compiler=no
8356fi
8357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8359echo "${ECHO_T}$ac_header_compiler" >&6
8360
8361# Is the header present?
8362echo "$as_me:$LINENO: checking $ac_header presence" >&5
8363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8364cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h.  */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h.  */
8370#include <$ac_header>
8371_ACEOF
8372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8373  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8374  ac_status=$?
8375  grep -v '^ *+' conftest.er1 >conftest.err
8376  rm -f conftest.er1
8377  cat conftest.err >&5
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); } >/dev/null; then
8380  if test -s conftest.err; then
8381    ac_cpp_err=$ac_c_preproc_warn_flag
8382    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8383  else
8384    ac_cpp_err=
8385  fi
8386else
8387  ac_cpp_err=yes
8388fi
8389if test -z "$ac_cpp_err"; then
8390  ac_header_preproc=yes
8391else
8392  echo "$as_me: failed program was:" >&5
8393sed 's/^/| /' conftest.$ac_ext >&5
8394
8395  ac_header_preproc=no
8396fi
8397rm -f conftest.err conftest.$ac_ext
8398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399echo "${ECHO_T}$ac_header_preproc" >&6
8400
8401# So?  What about this header?
8402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8403  yes:no: )
8404    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8407echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8408    ac_header_preproc=yes
8409    ;;
8410  no:yes:* )
8411    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8414echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8415    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8416echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8417    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8418echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8419    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8421    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8422echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8423    (
8424      cat <<\_ASBOX
8425## ---------------------------------------------- ##
8426## Report this to orxonox-dev at mail.datacore.ch ##
8427## ---------------------------------------------- ##
8428_ASBOX
8429    ) |
8430      sed "s/^/$as_me: WARNING:     /" >&2
8431    ;;
8432esac
8433echo "$as_me:$LINENO: checking for $ac_header" >&5
8434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8435if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436  echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438  eval "$as_ac_Header=\$ac_header_preproc"
8439fi
8440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8442
8443fi
8444if test `eval echo '${'$as_ac_Header'}'` = yes; then
8445  cat >>confdefs.h <<_ACEOF
8446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8447_ACEOF
8448
8449fi
8450
8451done
8452
8453
8454# Checks for typedefs, structures, and compiler characteristics.
8455echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8456echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
8457if test "${ac_cv_header_stdbool_h+set}" = set; then
8458  echo $ECHO_N "(cached) $ECHO_C" >&6
8459else
8460  cat >conftest.$ac_ext <<_ACEOF
8461/* confdefs.h.  */
8462_ACEOF
8463cat confdefs.h >>conftest.$ac_ext
8464cat >>conftest.$ac_ext <<_ACEOF
8465/* end confdefs.h.  */
8466
8467#include <stdbool.h>
8468#ifndef bool
8469# error bool is not defined
8470#endif
8471#ifndef false
8472# error false is not defined
8473#endif
8474#if false
8475# error false is not 0
8476#endif
8477#ifndef true
8478# error true is not defined
8479#endif
8480#if true != 1
8481# error true is not 1
8482#endif
8483#ifndef __bool_true_false_are_defined
8484# error __bool_true_false_are_defined is not defined
8485#endif
8486
8487        struct s { _Bool s: 1; _Bool t; } s;
8488
8489        char a[true == 1 ? 1 : -1];
8490        char b[false == 0 ? 1 : -1];
8491        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8492        char d[(bool) -0.5 == true ? 1 : -1];
8493        bool e = &s;
8494        char f[(_Bool) -0.0 == false ? 1 : -1];
8495        char g[true];
8496        char h[sizeof (_Bool)];
8497        char i[sizeof s.t];
8498
8499int
8500main ()
8501{
8502 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
8503  ;
8504  return 0;
8505}
8506_ACEOF
8507rm -f conftest.$ac_objext
8508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8509  (eval $ac_compile) 2>conftest.er1
8510  ac_status=$?
8511  grep -v '^ *+' conftest.er1 >conftest.err
8512  rm -f conftest.er1
8513  cat conftest.err >&5
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); } &&
8516         { ac_try='test -z "$ac_c_werror_flag"
8517                         || test ! -s conftest.err'
8518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519  (eval $ac_try) 2>&5
8520  ac_status=$?
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); }; } &&
8523         { ac_try='test -s conftest.$ac_objext'
8524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525  (eval $ac_try) 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); }; }; then
8529  ac_cv_header_stdbool_h=yes
8530else
8531  echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534ac_cv_header_stdbool_h=no
8535fi
8536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8537fi
8538echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8539echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8540echo "$as_me:$LINENO: checking for _Bool" >&5
8541echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8542if test "${ac_cv_type__Bool+set}" = set; then
8543  echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545  cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h.  */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h.  */
8551$ac_includes_default
8552int
8553main ()
8554{
8555if ((_Bool *) 0)
8556  return 0;
8557if (sizeof (_Bool))
8558  return 0;
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565  (eval $ac_compile) 2>conftest.er1
8566  ac_status=$?
8567  grep -v '^ *+' conftest.er1 >conftest.err
8568  rm -f conftest.er1
8569  cat conftest.err >&5
8570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571  (exit $ac_status); } &&
8572         { ac_try='test -z "$ac_c_werror_flag"
8573                         || test ! -s conftest.err'
8574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575  (eval $ac_try) 2>&5
8576  ac_status=$?
8577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578  (exit $ac_status); }; } &&
8579         { ac_try='test -s conftest.$ac_objext'
8580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581  (eval $ac_try) 2>&5
8582  ac_status=$?
8583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); }; }; then
8585  ac_cv_type__Bool=yes
8586else
8587  echo "$as_me: failed program was:" >&5
8588sed 's/^/| /' conftest.$ac_ext >&5
8589
8590ac_cv_type__Bool=no
8591fi
8592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8595echo "${ECHO_T}$ac_cv_type__Bool" >&6
8596if test $ac_cv_type__Bool = yes; then
8597
8598cat >>confdefs.h <<_ACEOF
8599#define HAVE__BOOL 1
8600_ACEOF
8601
8602
8603fi
8604
8605if test $ac_cv_header_stdbool_h = yes; then
8606
8607cat >>confdefs.h <<\_ACEOF
8608#define HAVE_STDBOOL_H 1
8609_ACEOF
8610
8611fi
8612
8613
8614# Checks for library functions.
8615
8616for ac_header in stdlib.h
8617do
8618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619if eval "test \"\${$as_ac_Header+set}\" = set"; then
8620  echo "$as_me:$LINENO: checking for $ac_header" >&5
8621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623  echo $ECHO_N "(cached) $ECHO_C" >&6
8624fi
8625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8627else
8628  # Is the header compilable?
8629echo "$as_me:$LINENO: checking $ac_header usability" >&5
8630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8631cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h.  */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h.  */
8637$ac_includes_default
8638#include <$ac_header>
8639_ACEOF
8640rm -f conftest.$ac_objext
8641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642  (eval $ac_compile) 2>conftest.er1
8643  ac_status=$?
8644  grep -v '^ *+' conftest.er1 >conftest.err
8645  rm -f conftest.er1
8646  cat conftest.err >&5
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); } &&
8649         { ac_try='test -z "$ac_c_werror_flag"
8650                         || test ! -s conftest.err'
8651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652  (eval $ac_try) 2>&5
8653  ac_status=$?
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); }; } &&
8656         { ac_try='test -s conftest.$ac_objext'
8657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658  (eval $ac_try) 2>&5
8659  ac_status=$?
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); }; }; then
8662  ac_header_compiler=yes
8663else
8664  echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667ac_header_compiler=no
8668fi
8669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8671echo "${ECHO_T}$ac_header_compiler" >&6
8672
8673# Is the header present?
8674echo "$as_me:$LINENO: checking $ac_header presence" >&5
8675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8676cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h.  */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h.  */
8682#include <$ac_header>
8683_ACEOF
8684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8685  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8686  ac_status=$?
8687  grep -v '^ *+' conftest.er1 >conftest.err
8688  rm -f conftest.er1
8689  cat conftest.err >&5
8690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); } >/dev/null; then
8692  if test -s conftest.err; then
8693    ac_cpp_err=$ac_c_preproc_warn_flag
8694    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8695  else
8696    ac_cpp_err=
8697  fi
8698else
8699  ac_cpp_err=yes
8700fi
8701if test -z "$ac_cpp_err"; then
8702  ac_header_preproc=yes
8703else
8704  echo "$as_me: failed program was:" >&5
8705sed 's/^/| /' conftest.$ac_ext >&5
8706
8707  ac_header_preproc=no
8708fi
8709rm -f conftest.err conftest.$ac_ext
8710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8711echo "${ECHO_T}$ac_header_preproc" >&6
8712
8713# So?  What about this header?
8714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8715  yes:no: )
8716    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8718    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8720    ac_header_preproc=yes
8721    ;;
8722  no:yes:* )
8723    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8725    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8726echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8727    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8729    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8730echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8733    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8735    (
8736      cat <<\_ASBOX
8737## ---------------------------------------------- ##
8738## Report this to orxonox-dev at mail.datacore.ch ##
8739## ---------------------------------------------- ##
8740_ASBOX
8741    ) |
8742      sed "s/^/$as_me: WARNING:     /" >&2
8743    ;;
8744esac
8745echo "$as_me:$LINENO: checking for $ac_header" >&5
8746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748  echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750  eval "$as_ac_Header=\$ac_header_preproc"
8751fi
8752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8754
8755fi
8756if test `eval echo '${'$as_ac_Header'}'` = yes; then
8757  cat >>confdefs.h <<_ACEOF
8758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8759_ACEOF
8760
8761fi
8762
8763done
8764
8765echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8766echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8767if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8768  echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770  if test "$cross_compiling" = yes; then
8771  ac_cv_func_malloc_0_nonnull=no
8772else
8773  cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h.  */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h.  */
8779#if STDC_HEADERS || HAVE_STDLIB_H
8780# include <stdlib.h>
8781#else
8782char *malloc ();
8783#endif
8784
8785int
8786main ()
8787{
8788exit (malloc (0) ? 0 : 1);
8789  ;
8790  return 0;
8791}
8792_ACEOF
8793rm -f conftest$ac_exeext
8794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795  (eval $ac_link) 2>&5
8796  ac_status=$?
8797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800  (eval $ac_try) 2>&5
8801  ac_status=$?
8802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803  (exit $ac_status); }; }; then
8804  ac_cv_func_malloc_0_nonnull=yes
8805else
8806  echo "$as_me: program exited with status $ac_status" >&5
8807echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810( exit $ac_status )
8811ac_cv_func_malloc_0_nonnull=no
8812fi
8813rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8814fi
8815fi
8816echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8817echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8818if test $ac_cv_func_malloc_0_nonnull = yes; then
8819
8820cat >>confdefs.h <<\_ACEOF
8821#define HAVE_MALLOC 1
8822_ACEOF
8823
8824else
8825  cat >>confdefs.h <<\_ACEOF
8826#define HAVE_MALLOC 0
8827_ACEOF
8828
8829   case $LIBOBJS in
8830    "malloc.$ac_objext"   | \
8831  *" malloc.$ac_objext"   | \
8832    "malloc.$ac_objext "* | \
8833  *" malloc.$ac_objext "* ) ;;
8834  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8835esac
8836
8837
8838cat >>confdefs.h <<\_ACEOF
8839#define malloc rpl_malloc
8840_ACEOF
8841
8842fi
8843
8844
8845
8846
8847
8848for ac_func in bzero sqrt
8849do
8850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8851echo "$as_me:$LINENO: checking for $ac_func" >&5
8852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8853if eval "test \"\${$as_ac_var+set}\" = set"; then
8854  echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856  cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h.  */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h.  */
8862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8863   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8864#define $ac_func innocuous_$ac_func
8865
8866/* System header to define __stub macros and hopefully few prototypes,
8867    which can conflict with char $ac_func (); below.
8868    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8869    <limits.h> exists even on freestanding compilers.  */
8870
8871#ifdef __STDC__
8872# include <limits.h>
8873#else
8874# include <assert.h>
8875#endif
8876
8877#undef $ac_func
8878
8879/* Override any gcc2 internal prototype to avoid an error.  */
8880#ifdef __cplusplus
8881extern "C"
8882{
8883#endif
8884/* We use char because int might match the return type of a gcc2
8885   builtin and then its argument prototype would still apply.  */
8886char $ac_func ();
8887/* The GNU C library defines this for functions which it implements
8888    to always fail with ENOSYS.  Some functions are actually named
8889    something starting with __ and the normal name is an alias.  */
8890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8891choke me
8892#else
8893char (*f) () = $ac_func;
8894#endif
8895#ifdef __cplusplus
8896}
8897#endif
8898
8899int
8900main ()
8901{
8902return f != $ac_func;
8903  ;
8904  return 0;
8905}
8906_ACEOF
8907rm -f conftest.$ac_objext conftest$ac_exeext
8908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909  (eval $ac_link) 2>conftest.er1
8910  ac_status=$?
8911  grep -v '^ *+' conftest.er1 >conftest.err
8912  rm -f conftest.er1
8913  cat conftest.err >&5
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); } &&
8916         { ac_try='test -z "$ac_c_werror_flag"
8917                         || test ! -s conftest.err'
8918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919  (eval $ac_try) 2>&5
8920  ac_status=$?
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); }; } &&
8923         { ac_try='test -s conftest$ac_exeext'
8924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925  (eval $ac_try) 2>&5
8926  ac_status=$?
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); }; }; then
8929  eval "$as_ac_var=yes"
8930else
8931  echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934eval "$as_ac_var=no"
8935fi
8936rm -f conftest.err conftest.$ac_objext \
8937      conftest$ac_exeext conftest.$ac_ext
8938fi
8939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8940echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8941if test `eval echo '${'$as_ac_var'}'` = yes; then
8942  cat >>confdefs.h <<_ACEOF
8943#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8944_ACEOF
8945
8946fi
8947done
8948
8949
8950######################
8951## OUTPUT CONFIGURE ##
8952######################
8953                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/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"
8954
8955
8956cat >confcache <<\_ACEOF
8957# This file is a shell script that caches the results of configure
8958# tests run on this system so they can be shared between configure
8959# scripts and configure runs, see configure's option --config-cache.
8960# It is not useful on other systems.  If it contains results you don't
8961# want to keep, you may remove or edit it.
8962#
8963# config.status only pays attention to the cache file if you give it
8964# the --recheck option to rerun configure.
8965#
8966# `ac_cv_env_foo' variables (set or unset) will be overridden when
8967# loading this file, other *unset* `ac_cv_foo' will be assigned the
8968# following values.
8969
8970_ACEOF
8971
8972# The following way of writing the cache mishandles newlines in values,
8973# but we know of no workaround that is simple, portable, and efficient.
8974# So, don't put newlines in cache variables' values.
8975# Ultrix sh set writes to stderr and can't be redirected directly,
8976# and sets the high bit in the cache file unless we assign to the vars.
8977{
8978  (set) 2>&1 |
8979    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8980    *ac_space=\ *)
8981      # `set' does not quote correctly, so add quotes (double-quote
8982      # substitution turns \\\\ into \\, and sed turns \\ into \).
8983      sed -n \
8984        "s/'/'\\\\''/g;
8985          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8986      ;;
8987    *)
8988      # `set' quotes correctly as required by POSIX, so do not add quotes.
8989      sed -n \
8990        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8991      ;;
8992    esac;
8993} |
8994  sed '
8995     t clear
8996     : clear
8997     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8998     t end
8999     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9000     : end' >>confcache
9001if diff $cache_file confcache >/dev/null 2>&1; then :; else
9002  if test -w $cache_file; then
9003    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9004    cat confcache >$cache_file
9005  else
9006    echo "not updating unwritable cache $cache_file"
9007  fi
9008fi
9009rm -f confcache
9010
9011test "x$prefix" = xNONE && prefix=$ac_default_prefix
9012# Let make expand exec_prefix.
9013test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9014
9015# VPATH may cause trouble with some makes, so we remove $(srcdir),
9016# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9017# trailing colons and then remove the whole line if VPATH becomes empty
9018# (actually we leave an empty line to preserve line numbers).
9019if test "x$srcdir" = x.; then
9020  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9021s/:*\$(srcdir):*/:/;
9022s/:*\${srcdir}:*/:/;
9023s/:*@srcdir@:*/:/;
9024s/^\([^=]*=[     ]*\):*/\1/;
9025s/:*$//;
9026s/^[^=]*=[       ]*$//;
9027}'
9028fi
9029
9030DEFS=-DHAVE_CONFIG_H
9031
9032ac_libobjs=
9033ac_ltlibobjs=
9034for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9035  # 1. Remove the extension, and $U if already installed.
9036  ac_i=`echo "$ac_i" |
9037         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9038  # 2. Add them.
9039  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9040  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9041done
9042LIBOBJS=$ac_libobjs
9043
9044LTLIBOBJS=$ac_ltlibobjs
9045
9046
9047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9048  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9049Usually this means the macro was only invoked conditionally." >&5
9050echo "$as_me: error: conditional \"AMDEP\" was never defined.
9051Usually this means the macro was only invoked conditionally." >&2;}
9052   { (exit 1); exit 1; }; }
9053fi
9054if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9055  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9056Usually this means the macro was only invoked conditionally." >&5
9057echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9058Usually this means the macro was only invoked conditionally." >&2;}
9059   { (exit 1); exit 1; }; }
9060fi
9061if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9062  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9063Usually this means the macro was only invoked conditionally." >&5
9064echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9065Usually this means the macro was only invoked conditionally." >&2;}
9066   { (exit 1); exit 1; }; }
9067fi
9068if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
9069  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
9070Usually this means the macro was only invoked conditionally." >&5
9071echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
9072Usually this means the macro was only invoked conditionally." >&2;}
9073   { (exit 1); exit 1; }; }
9074fi
9075if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
9076  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
9077Usually this means the macro was only invoked conditionally." >&5
9078echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
9079Usually this means the macro was only invoked conditionally." >&2;}
9080   { (exit 1); exit 1; }; }
9081fi
9082if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
9083  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
9084Usually this means the macro was only invoked conditionally." >&5
9085echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
9086Usually this means the macro was only invoked conditionally." >&2;}
9087   { (exit 1); exit 1; }; }
9088fi
9089if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
9090  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
9091Usually this means the macro was only invoked conditionally." >&5
9092echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
9093Usually this means the macro was only invoked conditionally." >&2;}
9094   { (exit 1); exit 1; }; }
9095fi
9096if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
9097  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
9098Usually this means the macro was only invoked conditionally." >&5
9099echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
9100Usually this means the macro was only invoked conditionally." >&2;}
9101   { (exit 1); exit 1; }; }
9102fi
9103
9104: ${CONFIG_STATUS=./config.status}
9105ac_clean_files_save=$ac_clean_files
9106ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9107{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9108echo "$as_me: creating $CONFIG_STATUS" >&6;}
9109cat >$CONFIG_STATUS <<_ACEOF
9110#! $SHELL
9111# Generated by $as_me.
9112# Run this file to recreate the current configuration.
9113# Compiler output produced by configure, useful for debugging
9114# configure, is in config.log if it exists.
9115
9116debug=false
9117ac_cs_recheck=false
9118ac_cs_silent=false
9119SHELL=\${CONFIG_SHELL-$SHELL}
9120_ACEOF
9121
9122cat >>$CONFIG_STATUS <<\_ACEOF
9123## --------------------- ##
9124## M4sh Initialization.  ##
9125## --------------------- ##
9126
9127# Be Bourne compatible
9128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9129  emulate sh
9130  NULLCMD=:
9131  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9132  # is contrary to our usage.  Disable this feature.
9133  alias -g '${1+"$@"}'='"$@"'
9134elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9135  set -o posix
9136fi
9137DUALCASE=1; export DUALCASE # for MKS sh
9138
9139# Support unset when possible.
9140if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9141  as_unset=unset
9142else
9143  as_unset=false
9144fi
9145
9146
9147# Work around bugs in pre-3.0 UWIN ksh.
9148$as_unset ENV MAIL MAILPATH
9149PS1='$ '
9150PS2='> '
9151PS4='+ '
9152
9153# NLS nuisances.
9154for as_var in \
9155  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9156  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9157  LC_TELEPHONE LC_TIME
9158do
9159  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9160    eval $as_var=C; export $as_var
9161  else
9162    $as_unset $as_var
9163  fi
9164done
9165
9166# Required to use basename.
9167if expr a : '\(a\)' >/dev/null 2>&1; then
9168  as_expr=expr
9169else
9170  as_expr=false
9171fi
9172
9173if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9174  as_basename=basename
9175else
9176  as_basename=false
9177fi
9178
9179
9180# Name of the executable.
9181as_me=`$as_basename "$0" ||
9182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9183         X"$0" : 'X\(//\)$' \| \
9184         X"$0" : 'X\(/\)$' \| \
9185         .     : '\(.\)' 2>/dev/null ||
9186echo X/"$0" |
9187    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9188          /^X\/\(\/\/\)$/{ s//\1/; q; }
9189          /^X\/\(\/\).*/{ s//\1/; q; }
9190          s/.*/./; q'`
9191
9192
9193# PATH needs CR, and LINENO needs CR and PATH.
9194# Avoid depending upon Character Ranges.
9195as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9196as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9197as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9198as_cr_digits='0123456789'
9199as_cr_alnum=$as_cr_Letters$as_cr_digits
9200
9201# The user is always right.
9202if test "${PATH_SEPARATOR+set}" != set; then
9203  echo "#! /bin/sh" >conf$$.sh
9204  echo  "exit 0"   >>conf$$.sh
9205  chmod +x conf$$.sh
9206  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9207    PATH_SEPARATOR=';'
9208  else
9209    PATH_SEPARATOR=:
9210  fi
9211  rm -f conf$$.sh
9212fi
9213
9214
9215  as_lineno_1=$LINENO
9216  as_lineno_2=$LINENO
9217  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9218  test "x$as_lineno_1" != "x$as_lineno_2" &&
9219  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9220  # Find who we are.  Look in the path if we contain no path at all
9221  # relative or not.
9222  case $0 in
9223    *[\\/]* ) as_myself=$0 ;;
9224    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227  IFS=$as_save_IFS
9228  test -z "$as_dir" && as_dir=.
9229  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9230done
9231
9232       ;;
9233  esac
9234  # We did not find ourselves, most probably we were run as `sh COMMAND'
9235  # in which case we are not to be found in the path.
9236  if test "x$as_myself" = x; then
9237    as_myself=$0
9238  fi
9239  if test ! -f "$as_myself"; then
9240    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9241echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9242   { (exit 1); exit 1; }; }
9243  fi
9244  case $CONFIG_SHELL in
9245  '')
9246    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9248do
9249  IFS=$as_save_IFS
9250  test -z "$as_dir" && as_dir=.
9251  for as_base in sh bash ksh sh5; do
9252         case $as_dir in
9253         /*)
9254           if ("$as_dir/$as_base" -c '
9255  as_lineno_1=$LINENO
9256  as_lineno_2=$LINENO
9257  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9258  test "x$as_lineno_1" != "x$as_lineno_2" &&
9259  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9260             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9261             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9262             CONFIG_SHELL=$as_dir/$as_base
9263             export CONFIG_SHELL
9264             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9265           fi;;
9266         esac
9267       done
9268done
9269;;
9270  esac
9271
9272  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9273  # uniformly replaced by the line number.  The first 'sed' inserts a
9274  # line-number line before each line; the second 'sed' does the real
9275  # work.  The second script uses 'N' to pair each line-number line
9276  # with the numbered line, and appends trailing '-' during
9277  # substitution so that $LINENO is not a special case at line end.
9278  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9279  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9280  sed '=' <$as_myself |
9281    sed '
9282      N
9283      s,$,-,
9284      : loop
9285      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9286      t loop
9287      s,-$,,
9288      s,^['$as_cr_digits']*\n,,
9289    ' >$as_me.lineno &&
9290  chmod +x $as_me.lineno ||
9291    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9292echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9293   { (exit 1); exit 1; }; }
9294
9295  # Don't try to exec as it changes $[0], causing all sort of problems
9296  # (the dirname of $[0] is not the place where we might find the
9297  # original and so on.  Autoconf is especially sensible to this).
9298  . ./$as_me.lineno
9299  # Exit status is that of the last command.
9300  exit
9301}
9302
9303
9304case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9305  *c*,-n*) ECHO_N= ECHO_C='
9306' ECHO_T='      ' ;;
9307  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9308  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9309esac
9310
9311if expr a : '\(a\)' >/dev/null 2>&1; then
9312  as_expr=expr
9313else
9314  as_expr=false
9315fi
9316
9317rm -f conf$$ conf$$.exe conf$$.file
9318echo >conf$$.file
9319if ln -s conf$$.file conf$$ 2>/dev/null; then
9320  # We could just check for DJGPP; but this test a) works b) is more generic
9321  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9322  if test -f conf$$.exe; then
9323    # Don't use ln at all; we don't have any links
9324    as_ln_s='cp -p'
9325  else
9326    as_ln_s='ln -s'
9327  fi
9328elif ln conf$$.file conf$$ 2>/dev/null; then
9329  as_ln_s=ln
9330else
9331  as_ln_s='cp -p'
9332fi
9333rm -f conf$$ conf$$.exe conf$$.file
9334
9335if mkdir -p . 2>/dev/null; then
9336  as_mkdir_p=:
9337else
9338  test -d ./-p && rmdir ./-p
9339  as_mkdir_p=false
9340fi
9341
9342as_executable_p="test -f"
9343
9344# Sed expression to map a string onto a valid CPP name.
9345as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9346
9347# Sed expression to map a string onto a valid variable name.
9348as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9349
9350
9351# IFS
9352# We need space, tab and new line, in precisely that order.
9353as_nl='
9354'
9355IFS="   $as_nl"
9356
9357# CDPATH.
9358$as_unset CDPATH
9359
9360exec 6>&1
9361
9362# Open the log real soon, to keep \$[0] and so on meaningful, and to
9363# report actual input values of CONFIG_FILES etc. instead of their
9364# values after options handling.  Logging --version etc. is OK.
9365exec 5>>config.log
9366{
9367  echo
9368  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9369## Running $as_me. ##
9370_ASBOX
9371} >&5
9372cat >&5 <<_CSEOF
9373
9374This file was extended by orxonox $as_me 0.3.0_alpha, which was
9375generated by GNU Autoconf 2.59.  Invocation command line was
9376
9377  CONFIG_FILES    = $CONFIG_FILES
9378  CONFIG_HEADERS  = $CONFIG_HEADERS
9379  CONFIG_LINKS    = $CONFIG_LINKS
9380  CONFIG_COMMANDS = $CONFIG_COMMANDS
9381  $ $0 $@
9382
9383_CSEOF
9384echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9385echo >&5
9386_ACEOF
9387
9388# Files that config.status was made for.
9389if test -n "$ac_config_files"; then
9390  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9391fi
9392
9393if test -n "$ac_config_headers"; then
9394  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9395fi
9396
9397if test -n "$ac_config_links"; then
9398  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9399fi
9400
9401if test -n "$ac_config_commands"; then
9402  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9403fi
9404
9405cat >>$CONFIG_STATUS <<\_ACEOF
9406
9407ac_cs_usage="\
9408\`$as_me' instantiates files from templates according to the
9409current configuration.
9410
9411Usage: $0 [OPTIONS] [FILE]...
9412
9413  -h, --help       print this help, then exit
9414  -V, --version    print version number, then exit
9415  -q, --quiet      do not print progress messages
9416  -d, --debug      don't remove temporary files
9417      --recheck    update $as_me by reconfiguring in the same conditions
9418  --file=FILE[:TEMPLATE]
9419                   instantiate the configuration file FILE
9420  --header=FILE[:TEMPLATE]
9421                   instantiate the configuration header FILE
9422
9423Configuration files:
9424$config_files
9425
9426Configuration headers:
9427$config_headers
9428
9429Configuration commands:
9430$config_commands
9431
9432Report bugs to <bug-autoconf@gnu.org>."
9433_ACEOF
9434
9435cat >>$CONFIG_STATUS <<_ACEOF
9436ac_cs_version="\\
9437orxonox config.status 0.3.0_alpha
9438configured by $0, generated by GNU Autoconf 2.59,
9439  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9440
9441Copyright (C) 2003 Free Software Foundation, Inc.
9442This config.status script is free software; the Free Software Foundation
9443gives unlimited permission to copy, distribute and modify it."
9444srcdir=$srcdir
9445INSTALL="$INSTALL"
9446_ACEOF
9447
9448cat >>$CONFIG_STATUS <<\_ACEOF
9449# If no file are specified by the user, then we need to provide default
9450# value.  By we need to know if files were specified by the user.
9451ac_need_defaults=:
9452while test $# != 0
9453do
9454  case $1 in
9455  --*=*)
9456    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9457    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9458    ac_shift=:
9459    ;;
9460  -*)
9461    ac_option=$1
9462    ac_optarg=$2
9463    ac_shift=shift
9464    ;;
9465  *) # This is not an option, so the user has probably given explicit
9466     # arguments.
9467     ac_option=$1
9468     ac_need_defaults=false;;
9469  esac
9470
9471  case $ac_option in
9472  # Handling of the options.
9473_ACEOF
9474cat >>$CONFIG_STATUS <<\_ACEOF
9475  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9476    ac_cs_recheck=: ;;
9477  --version | --vers* | -V )
9478    echo "$ac_cs_version"; exit 0 ;;
9479  --he | --h)
9480    # Conflict between --help and --header
9481    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9482Try \`$0 --help' for more information." >&5
9483echo "$as_me: error: ambiguous option: $1
9484Try \`$0 --help' for more information." >&2;}
9485   { (exit 1); exit 1; }; };;
9486  --help | --hel | -h )
9487    echo "$ac_cs_usage"; exit 0 ;;
9488  --debug | --d* | -d )
9489    debug=: ;;
9490  --file | --fil | --fi | --f )
9491    $ac_shift
9492    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9493    ac_need_defaults=false;;
9494  --header | --heade | --head | --hea )
9495    $ac_shift
9496    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9497    ac_need_defaults=false;;
9498  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9499  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9500    ac_cs_silent=: ;;
9501
9502  # This is an error.
9503  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9504Try \`$0 --help' for more information." >&5
9505echo "$as_me: error: unrecognized option: $1
9506Try \`$0 --help' for more information." >&2;}
9507   { (exit 1); exit 1; }; } ;;
9508
9509  *) ac_config_targets="$ac_config_targets $1" ;;
9510
9511  esac
9512  shift
9513done
9514
9515ac_configure_extra_args=
9516
9517if $ac_cs_silent; then
9518  exec 6>/dev/null
9519  ac_configure_extra_args="$ac_configure_extra_args --silent"
9520fi
9521
9522_ACEOF
9523cat >>$CONFIG_STATUS <<_ACEOF
9524if \$ac_cs_recheck; then
9525  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9526  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9527fi
9528
9529_ACEOF
9530
9531cat >>$CONFIG_STATUS <<_ACEOF
9532#
9533# INIT-COMMANDS section.
9534#
9535
9536AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9537
9538_ACEOF
9539
9540
9541
9542cat >>$CONFIG_STATUS <<\_ACEOF
9543for ac_config_target in $ac_config_targets
9544do
9545  case "$ac_config_target" in
9546  # Handling of arguments.
9547  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9548  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9549  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9550  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
9551  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
9552  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
9553  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
9554  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
9555  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
9556  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
9557  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
9558  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
9559  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
9560  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
9561  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
9562  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
9563  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
9564  "src/subprojects/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/gui/Makefile" ;;
9565  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9566  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9567  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9568echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9569   { (exit 1); exit 1; }; };;
9570  esac
9571done
9572
9573# If the user did not use the arguments to specify the items to instantiate,
9574# then the envvar interface is used.  Set only those that are not.
9575# We use the long form for the default assignment because of an extremely
9576# bizarre bug on SunOS 4.1.3.
9577if $ac_need_defaults; then
9578  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9579  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9580  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9581fi
9582
9583# Have a temporary directory for convenience.  Make it in the build tree
9584# simply because there is no reason to put it here, and in addition,
9585# creating and moving files from /tmp can sometimes cause problems.
9586# Create a temporary directory, and hook for its removal unless debugging.
9587$debug ||
9588{
9589  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9590  trap '{ (exit 1); exit 1; }' 1 2 13 15
9591}
9592
9593# Create a (secure) tmp directory for tmp files.
9594
9595{
9596  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9597  test -n "$tmp" && test -d "$tmp"
9598}  ||
9599{
9600  tmp=./confstat$$-$RANDOM
9601  (umask 077 && mkdir $tmp)
9602} ||
9603{
9604   echo "$me: cannot create a temporary directory in ." >&2
9605   { (exit 1); exit 1; }
9606}
9607
9608_ACEOF
9609
9610cat >>$CONFIG_STATUS <<_ACEOF
9611
9612#
9613# CONFIG_FILES section.
9614#
9615
9616# No need to generate the scripts if there are no CONFIG_FILES.
9617# This happens for instance when ./config.status config.h
9618if test -n "\$CONFIG_FILES"; then
9619  # Protect against being on the right side of a sed subst in config.status.
9620  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9621   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9622s,@SHELL@,$SHELL,;t t
9623s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9624s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9625s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9626s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9627s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9628s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9629s,@exec_prefix@,$exec_prefix,;t t
9630s,@prefix@,$prefix,;t t
9631s,@program_transform_name@,$program_transform_name,;t t
9632s,@bindir@,$bindir,;t t
9633s,@sbindir@,$sbindir,;t t
9634s,@libexecdir@,$libexecdir,;t t
9635s,@datadir@,$datadir,;t t
9636s,@sysconfdir@,$sysconfdir,;t t
9637s,@sharedstatedir@,$sharedstatedir,;t t
9638s,@localstatedir@,$localstatedir,;t t
9639s,@libdir@,$libdir,;t t
9640s,@includedir@,$includedir,;t t
9641s,@oldincludedir@,$oldincludedir,;t t
9642s,@infodir@,$infodir,;t t
9643s,@mandir@,$mandir,;t t
9644s,@build_alias@,$build_alias,;t t
9645s,@host_alias@,$host_alias,;t t
9646s,@target_alias@,$target_alias,;t t
9647s,@DEFS@,$DEFS,;t t
9648s,@ECHO_C@,$ECHO_C,;t t
9649s,@ECHO_N@,$ECHO_N,;t t
9650s,@ECHO_T@,$ECHO_T,;t t
9651s,@LIBS@,$LIBS,;t t
9652s,@build@,$build,;t t
9653s,@build_cpu@,$build_cpu,;t t
9654s,@build_vendor@,$build_vendor,;t t
9655s,@build_os@,$build_os,;t t
9656s,@host@,$host,;t t
9657s,@host_cpu@,$host_cpu,;t t
9658s,@host_vendor@,$host_vendor,;t t
9659s,@host_os@,$host_os,;t t
9660s,@target@,$target,;t t
9661s,@target_cpu@,$target_cpu,;t t
9662s,@target_vendor@,$target_vendor,;t t
9663s,@target_os@,$target_os,;t t
9664s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9665s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9666s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9667s,@CYGPATH_W@,$CYGPATH_W,;t t
9668s,@PACKAGE@,$PACKAGE,;t t
9669s,@VERSION@,$VERSION,;t t
9670s,@ACLOCAL@,$ACLOCAL,;t t
9671s,@AUTOCONF@,$AUTOCONF,;t t
9672s,@AUTOMAKE@,$AUTOMAKE,;t t
9673s,@AUTOHEADER@,$AUTOHEADER,;t t
9674s,@MAKEINFO@,$MAKEINFO,;t t
9675s,@AMTAR@,$AMTAR,;t t
9676s,@install_sh@,$install_sh,;t t
9677s,@STRIP@,$STRIP,;t t
9678s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9679s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9680s,@mkdir_p@,$mkdir_p,;t t
9681s,@AWK@,$AWK,;t t
9682s,@SET_MAKE@,$SET_MAKE,;t t
9683s,@am__leading_dot@,$am__leading_dot,;t t
9684s,@CXX@,$CXX,;t t
9685s,@CXXFLAGS@,$CXXFLAGS,;t t
9686s,@LDFLAGS@,$LDFLAGS,;t t
9687s,@CPPFLAGS@,$CPPFLAGS,;t t
9688s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9689s,@EXEEXT@,$EXEEXT,;t t
9690s,@OBJEXT@,$OBJEXT,;t t
9691s,@DEPDIR@,$DEPDIR,;t t
9692s,@am__include@,$am__include,;t t
9693s,@am__quote@,$am__quote,;t t
9694s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9695s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9696s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9697s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9698s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9699s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9700s,@RANLIB@,$RANLIB,;t t
9701s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9702s,@CC@,$CC,;t t
9703s,@CFLAGS@,$CFLAGS,;t t
9704s,@ac_ct_CC@,$ac_ct_CC,;t t
9705s,@CCDEPMODE@,$CCDEPMODE,;t t
9706s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9707s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9708s,@CPP@,$CPP,;t t
9709s,@EGREP@,$EGREP,;t t
9710s,@DEBUG@,$DEBUG,;t t
9711s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
9712s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
9713s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
9714s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
9715s,@DOXYGEN@,$DOXYGEN,;t t
9716s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
9717s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
9718s,@GPROF@,$GPROF,;t t
9719s,@PKG_CONFIG@,$PKG_CONFIG,;t t
9720s,@MSBITFIELDS@,$MSBITFIELDS,;t t
9721s,@GTK2_LIBS@,$GTK2_LIBS,;t t
9722s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
9723s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
9724s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
9725s,@CURL_LIBS@,$CURL_LIBS,;t t
9726s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
9727s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
9728s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
9729s,@LIBOBJS@,$LIBOBJS,;t t
9730s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9731CEOF
9732
9733_ACEOF
9734
9735  cat >>$CONFIG_STATUS <<\_ACEOF
9736  # Split the substitutions into bite-sized pieces for seds with
9737  # small command number limits, like on Digital OSF/1 and HP-UX.
9738  ac_max_sed_lines=48
9739  ac_sed_frag=1 # Number of current file.
9740  ac_beg=1 # First line for current file.
9741  ac_end=$ac_max_sed_lines # Line after last line for current file.
9742  ac_more_lines=:
9743  ac_sed_cmds=
9744  while $ac_more_lines; do
9745    if test $ac_beg -gt 1; then
9746      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9747    else
9748      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9749    fi
9750    if test ! -s $tmp/subs.frag; then
9751      ac_more_lines=false
9752    else
9753      # The purpose of the label and of the branching condition is to
9754      # speed up the sed processing (if there are no `@' at all, there
9755      # is no need to browse any of the substitutions).
9756      # These are the two extra sed commands mentioned above.
9757      (echo ':t
9758  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9759      if test -z "$ac_sed_cmds"; then
9760        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9761      else
9762        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9763      fi
9764      ac_sed_frag=`expr $ac_sed_frag + 1`
9765      ac_beg=$ac_end
9766      ac_end=`expr $ac_end + $ac_max_sed_lines`
9767    fi
9768  done
9769  if test -z "$ac_sed_cmds"; then
9770    ac_sed_cmds=cat
9771  fi
9772fi # test -n "$CONFIG_FILES"
9773
9774_ACEOF
9775cat >>$CONFIG_STATUS <<\_ACEOF
9776for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9777  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9778  case $ac_file in
9779  - | *:- | *:-:* ) # input from stdin
9780        cat >$tmp/stdin
9781        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9782        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9783  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9784        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9785  * )   ac_file_in=$ac_file.in ;;
9786  esac
9787
9788  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9789  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9791         X"$ac_file" : 'X\(//\)[^/]' \| \
9792         X"$ac_file" : 'X\(//\)$' \| \
9793         X"$ac_file" : 'X\(/\)' \| \
9794         .     : '\(.\)' 2>/dev/null ||
9795echo X"$ac_file" |
9796    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9797          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9798          /^X\(\/\/\)$/{ s//\1/; q; }
9799          /^X\(\/\).*/{ s//\1/; q; }
9800          s/.*/./; q'`
9801  { if $as_mkdir_p; then
9802    mkdir -p "$ac_dir"
9803  else
9804    as_dir="$ac_dir"
9805    as_dirs=
9806    while test ! -d "$as_dir"; do
9807      as_dirs="$as_dir $as_dirs"
9808      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9809$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9810         X"$as_dir" : 'X\(//\)[^/]' \| \
9811         X"$as_dir" : 'X\(//\)$' \| \
9812         X"$as_dir" : 'X\(/\)' \| \
9813         .     : '\(.\)' 2>/dev/null ||
9814echo X"$as_dir" |
9815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9816          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9817          /^X\(\/\/\)$/{ s//\1/; q; }
9818          /^X\(\/\).*/{ s//\1/; q; }
9819          s/.*/./; q'`
9820    done
9821    test ! -n "$as_dirs" || mkdir $as_dirs
9822  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9823echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9824   { (exit 1); exit 1; }; }; }
9825
9826  ac_builddir=.
9827
9828if test "$ac_dir" != .; then
9829  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9830  # A "../" for each directory in $ac_dir_suffix.
9831  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9832else
9833  ac_dir_suffix= ac_top_builddir=
9834fi
9835
9836case $srcdir in
9837  .)  # No --srcdir option.  We are building in place.
9838    ac_srcdir=.
9839    if test -z "$ac_top_builddir"; then
9840       ac_top_srcdir=.
9841    else
9842       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9843    fi ;;
9844  [\\/]* | ?:[\\/]* )  # Absolute path.
9845    ac_srcdir=$srcdir$ac_dir_suffix;
9846    ac_top_srcdir=$srcdir ;;
9847  *) # Relative path.
9848    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9849    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9850esac
9851
9852# Do not use `cd foo && pwd` to compute absolute paths, because
9853# the directories may not exist.
9854case `pwd` in
9855.) ac_abs_builddir="$ac_dir";;
9856*)
9857  case "$ac_dir" in
9858  .) ac_abs_builddir=`pwd`;;
9859  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9860  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9861  esac;;
9862esac
9863case $ac_abs_builddir in
9864.) ac_abs_top_builddir=${ac_top_builddir}.;;
9865*)
9866  case ${ac_top_builddir}. in
9867  .) ac_abs_top_builddir=$ac_abs_builddir;;
9868  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9869  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9870  esac;;
9871esac
9872case $ac_abs_builddir in
9873.) ac_abs_srcdir=$ac_srcdir;;
9874*)
9875  case $ac_srcdir in
9876  .) ac_abs_srcdir=$ac_abs_builddir;;
9877  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9878  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9879  esac;;
9880esac
9881case $ac_abs_builddir in
9882.) ac_abs_top_srcdir=$ac_top_srcdir;;
9883*)
9884  case $ac_top_srcdir in
9885  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9886  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9887  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9888  esac;;
9889esac
9890
9891
9892  case $INSTALL in
9893  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9894  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9895  esac
9896
9897  if test x"$ac_file" != x-; then
9898    { echo "$as_me:$LINENO: creating $ac_file" >&5
9899echo "$as_me: creating $ac_file" >&6;}
9900    rm -f "$ac_file"
9901  fi
9902  # Let's still pretend it is `configure' which instantiates (i.e., don't
9903  # use $as_me), people would be surprised to read:
9904  #    /* config.h.  Generated by config.status.  */
9905  if test x"$ac_file" = x-; then
9906    configure_input=
9907  else
9908    configure_input="$ac_file.  "
9909  fi
9910  configure_input=$configure_input"Generated from `echo $ac_file_in |
9911                                     sed 's,.*/,,'` by configure."
9912
9913  # First look for the input files in the build tree, otherwise in the
9914  # src tree.
9915  ac_file_inputs=`IFS=:
9916    for f in $ac_file_in; do
9917      case $f in
9918      -) echo $tmp/stdin ;;
9919      [\\/$]*)
9920         # Absolute (can't be DOS-style, as IFS=:)
9921         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9922echo "$as_me: error: cannot find input file: $f" >&2;}
9923   { (exit 1); exit 1; }; }
9924         echo "$f";;
9925      *) # Relative
9926         if test -f "$f"; then
9927           # Build tree
9928           echo "$f"
9929         elif test -f "$srcdir/$f"; then
9930           # Source tree
9931           echo "$srcdir/$f"
9932         else
9933           # /dev/null tree
9934           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9935echo "$as_me: error: cannot find input file: $f" >&2;}
9936   { (exit 1); exit 1; }; }
9937         fi;;
9938      esac
9939    done` || { (exit 1); exit 1; }
9940_ACEOF
9941cat >>$CONFIG_STATUS <<_ACEOF
9942  sed "$ac_vpsub
9943$extrasub
9944_ACEOF
9945cat >>$CONFIG_STATUS <<\_ACEOF
9946:t
9947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9948s,@configure_input@,$configure_input,;t t
9949s,@srcdir@,$ac_srcdir,;t t
9950s,@abs_srcdir@,$ac_abs_srcdir,;t t
9951s,@top_srcdir@,$ac_top_srcdir,;t t
9952s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9953s,@builddir@,$ac_builddir,;t t
9954s,@abs_builddir@,$ac_abs_builddir,;t t
9955s,@top_builddir@,$ac_top_builddir,;t t
9956s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9957s,@INSTALL@,$ac_INSTALL,;t t
9958" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9959  rm -f $tmp/stdin
9960  if test x"$ac_file" != x-; then
9961    mv $tmp/out $ac_file
9962  else
9963    cat $tmp/out
9964    rm -f $tmp/out
9965  fi
9966
9967done
9968_ACEOF
9969cat >>$CONFIG_STATUS <<\_ACEOF
9970
9971#
9972# CONFIG_HEADER section.
9973#
9974
9975# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9976# NAME is the cpp macro being defined and VALUE is the value it is being given.
9977#
9978# ac_d sets the value in "#define NAME VALUE" lines.
9979ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9980ac_dB='[         ].*$,\1#\2'
9981ac_dC=' '
9982ac_dD=',;t'
9983# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9984ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9985ac_uB='$,\1#\2define\3'
9986ac_uC=' '
9987ac_uD=',;t'
9988
9989for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9990  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9991  case $ac_file in
9992  - | *:- | *:-:* ) # input from stdin
9993        cat >$tmp/stdin
9994        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9995        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9996  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9997        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9998  * )   ac_file_in=$ac_file.in ;;
9999  esac
10000
10001  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10002echo "$as_me: creating $ac_file" >&6;}
10003
10004  # First look for the input files in the build tree, otherwise in the
10005  # src tree.
10006  ac_file_inputs=`IFS=:
10007    for f in $ac_file_in; do
10008      case $f in
10009      -) echo $tmp/stdin ;;
10010      [\\/$]*)
10011         # Absolute (can't be DOS-style, as IFS=:)
10012         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10013echo "$as_me: error: cannot find input file: $f" >&2;}
10014   { (exit 1); exit 1; }; }
10015         # Do quote $f, to prevent DOS paths from being IFS'd.
10016         echo "$f";;
10017      *) # Relative
10018         if test -f "$f"; then
10019           # Build tree
10020           echo "$f"
10021         elif test -f "$srcdir/$f"; then
10022           # Source tree
10023           echo "$srcdir/$f"
10024         else
10025           # /dev/null tree
10026           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10027echo "$as_me: error: cannot find input file: $f" >&2;}
10028   { (exit 1); exit 1; }; }
10029         fi;;
10030      esac
10031    done` || { (exit 1); exit 1; }
10032  # Remove the trailing spaces.
10033  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10034
10035_ACEOF
10036
10037# Transform confdefs.h into two sed scripts, `conftest.defines' and
10038# `conftest.undefs', that substitutes the proper values into
10039# config.h.in to produce config.h.  The first handles `#define'
10040# templates, and the second `#undef' templates.
10041# And first: Protect against being on the right side of a sed subst in
10042# config.status.  Protect against being in an unquoted here document
10043# in config.status.
10044rm -f conftest.defines conftest.undefs
10045# Using a here document instead of a string reduces the quoting nightmare.
10046# Putting comments in sed scripts is not portable.
10047#
10048# `end' is used to avoid that the second main sed command (meant for
10049# 0-ary CPP macros) applies to n-ary macro definitions.
10050# See the Autoconf documentation for `clear'.
10051cat >confdef2sed.sed <<\_ACEOF
10052s/[\\&,]/\\&/g
10053s,[\\$`],\\&,g
10054t clear
10055: clear
10056s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10057t end
10058s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10059: end
10060_ACEOF
10061# If some macros were called several times there might be several times
10062# the same #defines, which is useless.  Nevertheless, we may not want to
10063# sort them, since we want the *last* AC-DEFINE to be honored.
10064uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10065sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10066rm -f confdef2sed.sed
10067
10068# This sed command replaces #undef with comments.  This is necessary, for
10069# example, in the case of _POSIX_SOURCE, which is predefined and required
10070# on some systems where configure will not decide to define it.
10071cat >>conftest.undefs <<\_ACEOF
10072s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10073_ACEOF
10074
10075# Break up conftest.defines because some shells have a limit on the size
10076# of here documents, and old seds have small limits too (100 cmds).
10077echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10078echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10079echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10080echo '  :' >>$CONFIG_STATUS
10081rm -f conftest.tail
10082while grep . conftest.defines >/dev/null
10083do
10084  # Write a limited-size here document to $tmp/defines.sed.
10085  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10086  # Speed up: don't consider the non `#define' lines.
10087  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10088  # Work around the forget-to-reset-the-flag bug.
10089  echo 't clr' >>$CONFIG_STATUS
10090  echo ': clr' >>$CONFIG_STATUS
10091  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10092  echo 'CEOF
10093  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10094  rm -f $tmp/in
10095  mv $tmp/out $tmp/in
10096' >>$CONFIG_STATUS
10097  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10098  rm -f conftest.defines
10099  mv conftest.tail conftest.defines
10100done
10101rm -f conftest.defines
10102echo '  fi # grep' >>$CONFIG_STATUS
10103echo >>$CONFIG_STATUS
10104
10105# Break up conftest.undefs because some shells have a limit on the size
10106# of here documents, and old seds have small limits too (100 cmds).
10107echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10108rm -f conftest.tail
10109while grep . conftest.undefs >/dev/null
10110do
10111  # Write a limited-size here document to $tmp/undefs.sed.
10112  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10113  # Speed up: don't consider the non `#undef'
10114  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10115  # Work around the forget-to-reset-the-flag bug.
10116  echo 't clr' >>$CONFIG_STATUS
10117  echo ': clr' >>$CONFIG_STATUS
10118  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10119  echo 'CEOF
10120  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10121  rm -f $tmp/in
10122  mv $tmp/out $tmp/in
10123' >>$CONFIG_STATUS
10124  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10125  rm -f conftest.undefs
10126  mv conftest.tail conftest.undefs
10127done
10128rm -f conftest.undefs
10129
10130cat >>$CONFIG_STATUS <<\_ACEOF
10131  # Let's still pretend it is `configure' which instantiates (i.e., don't
10132  # use $as_me), people would be surprised to read:
10133  #    /* config.h.  Generated by config.status.  */
10134  if test x"$ac_file" = x-; then
10135    echo "/* Generated by configure.  */" >$tmp/config.h
10136  else
10137    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10138  fi
10139  cat $tmp/in >>$tmp/config.h
10140  rm -f $tmp/in
10141  if test x"$ac_file" != x-; then
10142    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10143      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10144echo "$as_me: $ac_file is unchanged" >&6;}
10145    else
10146      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10148         X"$ac_file" : 'X\(//\)[^/]' \| \
10149         X"$ac_file" : 'X\(//\)$' \| \
10150         X"$ac_file" : 'X\(/\)' \| \
10151         .     : '\(.\)' 2>/dev/null ||
10152echo X"$ac_file" |
10153    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10154          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10155          /^X\(\/\/\)$/{ s//\1/; q; }
10156          /^X\(\/\).*/{ s//\1/; q; }
10157          s/.*/./; q'`
10158      { if $as_mkdir_p; then
10159    mkdir -p "$ac_dir"
10160  else
10161    as_dir="$ac_dir"
10162    as_dirs=
10163    while test ! -d "$as_dir"; do
10164      as_dirs="$as_dir $as_dirs"
10165      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10166$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10167         X"$as_dir" : 'X\(//\)[^/]' \| \
10168         X"$as_dir" : 'X\(//\)$' \| \
10169         X"$as_dir" : 'X\(/\)' \| \
10170         .     : '\(.\)' 2>/dev/null ||
10171echo X"$as_dir" |
10172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10173          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10174          /^X\(\/\/\)$/{ s//\1/; q; }
10175          /^X\(\/\).*/{ s//\1/; q; }
10176          s/.*/./; q'`
10177    done
10178    test ! -n "$as_dirs" || mkdir $as_dirs
10179  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10180echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10181   { (exit 1); exit 1; }; }; }
10182
10183      rm -f $ac_file
10184      mv $tmp/config.h $ac_file
10185    fi
10186  else
10187    cat $tmp/config.h
10188    rm -f $tmp/config.h
10189  fi
10190# Compute $ac_file's index in $config_headers.
10191_am_stamp_count=1
10192for _am_header in $config_headers :; do
10193  case $_am_header in
10194    $ac_file | $ac_file:* )
10195      break ;;
10196    * )
10197      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10198  esac
10199done
10200echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10201$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10202         X$ac_file : 'X\(//\)[^/]' \| \
10203         X$ac_file : 'X\(//\)$' \| \
10204         X$ac_file : 'X\(/\)' \| \
10205         .     : '\(.\)' 2>/dev/null ||
10206echo X$ac_file |
10207    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10208          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10209          /^X\(\/\/\)$/{ s//\1/; q; }
10210          /^X\(\/\).*/{ s//\1/; q; }
10211          s/.*/./; q'`/stamp-h$_am_stamp_count
10212done
10213_ACEOF
10214cat >>$CONFIG_STATUS <<\_ACEOF
10215
10216#
10217# CONFIG_COMMANDS section.
10218#
10219for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10220  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10221  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10222  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10223$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10224         X"$ac_dest" : 'X\(//\)[^/]' \| \
10225         X"$ac_dest" : 'X\(//\)$' \| \
10226         X"$ac_dest" : 'X\(/\)' \| \
10227         .     : '\(.\)' 2>/dev/null ||
10228echo X"$ac_dest" |
10229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10230          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10231          /^X\(\/\/\)$/{ s//\1/; q; }
10232          /^X\(\/\).*/{ s//\1/; q; }
10233          s/.*/./; q'`
10234  { if $as_mkdir_p; then
10235    mkdir -p "$ac_dir"
10236  else
10237    as_dir="$ac_dir"
10238    as_dirs=
10239    while test ! -d "$as_dir"; do
10240      as_dirs="$as_dir $as_dirs"
10241      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10243         X"$as_dir" : 'X\(//\)[^/]' \| \
10244         X"$as_dir" : 'X\(//\)$' \| \
10245         X"$as_dir" : 'X\(/\)' \| \
10246         .     : '\(.\)' 2>/dev/null ||
10247echo X"$as_dir" |
10248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10249          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10250          /^X\(\/\/\)$/{ s//\1/; q; }
10251          /^X\(\/\).*/{ s//\1/; q; }
10252          s/.*/./; q'`
10253    done
10254    test ! -n "$as_dirs" || mkdir $as_dirs
10255  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10256echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10257   { (exit 1); exit 1; }; }; }
10258
10259  ac_builddir=.
10260
10261if test "$ac_dir" != .; then
10262  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10263  # A "../" for each directory in $ac_dir_suffix.
10264  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10265else
10266  ac_dir_suffix= ac_top_builddir=
10267fi
10268
10269case $srcdir in
10270  .)  # No --srcdir option.  We are building in place.
10271    ac_srcdir=.
10272    if test -z "$ac_top_builddir"; then
10273       ac_top_srcdir=.
10274    else
10275       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10276    fi ;;
10277  [\\/]* | ?:[\\/]* )  # Absolute path.
10278    ac_srcdir=$srcdir$ac_dir_suffix;
10279    ac_top_srcdir=$srcdir ;;
10280  *) # Relative path.
10281    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10282    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10283esac
10284
10285# Do not use `cd foo && pwd` to compute absolute paths, because
10286# the directories may not exist.
10287case `pwd` in
10288.) ac_abs_builddir="$ac_dir";;
10289*)
10290  case "$ac_dir" in
10291  .) ac_abs_builddir=`pwd`;;
10292  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10293  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10294  esac;;
10295esac
10296case $ac_abs_builddir in
10297.) ac_abs_top_builddir=${ac_top_builddir}.;;
10298*)
10299  case ${ac_top_builddir}. in
10300  .) ac_abs_top_builddir=$ac_abs_builddir;;
10301  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10302  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10303  esac;;
10304esac
10305case $ac_abs_builddir in
10306.) ac_abs_srcdir=$ac_srcdir;;
10307*)
10308  case $ac_srcdir in
10309  .) ac_abs_srcdir=$ac_abs_builddir;;
10310  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10311  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10312  esac;;
10313esac
10314case $ac_abs_builddir in
10315.) ac_abs_top_srcdir=$ac_top_srcdir;;
10316*)
10317  case $ac_top_srcdir in
10318  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10319  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10320  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10321  esac;;
10322esac
10323
10324
10325  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10326echo "$as_me: executing $ac_dest commands" >&6;}
10327  case $ac_dest in
10328    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10329  # Strip MF so we end up with the name of the file.
10330  mf=`echo "$mf" | sed -e 's/:.*$//'`
10331  # Check whether this is an Automake generated Makefile or not.
10332  # We used to match only the files named `Makefile.in', but
10333  # some people rename them; so instead we look at the file content.
10334  # Grep'ing the first line is not enough: some people post-process
10335  # each Makefile.in and add a new line on top of each file to say so.
10336  # So let's grep whole file.
10337  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10338    dirpart=`(dirname "$mf") 2>/dev/null ||
10339$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10340         X"$mf" : 'X\(//\)[^/]' \| \
10341         X"$mf" : 'X\(//\)$' \| \
10342         X"$mf" : 'X\(/\)' \| \
10343         .     : '\(.\)' 2>/dev/null ||
10344echo X"$mf" |
10345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10346          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10347          /^X\(\/\/\)$/{ s//\1/; q; }
10348          /^X\(\/\).*/{ s//\1/; q; }
10349          s/.*/./; q'`
10350  else
10351    continue
10352  fi
10353  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10354  # Extract the definition of DEP_FILES from the Makefile without
10355  # running `make'.
10356  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10357  test -z "$DEPDIR" && continue
10358  # When using ansi2knr, U may be empty or an underscore; expand it
10359  U=`sed -n 's/^U = //p' < "$mf"`
10360  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10361  # We invoke sed twice because it is the simplest approach to
10362  # changing $(DEPDIR) to its actual value in the expansion.
10363  for file in `sed -n '
10364    /^DEP_FILES = .*\\\\$/ {
10365      s/^DEP_FILES = //
10366      :loop
10367        s/\\\\$//
10368        p
10369        n
10370        /\\\\$/ b loop
10371      p
10372    }
10373    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10374       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10375    # Make sure the directory exists.
10376    test -f "$dirpart/$file" && continue
10377    fdir=`(dirname "$file") 2>/dev/null ||
10378$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10379         X"$file" : 'X\(//\)[^/]' \| \
10380         X"$file" : 'X\(//\)$' \| \
10381         X"$file" : 'X\(/\)' \| \
10382         .     : '\(.\)' 2>/dev/null ||
10383echo X"$file" |
10384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10385          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10386          /^X\(\/\/\)$/{ s//\1/; q; }
10387          /^X\(\/\).*/{ s//\1/; q; }
10388          s/.*/./; q'`
10389    { if $as_mkdir_p; then
10390    mkdir -p $dirpart/$fdir
10391  else
10392    as_dir=$dirpart/$fdir
10393    as_dirs=
10394    while test ! -d "$as_dir"; do
10395      as_dirs="$as_dir $as_dirs"
10396      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10398         X"$as_dir" : 'X\(//\)[^/]' \| \
10399         X"$as_dir" : 'X\(//\)$' \| \
10400         X"$as_dir" : 'X\(/\)' \| \
10401         .     : '\(.\)' 2>/dev/null ||
10402echo X"$as_dir" |
10403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10404          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10405          /^X\(\/\/\)$/{ s//\1/; q; }
10406          /^X\(\/\).*/{ s//\1/; q; }
10407          s/.*/./; q'`
10408    done
10409    test ! -n "$as_dirs" || mkdir $as_dirs
10410  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10411echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10412   { (exit 1); exit 1; }; }; }
10413
10414    # echo "creating $dirpart/$file"
10415    echo '# dummy' > "$dirpart/$file"
10416  done
10417done
10418 ;;
10419  esac
10420done
10421_ACEOF
10422
10423cat >>$CONFIG_STATUS <<\_ACEOF
10424
10425{ (exit 0); exit 0; }
10426_ACEOF
10427chmod +x $CONFIG_STATUS
10428ac_clean_files=$ac_clean_files_save
10429
10430
10431# configure is writing to config.log, and then calls config.status.
10432# config.status does its own redirection, appending to config.log.
10433# Unfortunately, on DOS this fails, as config.log is still kept open
10434# by configure, so config.status won't be able to write to it; its
10435# output is simply discarded.  So we exec the FD to /dev/null,
10436# effectively closing config.log, so it can be properly (re)opened and
10437# appended to by config.status.  When coming back to configure, we
10438# need to make the FD available again.
10439if test "$no_create" != yes; then
10440  ac_cs_success=:
10441  ac_config_status_args=
10442  test "$silent" = yes &&
10443    ac_config_status_args="$ac_config_status_args --quiet"
10444  exec 5>/dev/null
10445  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10446  exec 5>>config.log
10447  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10448  # would make configure fail if this is the last instruction.
10449  $ac_cs_success || { (exit 1); exit 1; }
10450fi
10451
Note: See TracBrowser for help on using the repository browser.