Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: higher order

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