Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/levelloader/configure @ 3865

Last change on this file since 3865 was 3746, checked in by chris, 20 years ago

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

  • Property svn:executable set to *
File size: 289.7 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.2-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.2-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.2-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 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 MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_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.2-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.2-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-documentation  also builds the sDocumentation while make from
873                          srcdir
874
875Optional Packages:
876  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878  --without-gtk           Prevents GTK from being loaded
879  --without-gthread       Prevents gThread from being loaded
880  --without-pthread       Prevents pthread from being loaded
881  --without-curl          Prevents libcURL from being loaded
882  --without-sdl-image     Prevents SDL_image from being loaded
883
884Some influential environment variables:
885  CXX         C++ compiler command
886  CXXFLAGS    C++ compiler flags
887  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
888              nonstandard directory <lib dir>
889  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
890              headers in a nonstandard directory <include dir>
891  CC          C compiler command
892  CFLAGS      C compiler flags
893  CPP         C preprocessor
894
895Use these variables to override the choices made by `configure' or to help
896it to find libraries and programs with nonstandard names/locations.
897
898Report bugs to <orxonox-dev at mail.datacore.ch>.
899_ACEOF
900fi
901
902if test "$ac_init_help" = "recursive"; then
903  # If there are subdirs, report their specific --help.
904  ac_popdir=`pwd`
905  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906    test -d $ac_dir || continue
907    ac_builddir=.
908
909if test "$ac_dir" != .; then
910  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911  # A "../" for each directory in $ac_dir_suffix.
912  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914  ac_dir_suffix= ac_top_builddir=
915fi
916
917case $srcdir in
918  .)  # No --srcdir option.  We are building in place.
919    ac_srcdir=.
920    if test -z "$ac_top_builddir"; then
921       ac_top_srcdir=.
922    else
923       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924    fi ;;
925  [\\/]* | ?:[\\/]* )  # Absolute path.
926    ac_srcdir=$srcdir$ac_dir_suffix;
927    ac_top_srcdir=$srcdir ;;
928  *) # Relative path.
929    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930    ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
932
933# Do not use `cd foo && pwd` to compute absolute paths, because
934# the directories may not exist.
935case `pwd` in
936.) ac_abs_builddir="$ac_dir";;
937*)
938  case "$ac_dir" in
939  .) ac_abs_builddir=`pwd`;;
940  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941  *) ac_abs_builddir=`pwd`/"$ac_dir";;
942  esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947  case ${ac_top_builddir}. in
948  .) ac_abs_top_builddir=$ac_abs_builddir;;
949  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951  esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956  case $ac_srcdir in
957  .) ac_abs_srcdir=$ac_abs_builddir;;
958  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960  esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965  case $ac_top_srcdir in
966  .) ac_abs_top_srcdir=$ac_abs_builddir;;
967  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969  esac;;
970esac
971
972    cd $ac_dir
973    # Check for guested configure; otherwise get Cygnus style configure.
974    if test -f $ac_srcdir/configure.gnu; then
975      echo
976      $SHELL $ac_srcdir/configure.gnu  --help=recursive
977    elif test -f $ac_srcdir/configure; then
978      echo
979      $SHELL $ac_srcdir/configure  --help=recursive
980    elif test -f $ac_srcdir/configure.ac ||
981           test -f $ac_srcdir/configure.in; then
982      echo
983      $ac_configure --help
984    else
985      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986    fi
987    cd $ac_popdir
988  done
989fi
990
991test -n "$ac_init_help" && exit 0
992if $ac_init_version; then
993  cat <<\_ACEOF
994orxonox configure 0.2.2-pre-alpha
995generated by GNU Autoconf 2.59
996
997Copyright (C) 2003 Free Software Foundation, Inc.
998This configure script is free software; the Free Software Foundation
999gives unlimited permission to copy, distribute and modify it.
1000_ACEOF
1001  exit 0
1002fi
1003exec 5>config.log
1004cat >&5 <<_ACEOF
1005This file contains any messages produced by compilers while
1006running configure, to aid debugging if configure makes a mistake.
1007
1008It was created by orxonox $as_me 0.2.2-pre-alpha, which was
1009generated by GNU Autoconf 2.59.  Invocation command line was
1010
1011  $ $0 $@
1012
1013_ACEOF
1014{
1015cat <<_ASUNAME
1016## --------- ##
1017## Platform. ##
1018## --------- ##
1019
1020hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
1029/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
1037_ASUNAME
1038
1039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040for as_dir in $PATH
1041do
1042  IFS=$as_save_IFS
1043  test -z "$as_dir" && as_dir=.
1044  echo "PATH: $as_dir"
1045done
1046
1047} >&5
1048
1049cat >&5 <<_ACEOF
1050
1051
1052## ----------- ##
1053## Core tests. ##
1054## ----------- ##
1055
1056_ACEOF
1057
1058
1059# Keep a trace of the command line.
1060# Strip out --no-create and --no-recursion so they do not pile up.
1061# Strip out --silent because we don't want to record it for future runs.
1062# Also quote any args containing shell meta-characters.
1063# Make two passes to allow for proper duplicate-argument suppression.
1064ac_configure_args=
1065ac_configure_args0=
1066ac_configure_args1=
1067ac_sep=
1068ac_must_keep_next=false
1069for ac_pass in 1 2
1070do
1071  for ac_arg
1072  do
1073    case $ac_arg in
1074    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076    | -silent | --silent | --silen | --sile | --sil)
1077      continue ;;
1078    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080    esac
1081    case $ac_pass in
1082    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083    2)
1084      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085      if test $ac_must_keep_next = true; then
1086        ac_must_keep_next=false # Got value, back to normal.
1087      else
1088        case $ac_arg in
1089          *=* | --config-cache | -C | -disable-* | --disable-* \
1090          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092          | -with-* | --with-* | -without-* | --without-* | --x)
1093            case "$ac_configure_args0 " in
1094              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095            esac
1096            ;;
1097          -* ) ac_must_keep_next=true ;;
1098        esac
1099      fi
1100      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101      # Get rid of the leading space.
1102      ac_sep=" "
1103      ;;
1104    esac
1105  done
1106done
1107$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110# When interrupted or exit'd, cleanup temporary files, and complete
1111# config.log.  We remove comments because anyway the quotes in there
1112# would cause problems or look ugly.
1113# WARNING: Be sure not to use single quotes in there, as some shells,
1114# such as our DU 5.0 friend, will then `close' the trap.
1115trap 'exit_status=$?
1116  # Save into config.log some information that might help in debugging.
1117  {
1118    echo
1119
1120    cat <<\_ASBOX
1121## ---------------- ##
1122## Cache variables. ##
1123## ---------------- ##
1124_ASBOX
1125    echo
1126    # The following way of writing the cache mishandles newlines in values,
1127{
1128  (set) 2>&1 |
1129    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130    *ac_space=\ *)
1131      sed -n \
1132        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134      ;;
1135    *)
1136      sed -n \
1137        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138      ;;
1139    esac;
1140}
1141    echo
1142
1143    cat <<\_ASBOX
1144## ----------------- ##
1145## Output variables. ##
1146## ----------------- ##
1147_ASBOX
1148    echo
1149    for ac_var in $ac_subst_vars
1150    do
1151      eval ac_val=$`echo $ac_var`
1152      echo "$ac_var='"'"'$ac_val'"'"'"
1153    done | sort
1154    echo
1155
1156    if test -n "$ac_subst_files"; then
1157      cat <<\_ASBOX
1158## ------------- ##
1159## Output files. ##
1160## ------------- ##
1161_ASBOX
1162      echo
1163      for ac_var in $ac_subst_files
1164      do
1165        eval ac_val=$`echo $ac_var`
1166        echo "$ac_var='"'"'$ac_val'"'"'"
1167      done | sort
1168      echo
1169    fi
1170
1171    if test -s confdefs.h; then
1172      cat <<\_ASBOX
1173## ----------- ##
1174## confdefs.h. ##
1175## ----------- ##
1176_ASBOX
1177      echo
1178      sed "/^$/d" confdefs.h | sort
1179      echo
1180    fi
1181    test "$ac_signal" != 0 &&
1182      echo "$as_me: caught signal $ac_signal"
1183    echo "$as_me: exit $exit_status"
1184  } >&5
1185  rm -f core *.core &&
1186  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187    exit $exit_status
1188     ' 0
1189for ac_signal in 1 2 13 15; do
1190  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191done
1192ac_signal=0
1193
1194# confdefs.h avoids OS command line length limits that DEFS can exceed.
1195rm -rf conftest* confdefs.h
1196# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197echo >confdefs.h
1198
1199# Predefined preprocessor variables.
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_NAME "$PACKAGE_NAME"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208_ACEOF
1209
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_VERSION "$PACKAGE_VERSION"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_STRING "$PACKAGE_STRING"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223_ACEOF
1224
1225
1226# Let the site file select an alternate cache file if it wants to.
1227# Prefer explicitly selected file to automatically selected ones.
1228if test -z "$CONFIG_SITE"; then
1229  if test "x$prefix" != xNONE; then
1230    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231  else
1232    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233  fi
1234fi
1235for ac_site_file in $CONFIG_SITE; do
1236  if test -r "$ac_site_file"; then
1237    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238echo "$as_me: loading site script $ac_site_file" >&6;}
1239    sed 's/^/| /' "$ac_site_file" >&5
1240    . "$ac_site_file"
1241  fi
1242done
1243
1244if test -r "$cache_file"; then
1245  # Some versions of bash will fail to source /dev/null (special
1246  # files actually), so we avoid doing that.
1247  if test -f "$cache_file"; then
1248    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249echo "$as_me: loading cache $cache_file" >&6;}
1250    case $cache_file in
1251      [\\/]* | ?:[\\/]* ) . $cache_file;;
1252      *)                      . ./$cache_file;;
1253    esac
1254  fi
1255else
1256  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257echo "$as_me: creating cache $cache_file" >&6;}
1258  >$cache_file
1259fi
1260
1261# Check that the precious variables saved in the cache have kept the same
1262# value.
1263ac_cache_corrupted=false
1264for ac_var in `(set) 2>&1 |
1265               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267  eval ac_new_set=\$ac_env_${ac_var}_set
1268  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269  eval ac_new_val="\$ac_env_${ac_var}_value"
1270  case $ac_old_set,$ac_new_set in
1271    set,)
1272      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274      ac_cache_corrupted=: ;;
1275    ,set)
1276      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278      ac_cache_corrupted=: ;;
1279    ,);;
1280    *)
1281      if test "x$ac_old_val" != "x$ac_new_val"; then
1282        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285echo "$as_me:   former value:  $ac_old_val" >&2;}
1286        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287echo "$as_me:   current value: $ac_new_val" >&2;}
1288        ac_cache_corrupted=:
1289      fi;;
1290  esac
1291  # Pass precious variables to config.status.
1292  if test "$ac_new_set" = set; then
1293    case $ac_new_val in
1294    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296    *) ac_arg=$ac_var=$ac_new_val ;;
1297    esac
1298    case " $ac_configure_args " in
1299      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301    esac
1302  fi
1303done
1304if $ac_cache_corrupted; then
1305  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309   { (exit 1); exit 1; }; }
1310fi
1311
1312ac_ext=c
1313ac_cpp='$CPP $CPPFLAGS'
1314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1345## Detect the canonical host and target build environment.
1346ac_aux_dir=
1347for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1348  if test -f $ac_dir/install-sh; then
1349    ac_aux_dir=$ac_dir
1350    ac_install_sh="$ac_aux_dir/install-sh -c"
1351    break
1352  elif test -f $ac_dir/install.sh; then
1353    ac_aux_dir=$ac_dir
1354    ac_install_sh="$ac_aux_dir/install.sh -c"
1355    break
1356  elif test -f $ac_dir/shtool; then
1357    ac_aux_dir=$ac_dir
1358    ac_install_sh="$ac_aux_dir/shtool install -c"
1359    break
1360  fi
1361done
1362if test -z "$ac_aux_dir"; then
1363  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1364echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1365   { (exit 1); exit 1; }; }
1366fi
1367ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1368ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1370
1371# Make sure we can run config.sub.
1372$ac_config_sub sun4 >/dev/null 2>&1 ||
1373  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1374echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1375   { (exit 1); exit 1; }; }
1376
1377echo "$as_me:$LINENO: checking build system type" >&5
1378echo $ECHO_N "checking build system type... $ECHO_C" >&6
1379if test "${ac_cv_build+set}" = set; then
1380  echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382  ac_cv_build_alias=$build_alias
1383test -z "$ac_cv_build_alias" &&
1384  ac_cv_build_alias=`$ac_config_guess`
1385test -z "$ac_cv_build_alias" &&
1386  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1387echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1388   { (exit 1); exit 1; }; }
1389ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1390  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1391echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1392   { (exit 1); exit 1; }; }
1393
1394fi
1395echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1396echo "${ECHO_T}$ac_cv_build" >&6
1397build=$ac_cv_build
1398build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1399build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1400build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401
1402
1403echo "$as_me:$LINENO: checking host system type" >&5
1404echo $ECHO_N "checking host system type... $ECHO_C" >&6
1405if test "${ac_cv_host+set}" = set; then
1406  echo $ECHO_N "(cached) $ECHO_C" >&6
1407else
1408  ac_cv_host_alias=$host_alias
1409test -z "$ac_cv_host_alias" &&
1410  ac_cv_host_alias=$ac_cv_build_alias
1411ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1412  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1413echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1414   { (exit 1); exit 1; }; }
1415
1416fi
1417echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1418echo "${ECHO_T}$ac_cv_host" >&6
1419host=$ac_cv_host
1420host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423
1424
1425echo "$as_me:$LINENO: checking target system type" >&5
1426echo $ECHO_N "checking target system type... $ECHO_C" >&6
1427if test "${ac_cv_target+set}" = set; then
1428  echo $ECHO_N "(cached) $ECHO_C" >&6
1429else
1430  ac_cv_target_alias=$target_alias
1431test "x$ac_cv_target_alias" = "x" &&
1432  ac_cv_target_alias=$ac_cv_host_alias
1433ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1434  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1435echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1436   { (exit 1); exit 1; }; }
1437
1438fi
1439echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1440echo "${ECHO_T}$ac_cv_target" >&6
1441target=$ac_cv_target
1442target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447# The aliases save the names the user supplied, while $host etc.
1448# will get canonicalized.
1449test -n "$target_alias" &&
1450  test "$program_prefix$program_suffix$program_transform_name" = \
1451    NONENONEs,x,x, &&
1452  program_prefix=${target_alias}-
1453
1454am__api_version="1.8"
1455# Find a good install program.  We prefer a C program (faster),
1456# so one script is as good as another.  But avoid the broken or
1457# incompatible versions:
1458# SysV /etc/install, /usr/sbin/install
1459# SunOS /usr/etc/install
1460# IRIX /sbin/install
1461# AIX /bin/install
1462# AmigaOS /C/install, which installs bootblocks on floppy discs
1463# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1464# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1465# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1466# OS/2's system install, which has a completely different semantic
1467# ./install, which can be erroneously created by make from ./install.sh.
1468echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1469echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1470if test -z "$INSTALL"; then
1471if test "${ac_cv_path_install+set}" = set; then
1472  echo $ECHO_N "(cached) $ECHO_C" >&6
1473else
1474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477  IFS=$as_save_IFS
1478  test -z "$as_dir" && as_dir=.
1479  # Account for people who put trailing slashes in PATH elements.
1480case $as_dir/ in
1481  ./ | .// | /cC/* | \
1482  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1483  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1484  /usr/ucb/* ) ;;
1485  *)
1486    # OSF1 and SCO ODT 3.0 have their own names for install.
1487    # Don't use installbsd from OSF since it installs stuff as root
1488    # by default.
1489    for ac_prog in ginstall scoinst install; do
1490      for ac_exec_ext in '' $ac_executable_extensions; do
1491        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1492          if test $ac_prog = install &&
1493            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494            # AIX install.  It has an incompatible calling convention.
1495            :
1496          elif test $ac_prog = install &&
1497            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1498            # program-specific install script used by HP pwplus--don't use.
1499            :
1500          else
1501            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1502            break 3
1503          fi
1504        fi
1505      done
1506    done
1507    ;;
1508esac
1509done
1510
1511
1512fi
1513  if test "${ac_cv_path_install+set}" = set; then
1514    INSTALL=$ac_cv_path_install
1515  else
1516    # As a last resort, use the slow shell script.  We don't cache a
1517    # path for INSTALL within a source directory, because that will
1518    # break other packages using the cache if that directory is
1519    # removed, or if the path is relative.
1520    INSTALL=$ac_install_sh
1521  fi
1522fi
1523echo "$as_me:$LINENO: result: $INSTALL" >&5
1524echo "${ECHO_T}$INSTALL" >&6
1525
1526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1527# It thinks the first close brace ends the variable substitution.
1528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1529
1530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1531
1532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1533
1534echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1535echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1536# Just in case
1537sleep 1
1538echo timestamp > conftest.file
1539# Do `set' in a subshell so we don't clobber the current shell's
1540# arguments.  Must try -L first in case configure is actually a
1541# symlink; some systems play weird games with the mod time of symlinks
1542# (eg FreeBSD returns the mod time of the symlink's containing
1543# directory).
1544if (
1545   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1546   if test "$*" = "X"; then
1547      # -L didn't work.
1548      set X `ls -t $srcdir/configure conftest.file`
1549   fi
1550   rm -f conftest.file
1551   if test "$*" != "X $srcdir/configure conftest.file" \
1552      && test "$*" != "X conftest.file $srcdir/configure"; then
1553
1554      # If neither matched, then we have a broken ls.  This can happen
1555      # if, for instance, CONFIG_SHELL is bash and it inherits a
1556      # broken ls alias from the environment.  This has actually
1557      # happened.  Such a system could not be considered "sane".
1558      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1559alias in your environment" >&5
1560echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1561alias in your environment" >&2;}
1562   { (exit 1); exit 1; }; }
1563   fi
1564
1565   test "$2" = conftest.file
1566   )
1567then
1568   # Ok.
1569   :
1570else
1571   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1572Check your system clock" >&5
1573echo "$as_me: error: newly created file is older than distributed files!
1574Check your system clock" >&2;}
1575   { (exit 1); exit 1; }; }
1576fi
1577echo "$as_me:$LINENO: result: yes" >&5
1578echo "${ECHO_T}yes" >&6
1579test "$program_prefix" != NONE &&
1580  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1581# Use a double $ so make ignores it.
1582test "$program_suffix" != NONE &&
1583  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1584# Double any \ or $.  echo might interpret backslashes.
1585# By default was `s,x,x', remove it if useless.
1586cat <<\_ACEOF >conftest.sed
1587s/[\\$]/&&/g;s/;s,x,x,$//
1588_ACEOF
1589program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1590rm conftest.sed
1591
1592# expand $ac_aux_dir to an absolute path
1593am_aux_dir=`cd $ac_aux_dir && pwd`
1594
1595test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1596# Use eval to expand $SHELL
1597if eval "$MISSING --run true"; then
1598  am_missing_run="$MISSING --run "
1599else
1600  am_missing_run=
1601  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1602echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1603fi
1604
1605if mkdir -p -- . 2>/dev/null; then
1606  # Keeping the `.' argument allows $(mkdir_p) to be used without
1607  # argument.  Indeed, we sometimes output rules like
1608  #   $(mkdir_p) $(somedir)
1609  # where $(somedir) is conditionally defined.
1610  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1611  # expensive solution, as it forces Make to start a sub-shell.)
1612  mkdir_p='mkdir -p -- .'
1613else
1614  # On NextStep and OpenStep, the `mkdir' command does not
1615  # recognize any option.  It will interpret all options as
1616  # directories to create, and then abort because `.' already
1617  # exists.
1618  for d in ./-p ./--;
1619  do
1620    test -d $d && rmdir $d
1621  done
1622  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1623  if test -f "$ac_aux_dir/mkinstalldirs"; then
1624    mkdir_p='$(mkinstalldirs)'
1625  else
1626    mkdir_p='$(install_sh) -d'
1627  fi
1628fi
1629
1630for ac_prog in gawk mawk nawk awk
1631do
1632  # Extract the first word of "$ac_prog", so it can be a program name with args.
1633set dummy $ac_prog; ac_word=$2
1634echo "$as_me:$LINENO: checking for $ac_word" >&5
1635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636if test "${ac_cv_prog_AWK+set}" = set; then
1637  echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639  if test -n "$AWK"; then
1640  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1641else
1642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643for as_dir in $PATH
1644do
1645  IFS=$as_save_IFS
1646  test -z "$as_dir" && as_dir=.
1647  for ac_exec_ext in '' $ac_executable_extensions; do
1648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649    ac_cv_prog_AWK="$ac_prog"
1650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1651    break 2
1652  fi
1653done
1654done
1655
1656fi
1657fi
1658AWK=$ac_cv_prog_AWK
1659if test -n "$AWK"; then
1660  echo "$as_me:$LINENO: result: $AWK" >&5
1661echo "${ECHO_T}$AWK" >&6
1662else
1663  echo "$as_me:$LINENO: result: no" >&5
1664echo "${ECHO_T}no" >&6
1665fi
1666
1667  test -n "$AWK" && break
1668done
1669
1670echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1671echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1672set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1673if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1674  echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676  cat >conftest.make <<\_ACEOF
1677all:
1678        @echo 'ac_maketemp="$(MAKE)"'
1679_ACEOF
1680# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1681eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1682if test -n "$ac_maketemp"; then
1683  eval ac_cv_prog_make_${ac_make}_set=yes
1684else
1685  eval ac_cv_prog_make_${ac_make}_set=no
1686fi
1687rm -f conftest.make
1688fi
1689if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1690  echo "$as_me:$LINENO: result: yes" >&5
1691echo "${ECHO_T}yes" >&6
1692  SET_MAKE=
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696  SET_MAKE="MAKE=${MAKE-make}"
1697fi
1698
1699rm -rf .tst 2>/dev/null
1700mkdir .tst 2>/dev/null
1701if test -d .tst; then
1702  am__leading_dot=.
1703else
1704  am__leading_dot=_
1705fi
1706rmdir .tst 2>/dev/null
1707
1708# test to see if srcdir already configured
1709if test "`cd $srcdir && pwd`" != "`pwd`" &&
1710   test -f $srcdir/config.status; then
1711  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1712echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1713   { (exit 1); exit 1; }; }
1714fi
1715
1716# test whether we have cygpath
1717if test -z "$CYGPATH_W"; then
1718  if (cygpath --version) >/dev/null 2>/dev/null; then
1719    CYGPATH_W='cygpath -w'
1720  else
1721    CYGPATH_W=echo
1722  fi
1723fi
1724
1725
1726# Define the identity of the package.
1727 PACKAGE='orxonox'
1728 VERSION='0.2.2-pre-alpha'
1729
1730
1731cat >>confdefs.h <<_ACEOF
1732#define PACKAGE "$PACKAGE"
1733_ACEOF
1734
1735
1736cat >>confdefs.h <<_ACEOF
1737#define VERSION "$VERSION"
1738_ACEOF
1739
1740# Some tools Automake needs.
1741
1742ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1743
1744
1745AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1746
1747
1748AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1749
1750
1751AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1752
1753
1754MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1755
1756
1757AMTAR=${AMTAR-"${am_missing_run}tar"}
1758
1759install_sh=${install_sh-"$am_aux_dir/install-sh"}
1760
1761# Installed binaries are usually stripped using `strip' when the user
1762# run `make install-strip'.  However `strip' might not be the right
1763# tool to use in cross-compilation environments, therefore Automake
1764# will honor the `STRIP' environment variable to overrule this program.
1765if test "$cross_compiling" != no; then
1766  if test -n "$ac_tool_prefix"; then
1767  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1768set dummy ${ac_tool_prefix}strip; ac_word=$2
1769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771if test "${ac_cv_prog_STRIP+set}" = set; then
1772  echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774  if test -n "$STRIP"; then
1775  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1776else
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780  IFS=$as_save_IFS
1781  test -z "$as_dir" && as_dir=.
1782  for ac_exec_ext in '' $ac_executable_extensions; do
1783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786    break 2
1787  fi
1788done
1789done
1790
1791fi
1792fi
1793STRIP=$ac_cv_prog_STRIP
1794if test -n "$STRIP"; then
1795  echo "$as_me:$LINENO: result: $STRIP" >&5
1796echo "${ECHO_T}$STRIP" >&6
1797else
1798  echo "$as_me:$LINENO: result: no" >&5
1799echo "${ECHO_T}no" >&6
1800fi
1801
1802fi
1803if test -z "$ac_cv_prog_STRIP"; then
1804  ac_ct_STRIP=$STRIP
1805  # Extract the first word of "strip", so it can be a program name with args.
1806set dummy strip; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$ac_ct_STRIP"; then
1813  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_ac_ct_STRIP="strip"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1830fi
1831fi
1832ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1833if test -n "$ac_ct_STRIP"; then
1834  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1835echo "${ECHO_T}$ac_ct_STRIP" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841  STRIP=$ac_ct_STRIP
1842else
1843  STRIP="$ac_cv_prog_STRIP"
1844fi
1845
1846fi
1847INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1848
1849# We need awk for the "check" target.  The system "awk" is bad on
1850# some platforms.
1851
1852
1853
1854
1855
1856          ac_config_headers="$ac_config_headers config.h"
1857
1858
1859#########################
1860## Checks for programs ##
1861#########################
1862ac_ext=cc
1863ac_cpp='$CXXCPP $CPPFLAGS'
1864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1867if test -n "$ac_tool_prefix"; then
1868  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1869  do
1870    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1872echo "$as_me:$LINENO: checking for $ac_word" >&5
1873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874if test "${ac_cv_prog_CXX+set}" = set; then
1875  echo $ECHO_N "(cached) $ECHO_C" >&6
1876else
1877  if test -n "$CXX"; then
1878  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1879else
1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881for as_dir in $PATH
1882do
1883  IFS=$as_save_IFS
1884  test -z "$as_dir" && as_dir=.
1885  for ac_exec_ext in '' $ac_executable_extensions; do
1886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889    break 2
1890  fi
1891done
1892done
1893
1894fi
1895fi
1896CXX=$ac_cv_prog_CXX
1897if test -n "$CXX"; then
1898  echo "$as_me:$LINENO: result: $CXX" >&5
1899echo "${ECHO_T}$CXX" >&6
1900else
1901  echo "$as_me:$LINENO: result: no" >&5
1902echo "${ECHO_T}no" >&6
1903fi
1904
1905    test -n "$CXX" && break
1906  done
1907fi
1908if test -z "$CXX"; then
1909  ac_ct_CXX=$CXX
1910  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1911do
1912  # Extract the first word of "$ac_prog", so it can be a program name with args.
1913set dummy $ac_prog; ac_word=$2
1914echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1917  echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919  if test -n "$ac_ct_CXX"; then
1920  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1921else
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925  IFS=$as_save_IFS
1926  test -z "$as_dir" && as_dir=.
1927  for ac_exec_ext in '' $ac_executable_extensions; do
1928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929    ac_cv_prog_ac_ct_CXX="$ac_prog"
1930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931    break 2
1932  fi
1933done
1934done
1935
1936fi
1937fi
1938ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1939if test -n "$ac_ct_CXX"; then
1940  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1941echo "${ECHO_T}$ac_ct_CXX" >&6
1942else
1943  echo "$as_me:$LINENO: result: no" >&5
1944echo "${ECHO_T}no" >&6
1945fi
1946
1947  test -n "$ac_ct_CXX" && break
1948done
1949test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1950
1951  CXX=$ac_ct_CXX
1952fi
1953
1954
1955# Provide some information about the compiler.
1956echo "$as_me:$LINENO:" \
1957     "checking for C++ compiler version" >&5
1958ac_compiler=`set X $ac_compile; echo $2`
1959{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1960  (eval $ac_compiler --version </dev/null >&5) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }
1964{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1965  (eval $ac_compiler -v </dev/null >&5) 2>&5
1966  ac_status=$?
1967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968  (exit $ac_status); }
1969{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1970  (eval $ac_compiler -V </dev/null >&5) 2>&5
1971  ac_status=$?
1972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973  (exit $ac_status); }
1974
1975cat >conftest.$ac_ext <<_ACEOF
1976/* confdefs.h.  */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h.  */
1981
1982int
1983main ()
1984{
1985
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990ac_clean_files_save=$ac_clean_files
1991ac_clean_files="$ac_clean_files a.out a.exe b.out"
1992# Try to create an executable without -o first, disregard a.out.
1993# It will help us diagnose broken compilers, and finding out an intuition
1994# of exeext.
1995echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1996echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1997ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999  (eval $ac_link_default) 2>&5
2000  ac_status=$?
2001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002  (exit $ac_status); }; then
2003  # Find the output, starting from the most likely.  This scheme is
2004# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005# resort.
2006
2007# Be careful to initialize this variable, since it used to be cached.
2008# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2009ac_cv_exeext=
2010# b.out is created by i960 compilers.
2011for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2012do
2013  test -f "$ac_file" || continue
2014  case $ac_file in
2015    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2016        ;;
2017    conftest.$ac_ext )
2018        # This is the source file.
2019        ;;
2020    [ab].out )
2021        # We found the default executable, but exeext='' is most
2022        # certainly right.
2023        break;;
2024    *.* )
2025        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026        # FIXME: I believe we export ac_cv_exeext for Libtool,
2027        # but it would be cool to find out if it's true.  Does anybody
2028        # maintain Libtool? --akim.
2029        export ac_cv_exeext
2030        break;;
2031    * )
2032        break;;
2033  esac
2034done
2035else
2036  echo "$as_me: failed program was:" >&5
2037sed 's/^/| /' conftest.$ac_ext >&5
2038
2039{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2040See \`config.log' for more details." >&5
2041echo "$as_me: error: C++ compiler cannot create executables
2042See \`config.log' for more details." >&2;}
2043   { (exit 77); exit 77; }; }
2044fi
2045
2046ac_exeext=$ac_cv_exeext
2047echo "$as_me:$LINENO: result: $ac_file" >&5
2048echo "${ECHO_T}$ac_file" >&6
2049
2050# Check the compiler produces executables we can run.  If not, either
2051# the compiler is broken, or we cross compile.
2052echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2053echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2054# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055# If not cross compiling, check that we can run a simple program.
2056if test "$cross_compiling" != yes; then
2057  if { ac_try='./$ac_file'
2058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059  (eval $ac_try) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }; }; then
2063    cross_compiling=no
2064  else
2065    if test "$cross_compiling" = maybe; then
2066        cross_compiling=yes
2067    else
2068        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2069If you meant to cross compile, use \`--host'.
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: cannot run C++ compiled programs.
2072If you meant to cross compile, use \`--host'.
2073See \`config.log' for more details." >&2;}
2074   { (exit 1); exit 1; }; }
2075    fi
2076  fi
2077fi
2078echo "$as_me:$LINENO: result: yes" >&5
2079echo "${ECHO_T}yes" >&6
2080
2081rm -f a.out a.exe conftest$ac_cv_exeext b.out
2082ac_clean_files=$ac_clean_files_save
2083# Check the compiler produces executables we can run.  If not, either
2084# the compiler is broken, or we cross compile.
2085echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2086echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2087echo "$as_me:$LINENO: result: $cross_compiling" >&5
2088echo "${ECHO_T}$cross_compiling" >&6
2089
2090echo "$as_me:$LINENO: checking for suffix of executables" >&5
2091echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2093  (eval $ac_link) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }; then
2097  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2098# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2099# work properly (i.e., refer to `conftest.exe'), while it won't with
2100# `rm'.
2101for ac_file in conftest.exe conftest conftest.*; do
2102  test -f "$ac_file" || continue
2103  case $ac_file in
2104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2105    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106          export ac_cv_exeext
2107          break;;
2108    * ) break;;
2109  esac
2110done
2111else
2112  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2115See \`config.log' for more details." >&2;}
2116   { (exit 1); exit 1; }; }
2117fi
2118
2119rm -f conftest$ac_cv_exeext
2120echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2121echo "${ECHO_T}$ac_cv_exeext" >&6
2122
2123rm -f conftest.$ac_ext
2124EXEEXT=$ac_cv_exeext
2125ac_exeext=$EXEEXT
2126echo "$as_me:$LINENO: checking for suffix of object files" >&5
2127echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2128if test "${ac_cv_objext+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h.  */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h.  */
2137
2138int
2139main ()
2140{
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146rm -f conftest.o conftest.obj
2147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148  (eval $ac_compile) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }; then
2152  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2153  case $ac_file in
2154    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2155    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2156       break;;
2157  esac
2158done
2159else
2160  echo "$as_me: failed program was:" >&5
2161sed 's/^/| /' conftest.$ac_ext >&5
2162
2163{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2164See \`config.log' for more details." >&5
2165echo "$as_me: error: cannot compute suffix of object files: cannot compile
2166See \`config.log' for more details." >&2;}
2167   { (exit 1); exit 1; }; }
2168fi
2169
2170rm -f conftest.$ac_cv_objext conftest.$ac_ext
2171fi
2172echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2173echo "${ECHO_T}$ac_cv_objext" >&6
2174OBJEXT=$ac_cv_objext
2175ac_objext=$OBJEXT
2176echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2177echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2178if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  cat >conftest.$ac_ext <<_ACEOF
2182/* confdefs.h.  */
2183_ACEOF
2184cat confdefs.h >>conftest.$ac_ext
2185cat >>conftest.$ac_ext <<_ACEOF
2186/* end confdefs.h.  */
2187
2188int
2189main ()
2190{
2191#ifndef __GNUC__
2192       choke me
2193#endif
2194
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199rm -f conftest.$ac_objext
2200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201  (eval $ac_compile) 2>conftest.er1
2202  ac_status=$?
2203  grep -v '^ *+' conftest.er1 >conftest.err
2204  rm -f conftest.er1
2205  cat conftest.err >&5
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); } &&
2208         { ac_try='test -z "$ac_cxx_werror_flag"
2209                         || test ! -s conftest.err'
2210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211  (eval $ac_try) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; } &&
2215         { ac_try='test -s conftest.$ac_objext'
2216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217  (eval $ac_try) 2>&5
2218  ac_status=$?
2219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220  (exit $ac_status); }; }; then
2221  ac_compiler_gnu=yes
2222else
2223  echo "$as_me: failed program was:" >&5
2224sed 's/^/| /' conftest.$ac_ext >&5
2225
2226ac_compiler_gnu=no
2227fi
2228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2230
2231fi
2232echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2233echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2234GXX=`test $ac_compiler_gnu = yes && echo yes`
2235ac_test_CXXFLAGS=${CXXFLAGS+set}
2236ac_save_CXXFLAGS=$CXXFLAGS
2237CXXFLAGS="-g"
2238echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2239echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2240if test "${ac_cv_prog_cxx_g+set}" = set; then
2241  echo $ECHO_N "(cached) $ECHO_C" >&6
2242else
2243  cat >conftest.$ac_ext <<_ACEOF
2244/* confdefs.h.  */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h.  */
2249
2250int
2251main ()
2252{
2253
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258rm -f conftest.$ac_objext
2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260  (eval $ac_compile) 2>conftest.er1
2261  ac_status=$?
2262  grep -v '^ *+' conftest.er1 >conftest.err
2263  rm -f conftest.er1
2264  cat conftest.err >&5
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); } &&
2267         { ac_try='test -z "$ac_cxx_werror_flag"
2268                         || test ! -s conftest.err'
2269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270  (eval $ac_try) 2>&5
2271  ac_status=$?
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); }; } &&
2274         { ac_try='test -s conftest.$ac_objext'
2275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276  (eval $ac_try) 2>&5
2277  ac_status=$?
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); }; }; then
2280  ac_cv_prog_cxx_g=yes
2281else
2282  echo "$as_me: failed program was:" >&5
2283sed 's/^/| /' conftest.$ac_ext >&5
2284
2285ac_cv_prog_cxx_g=no
2286fi
2287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288fi
2289echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2290echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2291if test "$ac_test_CXXFLAGS" = set; then
2292  CXXFLAGS=$ac_save_CXXFLAGS
2293elif test $ac_cv_prog_cxx_g = yes; then
2294  if test "$GXX" = yes; then
2295    CXXFLAGS="-g -O2"
2296  else
2297    CXXFLAGS="-g"
2298  fi
2299else
2300  if test "$GXX" = yes; then
2301    CXXFLAGS="-O2"
2302  else
2303    CXXFLAGS=
2304  fi
2305fi
2306for ac_declaration in \
2307   '' \
2308   'extern "C" void std::exit (int) throw (); using std::exit;' \
2309   'extern "C" void std::exit (int); using std::exit;' \
2310   'extern "C" void exit (int) throw ();' \
2311   'extern "C" void exit (int);' \
2312   'void exit (int);'
2313do
2314  cat >conftest.$ac_ext <<_ACEOF
2315/* confdefs.h.  */
2316_ACEOF
2317cat confdefs.h >>conftest.$ac_ext
2318cat >>conftest.$ac_ext <<_ACEOF
2319/* end confdefs.h.  */
2320$ac_declaration
2321#include <stdlib.h>
2322int
2323main ()
2324{
2325exit (42);
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>conftest.er1
2333  ac_status=$?
2334  grep -v '^ *+' conftest.er1 >conftest.err
2335  rm -f conftest.er1
2336  cat conftest.err >&5
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); } &&
2339         { ac_try='test -z "$ac_cxx_werror_flag"
2340                         || test ! -s conftest.err'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; } &&
2346         { ac_try='test -s conftest.$ac_objext'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; }; then
2352  :
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357continue
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360  cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h.  */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h.  */
2366$ac_declaration
2367int
2368main ()
2369{
2370exit (42);
2371  ;
2372  return 0;
2373}
2374_ACEOF
2375rm -f conftest.$ac_objext
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377  (eval $ac_compile) 2>conftest.er1
2378  ac_status=$?
2379  grep -v '^ *+' conftest.er1 >conftest.err
2380  rm -f conftest.er1
2381  cat conftest.err >&5
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); } &&
2384         { ac_try='test -z "$ac_cxx_werror_flag"
2385                         || test ! -s conftest.err'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; } &&
2391         { ac_try='test -s conftest.$ac_objext'
2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393  (eval $ac_try) 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; }; then
2397  break
2398else
2399  echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402fi
2403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2404done
2405rm -f conftest*
2406if test -n "$ac_declaration"; then
2407  echo '#ifdef __cplusplus' >>confdefs.h
2408  echo $ac_declaration      >>confdefs.h
2409  echo '#endif'             >>confdefs.h
2410fi
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417DEPDIR="${am__leading_dot}deps"
2418
2419          ac_config_commands="$ac_config_commands depfiles"
2420
2421
2422am_make=${MAKE-make}
2423cat > confinc << 'END'
2424am__doit:
2425        @echo done
2426.PHONY: am__doit
2427END
2428# If we don't find an include directive, just comment out the code.
2429echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2430echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2431am__include="#"
2432am__quote=
2433_am_result=none
2434# First try GNU make style include.
2435echo "include confinc" > confmf
2436# We grep out `Entering directory' and `Leaving directory'
2437# messages which can occur if `w' ends up in MAKEFLAGS.
2438# In particular we don't look at `^make:' because GNU make might
2439# be invoked under some other name (usually "gmake"), in which
2440# case it prints its new name instead of `make'.
2441if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2442   am__include=include
2443   am__quote=
2444   _am_result=GNU
2445fi
2446# Now try BSD make style include.
2447if test "$am__include" = "#"; then
2448   echo '.include "confinc"' > confmf
2449   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2450      am__include=.include
2451      am__quote="\""
2452      _am_result=BSD
2453   fi
2454fi
2455
2456
2457echo "$as_me:$LINENO: result: $_am_result" >&5
2458echo "${ECHO_T}$_am_result" >&6
2459rm -f confinc confmf
2460
2461# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2462if test "${enable_dependency_tracking+set}" = set; then
2463  enableval="$enable_dependency_tracking"
2464
2465fi;
2466if test "x$enable_dependency_tracking" != xno; then
2467  am_depcomp="$ac_aux_dir/depcomp"
2468  AMDEPBACKSLASH='\'
2469fi
2470
2471
2472if test "x$enable_dependency_tracking" != xno; then
2473  AMDEP_TRUE=
2474  AMDEP_FALSE='#'
2475else
2476  AMDEP_TRUE='#'
2477  AMDEP_FALSE=
2478fi
2479
2480
2481
2482
2483depcc="$CXX"  am_compiler_list=
2484
2485echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2486echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2487if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2491  # We make a subdir and do the tests there.  Otherwise we can end up
2492  # making bogus files that we don't know about and never remove.  For
2493  # instance it was reported that on HP-UX the gcc test will end up
2494  # making a dummy file named `D' -- because `-MD' means `put the output
2495  # in D'.
2496  mkdir conftest.dir
2497  # Copy depcomp to subdir because otherwise we won't find it if we're
2498  # using a relative directory.
2499  cp "$am_depcomp" conftest.dir
2500  cd conftest.dir
2501  # We will build objects and dependencies in a subdirectory because
2502  # it helps to detect inapplicable dependency modes.  For instance
2503  # both Tru64's cc and ICC support -MD to output dependencies as a
2504  # side effect of compilation, but ICC will put the dependencies in
2505  # the current directory while Tru64 will put them in the object
2506  # directory.
2507  mkdir sub
2508
2509  am_cv_CXX_dependencies_compiler_type=none
2510  if test "$am_compiler_list" = ""; then
2511     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2512  fi
2513  for depmode in $am_compiler_list; do
2514    # Setup a source with many dependencies, because some compilers
2515    # like to wrap large dependency lists on column 80 (with \), and
2516    # we should not choose a depcomp mode which is confused by this.
2517    #
2518    # We need to recreate these files for each test, as the compiler may
2519    # overwrite some of them when testing with obscure command lines.
2520    # This happens at least with the AIX C compiler.
2521    : > sub/conftest.c
2522    for i in 1 2 3 4 5 6; do
2523      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2524      : > sub/conftst$i.h
2525    done
2526    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2527
2528    case $depmode in
2529    nosideeffect)
2530      # after this tag, mechanisms are not by side-effect, so they'll
2531      # only be used when explicitly requested
2532      if test "x$enable_dependency_tracking" = xyes; then
2533        continue
2534      else
2535        break
2536      fi
2537      ;;
2538    none) break ;;
2539    esac
2540    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2541    # mode.  It turns out that the SunPro C++ compiler does not properly
2542    # handle `-M -o', and we need to detect this.
2543    if depmode=$depmode \
2544       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2545       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2546       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2547         >/dev/null 2>conftest.err &&
2548       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2549       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2550       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2551      # icc doesn't choke on unknown options, it will just issue warnings
2552      # (even with -Werror).  So we grep stderr for any message
2553      # that says an option was ignored.
2554      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2555        am_cv_CXX_dependencies_compiler_type=$depmode
2556        break
2557      fi
2558    fi
2559  done
2560
2561  cd ..
2562  rm -rf conftest.dir
2563else
2564  am_cv_CXX_dependencies_compiler_type=none
2565fi
2566
2567fi
2568echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2569echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2570CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2571
2572
2573
2574if
2575  test "x$enable_dependency_tracking" != xno \
2576  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2577  am__fastdepCXX_TRUE=
2578  am__fastdepCXX_FALSE='#'
2579else
2580  am__fastdepCXX_TRUE='#'
2581  am__fastdepCXX_FALSE=
2582fi
2583
2584
2585ac_ext=c
2586ac_cpp='$CPP $CPPFLAGS'
2587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590if test -n "$ac_tool_prefix"; then
2591  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2592set dummy ${ac_tool_prefix}gcc; ac_word=$2
2593echo "$as_me:$LINENO: checking for $ac_word" >&5
2594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2595if test "${ac_cv_prog_CC+set}" = set; then
2596  echo $ECHO_N "(cached) $ECHO_C" >&6
2597else
2598  if test -n "$CC"; then
2599  ac_cv_prog_CC="$CC" # Let the user override the test.
2600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604  IFS=$as_save_IFS
2605  test -z "$as_dir" && as_dir=.
2606  for ac_exec_ext in '' $ac_executable_extensions; do
2607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610    break 2
2611  fi
2612done
2613done
2614
2615fi
2616fi
2617CC=$ac_cv_prog_CC
2618if test -n "$CC"; then
2619  echo "$as_me:$LINENO: result: $CC" >&5
2620echo "${ECHO_T}$CC" >&6
2621else
2622  echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6
2624fi
2625
2626fi
2627if test -z "$ac_cv_prog_CC"; then
2628  ac_ct_CC=$CC
2629  # Extract the first word of "gcc", so it can be a program name with args.
2630set dummy gcc; ac_word=$2
2631echo "$as_me:$LINENO: checking for $ac_word" >&5
2632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634  echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636  if test -n "$ac_ct_CC"; then
2637  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642  IFS=$as_save_IFS
2643  test -z "$as_dir" && as_dir=.
2644  for ac_exec_ext in '' $ac_executable_extensions; do
2645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646    ac_cv_prog_ac_ct_CC="gcc"
2647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648    break 2
2649  fi
2650done
2651done
2652
2653fi
2654fi
2655ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656if test -n "$ac_ct_CC"; then
2657  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2658echo "${ECHO_T}$ac_ct_CC" >&6
2659else
2660  echo "$as_me:$LINENO: result: no" >&5
2661echo "${ECHO_T}no" >&6
2662fi
2663
2664  CC=$ac_ct_CC
2665else
2666  CC="$ac_cv_prog_CC"
2667fi
2668
2669if test -z "$CC"; then
2670  if test -n "$ac_tool_prefix"; then
2671  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}cc; ac_word=$2
2673echo "$as_me:$LINENO: checking for $ac_word" >&5
2674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675if test "${ac_cv_prog_CC+set}" = set; then
2676  echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678  if test -n "$CC"; then
2679  ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686  for ac_exec_ext in '' $ac_executable_extensions; do
2687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688    ac_cv_prog_CC="${ac_tool_prefix}cc"
2689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693done
2694
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
2699  echo "$as_me:$LINENO: result: $CC" >&5
2700echo "${ECHO_T}$CC" >&6
2701else
2702  echo "$as_me:$LINENO: result: no" >&5
2703echo "${ECHO_T}no" >&6
2704fi
2705
2706fi
2707if test -z "$ac_cv_prog_CC"; then
2708  ac_ct_CC=$CC
2709  # Extract the first word of "cc", so it can be a program name with args.
2710set dummy cc; ac_word=$2
2711echo "$as_me:$LINENO: checking for $ac_word" >&5
2712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2714  echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716  if test -n "$ac_ct_CC"; then
2717  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724  for ac_exec_ext in '' $ac_executable_extensions; do
2725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726    ac_cv_prog_ac_ct_CC="cc"
2727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728    break 2
2729  fi
2730done
2731done
2732
2733fi
2734fi
2735ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736if test -n "$ac_ct_CC"; then
2737  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2738echo "${ECHO_T}$ac_ct_CC" >&6
2739else
2740  echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
2742fi
2743
2744  CC=$ac_ct_CC
2745else
2746  CC="$ac_cv_prog_CC"
2747fi
2748
2749fi
2750if test -z "$CC"; then
2751  # Extract the first word of "cc", so it can be a program name with args.
2752set dummy cc; ac_word=$2
2753echo "$as_me:$LINENO: checking for $ac_word" >&5
2754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755if test "${ac_cv_prog_CC+set}" = set; then
2756  echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758  if test -n "$CC"; then
2759  ac_cv_prog_CC="$CC" # Let the user override the test.
2760else
2761  ac_prog_rejected=no
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  test -z "$as_dir" && as_dir=.
2767  for ac_exec_ext in '' $ac_executable_extensions; do
2768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2770       ac_prog_rejected=yes
2771       continue
2772     fi
2773    ac_cv_prog_CC="cc"
2774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778done
2779
2780if test $ac_prog_rejected = yes; then
2781  # We found a bogon in the path, so make sure we never use it.
2782  set dummy $ac_cv_prog_CC
2783  shift
2784  if test $# != 0; then
2785    # We chose a different compiler from the bogus one.
2786    # However, it has the same basename, so the bogon will be chosen
2787    # first if we set CC to just the basename; use the full file name.
2788    shift
2789    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2790  fi
2791fi
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796  echo "$as_me:$LINENO: result: $CC" >&5
2797echo "${ECHO_T}$CC" >&6
2798else
2799  echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6
2801fi
2802
2803fi
2804if test -z "$CC"; then
2805  if test -n "$ac_tool_prefix"; then
2806  for ac_prog in cl
2807  do
2808    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810echo "$as_me:$LINENO: checking for $ac_word" >&5
2811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2812if test "${ac_cv_prog_CC+set}" = set; then
2813  echo $ECHO_N "(cached) $ECHO_C" >&6
2814else
2815  if test -n "$CC"; then
2816  ac_cv_prog_CC="$CC" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821  IFS=$as_save_IFS
2822  test -z "$as_dir" && as_dir=.
2823  for ac_exec_ext in '' $ac_executable_extensions; do
2824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827    break 2
2828  fi
2829done
2830done
2831
2832fi
2833fi
2834CC=$ac_cv_prog_CC
2835if test -n "$CC"; then
2836  echo "$as_me:$LINENO: result: $CC" >&5
2837echo "${ECHO_T}$CC" >&6
2838else
2839  echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
2841fi
2842
2843    test -n "$CC" && break
2844  done
2845fi
2846if test -z "$CC"; then
2847  ac_ct_CC=$CC
2848  for ac_prog in cl
2849do
2850  # Extract the first word of "$ac_prog", so it can be a program name with args.
2851set dummy $ac_prog; ac_word=$2
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855  echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857  if test -n "$ac_ct_CC"; then
2858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865  for ac_exec_ext in '' $ac_executable_extensions; do
2866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867    ac_cv_prog_ac_ct_CC="$ac_prog"
2868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872done
2873
2874fi
2875fi
2876ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877if test -n "$ac_ct_CC"; then
2878  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879echo "${ECHO_T}$ac_ct_CC" >&6
2880else
2881  echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885  test -n "$ac_ct_CC" && break
2886done
2887
2888  CC=$ac_ct_CC
2889fi
2890
2891fi
2892
2893
2894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2895See \`config.log' for more details." >&5
2896echo "$as_me: error: no acceptable C compiler found in \$PATH
2897See \`config.log' for more details." >&2;}
2898   { (exit 1); exit 1; }; }
2899
2900# Provide some information about the compiler.
2901echo "$as_me:$LINENO:" \
2902     "checking for C compiler version" >&5
2903ac_compiler=`set X $ac_compile; echo $2`
2904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2905  (eval $ac_compiler --version </dev/null >&5) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }
2909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2910  (eval $ac_compiler -v </dev/null >&5) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }
2914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2915  (eval $ac_compiler -V </dev/null >&5) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }
2919
2920echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2922if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923  echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925  cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h.  */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h.  */
2931
2932int
2933main ()
2934{
2935#ifndef __GNUC__
2936       choke me
2937#endif
2938
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945  (eval $ac_compile) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest.$ac_objext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965  ac_compiler_gnu=yes
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970ac_compiler_gnu=no
2971fi
2972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974
2975fi
2976echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2978GCC=`test $ac_compiler_gnu = yes && echo yes`
2979ac_test_CFLAGS=${CFLAGS+set}
2980ac_save_CFLAGS=$CFLAGS
2981CFLAGS="-g"
2982echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2983echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2984if test "${ac_cv_prog_cc_g+set}" = set; then
2985  echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987  cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993
2994int
2995main ()
2996{
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004  (eval $ac_compile) 2>conftest.er1
3005  ac_status=$?
3006  grep -v '^ *+' conftest.er1 >conftest.err
3007  rm -f conftest.er1
3008  cat conftest.err >&5
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); } &&
3011         { ac_try='test -z "$ac_c_werror_flag"
3012                         || test ! -s conftest.err'
3013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014  (eval $ac_try) 2>&5
3015  ac_status=$?
3016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017  (exit $ac_status); }; } &&
3018         { ac_try='test -s conftest.$ac_objext'
3019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020  (eval $ac_try) 2>&5
3021  ac_status=$?
3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023  (exit $ac_status); }; }; then
3024  ac_cv_prog_cc_g=yes
3025else
3026  echo "$as_me: failed program was:" >&5
3027sed 's/^/| /' conftest.$ac_ext >&5
3028
3029ac_cv_prog_cc_g=no
3030fi
3031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3032fi
3033echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3034echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3035if test "$ac_test_CFLAGS" = set; then
3036  CFLAGS=$ac_save_CFLAGS
3037elif test $ac_cv_prog_cc_g = yes; then
3038  if test "$GCC" = yes; then
3039    CFLAGS="-g -O2"
3040  else
3041    CFLAGS="-g"
3042  fi
3043else
3044  if test "$GCC" = yes; then
3045    CFLAGS="-O2"
3046  else
3047    CFLAGS=
3048  fi
3049fi
3050echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3051echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3052if test "${ac_cv_prog_cc_stdc+set}" = set; then
3053  echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055  ac_cv_prog_cc_stdc=no
3056ac_save_CC=$CC
3057cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063#include <stdarg.h>
3064#include <stdio.h>
3065#include <sys/types.h>
3066#include <sys/stat.h>
3067/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3068struct buf { int x; };
3069FILE * (*rcsopen) (struct buf *, struct stat *, int);
3070static char *e (p, i)
3071     char **p;
3072     int i;
3073{
3074  return p[i];
3075}
3076static char *f (char * (*g) (char **, int), char **p, ...)
3077{
3078  char *s;
3079  va_list v;
3080  va_start (v,p);
3081  s = g (p, va_arg (v,int));
3082  va_end (v);
3083  return s;
3084}
3085
3086/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3087   function prototypes and stuff, but not '\xHH' hex character constants.
3088   These don't provoke an error unfortunately, instead are silently treated
3089   as 'x'.  The following induces an error, until -std1 is added to get
3090   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3091   array size at least.  It's necessary to write '\x00'==0 to get something
3092   that's true only with -std1.  */
3093int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3094
3095int test (int i, double x);
3096struct s1 {int (*f) (int a);};
3097struct s2 {int (*f) (double a);};
3098int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3099int argc;
3100char **argv;
3101int
3102main ()
3103{
3104return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3105  ;
3106  return 0;
3107}
3108_ACEOF
3109# Don't try gcc -ansi; that turns off useful extensions and
3110# breaks some systems' header files.
3111# AIX                   -qlanglvl=ansi
3112# Ultrix and OSF/1      -std1
3113# HP-UX 10.20 and later -Ae
3114# HP-UX older versions  -Aa -D_HPUX_SOURCE
3115# SVR4                  -Xc -D__EXTENSIONS__
3116for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3117do
3118  CC="$ac_save_CC $ac_arg"
3119  rm -f conftest.$ac_objext
3120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121  (eval $ac_compile) 2>conftest.er1
3122  ac_status=$?
3123  grep -v '^ *+' conftest.er1 >conftest.err
3124  rm -f conftest.er1
3125  cat conftest.err >&5
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); } &&
3128         { ac_try='test -z "$ac_c_werror_flag"
3129                         || test ! -s conftest.err'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; } &&
3135         { ac_try='test -s conftest.$ac_objext'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; }; then
3141  ac_cv_prog_cc_stdc=$ac_arg
3142break
3143else
3144  echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147fi
3148rm -f conftest.err conftest.$ac_objext
3149done
3150rm -f conftest.$ac_ext conftest.$ac_objext
3151CC=$ac_save_CC
3152
3153fi
3154
3155case "x$ac_cv_prog_cc_stdc" in
3156  x|xno)
3157    echo "$as_me:$LINENO: result: none needed" >&5
3158echo "${ECHO_T}none needed" >&6 ;;
3159  *)
3160    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3161echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3162    CC="$CC $ac_cv_prog_cc_stdc" ;;
3163esac
3164
3165# Some people use a C++ compiler to compile C.  Since we use `exit',
3166# in C++ we need to declare it.  In case someone uses the same compiler
3167# for both compiling C and C++ we need to have the C++ compiler decide
3168# the declaration of exit, since it's the most demanding environment.
3169cat >conftest.$ac_ext <<_ACEOF
3170#ifndef __cplusplus
3171  choke me
3172#endif
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176  (eval $ac_compile) 2>conftest.er1
3177  ac_status=$?
3178  grep -v '^ *+' conftest.er1 >conftest.err
3179  rm -f conftest.er1
3180  cat conftest.err >&5
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); } &&
3183         { ac_try='test -z "$ac_c_werror_flag"
3184                         || test ! -s conftest.err'
3185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186  (eval $ac_try) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }; } &&
3190         { ac_try='test -s conftest.$ac_objext'
3191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192  (eval $ac_try) 2>&5
3193  ac_status=$?
3194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195  (exit $ac_status); }; }; then
3196  for ac_declaration in \
3197   '' \
3198   'extern "C" void std::exit (int) throw (); using std::exit;' \
3199   'extern "C" void std::exit (int); using std::exit;' \
3200   'extern "C" void exit (int) throw ();' \
3201   'extern "C" void exit (int);' \
3202   'void exit (int);'
3203do
3204  cat >conftest.$ac_ext <<_ACEOF
3205/* confdefs.h.  */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
3209/* end confdefs.h.  */
3210$ac_declaration
3211#include <stdlib.h>
3212int
3213main ()
3214{
3215exit (42);
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220rm -f conftest.$ac_objext
3221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222  (eval $ac_compile) 2>conftest.er1
3223  ac_status=$?
3224  grep -v '^ *+' conftest.er1 >conftest.err
3225  rm -f conftest.er1
3226  cat conftest.err >&5
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); } &&
3229         { ac_try='test -z "$ac_c_werror_flag"
3230                         || test ! -s conftest.err'
3231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232  (eval $ac_try) 2>&5
3233  ac_status=$?
3234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); }; } &&
3236         { ac_try='test -s conftest.$ac_objext'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; }; then
3242  :
3243else
3244  echo "$as_me: failed program was:" >&5
3245sed 's/^/| /' conftest.$ac_ext >&5
3246
3247continue
3248fi
3249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3250  cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h.  */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h.  */
3256$ac_declaration
3257int
3258main ()
3259{
3260exit (42);
3261  ;
3262  return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267  (eval $ac_compile) 2>conftest.er1
3268  ac_status=$?
3269  grep -v '^ *+' conftest.er1 >conftest.err
3270  rm -f conftest.er1
3271  cat conftest.err >&5
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); } &&
3274         { ac_try='test -z "$ac_c_werror_flag"
3275                         || test ! -s conftest.err'
3276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277  (eval $ac_try) 2>&5
3278  ac_status=$?
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }; } &&
3281         { ac_try='test -s conftest.$ac_objext'
3282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283  (eval $ac_try) 2>&5
3284  ac_status=$?
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); }; }; then
3287  break
3288else
3289  echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292fi
3293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3294done
3295rm -f conftest*
3296if test -n "$ac_declaration"; then
3297  echo '#ifdef __cplusplus' >>confdefs.h
3298  echo $ac_declaration      >>confdefs.h
3299  echo '#endif'             >>confdefs.h
3300fi
3301
3302else
3303  echo "$as_me: failed program was:" >&5
3304sed 's/^/| /' conftest.$ac_ext >&5
3305
3306fi
3307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308ac_ext=c
3309ac_cpp='$CPP $CPPFLAGS'
3310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313
3314depcc="$CC"   am_compiler_list=
3315
3316echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3317echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3318if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3322  # We make a subdir and do the tests there.  Otherwise we can end up
3323  # making bogus files that we don't know about and never remove.  For
3324  # instance it was reported that on HP-UX the gcc test will end up
3325  # making a dummy file named `D' -- because `-MD' means `put the output
3326  # in D'.
3327  mkdir conftest.dir
3328  # Copy depcomp to subdir because otherwise we won't find it if we're
3329  # using a relative directory.
3330  cp "$am_depcomp" conftest.dir
3331  cd conftest.dir
3332  # We will build objects and dependencies in a subdirectory because
3333  # it helps to detect inapplicable dependency modes.  For instance
3334  # both Tru64's cc and ICC support -MD to output dependencies as a
3335  # side effect of compilation, but ICC will put the dependencies in
3336  # the current directory while Tru64 will put them in the object
3337  # directory.
3338  mkdir sub
3339
3340  am_cv_CC_dependencies_compiler_type=none
3341  if test "$am_compiler_list" = ""; then
3342     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3343  fi
3344  for depmode in $am_compiler_list; do
3345    # Setup a source with many dependencies, because some compilers
3346    # like to wrap large dependency lists on column 80 (with \), and
3347    # we should not choose a depcomp mode which is confused by this.
3348    #
3349    # We need to recreate these files for each test, as the compiler may
3350    # overwrite some of them when testing with obscure command lines.
3351    # This happens at least with the AIX C compiler.
3352    : > sub/conftest.c
3353    for i in 1 2 3 4 5 6; do
3354      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3355      : > sub/conftst$i.h
3356    done
3357    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3358
3359    case $depmode in
3360    nosideeffect)
3361      # after this tag, mechanisms are not by side-effect, so they'll
3362      # only be used when explicitly requested
3363      if test "x$enable_dependency_tracking" = xyes; then
3364        continue
3365      else
3366        break
3367      fi
3368      ;;
3369    none) break ;;
3370    esac
3371    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372    # mode.  It turns out that the SunPro C++ compiler does not properly
3373    # handle `-M -o', and we need to detect this.
3374    if depmode=$depmode \
3375       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378         >/dev/null 2>conftest.err &&
3379       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382      # icc doesn't choke on unknown options, it will just issue warnings
3383      # (even with -Werror).  So we grep stderr for any message
3384      # that says an option was ignored.
3385      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3386        am_cv_CC_dependencies_compiler_type=$depmode
3387        break
3388      fi
3389    fi
3390  done
3391
3392  cd ..
3393  rm -rf conftest.dir
3394else
3395  am_cv_CC_dependencies_compiler_type=none
3396fi
3397
3398fi
3399echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3400echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3401CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3402
3403
3404
3405if
3406  test "x$enable_dependency_tracking" != xno \
3407  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3408  am__fastdepCC_TRUE=
3409  am__fastdepCC_FALSE='#'
3410else
3411  am__fastdepCC_TRUE='#'
3412  am__fastdepCC_FALSE=
3413fi
3414
3415
3416
3417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3424# On Suns, sometimes $CPP names a directory.
3425if test -n "$CPP" && test -d "$CPP"; then
3426  CPP=
3427fi
3428if test -z "$CPP"; then
3429  if test "${ac_cv_prog_CPP+set}" = set; then
3430  echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432      # Double quotes because CPP needs to be expanded
3433    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434    do
3435      ac_preproc_ok=false
3436for ac_c_preproc_warn_flag in '' yes
3437do
3438  # Use a header file that comes with gcc, so configuring glibc
3439  # with a fresh cross-compiler works.
3440  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441  # <limits.h> exists even on freestanding compilers.
3442  # On the NeXT, cc -E runs the code through the compiler's parser,
3443  # not just through cpp. "Syntax error" is here to catch this case.
3444  cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h.  */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h.  */
3450#ifdef __STDC__
3451# include <limits.h>
3452#else
3453# include <assert.h>
3454#endif
3455                     Syntax error
3456_ACEOF
3457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3459  ac_status=$?
3460  grep -v '^ *+' conftest.er1 >conftest.err
3461  rm -f conftest.er1
3462  cat conftest.err >&5
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); } >/dev/null; then
3465  if test -s conftest.err; then
3466    ac_cpp_err=$ac_c_preproc_warn_flag
3467    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468  else
3469    ac_cpp_err=
3470  fi
3471else
3472  ac_cpp_err=yes
3473fi
3474if test -z "$ac_cpp_err"; then
3475  :
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480  # Broken: fails on valid input.
3481continue
3482fi
3483rm -f conftest.err conftest.$ac_ext
3484
3485  # OK, works on sane cases.  Now check whether non-existent headers
3486  # can be detected and how.
3487  cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h.  */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h.  */
3493#include <ac_nonexistent.h>
3494_ACEOF
3495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3496  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } >/dev/null; then
3503  if test -s conftest.err; then
3504    ac_cpp_err=$ac_c_preproc_warn_flag
3505    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3506  else
3507    ac_cpp_err=
3508  fi
3509else
3510  ac_cpp_err=yes
3511fi
3512if test -z "$ac_cpp_err"; then
3513  # Broken: success on invalid input.
3514continue
3515else
3516  echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519  # Passes both tests.
3520ac_preproc_ok=:
3521break
3522fi
3523rm -f conftest.err conftest.$ac_ext
3524
3525done
3526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3527rm -f conftest.err conftest.$ac_ext
3528if $ac_preproc_ok; then
3529  break
3530fi
3531
3532    done
3533    ac_cv_prog_CPP=$CPP
3534
3535fi
3536  CPP=$ac_cv_prog_CPP
3537else
3538  ac_cv_prog_CPP=$CPP
3539fi
3540echo "$as_me:$LINENO: result: $CPP" >&5
3541echo "${ECHO_T}$CPP" >&6
3542ac_preproc_ok=false
3543for ac_c_preproc_warn_flag in '' yes
3544do
3545  # Use a header file that comes with gcc, so configuring glibc
3546  # with a fresh cross-compiler works.
3547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548  # <limits.h> exists even on freestanding compilers.
3549  # On the NeXT, cc -E runs the code through the compiler's parser,
3550  # not just through cpp. "Syntax error" is here to catch this case.
3551  cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h.  */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h.  */
3557#ifdef __STDC__
3558# include <limits.h>
3559#else
3560# include <assert.h>
3561#endif
3562                     Syntax error
3563_ACEOF
3564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3565  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3566  ac_status=$?
3567  grep -v '^ *+' conftest.er1 >conftest.err
3568  rm -f conftest.er1
3569  cat conftest.err >&5
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); } >/dev/null; then
3572  if test -s conftest.err; then
3573    ac_cpp_err=$ac_c_preproc_warn_flag
3574    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575  else
3576    ac_cpp_err=
3577  fi
3578else
3579  ac_cpp_err=yes
3580fi
3581if test -z "$ac_cpp_err"; then
3582  :
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587  # Broken: fails on valid input.
3588continue
3589fi
3590rm -f conftest.err conftest.$ac_ext
3591
3592  # OK, works on sane cases.  Now check whether non-existent headers
3593  # can be detected and how.
3594  cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h.  */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h.  */
3600#include <ac_nonexistent.h>
3601_ACEOF
3602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } >/dev/null; then
3610  if test -s conftest.err; then
3611    ac_cpp_err=$ac_c_preproc_warn_flag
3612    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613  else
3614    ac_cpp_err=
3615  fi
3616else
3617  ac_cpp_err=yes
3618fi
3619if test -z "$ac_cpp_err"; then
3620  # Broken: success on invalid input.
3621continue
3622else
3623  echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626  # Passes both tests.
3627ac_preproc_ok=:
3628break
3629fi
3630rm -f conftest.err conftest.$ac_ext
3631
3632done
3633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634rm -f conftest.err conftest.$ac_ext
3635if $ac_preproc_ok; then
3636  :
3637else
3638  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639See \`config.log' for more details." >&5
3640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641See \`config.log' for more details." >&2;}
3642   { (exit 1); exit 1; }; }
3643fi
3644
3645ac_ext=c
3646ac_cpp='$CPP $CPPFLAGS'
3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652echo "$as_me:$LINENO: checking for egrep" >&5
3653echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3654if test "${ac_cv_prog_egrep+set}" = set; then
3655  echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3658    then ac_cv_prog_egrep='grep -E'
3659    else ac_cv_prog_egrep='egrep'
3660    fi
3661fi
3662echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3663echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3664 EGREP=$ac_cv_prog_egrep
3665
3666
3667echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3668echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3669if test "${ac_cv_header_stdc+set}" = set; then
3670  echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672  cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678#include <stdlib.h>
3679#include <stdarg.h>
3680#include <string.h>
3681#include <float.h>
3682
3683int
3684main ()
3685{
3686
3687  ;
3688  return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext
3692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3693  (eval $ac_compile) 2>conftest.er1
3694  ac_status=$?
3695  grep -v '^ *+' conftest.er1 >conftest.err
3696  rm -f conftest.er1
3697  cat conftest.err >&5
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); } &&
3700         { ac_try='test -z "$ac_c_werror_flag"
3701                         || test ! -s conftest.err'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; } &&
3707         { ac_try='test -s conftest.$ac_objext'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; }; then
3713  ac_cv_header_stdc=yes
3714else
3715  echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718ac_cv_header_stdc=no
3719fi
3720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721
3722if test $ac_cv_header_stdc = yes; then
3723  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730#include <string.h>
3731
3732_ACEOF
3733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734  $EGREP "memchr" >/dev/null 2>&1; then
3735  :
3736else
3737  ac_cv_header_stdc=no
3738fi
3739rm -f conftest*
3740
3741fi
3742
3743if test $ac_cv_header_stdc = yes; then
3744  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3745  cat >conftest.$ac_ext <<_ACEOF
3746/* confdefs.h.  */
3747_ACEOF
3748cat confdefs.h >>conftest.$ac_ext
3749cat >>conftest.$ac_ext <<_ACEOF
3750/* end confdefs.h.  */
3751#include <stdlib.h>
3752
3753_ACEOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755  $EGREP "free" >/dev/null 2>&1; then
3756  :
3757else
3758  ac_cv_header_stdc=no
3759fi
3760rm -f conftest*
3761
3762fi
3763
3764if test $ac_cv_header_stdc = yes; then
3765  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3766  if test "$cross_compiling" = yes; then
3767  :
3768else
3769  cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775#include <ctype.h>
3776#if ((' ' & 0x0FF) == 0x020)
3777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3779#else
3780# define ISLOWER(c) \
3781                   (('a' <= (c) && (c) <= 'i') \
3782                     || ('j' <= (c) && (c) <= 'r') \
3783                     || ('s' <= (c) && (c) <= 'z'))
3784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3785#endif
3786
3787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3788int
3789main ()
3790{
3791  int i;
3792  for (i = 0; i < 256; i++)
3793    if (XOR (islower (i), ISLOWER (i))
3794        || toupper (i) != TOUPPER (i))
3795      exit(2);
3796  exit (0);
3797}
3798_ACEOF
3799rm -f conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801  (eval $ac_link) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  :
3811else
3812  echo "$as_me: program exited with status $ac_status" >&5
3813echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816( exit $ac_status )
3817ac_cv_header_stdc=no
3818fi
3819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3820fi
3821fi
3822fi
3823echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3824echo "${ECHO_T}$ac_cv_header_stdc" >&6
3825if test $ac_cv_header_stdc = yes; then
3826
3827cat >>confdefs.h <<\_ACEOF
3828#define STDC_HEADERS 1
3829_ACEOF
3830
3831fi
3832
3833
3834##################################
3835## CHECKING  OPTIONAL ARGUMENTS ##
3836##################################
3837
3838#-----------------#
3839# DEBUG-statement #
3840#-----------------#
3841DEBUG=no
3842echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3843echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3844# Check whether --enable-debug or --disable-debug was given.
3845if test "${enable_debug+set}" = set; then
3846  enableval="$enable_debug"
3847  DEBUG=$enableval
3848fi;
3849
3850if test x$DEBUG = xno; then
3851        echo "no"
3852        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3853        DEBUG=4
3854elif test x$DEBUG = xyes; then
3855        echo "yes"
3856        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3857        DEBUG=4
3858else
3859        echo "yes: setting debuglevel to to $DEBUG"
3860fi
3861
3862cat >>confdefs.h <<_ACEOF
3863#define DEBUG $DEBUG
3864_ACEOF
3865
3866
3867
3868
3869#---------------#
3870# Modular Debug #
3871#---------------#
3872MODULAR_DEBUG=yes
3873echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3874echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3875# Check whether --enable-modular-debug or --disable-modular-debug was given.
3876if test "${enable_modular_debug+set}" = set; then
3877  enableval="$enable_modular_debug"
3878  MODULAR_DEBUG=$enableval
3879fi;
3880
3881if test x$MODULAR_DEBUG = xno; then
3882        echo "no"
3883elif test x$MODULAR_DEBUG = xyes; then
3884        echo "yes"
3885
3886cat >>confdefs.h <<_ACEOF
3887#define MODULAR_DEBUG 1
3888_ACEOF
3889
3890fi
3891
3892#--------------#
3893# GTK-disabled #
3894#--------------#
3895echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3896echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3897
3898# Check whether --with-gtk or --without-gtk was given.
3899if test "${with_gtk+set}" = set; then
3900  withval="$with_gtk"
3901  def_gtk=no
3902else
3903  def_gtk=yes
3904fi;
3905if test x$def_gtk = xyes; then
3906  echo "yes"
3907fi
3908if test x$def_gtk = xno; then
3909  echo "no"
3910fi
3911
3912#------------------#
3913# gThread-disabled #
3914#------------------#
3915echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
3916echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
3917
3918# Check whether --with-gthread or --without-gthread was given.
3919if test "${with_gthread+set}" = set; then
3920  withval="$with_gthread"
3921  def_gthread=no
3922else
3923  def_gthread=yes
3924fi;
3925if test x$def_gthread = xyes; then
3926  echo "yes"
3927fi
3928if test x$def_gthread = xno; then
3929  echo "no"
3930fi
3931
3932#------------------#
3933# pthread-disabled #
3934#------------------#
3935echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
3936echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
3937
3938# Check whether --with-pthread or --without-pthread was given.
3939if test "${with_pthread+set}" = set; then
3940  withval="$with_pthread"
3941  def_pthread=no
3942else
3943  def_pthread=yes
3944fi;
3945if test x$def_pthread = xyes; then
3946  echo "yes"
3947fi
3948if test x$def_pthread = xno; then
3949  echo "no"
3950fi
3951
3952#------------------#
3953# libCurl-disabled #
3954#------------------#
3955echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3956echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3957
3958# Check whether --with-curl or --without-curl was given.
3959if test "${with_curl+set}" = set; then
3960  withval="$with_curl"
3961  def_curl=no
3962else
3963  def_curl=yes
3964fi;
3965if test x$def_curl = xyes; then
3966  echo "yes"
3967fi
3968if test x$def_curl = xno; then
3969  echo "no"
3970fi
3971
3972#-------------------#
3973# SDL_image-disable #
3974#-------------------#
3975def_sdl_image=yes
3976echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
3977echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
3978
3979# Check whether --with-sdl_image or --without-sdl_image was given.
3980if test "${with_sdl_image+set}" = set; then
3981  withval="$with_sdl_image"
3982  def_sdl_image=no
3983fi;
3984if test x$def_sdl_image = xyes; then
3985  echo "yes"
3986fi
3987if test x$def_sdl_image = xno; then
3988  echo "no"
3989fi
3990
3991#-------------------#
3992# SubProject-enable #
3993#-------------------#
3994def_sub_projects=no
3995echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
3996echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
3997# Check whether --enable-sub-projects or --disable-sub-projects was given.
3998if test "${enable_sub_projects+set}" = set; then
3999  enableval="$enable_sub_projects"
4000  def_sub_projects=yes
4001fi;
4002if test x$def_sub_projects = xyes; then
4003  echo "yes"
4004fi
4005if test x$def_sub_projects = xno; then
4006  echo "no"
4007fi
4008
4009
4010if test x$def_sub_projects = xyes; then
4011  SUB_PROJECTS_TRUE=
4012  SUB_PROJECTS_FALSE='#'
4013else
4014  SUB_PROJECTS_TRUE='#'
4015  SUB_PROJECTS_FALSE=
4016fi
4017
4018
4019#----------------------#
4020# Documentation-enable #
4021#----------------------#
4022def_documentation=no
4023echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4024echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4025# Check whether --enable-documentation or --disable-documentation was given.
4026if test "${enable_documentation+set}" = set; then
4027  enableval="$enable_documentation"
4028  def_documentation=yes
4029fi;
4030if test x$def_documentation = xyes; then
4031  echo "yes"
4032fi
4033if test x$def_documentation = xno; then
4034  echo "no"
4035fi
4036
4037
4038if test x$def_documentation = xyes; then
4039  DOCUMENTATION_TRUE=
4040  DOCUMENTATION_FALSE='#'
4041else
4042  DOCUMENTATION_TRUE='#'
4043  DOCUMENTATION_FALSE=
4044fi
4045
4046#######################
4047## PROGRAMM CHECKING ##
4048## 3. party Programs ##
4049#######################
4050
4051#----------------------#
4052# checking for Doxygen #
4053#----------------------#
4054# Extract the first word of "doxygen", so it can be a program name with args.
4055set dummy doxygen; ac_word=$2
4056echo "$as_me:$LINENO: checking for $ac_word" >&5
4057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058if test "${ac_cv_path_DOXYGEN+set}" = set; then
4059  echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061  case $DOXYGEN in
4062  [\\/]* | ?:[\\/]*)
4063  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4064  ;;
4065  *)
4066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071  for ac_exec_ext in '' $ac_executable_extensions; do
4072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075    break 2
4076  fi
4077done
4078done
4079
4080  ;;
4081esac
4082fi
4083DOXYGEN=$ac_cv_path_DOXYGEN
4084
4085if test -n "$DOXYGEN"; then
4086  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4087echo "${ECHO_T}$DOXYGEN" >&6
4088else
4089  echo "$as_me:$LINENO: result: no" >&5
4090echo "${ECHO_T}no" >&6
4091fi
4092
4093
4094
4095if test $DOXYGEN; then
4096  DOXYGEN_TRUE=
4097  DOXYGEN_FALSE='#'
4098else
4099  DOXYGEN_TRUE='#'
4100  DOXYGEN_FALSE=
4101fi
4102
4103
4104#########################
4105## CHECKING FOR SYSTEM ##
4106#########################
4107## here the system is checked, and openGL is included
4108## also checking for SDL on differen Systems
4109
4110echo "$as_me:$LINENO: checking for System" >&5
4111echo $ECHO_N "checking for System... $ECHO_C" >&6
4112## checking for openGL-environment and other sys-specific parameters
4113case "$target" in
4114#---------#
4115# WINDOWS #
4116#---------#
4117  *-*-mingw32*)
4118echo "mingw-WINDOWS detected"
4119
4120    mingw="yes"
4121    MSBITFIELDS="-mms-bitfields"
4122    MWINDOWS="-mwindows"
4123
4124# checking gl header
4125        #done before loop
4126
4127# checking gl header
4128   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4139                  inttypes.h stdint.h unistd.h
4140do
4141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4142echo "$as_me:$LINENO: checking for $ac_header" >&5
4143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4144if eval "test \"\${$as_ac_Header+set}\" = set"; then
4145  echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147  cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h.  */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h.  */
4153$ac_includes_default
4154
4155#include <$ac_header>
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159  (eval $ac_compile) 2>conftest.er1
4160  ac_status=$?
4161  grep -v '^ *+' conftest.er1 >conftest.err
4162  rm -f conftest.er1
4163  cat conftest.err >&5
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); } &&
4166         { ac_try='test -z "$ac_c_werror_flag"
4167                         || test ! -s conftest.err'
4168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169  (eval $ac_try) 2>&5
4170  ac_status=$?
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); }; } &&
4173         { ac_try='test -s conftest.$ac_objext'
4174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175  (eval $ac_try) 2>&5
4176  ac_status=$?
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); }; }; then
4179  eval "$as_ac_Header=yes"
4180else
4181  echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184eval "$as_ac_Header=no"
4185fi
4186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4187fi
4188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4190if test `eval echo '${'$as_ac_Header'}'` = yes; then
4191  cat >>confdefs.h <<_ACEOF
4192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4193_ACEOF
4194
4195fi
4196
4197done
4198
4199
4200
4201for ac_header in GL/gl.h
4202do
4203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204if eval "test \"\${$as_ac_Header+set}\" = set"; then
4205  echo "$as_me:$LINENO: checking for $ac_header" >&5
4206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4207if eval "test \"\${$as_ac_Header+set}\" = set"; then
4208  echo $ECHO_N "(cached) $ECHO_C" >&6
4209fi
4210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4212else
4213  # Is the header compilable?
4214echo "$as_me:$LINENO: checking $ac_header usability" >&5
4215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4216cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h.  */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h.  */
4222$ac_includes_default
4223#include <$ac_header>
4224_ACEOF
4225rm -f conftest.$ac_objext
4226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227  (eval $ac_compile) 2>conftest.er1
4228  ac_status=$?
4229  grep -v '^ *+' conftest.er1 >conftest.err
4230  rm -f conftest.er1
4231  cat conftest.err >&5
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); } &&
4234         { ac_try='test -z "$ac_c_werror_flag"
4235                         || test ! -s conftest.err'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; } &&
4241         { ac_try='test -s conftest.$ac_objext'
4242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243  (eval $ac_try) 2>&5
4244  ac_status=$?
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); }; }; then
4247  ac_header_compiler=yes
4248else
4249  echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252ac_header_compiler=no
4253fi
4254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4256echo "${ECHO_T}$ac_header_compiler" >&6
4257
4258# Is the header present?
4259echo "$as_me:$LINENO: checking $ac_header presence" >&5
4260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4261cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h.  */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h.  */
4267#include <$ac_header>
4268_ACEOF
4269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4271  ac_status=$?
4272  grep -v '^ *+' conftest.er1 >conftest.err
4273  rm -f conftest.er1
4274  cat conftest.err >&5
4275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276  (exit $ac_status); } >/dev/null; then
4277  if test -s conftest.err; then
4278    ac_cpp_err=$ac_c_preproc_warn_flag
4279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4280  else
4281    ac_cpp_err=
4282  fi
4283else
4284  ac_cpp_err=yes
4285fi
4286if test -z "$ac_cpp_err"; then
4287  ac_header_preproc=yes
4288else
4289  echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292  ac_header_preproc=no
4293fi
4294rm -f conftest.err conftest.$ac_ext
4295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4296echo "${ECHO_T}$ac_header_preproc" >&6
4297
4298# So?  What about this header?
4299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4300  yes:no: )
4301    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4305    ac_header_preproc=yes
4306    ;;
4307  no:yes:* )
4308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4310    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4311echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4312    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4314    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4315echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4318    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4320    (
4321      cat <<\_ASBOX
4322## ---------------------------------------------- ##
4323## Report this to orxonox-dev at mail.datacore.ch ##
4324## ---------------------------------------------- ##
4325_ASBOX
4326    ) |
4327      sed "s/^/$as_me: WARNING:     /" >&2
4328    ;;
4329esac
4330echo "$as_me:$LINENO: checking for $ac_header" >&5
4331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333  echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335  eval "$as_ac_Header=\$ac_header_preproc"
4336fi
4337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4339
4340fi
4341if test `eval echo '${'$as_ac_Header'}'` = yes; then
4342  cat >>confdefs.h <<_ACEOF
4343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4344_ACEOF
4345
4346else
4347  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4348echo "$as_me: error: cannot find opengl headers" >&2;}
4349   { (exit 1); exit 1; }; }
4350fi
4351
4352done
4353
4354#   checking for Windows openGl library
4355    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4356echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4357if test "${ac_cv_lib_opengl32_main+set}" = set; then
4358  echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360  ac_check_lib_save_LIBS=$LIBS
4361LIBS="-lopengl32  $LIBS"
4362cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h.  */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h.  */
4368
4369
4370int
4371main ()
4372{
4373main ();
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext conftest$ac_exeext
4379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380  (eval $ac_link) 2>conftest.er1
4381  ac_status=$?
4382  grep -v '^ *+' conftest.er1 >conftest.err
4383  rm -f conftest.er1
4384  cat conftest.err >&5
4385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386  (exit $ac_status); } &&
4387         { ac_try='test -z "$ac_c_werror_flag"
4388                         || test ! -s conftest.err'
4389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390  (eval $ac_try) 2>&5
4391  ac_status=$?
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); }; } &&
4394         { ac_try='test -s conftest$ac_exeext'
4395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396  (eval $ac_try) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; }; then
4400  ac_cv_lib_opengl32_main=yes
4401else
4402  echo "$as_me: failed program was:" >&5
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
4405ac_cv_lib_opengl32_main=no
4406fi
4407rm -f conftest.err conftest.$ac_objext \
4408      conftest$ac_exeext conftest.$ac_ext
4409LIBS=$ac_check_lib_save_LIBS
4410fi
4411echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4412echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4413if test $ac_cv_lib_opengl32_main = yes; then
4414  FOUND_opengl32=yes
4415else
4416  "gl/gl.h"
4417fi
4418
4419    if test x$FOUND_opengl32 = xyes ; then
4420        LIBS="$LIBS -lopengl32"
4421    else
4422         echo "------------------"
4423         echo "opengl not found."
4424         echo "please install the opengl package which can be found at http://www.opengl.org"
4425         echo "------------------"
4426         exit -1
4427    fi
4428
4429# cheking for GLU-header
4430
4431for ac_header in GL/glu.h
4432do
4433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434if eval "test \"\${$as_ac_Header+set}\" = set"; then
4435  echo "$as_me:$LINENO: checking for $ac_header" >&5
4436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438  echo $ECHO_N "(cached) $ECHO_C" >&6
4439fi
4440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4442else
4443  # Is the header compilable?
4444echo "$as_me:$LINENO: checking $ac_header usability" >&5
4445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4446cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h.  */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h.  */
4452$ac_includes_default
4453#include <$ac_header>
4454_ACEOF
4455rm -f conftest.$ac_objext
4456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457  (eval $ac_compile) 2>conftest.er1
4458  ac_status=$?
4459  grep -v '^ *+' conftest.er1 >conftest.err
4460  rm -f conftest.er1
4461  cat conftest.err >&5
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } &&
4464         { ac_try='test -z "$ac_c_werror_flag"
4465                         || test ! -s conftest.err'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; } &&
4471         { ac_try='test -s conftest.$ac_objext'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; }; then
4477  ac_header_compiler=yes
4478else
4479  echo "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482ac_header_compiler=no
4483fi
4484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4486echo "${ECHO_T}$ac_header_compiler" >&6
4487
4488# Is the header present?
4489echo "$as_me:$LINENO: checking $ac_header presence" >&5
4490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4491cat >conftest.$ac_ext <<_ACEOF
4492/* confdefs.h.  */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4496/* end confdefs.h.  */
4497#include <$ac_header>
4498_ACEOF
4499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4501  ac_status=$?
4502  grep -v '^ *+' conftest.er1 >conftest.err
4503  rm -f conftest.er1
4504  cat conftest.err >&5
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); } >/dev/null; then
4507  if test -s conftest.err; then
4508    ac_cpp_err=$ac_c_preproc_warn_flag
4509    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4510  else
4511    ac_cpp_err=
4512  fi
4513else
4514  ac_cpp_err=yes
4515fi
4516if test -z "$ac_cpp_err"; then
4517  ac_header_preproc=yes
4518else
4519  echo "$as_me: failed program was:" >&5
4520sed 's/^/| /' conftest.$ac_ext >&5
4521
4522  ac_header_preproc=no
4523fi
4524rm -f conftest.err conftest.$ac_ext
4525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4526echo "${ECHO_T}$ac_header_preproc" >&6
4527
4528# So?  What about this header?
4529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4530  yes:no: )
4531    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4535    ac_header_preproc=yes
4536    ;;
4537  no:yes:* )
4538    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4540    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4541echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4542    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4544    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4545echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4546    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4548    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4550    (
4551      cat <<\_ASBOX
4552## ---------------------------------------------- ##
4553## Report this to orxonox-dev at mail.datacore.ch ##
4554## ---------------------------------------------- ##
4555_ASBOX
4556    ) |
4557      sed "s/^/$as_me: WARNING:     /" >&2
4558    ;;
4559esac
4560echo "$as_me:$LINENO: checking for $ac_header" >&5
4561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4562if eval "test \"\${$as_ac_Header+set}\" = set"; then
4563  echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565  eval "$as_ac_Header=\$ac_header_preproc"
4566fi
4567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4569
4570fi
4571if test `eval echo '${'$as_ac_Header'}'` = yes; then
4572  cat >>confdefs.h <<_ACEOF
4573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574_ACEOF
4575
4576else
4577  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4578echo "$as_me: error: cannot find opengl headers" >&2;}
4579   { (exit 1); exit 1; }; }
4580fi
4581
4582done
4583
4584
4585# checking for libGLU
4586    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4587echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4588if test "${ac_cv_lib_glu32_main+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  ac_check_lib_save_LIBS=$LIBS
4592LIBS="-lglu32  $LIBS"
4593cat >conftest.$ac_ext <<_ACEOF
4594/* confdefs.h.  */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h.  */
4599
4600
4601int
4602main ()
4603{
4604main ();
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609rm -f conftest.$ac_objext conftest$ac_exeext
4610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611  (eval $ac_link) 2>conftest.er1
4612  ac_status=$?
4613  grep -v '^ *+' conftest.er1 >conftest.err
4614  rm -f conftest.er1
4615  cat conftest.err >&5
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); } &&
4618         { ac_try='test -z "$ac_c_werror_flag"
4619                         || test ! -s conftest.err'
4620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621  (eval $ac_try) 2>&5
4622  ac_status=$?
4623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624  (exit $ac_status); }; } &&
4625         { ac_try='test -s conftest$ac_exeext'
4626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627  (eval $ac_try) 2>&5
4628  ac_status=$?
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); }; }; then
4631  ac_cv_lib_glu32_main=yes
4632else
4633  echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
4636ac_cv_lib_glu32_main=no
4637fi
4638rm -f conftest.err conftest.$ac_objext \
4639      conftest$ac_exeext conftest.$ac_ext
4640LIBS=$ac_check_lib_save_LIBS
4641fi
4642echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4643echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4644if test $ac_cv_lib_glu32_main = yes; then
4645  FOUND_glu32=yes
4646fi
4647
4648    if test x$FOUND_glu32 = xyes ; then
4649        LIBS="$LIBS -lGLU32"
4650    else
4651         echo "------------------"
4652         echo "GLU library not found."
4653         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4654         echo "------------------"
4655         exit -1
4656    fi
4657
4658# checking for mingw32
4659    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4660echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4661if test "${ac_cv_lib_mingw32_main+set}" = set; then
4662  echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664  ac_check_lib_save_LIBS=$LIBS
4665LIBS="-lmingw32  $LIBS"
4666cat >conftest.$ac_ext <<_ACEOF
4667/* confdefs.h.  */
4668_ACEOF
4669cat confdefs.h >>conftest.$ac_ext
4670cat >>conftest.$ac_ext <<_ACEOF
4671/* end confdefs.h.  */
4672
4673
4674int
4675main ()
4676{
4677main ();
4678  ;
4679  return 0;
4680}
4681_ACEOF
4682rm -f conftest.$ac_objext conftest$ac_exeext
4683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684  (eval $ac_link) 2>conftest.er1
4685  ac_status=$?
4686  grep -v '^ *+' conftest.er1 >conftest.err
4687  rm -f conftest.er1
4688  cat conftest.err >&5
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); } &&
4691         { ac_try='test -z "$ac_c_werror_flag"
4692                         || test ! -s conftest.err'
4693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694  (eval $ac_try) 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; } &&
4698         { ac_try='test -s conftest$ac_exeext'
4699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700  (eval $ac_try) 2>&5
4701  ac_status=$?
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); }; }; then
4704  ac_cv_lib_mingw32_main=yes
4705else
4706  echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
4708
4709ac_cv_lib_mingw32_main=no
4710fi
4711rm -f conftest.err conftest.$ac_objext \
4712      conftest$ac_exeext conftest.$ac_ext
4713LIBS=$ac_check_lib_save_LIBS
4714fi
4715echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4716echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4717if test $ac_cv_lib_mingw32_main = yes; then
4718  FOUND_mingw32=yes
4719fi
4720
4721    if test x$FOUND_mingw32 = xyes; then
4722        LIBS="$LIBS -lmingw32"
4723    fi
4724# checking for SDL-headers
4725
4726for ac_header in SDL/SDL.h
4727do
4728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729if eval "test \"\${$as_ac_Header+set}\" = set"; then
4730  echo "$as_me:$LINENO: checking for $ac_header" >&5
4731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4732if eval "test \"\${$as_ac_Header+set}\" = set"; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734fi
4735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4737else
4738  # Is the header compilable?
4739echo "$as_me:$LINENO: checking $ac_header usability" >&5
4740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4741cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h.  */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h.  */
4747$ac_includes_default
4748#include <$ac_header>
4749_ACEOF
4750rm -f conftest.$ac_objext
4751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752  (eval $ac_compile) 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } &&
4759         { ac_try='test -z "$ac_c_werror_flag"
4760                         || test ! -s conftest.err'
4761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762  (eval $ac_try) 2>&5
4763  ac_status=$?
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); }; } &&
4766         { ac_try='test -s conftest.$ac_objext'
4767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768  (eval $ac_try) 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); }; }; then
4772  ac_header_compiler=yes
4773else
4774  echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777ac_header_compiler=no
4778fi
4779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4781echo "${ECHO_T}$ac_header_compiler" >&6
4782
4783# Is the header present?
4784echo "$as_me:$LINENO: checking $ac_header presence" >&5
4785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4786cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h.  */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h.  */
4792#include <$ac_header>
4793_ACEOF
4794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4796  ac_status=$?
4797  grep -v '^ *+' conftest.er1 >conftest.err
4798  rm -f conftest.er1
4799  cat conftest.err >&5
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); } >/dev/null; then
4802  if test -s conftest.err; then
4803    ac_cpp_err=$ac_c_preproc_warn_flag
4804    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4805  else
4806    ac_cpp_err=
4807  fi
4808else
4809  ac_cpp_err=yes
4810fi
4811if test -z "$ac_cpp_err"; then
4812  ac_header_preproc=yes
4813else
4814  echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817  ac_header_preproc=no
4818fi
4819rm -f conftest.err conftest.$ac_ext
4820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4821echo "${ECHO_T}$ac_header_preproc" >&6
4822
4823# So?  What about this header?
4824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4825  yes:no: )
4826    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4828    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4830    ac_header_preproc=yes
4831    ;;
4832  no:yes:* )
4833    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4835    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4836echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4837    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4839    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4840echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4843    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4845    (
4846      cat <<\_ASBOX
4847## ---------------------------------------------- ##
4848## Report this to orxonox-dev at mail.datacore.ch ##
4849## ---------------------------------------------- ##
4850_ASBOX
4851    ) |
4852      sed "s/^/$as_me: WARNING:     /" >&2
4853    ;;
4854esac
4855echo "$as_me:$LINENO: checking for $ac_header" >&5
4856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4857if eval "test \"\${$as_ac_Header+set}\" = set"; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  eval "$as_ac_Header=\$ac_header_preproc"
4861fi
4862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864
4865fi
4866if test `eval echo '${'$as_ac_Header'}'` = yes; then
4867  cat >>confdefs.h <<_ACEOF
4868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4869_ACEOF
4870
4871else
4872  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4873echo "$as_me: error: cannot find SDL headers" >&2;}
4874   { (exit 1); exit 1; }; }
4875fi
4876
4877done
4878
4879
4880#checking for libSDL
4881    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4882echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4883if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4884  echo $ECHO_N "(cached) $ECHO_C" >&6
4885else
4886  ac_check_lib_save_LIBS=$LIBS
4887LIBS="-lsdlmain  $LIBS"
4888cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h.  */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h.  */
4894
4895
4896int
4897main ()
4898{
4899main ();
4900  ;
4901  return 0;
4902}
4903_ACEOF
4904rm -f conftest.$ac_objext conftest$ac_exeext
4905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906  (eval $ac_link) 2>conftest.er1
4907  ac_status=$?
4908  grep -v '^ *+' conftest.er1 >conftest.err
4909  rm -f conftest.er1
4910  cat conftest.err >&5
4911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912  (exit $ac_status); } &&
4913         { ac_try='test -z "$ac_c_werror_flag"
4914                         || test ! -s conftest.err'
4915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916  (eval $ac_try) 2>&5
4917  ac_status=$?
4918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); }; } &&
4920         { ac_try='test -s conftest$ac_exeext'
4921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922  (eval $ac_try) 2>&5
4923  ac_status=$?
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); }; }; then
4926  ac_cv_lib_sdlmain_main=yes
4927else
4928  echo "$as_me: failed program was:" >&5
4929sed 's/^/| /' conftest.$ac_ext >&5
4930
4931ac_cv_lib_sdlmain_main=no
4932fi
4933rm -f conftest.err conftest.$ac_objext \
4934      conftest$ac_exeext conftest.$ac_ext
4935LIBS=$ac_check_lib_save_LIBS
4936fi
4937echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4938echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4939if test $ac_cv_lib_sdlmain_main = yes; then
4940  FOUND_sdlmain=yes
4941fi
4942
4943    if test x$FOUND_sdlmain = xyes ; then
4944       LIBS="$LIBS -lsdlmain"
4945    else
4946        echo "------------------"
4947        echo "SDL library not found."
4948        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4949        echo "------------------"
4950        exit 1
4951    fi
4952    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4953echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4954if test "${ac_cv_lib_sdl_main+set}" = set; then
4955  echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957  ac_check_lib_save_LIBS=$LIBS
4958LIBS="-lsdl  $LIBS"
4959cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h.  */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h.  */
4965
4966
4967int
4968main ()
4969{
4970main ();
4971  ;
4972  return 0;
4973}
4974_ACEOF
4975rm -f conftest.$ac_objext conftest$ac_exeext
4976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4977  (eval $ac_link) 2>conftest.er1
4978  ac_status=$?
4979  grep -v '^ *+' conftest.er1 >conftest.err
4980  rm -f conftest.er1
4981  cat conftest.err >&5
4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); } &&
4984         { ac_try='test -z "$ac_c_werror_flag"
4985                         || test ! -s conftest.err'
4986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987  (eval $ac_try) 2>&5
4988  ac_status=$?
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); }; } &&
4991         { ac_try='test -s conftest$ac_exeext'
4992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993  (eval $ac_try) 2>&5
4994  ac_status=$?
4995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996  (exit $ac_status); }; }; then
4997  ac_cv_lib_sdl_main=yes
4998else
4999  echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002ac_cv_lib_sdl_main=no
5003fi
5004rm -f conftest.err conftest.$ac_objext \
5005      conftest$ac_exeext conftest.$ac_ext
5006LIBS=$ac_check_lib_save_LIBS
5007fi
5008echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5009echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5010if test $ac_cv_lib_sdl_main = yes; then
5011  FOUND_sdl=yes
5012fi
5013
5014    if test x$FOUND_sdl = xyes ; then
5015       LIBS="$LIBS -lsdl"
5016    else
5017        echo "------------------"
5018        echo "SDL library not found."
5019        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5020        echo "------------------"
5021        exit -1
5022    fi
5023
5024    ;;
5025#-------#
5026# LINUX #
5027#-------#
5028 *-*-linux*)
5029echo "Linux detected"
5030
5031 Linux="yes"
5032
5033CPPFLAGS="-I/usr/X11R6/include"
5034LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5035# checking gl header
5036
5037for ac_header in GL/gl.h
5038do
5039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040if eval "test \"\${$as_ac_Header+set}\" = set"; then
5041  echo "$as_me:$LINENO: checking for $ac_header" >&5
5042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5043if eval "test \"\${$as_ac_Header+set}\" = set"; then
5044  echo $ECHO_N "(cached) $ECHO_C" >&6
5045fi
5046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5048else
5049  # Is the header compilable?
5050echo "$as_me:$LINENO: checking $ac_header usability" >&5
5051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5052cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058$ac_includes_default
5059#include <$ac_header>
5060_ACEOF
5061rm -f conftest.$ac_objext
5062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063  (eval $ac_compile) 2>conftest.er1
5064  ac_status=$?
5065  grep -v '^ *+' conftest.er1 >conftest.err
5066  rm -f conftest.er1
5067  cat conftest.err >&5
5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069  (exit $ac_status); } &&
5070         { ac_try='test -z "$ac_c_werror_flag"
5071                         || test ! -s conftest.err'
5072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073  (eval $ac_try) 2>&5
5074  ac_status=$?
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); }; } &&
5077         { ac_try='test -s conftest.$ac_objext'
5078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079  (eval $ac_try) 2>&5
5080  ac_status=$?
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); }; }; then
5083  ac_header_compiler=yes
5084else
5085  echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088ac_header_compiler=no
5089fi
5090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092echo "${ECHO_T}$ac_header_compiler" >&6
5093
5094# Is the header present?
5095echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5097cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h.  */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h.  */
5103#include <$ac_header>
5104_ACEOF
5105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107  ac_status=$?
5108  grep -v '^ *+' conftest.er1 >conftest.err
5109  rm -f conftest.er1
5110  cat conftest.err >&5
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); } >/dev/null; then
5113  if test -s conftest.err; then
5114    ac_cpp_err=$ac_c_preproc_warn_flag
5115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5116  else
5117    ac_cpp_err=
5118  fi
5119else
5120  ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
5123  ac_header_preproc=yes
5124else
5125  echo "$as_me: failed program was:" >&5
5126sed 's/^/| /' conftest.$ac_ext >&5
5127
5128  ac_header_preproc=no
5129fi
5130rm -f conftest.err conftest.$ac_ext
5131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5132echo "${ECHO_T}$ac_header_preproc" >&6
5133
5134# So?  What about this header?
5135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5136  yes:no: )
5137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5141    ac_header_preproc=yes
5142    ;;
5143  no:yes:* )
5144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5156    (
5157      cat <<\_ASBOX
5158## ---------------------------------------------- ##
5159## Report this to orxonox-dev at mail.datacore.ch ##
5160## ---------------------------------------------- ##
5161_ASBOX
5162    ) |
5163      sed "s/^/$as_me: WARNING:     /" >&2
5164    ;;
5165esac
5166echo "$as_me:$LINENO: checking for $ac_header" >&5
5167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5168if eval "test \"\${$as_ac_Header+set}\" = set"; then
5169  echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171  eval "$as_ac_Header=\$ac_header_preproc"
5172fi
5173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5175
5176fi
5177if test `eval echo '${'$as_ac_Header'}'` = yes; then
5178  cat >>confdefs.h <<_ACEOF
5179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180_ACEOF
5181
5182else
5183  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5184echo "$as_me: error: cannot find opengl headers" >&2;}
5185   { (exit 1); exit 1; }; }
5186fi
5187
5188done
5189
5190
5191#  checking for Unix GL
5192   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5193echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5194if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  ac_check_lib_save_LIBS=$LIBS
5198LIBS="-lGL  $LIBS"
5199cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h.  */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h.  */
5205
5206/* Override any gcc2 internal prototype to avoid an error.  */
5207#ifdef __cplusplus
5208extern "C"
5209#endif
5210/* We use char because int might match the return type of a gcc2
5211   builtin and then its argument prototype would still apply.  */
5212char glLoadIdentity ();
5213int
5214main ()
5215{
5216glLoadIdentity ();
5217  ;
5218  return 0;
5219}
5220_ACEOF
5221rm -f conftest.$ac_objext conftest$ac_exeext
5222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223  (eval $ac_link) 2>conftest.er1
5224  ac_status=$?
5225  grep -v '^ *+' conftest.er1 >conftest.err
5226  rm -f conftest.er1
5227  cat conftest.err >&5
5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229  (exit $ac_status); } &&
5230         { ac_try='test -z "$ac_c_werror_flag"
5231                         || test ! -s conftest.err'
5232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233  (eval $ac_try) 2>&5
5234  ac_status=$?
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); }; } &&
5237         { ac_try='test -s conftest$ac_exeext'
5238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239  (eval $ac_try) 2>&5
5240  ac_status=$?
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); }; }; then
5243  ac_cv_lib_GL_glLoadIdentity=yes
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248ac_cv_lib_GL_glLoadIdentity=no
5249fi
5250rm -f conftest.err conftest.$ac_objext \
5251      conftest$ac_exeext conftest.$ac_ext
5252LIBS=$ac_check_lib_save_LIBS
5253fi
5254echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5255echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5256if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5257  FOUND_GL=yes
5258fi
5259
5260   if test x$FOUND_GL = xyes ; then
5261     LIBS="$LIBS -lGL"
5262   else
5263         echo "------------------"
5264         echo "opengl not found."
5265         echo "please install the opengl package which can be found at http://www.opengl.org"
5266         echo "------------------"
5267         exit -1
5268   fi
5269
5270# cheking for GLU-header
5271
5272for ac_header in GL/glu.h
5273do
5274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275if eval "test \"\${$as_ac_Header+set}\" = set"; then
5276  echo "$as_me:$LINENO: checking for $ac_header" >&5
5277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5278if eval "test \"\${$as_ac_Header+set}\" = set"; then
5279  echo $ECHO_N "(cached) $ECHO_C" >&6
5280fi
5281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5283else
5284  # Is the header compilable?
5285echo "$as_me:$LINENO: checking $ac_header usability" >&5
5286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5287cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h.  */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h.  */
5293$ac_includes_default
5294#include <$ac_header>
5295_ACEOF
5296rm -f conftest.$ac_objext
5297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298  (eval $ac_compile) 2>conftest.er1
5299  ac_status=$?
5300  grep -v '^ *+' conftest.er1 >conftest.err
5301  rm -f conftest.er1
5302  cat conftest.err >&5
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); } &&
5305         { ac_try='test -z "$ac_c_werror_flag"
5306                         || test ! -s conftest.err'
5307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308  (eval $ac_try) 2>&5
5309  ac_status=$?
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); }; } &&
5312         { ac_try='test -s conftest.$ac_objext'
5313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314  (eval $ac_try) 2>&5
5315  ac_status=$?
5316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317  (exit $ac_status); }; }; then
5318  ac_header_compiler=yes
5319else
5320  echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
5323ac_header_compiler=no
5324fi
5325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5327echo "${ECHO_T}$ac_header_compiler" >&6
5328
5329# Is the header present?
5330echo "$as_me:$LINENO: checking $ac_header presence" >&5
5331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5332cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h.  */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h.  */
5338#include <$ac_header>
5339_ACEOF
5340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5342  ac_status=$?
5343  grep -v '^ *+' conftest.er1 >conftest.err
5344  rm -f conftest.er1
5345  cat conftest.err >&5
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); } >/dev/null; then
5348  if test -s conftest.err; then
5349    ac_cpp_err=$ac_c_preproc_warn_flag
5350    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5351  else
5352    ac_cpp_err=
5353  fi
5354else
5355  ac_cpp_err=yes
5356fi
5357if test -z "$ac_cpp_err"; then
5358  ac_header_preproc=yes
5359else
5360  echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363  ac_header_preproc=no
5364fi
5365rm -f conftest.err conftest.$ac_ext
5366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5367echo "${ECHO_T}$ac_header_preproc" >&6
5368
5369# So?  What about this header?
5370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5371  yes:no: )
5372    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5376    ac_header_preproc=yes
5377    ;;
5378  no:yes:* )
5379    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5381    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5382echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5383    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5385    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5386echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5389    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5391    (
5392      cat <<\_ASBOX
5393## ---------------------------------------------- ##
5394## Report this to orxonox-dev at mail.datacore.ch ##
5395## ---------------------------------------------- ##
5396_ASBOX
5397    ) |
5398      sed "s/^/$as_me: WARNING:     /" >&2
5399    ;;
5400esac
5401echo "$as_me:$LINENO: checking for $ac_header" >&5
5402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5403if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404  echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406  eval "$as_ac_Header=\$ac_header_preproc"
5407fi
5408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5410
5411fi
5412if test `eval echo '${'$as_ac_Header'}'` = yes; then
5413  cat >>confdefs.h <<_ACEOF
5414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415_ACEOF
5416
5417else
5418  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5419echo "$as_me: error: cannot find opengl headers" >&2;}
5420   { (exit 1); exit 1; }; }
5421fi
5422
5423done
5424
5425
5426    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5427echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5428if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5429  echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431  ac_check_lib_save_LIBS=$LIBS
5432LIBS="-lGLU  $LIBS"
5433cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h.  */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h.  */
5439
5440/* Override any gcc2 internal prototype to avoid an error.  */
5441#ifdef __cplusplus
5442extern "C"
5443#endif
5444/* We use char because int might match the return type of a gcc2
5445   builtin and then its argument prototype would still apply.  */
5446char gluProject ();
5447int
5448main ()
5449{
5450gluProject ();
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext conftest$ac_exeext
5456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457  (eval $ac_link) 2>conftest.er1
5458  ac_status=$?
5459  grep -v '^ *+' conftest.er1 >conftest.err
5460  rm -f conftest.er1
5461  cat conftest.err >&5
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } &&
5464         { ac_try='test -z "$ac_c_werror_flag"
5465                         || test ! -s conftest.err'
5466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467  (eval $ac_try) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }; } &&
5471         { ac_try='test -s conftest$ac_exeext'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; }; then
5477  ac_cv_lib_GLU_gluProject=yes
5478else
5479  echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
5482ac_cv_lib_GLU_gluProject=no
5483fi
5484rm -f conftest.err conftest.$ac_objext \
5485      conftest$ac_exeext conftest.$ac_ext
5486LIBS=$ac_check_lib_save_LIBS
5487fi
5488echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5489echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5490if test $ac_cv_lib_GLU_gluProject = yes; then
5491  FOUND_GLU=yes
5492fi
5493
5494    if test x$FOUND_GLU = xyes ; then
5495      LIBS="$LIBS -lGLU"
5496    else
5497         echo "------------------"
5498         echo "GLU library not found."
5499         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5500         echo "------------------"
5501         exit -1
5502    fi
5503
5504# checking for SDL-headers
5505
5506for ac_header in SDL/SDL.h
5507do
5508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510  echo "$as_me:$LINENO: checking for $ac_header" >&5
5511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5512if eval "test \"\${$as_ac_Header+set}\" = set"; then
5513  echo $ECHO_N "(cached) $ECHO_C" >&6
5514fi
5515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5517else
5518  # Is the header compilable?
5519echo "$as_me:$LINENO: checking $ac_header usability" >&5
5520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5521cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h.  */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h.  */
5527$ac_includes_default
5528#include <$ac_header>
5529_ACEOF
5530rm -f conftest.$ac_objext
5531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532  (eval $ac_compile) 2>conftest.er1
5533  ac_status=$?
5534  grep -v '^ *+' conftest.er1 >conftest.err
5535  rm -f conftest.er1
5536  cat conftest.err >&5
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); } &&
5539         { ac_try='test -z "$ac_c_werror_flag"
5540                         || test ! -s conftest.err'
5541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542  (eval $ac_try) 2>&5
5543  ac_status=$?
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); }; } &&
5546         { ac_try='test -s conftest.$ac_objext'
5547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548  (eval $ac_try) 2>&5
5549  ac_status=$?
5550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551  (exit $ac_status); }; }; then
5552  ac_header_compiler=yes
5553else
5554  echo "$as_me: failed program was:" >&5
5555sed 's/^/| /' conftest.$ac_ext >&5
5556
5557ac_header_compiler=no
5558fi
5559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5561echo "${ECHO_T}$ac_header_compiler" >&6
5562
5563# Is the header present?
5564echo "$as_me:$LINENO: checking $ac_header presence" >&5
5565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5566cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572#include <$ac_header>
5573_ACEOF
5574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5576  ac_status=$?
5577  grep -v '^ *+' conftest.er1 >conftest.err
5578  rm -f conftest.er1
5579  cat conftest.err >&5
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); } >/dev/null; then
5582  if test -s conftest.err; then
5583    ac_cpp_err=$ac_c_preproc_warn_flag
5584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5585  else
5586    ac_cpp_err=
5587  fi
5588else
5589  ac_cpp_err=yes
5590fi
5591if test -z "$ac_cpp_err"; then
5592  ac_header_preproc=yes
5593else
5594  echo "$as_me: failed program was:" >&5
5595sed 's/^/| /' conftest.$ac_ext >&5
5596
5597  ac_header_preproc=no
5598fi
5599rm -f conftest.err conftest.$ac_ext
5600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5601echo "${ECHO_T}$ac_header_preproc" >&6
5602
5603# So?  What about this header?
5604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5605  yes:no: )
5606    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5610    ac_header_preproc=yes
5611    ;;
5612  no:yes:* )
5613    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5616echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5617    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5619    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5620echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5621    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5623    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5625    (
5626      cat <<\_ASBOX
5627## ---------------------------------------------- ##
5628## Report this to orxonox-dev at mail.datacore.ch ##
5629## ---------------------------------------------- ##
5630_ASBOX
5631    ) |
5632      sed "s/^/$as_me: WARNING:     /" >&2
5633    ;;
5634esac
5635echo "$as_me:$LINENO: checking for $ac_header" >&5
5636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5637if eval "test \"\${$as_ac_Header+set}\" = set"; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  eval "$as_ac_Header=\$ac_header_preproc"
5641fi
5642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644
5645fi
5646if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647  cat >>confdefs.h <<_ACEOF
5648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649_ACEOF
5650
5651else
5652  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5653echo "$as_me: error: cannot find SDL headers" >&2;}
5654   { (exit 1); exit 1; }; }
5655fi
5656
5657done
5658
5659
5660# checking for SDL-lib
5661    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5662echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5663if test "${ac_cv_lib_SDL_main+set}" = set; then
5664  echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666  ac_check_lib_save_LIBS=$LIBS
5667LIBS="-lSDL  $LIBS"
5668cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h.  */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h.  */
5674
5675
5676int
5677main ()
5678{
5679main ();
5680  ;
5681  return 0;
5682}
5683_ACEOF
5684rm -f conftest.$ac_objext conftest$ac_exeext
5685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5686  (eval $ac_link) 2>conftest.er1
5687  ac_status=$?
5688  grep -v '^ *+' conftest.er1 >conftest.err
5689  rm -f conftest.er1
5690  cat conftest.err >&5
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); } &&
5693         { ac_try='test -z "$ac_c_werror_flag"
5694                         || test ! -s conftest.err'
5695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696  (eval $ac_try) 2>&5
5697  ac_status=$?
5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699  (exit $ac_status); }; } &&
5700         { ac_try='test -s conftest$ac_exeext'
5701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702  (eval $ac_try) 2>&5
5703  ac_status=$?
5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); }; }; then
5706  ac_cv_lib_SDL_main=yes
5707else
5708  echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711ac_cv_lib_SDL_main=no
5712fi
5713rm -f conftest.err conftest.$ac_objext \
5714      conftest$ac_exeext conftest.$ac_ext
5715LIBS=$ac_check_lib_save_LIBS
5716fi
5717echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5718echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5719if test $ac_cv_lib_SDL_main = yes; then
5720  FOUND_SDL=yes
5721fi
5722
5723     if test x$FOUND_SDL = xyes ; then
5724       LIBS="$LIBS -lSDL"
5725     else
5726        echo "------------------"
5727        echo "SDL library not found."
5728        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5729        echo "------------------"
5730        exit -1
5731     fi
5732
5733
5734## checking for SDL
5735#    SDL_VERSION=1.2.7
5736#    AM_PATH_SDL($SDL_VERSION,
5737#      :,
5738#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5739#      )
5740#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5741#    LIBS="$LIBS $SDL_LIBS"
5742    ;;
5743#-----------#
5744# MAC -OS X #
5745#-----------#
5746 *darwin*)
5747 echo "OS X detected"
5748
5749 osX="yes"
5750
5751 CPPFLAGS="-I/sw/include $CPPFLAGS"
5752# checking gl header
5753
5754for ac_header in OpenGL/gl.h
5755do
5756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757if eval "test \"\${$as_ac_Header+set}\" = set"; then
5758  echo "$as_me:$LINENO: checking for $ac_header" >&5
5759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5760if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761  echo $ECHO_N "(cached) $ECHO_C" >&6
5762fi
5763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5765else
5766  # Is the header compilable?
5767echo "$as_me:$LINENO: checking $ac_header usability" >&5
5768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5769cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h.  */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h.  */
5775$ac_includes_default
5776#include <$ac_header>
5777_ACEOF
5778rm -f conftest.$ac_objext
5779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780  (eval $ac_compile) 2>conftest.er1
5781  ac_status=$?
5782  grep -v '^ *+' conftest.er1 >conftest.err
5783  rm -f conftest.er1
5784  cat conftest.err >&5
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); } &&
5787         { ac_try='test -z "$ac_c_werror_flag"
5788                         || test ! -s conftest.err'
5789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790  (eval $ac_try) 2>&5
5791  ac_status=$?
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); }; } &&
5794         { ac_try='test -s conftest.$ac_objext'
5795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796  (eval $ac_try) 2>&5
5797  ac_status=$?
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); }; }; then
5800  ac_header_compiler=yes
5801else
5802  echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805ac_header_compiler=no
5806fi
5807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5809echo "${ECHO_T}$ac_header_compiler" >&6
5810
5811# Is the header present?
5812echo "$as_me:$LINENO: checking $ac_header presence" >&5
5813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5814cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h.  */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h.  */
5820#include <$ac_header>
5821_ACEOF
5822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5824  ac_status=$?
5825  grep -v '^ *+' conftest.er1 >conftest.err
5826  rm -f conftest.er1
5827  cat conftest.err >&5
5828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829  (exit $ac_status); } >/dev/null; then
5830  if test -s conftest.err; then
5831    ac_cpp_err=$ac_c_preproc_warn_flag
5832    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5833  else
5834    ac_cpp_err=
5835  fi
5836else
5837  ac_cpp_err=yes
5838fi
5839if test -z "$ac_cpp_err"; then
5840  ac_header_preproc=yes
5841else
5842  echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845  ac_header_preproc=no
5846fi
5847rm -f conftest.err conftest.$ac_ext
5848echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5849echo "${ECHO_T}$ac_header_preproc" >&6
5850
5851# So?  What about this header?
5852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5853  yes:no: )
5854    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5856    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5858    ac_header_preproc=yes
5859    ;;
5860  no:yes:* )
5861    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5863    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5864echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5865    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5867    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5868echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5869    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5871    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5873    (
5874      cat <<\_ASBOX
5875## ---------------------------------------------- ##
5876## Report this to orxonox-dev at mail.datacore.ch ##
5877## ---------------------------------------------- ##
5878_ASBOX
5879    ) |
5880      sed "s/^/$as_me: WARNING:     /" >&2
5881    ;;
5882esac
5883echo "$as_me:$LINENO: checking for $ac_header" >&5
5884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5885if eval "test \"\${$as_ac_Header+set}\" = set"; then
5886  echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888  eval "$as_ac_Header=\$ac_header_preproc"
5889fi
5890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892
5893fi
5894if test `eval echo '${'$as_ac_Header'}'` = yes; then
5895  cat >>confdefs.h <<_ACEOF
5896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5897_ACEOF
5898
5899else
5900  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5901echo "$as_me: error: cannot find opengl headers" >&2;}
5902   { (exit 1); exit 1; }; }
5903fi
5904
5905done
5906
5907# cheking for GLU-header
5908
5909for ac_header in OpenGL/glu.h
5910do
5911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913  echo "$as_me:$LINENO: checking for $ac_header" >&5
5914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5915if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916  echo $ECHO_N "(cached) $ECHO_C" >&6
5917fi
5918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920else
5921  # Is the header compilable?
5922echo "$as_me:$LINENO: checking $ac_header usability" >&5
5923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5924cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930$ac_includes_default
5931#include <$ac_header>
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935  (eval $ac_compile) 2>conftest.er1
5936  ac_status=$?
5937  grep -v '^ *+' conftest.er1 >conftest.err
5938  rm -f conftest.er1
5939  cat conftest.err >&5
5940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941  (exit $ac_status); } &&
5942         { ac_try='test -z "$ac_c_werror_flag"
5943                         || test ! -s conftest.err'
5944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945  (eval $ac_try) 2>&5
5946  ac_status=$?
5947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948  (exit $ac_status); }; } &&
5949         { ac_try='test -s conftest.$ac_objext'
5950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951  (eval $ac_try) 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); }; }; then
5955  ac_header_compiler=yes
5956else
5957  echo "$as_me: failed program was:" >&5
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
5960ac_header_compiler=no
5961fi
5962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5964echo "${ECHO_T}$ac_header_compiler" >&6
5965
5966# Is the header present?
5967echo "$as_me:$LINENO: checking $ac_header presence" >&5
5968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5969cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975#include <$ac_header>
5976_ACEOF
5977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979  ac_status=$?
5980  grep -v '^ *+' conftest.er1 >conftest.err
5981  rm -f conftest.er1
5982  cat conftest.err >&5
5983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984  (exit $ac_status); } >/dev/null; then
5985  if test -s conftest.err; then
5986    ac_cpp_err=$ac_c_preproc_warn_flag
5987    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988  else
5989    ac_cpp_err=
5990  fi
5991else
5992  ac_cpp_err=yes
5993fi
5994if test -z "$ac_cpp_err"; then
5995  ac_header_preproc=yes
5996else
5997  echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000  ac_header_preproc=no
6001fi
6002rm -f conftest.err conftest.$ac_ext
6003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6004echo "${ECHO_T}$ac_header_preproc" >&6
6005
6006# So?  What about this header?
6007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6008  yes:no: )
6009    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6013    ac_header_preproc=yes
6014    ;;
6015  no:yes:* )
6016    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6018    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6019echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6020    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6022    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6023echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6024    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6026    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6028    (
6029      cat <<\_ASBOX
6030## ---------------------------------------------- ##
6031## Report this to orxonox-dev at mail.datacore.ch ##
6032## ---------------------------------------------- ##
6033_ASBOX
6034    ) |
6035      sed "s/^/$as_me: WARNING:     /" >&2
6036    ;;
6037esac
6038echo "$as_me:$LINENO: checking for $ac_header" >&5
6039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041  echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043  eval "$as_ac_Header=\$ac_header_preproc"
6044fi
6045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6047
6048fi
6049if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050  cat >>confdefs.h <<_ACEOF
6051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6052_ACEOF
6053
6054else
6055  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6056echo "$as_me: error: cannot find opengl headers" >&2;}
6057   { (exit 1); exit 1; }; }
6058fi
6059
6060done
6061
6062
6063   LIBS="$LIBS -framework OpenGL"
6064
6065       SDL_CFLAGS=`sdl-config --cflags`
6066       SDL_LIBS=`sdl-config --libs`
6067       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6068       LIBS="$LIBS $SDL_LIBS"
6069
6070
6071# checking for SDL-headers
6072#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6073#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6074
6075## checking for SDL
6076#    SDL_VERSION=1.2.7
6077#    AM_PATH_SDL($SDL_VERSION,
6078#      :,
6079#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6080#      )
6081
6082
6083    ;;
6084
6085  *)
6086    ;;
6087esac
6088
6089
6090
6091###################################
6092## CHECKING FOR HEADERS AND LIBS ##
6093###################################
6094
6095#-----------#
6096# SDL_Image #
6097#-----------#
6098if test x$def_sdl_image = xyes; then
6099# checking for SDL_image-headers
6100
6101for ac_header in SDL/SDL_image.h
6102do
6103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6104if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105  echo "$as_me:$LINENO: checking for $ac_header" >&5
6106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6107if eval "test \"\${$as_ac_Header+set}\" = set"; then
6108  echo $ECHO_N "(cached) $ECHO_C" >&6
6109fi
6110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6112else
6113  # Is the header compilable?
6114echo "$as_me:$LINENO: checking $ac_header usability" >&5
6115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6116cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h.  */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h.  */
6122$ac_includes_default
6123#include <$ac_header>
6124_ACEOF
6125rm -f conftest.$ac_objext
6126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127  (eval $ac_compile) 2>conftest.er1
6128  ac_status=$?
6129  grep -v '^ *+' conftest.er1 >conftest.err
6130  rm -f conftest.er1
6131  cat conftest.err >&5
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); } &&
6134         { ac_try='test -z "$ac_c_werror_flag"
6135                         || test ! -s conftest.err'
6136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137  (eval $ac_try) 2>&5
6138  ac_status=$?
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); }; } &&
6141         { ac_try='test -s conftest.$ac_objext'
6142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143  (eval $ac_try) 2>&5
6144  ac_status=$?
6145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146  (exit $ac_status); }; }; then
6147  ac_header_compiler=yes
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152ac_header_compiler=no
6153fi
6154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6156echo "${ECHO_T}$ac_header_compiler" >&6
6157
6158# Is the header present?
6159echo "$as_me:$LINENO: checking $ac_header presence" >&5
6160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h.  */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h.  */
6167#include <$ac_header>
6168_ACEOF
6169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171  ac_status=$?
6172  grep -v '^ *+' conftest.er1 >conftest.err
6173  rm -f conftest.er1
6174  cat conftest.err >&5
6175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176  (exit $ac_status); } >/dev/null; then
6177  if test -s conftest.err; then
6178    ac_cpp_err=$ac_c_preproc_warn_flag
6179    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180  else
6181    ac_cpp_err=
6182  fi
6183else
6184  ac_cpp_err=yes
6185fi
6186if test -z "$ac_cpp_err"; then
6187  ac_header_preproc=yes
6188else
6189  echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192  ac_header_preproc=no
6193fi
6194rm -f conftest.err conftest.$ac_ext
6195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6196echo "${ECHO_T}$ac_header_preproc" >&6
6197
6198# So?  What about this header?
6199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6200  yes:no: )
6201    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6205    ac_header_preproc=yes
6206    ;;
6207  no:yes:* )
6208    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6210    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6211echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6212    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6214    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6215echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6218    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6220    (
6221      cat <<\_ASBOX
6222## ---------------------------------------------- ##
6223## Report this to orxonox-dev at mail.datacore.ch ##
6224## ---------------------------------------------- ##
6225_ASBOX
6226    ) |
6227      sed "s/^/$as_me: WARNING:     /" >&2
6228    ;;
6229esac
6230echo "$as_me:$LINENO: checking for $ac_header" >&5
6231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6232if eval "test \"\${$as_ac_Header+set}\" = set"; then
6233  echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235  eval "$as_ac_Header=\$ac_header_preproc"
6236fi
6237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6239
6240fi
6241if test `eval echo '${'$as_ac_Header'}'` = yes; then
6242  cat >>confdefs.h <<_ACEOF
6243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6244_ACEOF
6245
6246else
6247  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6248fi
6249
6250done
6251
6252fi
6253if test x$def_sdl_image = xyes; then
6254# checking for SDL_image-lib
6255  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6256echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6257if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6258  echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260  ac_check_lib_save_LIBS=$LIBS
6261LIBS="-lSDL_image  $LIBS"
6262cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h.  */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h.  */
6268
6269
6270int
6271main ()
6272{
6273main ();
6274  ;
6275  return 0;
6276}
6277_ACEOF
6278rm -f conftest.$ac_objext conftest$ac_exeext
6279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280  (eval $ac_link) 2>conftest.er1
6281  ac_status=$?
6282  grep -v '^ *+' conftest.er1 >conftest.err
6283  rm -f conftest.er1
6284  cat conftest.err >&5
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } &&
6287         { ac_try='test -z "$ac_c_werror_flag"
6288                         || test ! -s conftest.err'
6289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290  (eval $ac_try) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; } &&
6294         { ac_try='test -s conftest$ac_exeext'
6295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296  (eval $ac_try) 2>&5
6297  ac_status=$?
6298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299  (exit $ac_status); }; }; then
6300  ac_cv_lib_SDL_image_main=yes
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305ac_cv_lib_SDL_image_main=no
6306fi
6307rm -f conftest.err conftest.$ac_objext \
6308      conftest$ac_exeext conftest.$ac_ext
6309LIBS=$ac_check_lib_save_LIBS
6310fi
6311echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6312echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6313if test $ac_cv_lib_SDL_image_main = yes; then
6314  FOUND_SDL_image=yes
6315fi
6316
6317     if test x$FOUND_SDL_image = xyes ; then
6318       LIBS="$LIBS -lSDL_image"
6319     else
6320        echo "------------------"
6321        echo "SDL_image library not found."
6322        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6323        echo "------------------"
6324        exit -1
6325     fi
6326fi
6327
6328## case no SDL-image:
6329if test x$def_sdl_image = xno; then
6330#---------#
6331# libjpeg #
6332#---------#
6333
6334for ac_header in jpeglib.h
6335do
6336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6337if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338  echo "$as_me:$LINENO: checking for $ac_header" >&5
6339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341  echo $ECHO_N "(cached) $ECHO_C" >&6
6342fi
6343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6345else
6346  # Is the header compilable?
6347echo "$as_me:$LINENO: checking $ac_header usability" >&5
6348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6349cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355$ac_includes_default
6356#include <$ac_header>
6357_ACEOF
6358rm -f conftest.$ac_objext
6359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360  (eval $ac_compile) 2>conftest.er1
6361  ac_status=$?
6362  grep -v '^ *+' conftest.er1 >conftest.err
6363  rm -f conftest.er1
6364  cat conftest.err >&5
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); } &&
6367         { ac_try='test -z "$ac_c_werror_flag"
6368                         || test ! -s conftest.err'
6369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370  (eval $ac_try) 2>&5
6371  ac_status=$?
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); }; } &&
6374         { ac_try='test -s conftest.$ac_objext'
6375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376  (eval $ac_try) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); }; }; then
6380  ac_header_compiler=yes
6381else
6382  echo "$as_me: failed program was:" >&5
6383sed 's/^/| /' conftest.$ac_ext >&5
6384
6385ac_header_compiler=no
6386fi
6387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6389echo "${ECHO_T}$ac_header_compiler" >&6
6390
6391# Is the header present?
6392echo "$as_me:$LINENO: checking $ac_header presence" >&5
6393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6394cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h.  */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h.  */
6400#include <$ac_header>
6401_ACEOF
6402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6403  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6404  ac_status=$?
6405  grep -v '^ *+' conftest.er1 >conftest.err
6406  rm -f conftest.er1
6407  cat conftest.err >&5
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); } >/dev/null; then
6410  if test -s conftest.err; then
6411    ac_cpp_err=$ac_c_preproc_warn_flag
6412    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6413  else
6414    ac_cpp_err=
6415  fi
6416else
6417  ac_cpp_err=yes
6418fi
6419if test -z "$ac_cpp_err"; then
6420  ac_header_preproc=yes
6421else
6422  echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425  ac_header_preproc=no
6426fi
6427rm -f conftest.err conftest.$ac_ext
6428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6429echo "${ECHO_T}$ac_header_preproc" >&6
6430
6431# So?  What about this header?
6432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6433  yes:no: )
6434    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6436    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6438    ac_header_preproc=yes
6439    ;;
6440  no:yes:* )
6441    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6443    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6444echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6445    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6447    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6448echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6451    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6453    (
6454      cat <<\_ASBOX
6455## ---------------------------------------------- ##
6456## Report this to orxonox-dev at mail.datacore.ch ##
6457## ---------------------------------------------- ##
6458_ASBOX
6459    ) |
6460      sed "s/^/$as_me: WARNING:     /" >&2
6461    ;;
6462esac
6463echo "$as_me:$LINENO: checking for $ac_header" >&5
6464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6465if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  eval "$as_ac_Header=\$ac_header_preproc"
6469fi
6470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6472
6473fi
6474if test `eval echo '${'$as_ac_Header'}'` = yes; then
6475  cat >>confdefs.h <<_ACEOF
6476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477_ACEOF
6478 jpegHeader="yes"
6479else
6480  jpegHeader="no"
6481fi
6482
6483done
6484
6485 if test x$jpegHeader = xno; then
6486        echo " not including jpeg."
6487 else
6488  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6489echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6490if test "${ac_cv_lib_jpeg_main+set}" = set; then
6491  echo $ECHO_N "(cached) $ECHO_C" >&6
6492else
6493  ac_check_lib_save_LIBS=$LIBS
6494LIBS="-ljpeg  $LIBS"
6495cat >conftest.$ac_ext <<_ACEOF
6496/* confdefs.h.  */
6497_ACEOF
6498cat confdefs.h >>conftest.$ac_ext
6499cat >>conftest.$ac_ext <<_ACEOF
6500/* end confdefs.h.  */
6501
6502
6503int
6504main ()
6505{
6506main ();
6507  ;
6508  return 0;
6509}
6510_ACEOF
6511rm -f conftest.$ac_objext conftest$ac_exeext
6512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513  (eval $ac_link) 2>conftest.er1
6514  ac_status=$?
6515  grep -v '^ *+' conftest.er1 >conftest.err
6516  rm -f conftest.er1
6517  cat conftest.err >&5
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); } &&
6520         { ac_try='test -z "$ac_c_werror_flag"
6521                         || test ! -s conftest.err'
6522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523  (eval $ac_try) 2>&5
6524  ac_status=$?
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); }; } &&
6527         { ac_try='test -s conftest$ac_exeext'
6528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529  (eval $ac_try) 2>&5
6530  ac_status=$?
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); }; }; then
6533  ac_cv_lib_jpeg_main=yes
6534else
6535  echo "$as_me: failed program was:" >&5
6536sed 's/^/| /' conftest.$ac_ext >&5
6537
6538ac_cv_lib_jpeg_main=no
6539fi
6540rm -f conftest.err conftest.$ac_objext \
6541      conftest$ac_exeext conftest.$ac_ext
6542LIBS=$ac_check_lib_save_LIBS
6543fi
6544echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6545echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6546if test $ac_cv_lib_jpeg_main = yes; then
6547  FOUND_jpeg=yes
6548fi
6549
6550    if test x$FOUND_jpeg = xyes ; then
6551      LIBS="$LIBS -ljpeg"
6552    else
6553         echo "------------------"
6554         echo "jpeg library not found."
6555         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6556         echo "------------------"
6557         exit -1
6558    fi
6559 fi
6560
6561#--------#
6562# libpng #
6563#--------#
6564
6565for ac_header in png.h
6566do
6567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6568if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569  echo "$as_me:$LINENO: checking for $ac_header" >&5
6570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6571if eval "test \"\${$as_ac_Header+set}\" = set"; then
6572  echo $ECHO_N "(cached) $ECHO_C" >&6
6573fi
6574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6576else
6577  # Is the header compilable?
6578echo "$as_me:$LINENO: checking $ac_header usability" >&5
6579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6580cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h.  */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h.  */
6586$ac_includes_default
6587#include <$ac_header>
6588_ACEOF
6589rm -f conftest.$ac_objext
6590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591  (eval $ac_compile) 2>conftest.er1
6592  ac_status=$?
6593  grep -v '^ *+' conftest.er1 >conftest.err
6594  rm -f conftest.er1
6595  cat conftest.err >&5
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); } &&
6598         { ac_try='test -z "$ac_c_werror_flag"
6599                         || test ! -s conftest.err'
6600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601  (eval $ac_try) 2>&5
6602  ac_status=$?
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); }; } &&
6605         { ac_try='test -s conftest.$ac_objext'
6606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607  (eval $ac_try) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }; }; then
6611  ac_header_compiler=yes
6612else
6613  echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616ac_header_compiler=no
6617fi
6618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6620echo "${ECHO_T}$ac_header_compiler" >&6
6621
6622# Is the header present?
6623echo "$as_me:$LINENO: checking $ac_header presence" >&5
6624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h.  */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h.  */
6631#include <$ac_header>
6632_ACEOF
6633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6634  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635  ac_status=$?
6636  grep -v '^ *+' conftest.er1 >conftest.err
6637  rm -f conftest.er1
6638  cat conftest.err >&5
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); } >/dev/null; then
6641  if test -s conftest.err; then
6642    ac_cpp_err=$ac_c_preproc_warn_flag
6643    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6644  else
6645    ac_cpp_err=
6646  fi
6647else
6648  ac_cpp_err=yes
6649fi
6650if test -z "$ac_cpp_err"; then
6651  ac_header_preproc=yes
6652else
6653  echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656  ac_header_preproc=no
6657fi
6658rm -f conftest.err conftest.$ac_ext
6659echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6660echo "${ECHO_T}$ac_header_preproc" >&6
6661
6662# So?  What about this header?
6663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6664  yes:no: )
6665    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6669    ac_header_preproc=yes
6670    ;;
6671  no:yes:* )
6672    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6674    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6675echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6676    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6678    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6679echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6680    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6682    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6684    (
6685      cat <<\_ASBOX
6686## ---------------------------------------------- ##
6687## Report this to orxonox-dev at mail.datacore.ch ##
6688## ---------------------------------------------- ##
6689_ASBOX
6690    ) |
6691      sed "s/^/$as_me: WARNING:     /" >&2
6692    ;;
6693esac
6694echo "$as_me:$LINENO: checking for $ac_header" >&5
6695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6696if eval "test \"\${$as_ac_Header+set}\" = set"; then
6697  echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699  eval "$as_ac_Header=\$ac_header_preproc"
6700fi
6701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6703
6704fi
6705if test `eval echo '${'$as_ac_Header'}'` = yes; then
6706  cat >>confdefs.h <<_ACEOF
6707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6708_ACEOF
6709 pngHeader="yes"
6710else
6711  pngHeader="no"
6712fi
6713
6714done
6715
6716 if test x$pngHeader = xno; then
6717        echo " not including png."
6718 else
6719  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6720echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6721if test "${ac_cv_lib_png_main+set}" = set; then
6722  echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
6724  ac_check_lib_save_LIBS=$LIBS
6725LIBS="-lpng  $LIBS"
6726cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h.  */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h.  */
6732
6733
6734int
6735main ()
6736{
6737main ();
6738  ;
6739  return 0;
6740}
6741_ACEOF
6742rm -f conftest.$ac_objext conftest$ac_exeext
6743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744  (eval $ac_link) 2>conftest.er1
6745  ac_status=$?
6746  grep -v '^ *+' conftest.er1 >conftest.err
6747  rm -f conftest.er1
6748  cat conftest.err >&5
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); } &&
6751         { ac_try='test -z "$ac_c_werror_flag"
6752                         || test ! -s conftest.err'
6753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754  (eval $ac_try) 2>&5
6755  ac_status=$?
6756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757  (exit $ac_status); }; } &&
6758         { ac_try='test -s conftest$ac_exeext'
6759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760  (eval $ac_try) 2>&5
6761  ac_status=$?
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); }; }; then
6764  ac_cv_lib_png_main=yes
6765else
6766  echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769ac_cv_lib_png_main=no
6770fi
6771rm -f conftest.err conftest.$ac_objext \
6772      conftest$ac_exeext conftest.$ac_ext
6773LIBS=$ac_check_lib_save_LIBS
6774fi
6775echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6776echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6777if test $ac_cv_lib_png_main = yes; then
6778  FOUND_png=yes
6779fi
6780
6781    if test x$FOUND_png = xyes ; then
6782      LIBS="$LIBS -lpng"
6783    else
6784         echo "------------------"
6785         echo "png library not found."
6786         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6787         echo "------------------"
6788         exit -1
6789    fi
6790 fi
6791fi
6792
6793#-----#
6794# GTK #
6795#-----#
6796if test x$def_gtk = xyes; then
6797
6798        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6799        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6800echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6801        if `pkg-config --exists gtk+-2.0`; then
6802                echo "yes"
6803                have_gtk2=yes
6804                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6805                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6806
6807cat >>confdefs.h <<_ACEOF
6808#define HAVE_GTK2 1
6809_ACEOF
6810
6811        else
6812                echo "no"
6813        fi
6814
6815fi
6816
6817
6818
6819
6820if test x$have_gtk2 = xyes; then
6821  HAVE_GTK2_TRUE=
6822  HAVE_GTK2_FALSE='#'
6823else
6824  HAVE_GTK2_TRUE='#'
6825  HAVE_GTK2_FALSE=
6826fi
6827
6828
6829#---------#
6830# gThread #
6831#---------#
6832if test x$def_gthread = xyes; then
6833
6834        echo "$as_me:$LINENO: checking for gthread" >&5
6835echo $ECHO_N "checking for gthread... $ECHO_C" >&6
6836        if `pkg-config --exists gthread-2.0`; then
6837                echo "yes"
6838                have_gthread=yes
6839                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
6840                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
6841
6842cat >>confdefs.h <<_ACEOF
6843#define HAVE_GTHREAD 1
6844_ACEOF
6845
6846        else
6847                echo "no"
6848        fi
6849
6850fi
6851
6852
6853
6854
6855if test x$have_gthread = xyes; then
6856  HAVE_GTHREAD_TRUE=
6857  HAVE_GTHREAD_FALSE='#'
6858else
6859  HAVE_GTHREAD_TRUE='#'
6860  HAVE_GTHREAD_FALSE=
6861fi
6862
6863
6864#---------#
6865# libcURL #
6866#---------#
6867if test x$def_curl = xyes; then
6868
6869
6870for ac_header in curl/curl.h
6871do
6872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6873if eval "test \"\${$as_ac_Header+set}\" = set"; then
6874  echo "$as_me:$LINENO: checking for $ac_header" >&5
6875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6876if eval "test \"\${$as_ac_Header+set}\" = set"; then
6877  echo $ECHO_N "(cached) $ECHO_C" >&6
6878fi
6879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6881else
6882  # Is the header compilable?
6883echo "$as_me:$LINENO: checking $ac_header usability" >&5
6884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6885cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891$ac_includes_default
6892#include <$ac_header>
6893_ACEOF
6894rm -f conftest.$ac_objext
6895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896  (eval $ac_compile) 2>conftest.er1
6897  ac_status=$?
6898  grep -v '^ *+' conftest.er1 >conftest.err
6899  rm -f conftest.er1
6900  cat conftest.err >&5
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); } &&
6903         { ac_try='test -z "$ac_c_werror_flag"
6904                         || test ! -s conftest.err'
6905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906  (eval $ac_try) 2>&5
6907  ac_status=$?
6908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909  (exit $ac_status); }; } &&
6910         { ac_try='test -s conftest.$ac_objext'
6911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912  (eval $ac_try) 2>&5
6913  ac_status=$?
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); }; }; then
6916  ac_header_compiler=yes
6917else
6918  echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920
6921ac_header_compiler=no
6922fi
6923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6925echo "${ECHO_T}$ac_header_compiler" >&6
6926
6927# Is the header present?
6928echo "$as_me:$LINENO: checking $ac_header presence" >&5
6929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6930cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h.  */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h.  */
6936#include <$ac_header>
6937_ACEOF
6938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } >/dev/null; then
6946  if test -s conftest.err; then
6947    ac_cpp_err=$ac_c_preproc_warn_flag
6948    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6949  else
6950    ac_cpp_err=
6951  fi
6952else
6953  ac_cpp_err=yes
6954fi
6955if test -z "$ac_cpp_err"; then
6956  ac_header_preproc=yes
6957else
6958  echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961  ac_header_preproc=no
6962fi
6963rm -f conftest.err conftest.$ac_ext
6964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6965echo "${ECHO_T}$ac_header_preproc" >&6
6966
6967# So?  What about this header?
6968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6969  yes:no: )
6970    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6972    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6974    ac_header_preproc=yes
6975    ;;
6976  no:yes:* )
6977    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6979    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6980echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6981    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6983    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6984echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6985    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6987    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6989    (
6990      cat <<\_ASBOX
6991## ---------------------------------------------- ##
6992## Report this to orxonox-dev at mail.datacore.ch ##
6993## ---------------------------------------------- ##
6994_ASBOX
6995    ) |
6996      sed "s/^/$as_me: WARNING:     /" >&2
6997    ;;
6998esac
6999echo "$as_me:$LINENO: checking for $ac_header" >&5
7000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7001if eval "test \"\${$as_ac_Header+set}\" = set"; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  eval "$as_ac_Header=\$ac_header_preproc"
7005fi
7006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7008
7009fi
7010if test `eval echo '${'$as_ac_Header'}'` = yes; then
7011  cat >>confdefs.h <<_ACEOF
7012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013_ACEOF
7014 curlHeader="yes"
7015else
7016  curlHeader="no"
7017fi
7018
7019done
7020
7021 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
7022echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
7023if test "${ac_cv_lib_curl_main+set}" = set; then
7024  echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026  ac_check_lib_save_LIBS=$LIBS
7027LIBS="-lcurl  $LIBS"
7028cat >conftest.$ac_ext <<_ACEOF
7029/* confdefs.h.  */
7030_ACEOF
7031cat confdefs.h >>conftest.$ac_ext
7032cat >>conftest.$ac_ext <<_ACEOF
7033/* end confdefs.h.  */
7034
7035
7036int
7037main ()
7038{
7039main ();
7040  ;
7041  return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext conftest$ac_exeext
7045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046  (eval $ac_link) 2>conftest.er1
7047  ac_status=$?
7048  grep -v '^ *+' conftest.er1 >conftest.err
7049  rm -f conftest.er1
7050  cat conftest.err >&5
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); } &&
7053         { ac_try='test -z "$ac_c_werror_flag"
7054                         || test ! -s conftest.err'
7055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056  (eval $ac_try) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); }; } &&
7060         { ac_try='test -s conftest$ac_exeext'
7061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062  (eval $ac_try) 2>&5
7063  ac_status=$?
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); }; }; then
7066  ac_cv_lib_curl_main=yes
7067else
7068  echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071ac_cv_lib_curl_main=no
7072fi
7073rm -f conftest.err conftest.$ac_objext \
7074      conftest$ac_exeext conftest.$ac_ext
7075LIBS=$ac_check_lib_save_LIBS
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7078echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7079if test $ac_cv_lib_curl_main = yes; then
7080  FOUND_curl=yes
7081fi
7082
7083 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7084  have_curl=yes
7085  CURL_LIBS=`curl-config --libs`
7086  CURLCFLAGS=`curl-config --cflags`
7087
7088cat >>confdefs.h <<_ACEOF
7089#define HAVE_CURL 1
7090_ACEOF
7091
7092 else
7093  have_curl=no
7094 fi
7095
7096fi
7097
7098
7099
7100
7101if test x$have_curl = xyes; then
7102  HAVE_CURL_TRUE=
7103  HAVE_CURL_FALSE='#'
7104else
7105  HAVE_CURL_TRUE='#'
7106  HAVE_CURL_FALSE=
7107fi
7108
7109
7110#---------#
7111# pthread #
7112#---------#
7113if test x$def_pthread = xyes ; then
7114 if test x$have_gthread = xyes ; then
7115
7116for ac_header in pthread.h
7117do
7118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7119if eval "test \"\${$as_ac_Header+set}\" = set"; then
7120  echo "$as_me:$LINENO: checking for $ac_header" >&5
7121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123  echo $ECHO_N "(cached) $ECHO_C" >&6
7124fi
7125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7127else
7128  # Is the header compilable?
7129echo "$as_me:$LINENO: checking $ac_header usability" >&5
7130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7131cat >conftest.$ac_ext <<_ACEOF
7132/* confdefs.h.  */
7133_ACEOF
7134cat confdefs.h >>conftest.$ac_ext
7135cat >>conftest.$ac_ext <<_ACEOF
7136/* end confdefs.h.  */
7137$ac_includes_default
7138#include <$ac_header>
7139_ACEOF
7140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142  (eval $ac_compile) 2>conftest.er1
7143  ac_status=$?
7144  grep -v '^ *+' conftest.er1 >conftest.err
7145  rm -f conftest.er1
7146  cat conftest.err >&5
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); } &&
7149         { ac_try='test -z "$ac_c_werror_flag"
7150                         || test ! -s conftest.err'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; } &&
7156         { ac_try='test -s conftest.$ac_objext'
7157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158  (eval $ac_try) 2>&5
7159  ac_status=$?
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); }; }; then
7162  ac_header_compiler=yes
7163else
7164  echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167ac_header_compiler=no
7168fi
7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171echo "${ECHO_T}$ac_header_compiler" >&6
7172
7173# Is the header present?
7174echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7176cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h.  */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h.  */
7182#include <$ac_header>
7183_ACEOF
7184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7185  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7186  ac_status=$?
7187  grep -v '^ *+' conftest.er1 >conftest.err
7188  rm -f conftest.er1
7189  cat conftest.err >&5
7190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); } >/dev/null; then
7192  if test -s conftest.err; then
7193    ac_cpp_err=$ac_c_preproc_warn_flag
7194    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7195  else
7196    ac_cpp_err=
7197  fi
7198else
7199  ac_cpp_err=yes
7200fi
7201if test -z "$ac_cpp_err"; then
7202  ac_header_preproc=yes
7203else
7204  echo "$as_me: failed program was:" >&5
7205sed 's/^/| /' conftest.$ac_ext >&5
7206
7207  ac_header_preproc=no
7208fi
7209rm -f conftest.err conftest.$ac_ext
7210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7211echo "${ECHO_T}$ac_header_preproc" >&6
7212
7213# So?  What about this header?
7214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215  yes:no: )
7216    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7220    ac_header_preproc=yes
7221    ;;
7222  no:yes:* )
7223    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7225    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7226echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7227    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7229    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7230echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7231    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7233    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7235    (
7236      cat <<\_ASBOX
7237## ---------------------------------------------- ##
7238## Report this to orxonox-dev at mail.datacore.ch ##
7239## ---------------------------------------------- ##
7240_ASBOX
7241    ) |
7242      sed "s/^/$as_me: WARNING:     /" >&2
7243    ;;
7244esac
7245echo "$as_me:$LINENO: checking for $ac_header" >&5
7246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7247if eval "test \"\${$as_ac_Header+set}\" = set"; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250  eval "$as_ac_Header=\$ac_header_preproc"
7251fi
7252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254
7255fi
7256if test `eval echo '${'$as_ac_Header'}'` = yes; then
7257  cat >>confdefs.h <<_ACEOF
7258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259_ACEOF
7260 pthreadHeader="yes"
7261else
7262  pthreadHeader="no"
7263fi
7264
7265done
7266
7267  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7268echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7269if test "${ac_cv_lib_pthread_main+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  ac_check_lib_save_LIBS=$LIBS
7273LIBS="-lpthread  $LIBS"
7274cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h.  */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h.  */
7280
7281
7282int
7283main ()
7284{
7285main ();
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290rm -f conftest.$ac_objext conftest$ac_exeext
7291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292  (eval $ac_link) 2>conftest.er1
7293  ac_status=$?
7294  grep -v '^ *+' conftest.er1 >conftest.err
7295  rm -f conftest.er1
7296  cat conftest.err >&5
7297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298  (exit $ac_status); } &&
7299         { ac_try='test -z "$ac_c_werror_flag"
7300                         || test ! -s conftest.err'
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); }; } &&
7306         { ac_try='test -s conftest$ac_exeext'
7307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308  (eval $ac_try) 2>&5
7309  ac_status=$?
7310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311  (exit $ac_status); }; }; then
7312  ac_cv_lib_pthread_main=yes
7313else
7314  echo "$as_me: failed program was:" >&5
7315sed 's/^/| /' conftest.$ac_ext >&5
7316
7317ac_cv_lib_pthread_main=no
7318fi
7319rm -f conftest.err conftest.$ac_objext \
7320      conftest$ac_exeext conftest.$ac_ext
7321LIBS=$ac_check_lib_save_LIBS
7322fi
7323echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7324echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7325if test $ac_cv_lib_pthread_main = yes; then
7326  FOUND_pthread=yes
7327fi
7328
7329   if test x$FOUND_pthread = xyes ; then
7330      LIBS="$LIBS -lpthread"
7331   fi
7332 fi
7333fi
7334
7335
7336# FIXME: Replace `main' with a function in `-lm':
7337
7338echo "$as_me:$LINENO: checking for main in -lm" >&5
7339echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7340if test "${ac_cv_lib_m_main+set}" = set; then
7341  echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343  ac_check_lib_save_LIBS=$LIBS
7344LIBS="-lm  $LIBS"
7345cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h.  */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h.  */
7351
7352
7353int
7354main ()
7355{
7356main ();
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361rm -f conftest.$ac_objext conftest$ac_exeext
7362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363  (eval $ac_link) 2>conftest.er1
7364  ac_status=$?
7365  grep -v '^ *+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } &&
7370         { ac_try='test -z "$ac_c_werror_flag"
7371                         || test ! -s conftest.err'
7372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373  (eval $ac_try) 2>&5
7374  ac_status=$?
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); }; } &&
7377         { ac_try='test -s conftest$ac_exeext'
7378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379  (eval $ac_try) 2>&5
7380  ac_status=$?
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); }; }; then
7383  ac_cv_lib_m_main=yes
7384else
7385  echo "$as_me: failed program was:" >&5
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388ac_cv_lib_m_main=no
7389fi
7390rm -f conftest.err conftest.$ac_objext \
7391      conftest$ac_exeext conftest.$ac_ext
7392LIBS=$ac_check_lib_save_LIBS
7393fi
7394echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7395echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7396if test $ac_cv_lib_m_main = yes; then
7397  cat >>confdefs.h <<_ACEOF
7398#define HAVE_LIBM 1
7399_ACEOF
7400
7401  LIBS="-lm $LIBS"
7402
7403fi
7404
7405
7406
7407# Checks for header files.
7408echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7409echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7410if test "${ac_cv_header_stdc+set}" = set; then
7411  echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413  cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h.  */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h.  */
7419#include <stdlib.h>
7420#include <stdarg.h>
7421#include <string.h>
7422#include <float.h>
7423
7424int
7425main ()
7426{
7427
7428  ;
7429  return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext
7433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434  (eval $ac_compile) 2>conftest.er1
7435  ac_status=$?
7436  grep -v '^ *+' conftest.er1 >conftest.err
7437  rm -f conftest.er1
7438  cat conftest.err >&5
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); } &&
7441         { ac_try='test -z "$ac_c_werror_flag"
7442                         || test ! -s conftest.err'
7443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444  (eval $ac_try) 2>&5
7445  ac_status=$?
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); }; } &&
7448         { ac_try='test -s conftest.$ac_objext'
7449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450  (eval $ac_try) 2>&5
7451  ac_status=$?
7452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453  (exit $ac_status); }; }; then
7454  ac_cv_header_stdc=yes
7455else
7456  echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459ac_cv_header_stdc=no
7460fi
7461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462
7463if test $ac_cv_header_stdc = yes; then
7464  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7465  cat >conftest.$ac_ext <<_ACEOF
7466/* confdefs.h.  */
7467_ACEOF
7468cat confdefs.h >>conftest.$ac_ext
7469cat >>conftest.$ac_ext <<_ACEOF
7470/* end confdefs.h.  */
7471#include <string.h>
7472
7473_ACEOF
7474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7475  $EGREP "memchr" >/dev/null 2>&1; then
7476  :
7477else
7478  ac_cv_header_stdc=no
7479fi
7480rm -f conftest*
7481
7482fi
7483
7484if test $ac_cv_header_stdc = yes; then
7485  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7486  cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h.  */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h.  */
7492#include <stdlib.h>
7493
7494_ACEOF
7495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7496  $EGREP "free" >/dev/null 2>&1; then
7497  :
7498else
7499  ac_cv_header_stdc=no
7500fi
7501rm -f conftest*
7502
7503fi
7504
7505if test $ac_cv_header_stdc = yes; then
7506  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7507  if test "$cross_compiling" = yes; then
7508  :
7509else
7510  cat >conftest.$ac_ext <<_ACEOF
7511/* confdefs.h.  */
7512_ACEOF
7513cat confdefs.h >>conftest.$ac_ext
7514cat >>conftest.$ac_ext <<_ACEOF
7515/* end confdefs.h.  */
7516#include <ctype.h>
7517#if ((' ' & 0x0FF) == 0x020)
7518# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7519# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7520#else
7521# define ISLOWER(c) \
7522                   (('a' <= (c) && (c) <= 'i') \
7523                     || ('j' <= (c) && (c) <= 'r') \
7524                     || ('s' <= (c) && (c) <= 'z'))
7525# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7526#endif
7527
7528#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7529int
7530main ()
7531{
7532  int i;
7533  for (i = 0; i < 256; i++)
7534    if (XOR (islower (i), ISLOWER (i))
7535        || toupper (i) != TOUPPER (i))
7536      exit(2);
7537  exit (0);
7538}
7539_ACEOF
7540rm -f conftest$ac_exeext
7541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542  (eval $ac_link) 2>&5
7543  ac_status=$?
7544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547  (eval $ac_try) 2>&5
7548  ac_status=$?
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); }; }; then
7551  :
7552else
7553  echo "$as_me: program exited with status $ac_status" >&5
7554echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557( exit $ac_status )
7558ac_cv_header_stdc=no
7559fi
7560rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7561fi
7562fi
7563fi
7564echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7565echo "${ECHO_T}$ac_cv_header_stdc" >&6
7566if test $ac_cv_header_stdc = yes; then
7567
7568cat >>confdefs.h <<\_ACEOF
7569#define STDC_HEADERS 1
7570_ACEOF
7571
7572fi
7573
7574
7575
7576for ac_header in stdlib.h string.h
7577do
7578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7579if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580  echo "$as_me:$LINENO: checking for $ac_header" >&5
7581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7582if eval "test \"\${$as_ac_Header+set}\" = set"; then
7583  echo $ECHO_N "(cached) $ECHO_C" >&6
7584fi
7585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7587else
7588  # Is the header compilable?
7589echo "$as_me:$LINENO: checking $ac_header usability" >&5
7590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7591cat >conftest.$ac_ext <<_ACEOF
7592/* confdefs.h.  */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h.  */
7597$ac_includes_default
7598#include <$ac_header>
7599_ACEOF
7600rm -f conftest.$ac_objext
7601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602  (eval $ac_compile) 2>conftest.er1
7603  ac_status=$?
7604  grep -v '^ *+' conftest.er1 >conftest.err
7605  rm -f conftest.er1
7606  cat conftest.err >&5
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); } &&
7609         { ac_try='test -z "$ac_c_werror_flag"
7610                         || test ! -s conftest.err'
7611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612  (eval $ac_try) 2>&5
7613  ac_status=$?
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); }; } &&
7616         { ac_try='test -s conftest.$ac_objext'
7617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618  (eval $ac_try) 2>&5
7619  ac_status=$?
7620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621  (exit $ac_status); }; }; then
7622  ac_header_compiler=yes
7623else
7624  echo "$as_me: failed program was:" >&5
7625sed 's/^/| /' conftest.$ac_ext >&5
7626
7627ac_header_compiler=no
7628fi
7629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7631echo "${ECHO_T}$ac_header_compiler" >&6
7632
7633# Is the header present?
7634echo "$as_me:$LINENO: checking $ac_header presence" >&5
7635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7636cat >conftest.$ac_ext <<_ACEOF
7637/* confdefs.h.  */
7638_ACEOF
7639cat confdefs.h >>conftest.$ac_ext
7640cat >>conftest.$ac_ext <<_ACEOF
7641/* end confdefs.h.  */
7642#include <$ac_header>
7643_ACEOF
7644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646  ac_status=$?
7647  grep -v '^ *+' conftest.er1 >conftest.err
7648  rm -f conftest.er1
7649  cat conftest.err >&5
7650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651  (exit $ac_status); } >/dev/null; then
7652  if test -s conftest.err; then
7653    ac_cpp_err=$ac_c_preproc_warn_flag
7654    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7655  else
7656    ac_cpp_err=
7657  fi
7658else
7659  ac_cpp_err=yes
7660fi
7661if test -z "$ac_cpp_err"; then
7662  ac_header_preproc=yes
7663else
7664  echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667  ac_header_preproc=no
7668fi
7669rm -f conftest.err conftest.$ac_ext
7670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7671echo "${ECHO_T}$ac_header_preproc" >&6
7672
7673# So?  What about this header?
7674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7675  yes:no: )
7676    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7680    ac_header_preproc=yes
7681    ;;
7682  no:yes:* )
7683    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7685    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7686echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7687    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7689    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7690echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7693    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7695    (
7696      cat <<\_ASBOX
7697## ---------------------------------------------- ##
7698## Report this to orxonox-dev at mail.datacore.ch ##
7699## ---------------------------------------------- ##
7700_ASBOX
7701    ) |
7702      sed "s/^/$as_me: WARNING:     /" >&2
7703    ;;
7704esac
7705echo "$as_me:$LINENO: checking for $ac_header" >&5
7706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710  eval "$as_ac_Header=\$ac_header_preproc"
7711fi
7712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7714
7715fi
7716if test `eval echo '${'$as_ac_Header'}'` = yes; then
7717  cat >>confdefs.h <<_ACEOF
7718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7719_ACEOF
7720
7721fi
7722
7723done
7724
7725
7726# Checks for typedefs, structures, and compiler characteristics.
7727echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7728echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7729if test "${ac_cv_header_stdbool_h+set}" = set; then
7730  echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732  cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h.  */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h.  */
7738
7739#include <stdbool.h>
7740#ifndef bool
7741# error bool is not defined
7742#endif
7743#ifndef false
7744# error false is not defined
7745#endif
7746#if false
7747# error false is not 0
7748#endif
7749#ifndef true
7750# error true is not defined
7751#endif
7752#if true != 1
7753# error true is not 1
7754#endif
7755#ifndef __bool_true_false_are_defined
7756# error __bool_true_false_are_defined is not defined
7757#endif
7758
7759        struct s { _Bool s: 1; _Bool t; } s;
7760
7761        char a[true == 1 ? 1 : -1];
7762        char b[false == 0 ? 1 : -1];
7763        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7764        char d[(bool) -0.5 == true ? 1 : -1];
7765        bool e = &s;
7766        char f[(_Bool) -0.0 == false ? 1 : -1];
7767        char g[true];
7768        char h[sizeof (_Bool)];
7769        char i[sizeof s.t];
7770
7771int
7772main ()
7773{
7774 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7775  ;
7776  return 0;
7777}
7778_ACEOF
7779rm -f conftest.$ac_objext
7780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7781  (eval $ac_compile) 2>conftest.er1
7782  ac_status=$?
7783  grep -v '^ *+' conftest.er1 >conftest.err
7784  rm -f conftest.er1
7785  cat conftest.err >&5
7786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787  (exit $ac_status); } &&
7788         { ac_try='test -z "$ac_c_werror_flag"
7789                         || test ! -s conftest.err'
7790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791  (eval $ac_try) 2>&5
7792  ac_status=$?
7793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794  (exit $ac_status); }; } &&
7795         { ac_try='test -s conftest.$ac_objext'
7796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797  (eval $ac_try) 2>&5
7798  ac_status=$?
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); }; }; then
7801  ac_cv_header_stdbool_h=yes
7802else
7803  echo "$as_me: failed program was:" >&5
7804sed 's/^/| /' conftest.$ac_ext >&5
7805
7806ac_cv_header_stdbool_h=no
7807fi
7808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7809fi
7810echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7811echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7812echo "$as_me:$LINENO: checking for _Bool" >&5
7813echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7814if test "${ac_cv_type__Bool+set}" = set; then
7815  echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817  cat >conftest.$ac_ext <<_ACEOF
7818/* confdefs.h.  */
7819_ACEOF
7820cat confdefs.h >>conftest.$ac_ext
7821cat >>conftest.$ac_ext <<_ACEOF
7822/* end confdefs.h.  */
7823$ac_includes_default
7824int
7825main ()
7826{
7827if ((_Bool *) 0)
7828  return 0;
7829if (sizeof (_Bool))
7830  return 0;
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext
7836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837  (eval $ac_compile) 2>conftest.er1
7838  ac_status=$?
7839  grep -v '^ *+' conftest.er1 >conftest.err
7840  rm -f conftest.er1
7841  cat conftest.err >&5
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); } &&
7844         { ac_try='test -z "$ac_c_werror_flag"
7845                         || test ! -s conftest.err'
7846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847  (eval $ac_try) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); }; } &&
7851         { ac_try='test -s conftest.$ac_objext'
7852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853  (eval $ac_try) 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); }; }; then
7857  ac_cv_type__Bool=yes
7858else
7859  echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
7862ac_cv_type__Bool=no
7863fi
7864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7865fi
7866echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7867echo "${ECHO_T}$ac_cv_type__Bool" >&6
7868if test $ac_cv_type__Bool = yes; then
7869
7870cat >>confdefs.h <<_ACEOF
7871#define HAVE__BOOL 1
7872_ACEOF
7873
7874
7875fi
7876
7877if test $ac_cv_header_stdbool_h = yes; then
7878
7879cat >>confdefs.h <<\_ACEOF
7880#define HAVE_STDBOOL_H 1
7881_ACEOF
7882
7883fi
7884
7885
7886# Checks for library functions.
7887
7888for ac_header in stdlib.h
7889do
7890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7891if eval "test \"\${$as_ac_Header+set}\" = set"; then
7892  echo "$as_me:$LINENO: checking for $ac_header" >&5
7893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7894if eval "test \"\${$as_ac_Header+set}\" = set"; then
7895  echo $ECHO_N "(cached) $ECHO_C" >&6
7896fi
7897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7899else
7900  # Is the header compilable?
7901echo "$as_me:$LINENO: checking $ac_header usability" >&5
7902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7903cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h.  */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h.  */
7909$ac_includes_default
7910#include <$ac_header>
7911_ACEOF
7912rm -f conftest.$ac_objext
7913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914  (eval $ac_compile) 2>conftest.er1
7915  ac_status=$?
7916  grep -v '^ *+' conftest.er1 >conftest.err
7917  rm -f conftest.er1
7918  cat conftest.err >&5
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); } &&
7921         { ac_try='test -z "$ac_c_werror_flag"
7922                         || test ! -s conftest.err'
7923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924  (eval $ac_try) 2>&5
7925  ac_status=$?
7926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927  (exit $ac_status); }; } &&
7928         { ac_try='test -s conftest.$ac_objext'
7929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930  (eval $ac_try) 2>&5
7931  ac_status=$?
7932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933  (exit $ac_status); }; }; then
7934  ac_header_compiler=yes
7935else
7936  echo "$as_me: failed program was:" >&5
7937sed 's/^/| /' conftest.$ac_ext >&5
7938
7939ac_header_compiler=no
7940fi
7941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7943echo "${ECHO_T}$ac_header_compiler" >&6
7944
7945# Is the header present?
7946echo "$as_me:$LINENO: checking $ac_header presence" >&5
7947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7948cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h.  */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h.  */
7954#include <$ac_header>
7955_ACEOF
7956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7957  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7958  ac_status=$?
7959  grep -v '^ *+' conftest.er1 >conftest.err
7960  rm -f conftest.er1
7961  cat conftest.err >&5
7962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963  (exit $ac_status); } >/dev/null; then
7964  if test -s conftest.err; then
7965    ac_cpp_err=$ac_c_preproc_warn_flag
7966    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7967  else
7968    ac_cpp_err=
7969  fi
7970else
7971  ac_cpp_err=yes
7972fi
7973if test -z "$ac_cpp_err"; then
7974  ac_header_preproc=yes
7975else
7976  echo "$as_me: failed program was:" >&5
7977sed 's/^/| /' conftest.$ac_ext >&5
7978
7979  ac_header_preproc=no
7980fi
7981rm -f conftest.err conftest.$ac_ext
7982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7983echo "${ECHO_T}$ac_header_preproc" >&6
7984
7985# So?  What about this header?
7986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7987  yes:no: )
7988    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7990    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7992    ac_header_preproc=yes
7993    ;;
7994  no:yes:* )
7995    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7997    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7998echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7999    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8001    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8002echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8003    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8005    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8007    (
8008      cat <<\_ASBOX
8009## ---------------------------------------------- ##
8010## Report this to orxonox-dev at mail.datacore.ch ##
8011## ---------------------------------------------- ##
8012_ASBOX
8013    ) |
8014      sed "s/^/$as_me: WARNING:     /" >&2
8015    ;;
8016esac
8017echo "$as_me:$LINENO: checking for $ac_header" >&5
8018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020  echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022  eval "$as_ac_Header=\$ac_header_preproc"
8023fi
8024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8026
8027fi
8028if test `eval echo '${'$as_ac_Header'}'` = yes; then
8029  cat >>confdefs.h <<_ACEOF
8030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8031_ACEOF
8032
8033fi
8034
8035done
8036
8037echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8038echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8039if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8040  echo $ECHO_N "(cached) $ECHO_C" >&6
8041else
8042  if test "$cross_compiling" = yes; then
8043  ac_cv_func_malloc_0_nonnull=no
8044else
8045  cat >conftest.$ac_ext <<_ACEOF
8046/* confdefs.h.  */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h.  */
8051#if STDC_HEADERS || HAVE_STDLIB_H
8052# include <stdlib.h>
8053#else
8054char *malloc ();
8055#endif
8056
8057int
8058main ()
8059{
8060exit (malloc (0) ? 0 : 1);
8061  ;
8062  return 0;
8063}
8064_ACEOF
8065rm -f conftest$ac_exeext
8066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067  (eval $ac_link) 2>&5
8068  ac_status=$?
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072  (eval $ac_try) 2>&5
8073  ac_status=$?
8074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075  (exit $ac_status); }; }; then
8076  ac_cv_func_malloc_0_nonnull=yes
8077else
8078  echo "$as_me: program exited with status $ac_status" >&5
8079echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082( exit $ac_status )
8083ac_cv_func_malloc_0_nonnull=no
8084fi
8085rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8086fi
8087fi
8088echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8089echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8090if test $ac_cv_func_malloc_0_nonnull = yes; then
8091
8092cat >>confdefs.h <<\_ACEOF
8093#define HAVE_MALLOC 1
8094_ACEOF
8095
8096else
8097  cat >>confdefs.h <<\_ACEOF
8098#define HAVE_MALLOC 0
8099_ACEOF
8100
8101   case $LIBOBJS in
8102    "malloc.$ac_objext"   | \
8103  *" malloc.$ac_objext"   | \
8104    "malloc.$ac_objext "* | \
8105  *" malloc.$ac_objext "* ) ;;
8106  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8107esac
8108
8109
8110cat >>confdefs.h <<\_ACEOF
8111#define malloc rpl_malloc
8112_ACEOF
8113
8114fi
8115
8116
8117
8118
8119
8120for ac_func in bzero sqrt
8121do
8122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8123echo "$as_me:$LINENO: checking for $ac_func" >&5
8124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8125if eval "test \"\${$as_ac_var+set}\" = set"; then
8126  echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128  cat >conftest.$ac_ext <<_ACEOF
8129/* confdefs.h.  */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h.  */
8134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8136#define $ac_func innocuous_$ac_func
8137
8138/* System header to define __stub macros and hopefully few prototypes,
8139    which can conflict with char $ac_func (); below.
8140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141    <limits.h> exists even on freestanding compilers.  */
8142
8143#ifdef __STDC__
8144# include <limits.h>
8145#else
8146# include <assert.h>
8147#endif
8148
8149#undef $ac_func
8150
8151/* Override any gcc2 internal prototype to avoid an error.  */
8152#ifdef __cplusplus
8153extern "C"
8154{
8155#endif
8156/* We use char because int might match the return type of a gcc2
8157   builtin and then its argument prototype would still apply.  */
8158char $ac_func ();
8159/* The GNU C library defines this for functions which it implements
8160    to always fail with ENOSYS.  Some functions are actually named
8161    something starting with __ and the normal name is an alias.  */
8162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163choke me
8164#else
8165char (*f) () = $ac_func;
8166#endif
8167#ifdef __cplusplus
8168}
8169#endif
8170
8171int
8172main ()
8173{
8174return f != $ac_func;
8175  ;
8176  return 0;
8177}
8178_ACEOF
8179rm -f conftest.$ac_objext conftest$ac_exeext
8180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181  (eval $ac_link) 2>conftest.er1
8182  ac_status=$?
8183  grep -v '^ *+' conftest.er1 >conftest.err
8184  rm -f conftest.er1
8185  cat conftest.err >&5
8186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187  (exit $ac_status); } &&
8188         { ac_try='test -z "$ac_c_werror_flag"
8189                         || test ! -s conftest.err'
8190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191  (eval $ac_try) 2>&5
8192  ac_status=$?
8193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194  (exit $ac_status); }; } &&
8195         { ac_try='test -s conftest$ac_exeext'
8196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197  (eval $ac_try) 2>&5
8198  ac_status=$?
8199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200  (exit $ac_status); }; }; then
8201  eval "$as_ac_var=yes"
8202else
8203  echo "$as_me: failed program was:" >&5
8204sed 's/^/| /' conftest.$ac_ext >&5
8205
8206eval "$as_ac_var=no"
8207fi
8208rm -f conftest.err conftest.$ac_objext \
8209      conftest$ac_exeext conftest.$ac_ext
8210fi
8211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8213if test `eval echo '${'$as_ac_var'}'` = yes; then
8214  cat >>confdefs.h <<_ACEOF
8215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8216_ACEOF
8217
8218fi
8219done
8220
8221
8222######################
8223## OUTPUT CONFIGURE ##
8224######################
8225                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile"
8226
8227
8228cat >confcache <<\_ACEOF
8229# This file is a shell script that caches the results of configure
8230# tests run on this system so they can be shared between configure
8231# scripts and configure runs, see configure's option --config-cache.
8232# It is not useful on other systems.  If it contains results you don't
8233# want to keep, you may remove or edit it.
8234#
8235# config.status only pays attention to the cache file if you give it
8236# the --recheck option to rerun configure.
8237#
8238# `ac_cv_env_foo' variables (set or unset) will be overridden when
8239# loading this file, other *unset* `ac_cv_foo' will be assigned the
8240# following values.
8241
8242_ACEOF
8243
8244# The following way of writing the cache mishandles newlines in values,
8245# but we know of no workaround that is simple, portable, and efficient.
8246# So, don't put newlines in cache variables' values.
8247# Ultrix sh set writes to stderr and can't be redirected directly,
8248# and sets the high bit in the cache file unless we assign to the vars.
8249{
8250  (set) 2>&1 |
8251    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8252    *ac_space=\ *)
8253      # `set' does not quote correctly, so add quotes (double-quote
8254      # substitution turns \\\\ into \\, and sed turns \\ into \).
8255      sed -n \
8256        "s/'/'\\\\''/g;
8257          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8258      ;;
8259    *)
8260      # `set' quotes correctly as required by POSIX, so do not add quotes.
8261      sed -n \
8262        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8263      ;;
8264    esac;
8265} |
8266  sed '
8267     t clear
8268     : clear
8269     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8270     t end
8271     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8272     : end' >>confcache
8273if diff $cache_file confcache >/dev/null 2>&1; then :; else
8274  if test -w $cache_file; then
8275    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8276    cat confcache >$cache_file
8277  else
8278    echo "not updating unwritable cache $cache_file"
8279  fi
8280fi
8281rm -f confcache
8282
8283test "x$prefix" = xNONE && prefix=$ac_default_prefix
8284# Let make expand exec_prefix.
8285test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8286
8287# VPATH may cause trouble with some makes, so we remove $(srcdir),
8288# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8289# trailing colons and then remove the whole line if VPATH becomes empty
8290# (actually we leave an empty line to preserve line numbers).
8291if test "x$srcdir" = x.; then
8292  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8293s/:*\$(srcdir):*/:/;
8294s/:*\${srcdir}:*/:/;
8295s/:*@srcdir@:*/:/;
8296s/^\([^=]*=[     ]*\):*/\1/;
8297s/:*$//;
8298s/^[^=]*=[       ]*$//;
8299}'
8300fi
8301
8302DEFS=-DHAVE_CONFIG_H
8303
8304ac_libobjs=
8305ac_ltlibobjs=
8306for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8307  # 1. Remove the extension, and $U if already installed.
8308  ac_i=`echo "$ac_i" |
8309         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8310  # 2. Add them.
8311  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8312  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8313done
8314LIBOBJS=$ac_libobjs
8315
8316LTLIBOBJS=$ac_ltlibobjs
8317
8318
8319if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8320  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8321Usually this means the macro was only invoked conditionally." >&5
8322echo "$as_me: error: conditional \"AMDEP\" was never defined.
8323Usually this means the macro was only invoked conditionally." >&2;}
8324   { (exit 1); exit 1; }; }
8325fi
8326if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8327  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8328Usually this means the macro was only invoked conditionally." >&5
8329echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8330Usually this means the macro was only invoked conditionally." >&2;}
8331   { (exit 1); exit 1; }; }
8332fi
8333if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8334  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8335Usually this means the macro was only invoked conditionally." >&5
8336echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8337Usually this means the macro was only invoked conditionally." >&2;}
8338   { (exit 1); exit 1; }; }
8339fi
8340if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8341  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8342Usually this means the macro was only invoked conditionally." >&5
8343echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8344Usually this means the macro was only invoked conditionally." >&2;}
8345   { (exit 1); exit 1; }; }
8346fi
8347if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
8348  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
8349Usually this means the macro was only invoked conditionally." >&5
8350echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
8351Usually this means the macro was only invoked conditionally." >&2;}
8352   { (exit 1); exit 1; }; }
8353fi
8354if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8355  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8356Usually this means the macro was only invoked conditionally." >&5
8357echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8358Usually this means the macro was only invoked conditionally." >&2;}
8359   { (exit 1); exit 1; }; }
8360fi
8361if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8362  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8363Usually this means the macro was only invoked conditionally." >&5
8364echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8365Usually this means the macro was only invoked conditionally." >&2;}
8366   { (exit 1); exit 1; }; }
8367fi
8368if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8369  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8370Usually this means the macro was only invoked conditionally." >&5
8371echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8372Usually this means the macro was only invoked conditionally." >&2;}
8373   { (exit 1); exit 1; }; }
8374fi
8375if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8376  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8377Usually this means the macro was only invoked conditionally." >&5
8378echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8379Usually this means the macro was only invoked conditionally." >&2;}
8380   { (exit 1); exit 1; }; }
8381fi
8382
8383: ${CONFIG_STATUS=./config.status}
8384ac_clean_files_save=$ac_clean_files
8385ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8386{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8387echo "$as_me: creating $CONFIG_STATUS" >&6;}
8388cat >$CONFIG_STATUS <<_ACEOF
8389#! $SHELL
8390# Generated by $as_me.
8391# Run this file to recreate the current configuration.
8392# Compiler output produced by configure, useful for debugging
8393# configure, is in config.log if it exists.
8394
8395debug=false
8396ac_cs_recheck=false
8397ac_cs_silent=false
8398SHELL=\${CONFIG_SHELL-$SHELL}
8399_ACEOF
8400
8401cat >>$CONFIG_STATUS <<\_ACEOF
8402## --------------------- ##
8403## M4sh Initialization.  ##
8404## --------------------- ##
8405
8406# Be Bourne compatible
8407if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8408  emulate sh
8409  NULLCMD=:
8410  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8411  # is contrary to our usage.  Disable this feature.
8412  alias -g '${1+"$@"}'='"$@"'
8413elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8414  set -o posix
8415fi
8416DUALCASE=1; export DUALCASE # for MKS sh
8417
8418# Support unset when possible.
8419if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8420  as_unset=unset
8421else
8422  as_unset=false
8423fi
8424
8425
8426# Work around bugs in pre-3.0 UWIN ksh.
8427$as_unset ENV MAIL MAILPATH
8428PS1='$ '
8429PS2='> '
8430PS4='+ '
8431
8432# NLS nuisances.
8433for as_var in \
8434  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8435  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8436  LC_TELEPHONE LC_TIME
8437do
8438  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8439    eval $as_var=C; export $as_var
8440  else
8441    $as_unset $as_var
8442  fi
8443done
8444
8445# Required to use basename.
8446if expr a : '\(a\)' >/dev/null 2>&1; then
8447  as_expr=expr
8448else
8449  as_expr=false
8450fi
8451
8452if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8453  as_basename=basename
8454else
8455  as_basename=false
8456fi
8457
8458
8459# Name of the executable.
8460as_me=`$as_basename "$0" ||
8461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8462         X"$0" : 'X\(//\)$' \| \
8463         X"$0" : 'X\(/\)$' \| \
8464         .     : '\(.\)' 2>/dev/null ||
8465echo X/"$0" |
8466    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8467          /^X\/\(\/\/\)$/{ s//\1/; q; }
8468          /^X\/\(\/\).*/{ s//\1/; q; }
8469          s/.*/./; q'`
8470
8471
8472# PATH needs CR, and LINENO needs CR and PATH.
8473# Avoid depending upon Character Ranges.
8474as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8475as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8476as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8477as_cr_digits='0123456789'
8478as_cr_alnum=$as_cr_Letters$as_cr_digits
8479
8480# The user is always right.
8481if test "${PATH_SEPARATOR+set}" != set; then
8482  echo "#! /bin/sh" >conf$$.sh
8483  echo  "exit 0"   >>conf$$.sh
8484  chmod +x conf$$.sh
8485  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8486    PATH_SEPARATOR=';'
8487  else
8488    PATH_SEPARATOR=:
8489  fi
8490  rm -f conf$$.sh
8491fi
8492
8493
8494  as_lineno_1=$LINENO
8495  as_lineno_2=$LINENO
8496  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8497  test "x$as_lineno_1" != "x$as_lineno_2" &&
8498  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8499  # Find who we are.  Look in the path if we contain no path at all
8500  # relative or not.
8501  case $0 in
8502    *[\\/]* ) as_myself=$0 ;;
8503    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506  IFS=$as_save_IFS
8507  test -z "$as_dir" && as_dir=.
8508  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8509done
8510
8511       ;;
8512  esac
8513  # We did not find ourselves, most probably we were run as `sh COMMAND'
8514  # in which case we are not to be found in the path.
8515  if test "x$as_myself" = x; then
8516    as_myself=$0
8517  fi
8518  if test ! -f "$as_myself"; then
8519    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8520echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8521   { (exit 1); exit 1; }; }
8522  fi
8523  case $CONFIG_SHELL in
8524  '')
8525    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8527do
8528  IFS=$as_save_IFS
8529  test -z "$as_dir" && as_dir=.
8530  for as_base in sh bash ksh sh5; do
8531         case $as_dir in
8532         /*)
8533           if ("$as_dir/$as_base" -c '
8534  as_lineno_1=$LINENO
8535  as_lineno_2=$LINENO
8536  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8537  test "x$as_lineno_1" != "x$as_lineno_2" &&
8538  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8539             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8540             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8541             CONFIG_SHELL=$as_dir/$as_base
8542             export CONFIG_SHELL
8543             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8544           fi;;
8545         esac
8546       done
8547done
8548;;
8549  esac
8550
8551  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8552  # uniformly replaced by the line number.  The first 'sed' inserts a
8553  # line-number line before each line; the second 'sed' does the real
8554  # work.  The second script uses 'N' to pair each line-number line
8555  # with the numbered line, and appends trailing '-' during
8556  # substitution so that $LINENO is not a special case at line end.
8557  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8558  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8559  sed '=' <$as_myself |
8560    sed '
8561      N
8562      s,$,-,
8563      : loop
8564      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8565      t loop
8566      s,-$,,
8567      s,^['$as_cr_digits']*\n,,
8568    ' >$as_me.lineno &&
8569  chmod +x $as_me.lineno ||
8570    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8571echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8572   { (exit 1); exit 1; }; }
8573
8574  # Don't try to exec as it changes $[0], causing all sort of problems
8575  # (the dirname of $[0] is not the place where we might find the
8576  # original and so on.  Autoconf is especially sensible to this).
8577  . ./$as_me.lineno
8578  # Exit status is that of the last command.
8579  exit
8580}
8581
8582
8583case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8584  *c*,-n*) ECHO_N= ECHO_C='
8585' ECHO_T='      ' ;;
8586  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8587  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8588esac
8589
8590if expr a : '\(a\)' >/dev/null 2>&1; then
8591  as_expr=expr
8592else
8593  as_expr=false
8594fi
8595
8596rm -f conf$$ conf$$.exe conf$$.file
8597echo >conf$$.file
8598if ln -s conf$$.file conf$$ 2>/dev/null; then
8599  # We could just check for DJGPP; but this test a) works b) is more generic
8600  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8601  if test -f conf$$.exe; then
8602    # Don't use ln at all; we don't have any links
8603    as_ln_s='cp -p'
8604  else
8605    as_ln_s='ln -s'
8606  fi
8607elif ln conf$$.file conf$$ 2>/dev/null; then
8608  as_ln_s=ln
8609else
8610  as_ln_s='cp -p'
8611fi
8612rm -f conf$$ conf$$.exe conf$$.file
8613
8614if mkdir -p . 2>/dev/null; then
8615  as_mkdir_p=:
8616else
8617  test -d ./-p && rmdir ./-p
8618  as_mkdir_p=false
8619fi
8620
8621as_executable_p="test -f"
8622
8623# Sed expression to map a string onto a valid CPP name.
8624as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8625
8626# Sed expression to map a string onto a valid variable name.
8627as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8628
8629
8630# IFS
8631# We need space, tab and new line, in precisely that order.
8632as_nl='
8633'
8634IFS="   $as_nl"
8635
8636# CDPATH.
8637$as_unset CDPATH
8638
8639exec 6>&1
8640
8641# Open the log real soon, to keep \$[0] and so on meaningful, and to
8642# report actual input values of CONFIG_FILES etc. instead of their
8643# values after options handling.  Logging --version etc. is OK.
8644exec 5>>config.log
8645{
8646  echo
8647  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8648## Running $as_me. ##
8649_ASBOX
8650} >&5
8651cat >&5 <<_CSEOF
8652
8653This file was extended by orxonox $as_me 0.2.2-pre-alpha, which was
8654generated by GNU Autoconf 2.59.  Invocation command line was
8655
8656  CONFIG_FILES    = $CONFIG_FILES
8657  CONFIG_HEADERS  = $CONFIG_HEADERS
8658  CONFIG_LINKS    = $CONFIG_LINKS
8659  CONFIG_COMMANDS = $CONFIG_COMMANDS
8660  $ $0 $@
8661
8662_CSEOF
8663echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8664echo >&5
8665_ACEOF
8666
8667# Files that config.status was made for.
8668if test -n "$ac_config_files"; then
8669  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8670fi
8671
8672if test -n "$ac_config_headers"; then
8673  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8674fi
8675
8676if test -n "$ac_config_links"; then
8677  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8678fi
8679
8680if test -n "$ac_config_commands"; then
8681  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8682fi
8683
8684cat >>$CONFIG_STATUS <<\_ACEOF
8685
8686ac_cs_usage="\
8687\`$as_me' instantiates files from templates according to the
8688current configuration.
8689
8690Usage: $0 [OPTIONS] [FILE]...
8691
8692  -h, --help       print this help, then exit
8693  -V, --version    print version number, then exit
8694  -q, --quiet      do not print progress messages
8695  -d, --debug      don't remove temporary files
8696      --recheck    update $as_me by reconfiguring in the same conditions
8697  --file=FILE[:TEMPLATE]
8698                   instantiate the configuration file FILE
8699  --header=FILE[:TEMPLATE]
8700                   instantiate the configuration header FILE
8701
8702Configuration files:
8703$config_files
8704
8705Configuration headers:
8706$config_headers
8707
8708Configuration commands:
8709$config_commands
8710
8711Report bugs to <bug-autoconf@gnu.org>."
8712_ACEOF
8713
8714cat >>$CONFIG_STATUS <<_ACEOF
8715ac_cs_version="\\
8716orxonox config.status 0.2.2-pre-alpha
8717configured by $0, generated by GNU Autoconf 2.59,
8718  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8719
8720Copyright (C) 2003 Free Software Foundation, Inc.
8721This config.status script is free software; the Free Software Foundation
8722gives unlimited permission to copy, distribute and modify it."
8723srcdir=$srcdir
8724INSTALL="$INSTALL"
8725_ACEOF
8726
8727cat >>$CONFIG_STATUS <<\_ACEOF
8728# If no file are specified by the user, then we need to provide default
8729# value.  By we need to know if files were specified by the user.
8730ac_need_defaults=:
8731while test $# != 0
8732do
8733  case $1 in
8734  --*=*)
8735    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8736    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8737    ac_shift=:
8738    ;;
8739  -*)
8740    ac_option=$1
8741    ac_optarg=$2
8742    ac_shift=shift
8743    ;;
8744  *) # This is not an option, so the user has probably given explicit
8745     # arguments.
8746     ac_option=$1
8747     ac_need_defaults=false;;
8748  esac
8749
8750  case $ac_option in
8751  # Handling of the options.
8752_ACEOF
8753cat >>$CONFIG_STATUS <<\_ACEOF
8754  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8755    ac_cs_recheck=: ;;
8756  --version | --vers* | -V )
8757    echo "$ac_cs_version"; exit 0 ;;
8758  --he | --h)
8759    # Conflict between --help and --header
8760    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8761Try \`$0 --help' for more information." >&5
8762echo "$as_me: error: ambiguous option: $1
8763Try \`$0 --help' for more information." >&2;}
8764   { (exit 1); exit 1; }; };;
8765  --help | --hel | -h )
8766    echo "$ac_cs_usage"; exit 0 ;;
8767  --debug | --d* | -d )
8768    debug=: ;;
8769  --file | --fil | --fi | --f )
8770    $ac_shift
8771    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8772    ac_need_defaults=false;;
8773  --header | --heade | --head | --hea )
8774    $ac_shift
8775    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8776    ac_need_defaults=false;;
8777  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8778  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8779    ac_cs_silent=: ;;
8780
8781  # This is an error.
8782  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8783Try \`$0 --help' for more information." >&5
8784echo "$as_me: error: unrecognized option: $1
8785Try \`$0 --help' for more information." >&2;}
8786   { (exit 1); exit 1; }; } ;;
8787
8788  *) ac_config_targets="$ac_config_targets $1" ;;
8789
8790  esac
8791  shift
8792done
8793
8794ac_configure_extra_args=
8795
8796if $ac_cs_silent; then
8797  exec 6>/dev/null
8798  ac_configure_extra_args="$ac_configure_extra_args --silent"
8799fi
8800
8801_ACEOF
8802cat >>$CONFIG_STATUS <<_ACEOF
8803if \$ac_cs_recheck; then
8804  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8805  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8806fi
8807
8808_ACEOF
8809
8810cat >>$CONFIG_STATUS <<_ACEOF
8811#
8812# INIT-COMMANDS section.
8813#
8814
8815AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8816
8817_ACEOF
8818
8819
8820
8821cat >>$CONFIG_STATUS <<\_ACEOF
8822for ac_config_target in $ac_config_targets
8823do
8824  case "$ac_config_target" in
8825  # Handling of arguments.
8826  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8827  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8828  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
8829  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
8830  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
8831  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
8832  "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;;
8833  "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;;
8834  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
8835  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
8836  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8837  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8838  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8839echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8840   { (exit 1); exit 1; }; };;
8841  esac
8842done
8843
8844# If the user did not use the arguments to specify the items to instantiate,
8845# then the envvar interface is used.  Set only those that are not.
8846# We use the long form for the default assignment because of an extremely
8847# bizarre bug on SunOS 4.1.3.
8848if $ac_need_defaults; then
8849  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8850  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8851  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8852fi
8853
8854# Have a temporary directory for convenience.  Make it in the build tree
8855# simply because there is no reason to put it here, and in addition,
8856# creating and moving files from /tmp can sometimes cause problems.
8857# Create a temporary directory, and hook for its removal unless debugging.
8858$debug ||
8859{
8860  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8861  trap '{ (exit 1); exit 1; }' 1 2 13 15
8862}
8863
8864# Create a (secure) tmp directory for tmp files.
8865
8866{
8867  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8868  test -n "$tmp" && test -d "$tmp"
8869}  ||
8870{
8871  tmp=./confstat$$-$RANDOM
8872  (umask 077 && mkdir $tmp)
8873} ||
8874{
8875   echo "$me: cannot create a temporary directory in ." >&2
8876   { (exit 1); exit 1; }
8877}
8878
8879_ACEOF
8880
8881cat >>$CONFIG_STATUS <<_ACEOF
8882
8883#
8884# CONFIG_FILES section.
8885#
8886
8887# No need to generate the scripts if there are no CONFIG_FILES.
8888# This happens for instance when ./config.status config.h
8889if test -n "\$CONFIG_FILES"; then
8890  # Protect against being on the right side of a sed subst in config.status.
8891  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8892   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8893s,@SHELL@,$SHELL,;t t
8894s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8895s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8896s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8897s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8898s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8899s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8900s,@exec_prefix@,$exec_prefix,;t t
8901s,@prefix@,$prefix,;t t
8902s,@program_transform_name@,$program_transform_name,;t t
8903s,@bindir@,$bindir,;t t
8904s,@sbindir@,$sbindir,;t t
8905s,@libexecdir@,$libexecdir,;t t
8906s,@datadir@,$datadir,;t t
8907s,@sysconfdir@,$sysconfdir,;t t
8908s,@sharedstatedir@,$sharedstatedir,;t t
8909s,@localstatedir@,$localstatedir,;t t
8910s,@libdir@,$libdir,;t t
8911s,@includedir@,$includedir,;t t
8912s,@oldincludedir@,$oldincludedir,;t t
8913s,@infodir@,$infodir,;t t
8914s,@mandir@,$mandir,;t t
8915s,@build_alias@,$build_alias,;t t
8916s,@host_alias@,$host_alias,;t t
8917s,@target_alias@,$target_alias,;t t
8918s,@DEFS@,$DEFS,;t t
8919s,@ECHO_C@,$ECHO_C,;t t
8920s,@ECHO_N@,$ECHO_N,;t t
8921s,@ECHO_T@,$ECHO_T,;t t
8922s,@LIBS@,$LIBS,;t t
8923s,@build@,$build,;t t
8924s,@build_cpu@,$build_cpu,;t t
8925s,@build_vendor@,$build_vendor,;t t
8926s,@build_os@,$build_os,;t t
8927s,@host@,$host,;t t
8928s,@host_cpu@,$host_cpu,;t t
8929s,@host_vendor@,$host_vendor,;t t
8930s,@host_os@,$host_os,;t t
8931s,@target@,$target,;t t
8932s,@target_cpu@,$target_cpu,;t t
8933s,@target_vendor@,$target_vendor,;t t
8934s,@target_os@,$target_os,;t t
8935s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8936s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8937s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8938s,@CYGPATH_W@,$CYGPATH_W,;t t
8939s,@PACKAGE@,$PACKAGE,;t t
8940s,@VERSION@,$VERSION,;t t
8941s,@ACLOCAL@,$ACLOCAL,;t t
8942s,@AUTOCONF@,$AUTOCONF,;t t
8943s,@AUTOMAKE@,$AUTOMAKE,;t t
8944s,@AUTOHEADER@,$AUTOHEADER,;t t
8945s,@MAKEINFO@,$MAKEINFO,;t t
8946s,@AMTAR@,$AMTAR,;t t
8947s,@install_sh@,$install_sh,;t t
8948s,@STRIP@,$STRIP,;t t
8949s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8950s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8951s,@mkdir_p@,$mkdir_p,;t t
8952s,@AWK@,$AWK,;t t
8953s,@SET_MAKE@,$SET_MAKE,;t t
8954s,@am__leading_dot@,$am__leading_dot,;t t
8955s,@CXX@,$CXX,;t t
8956s,@CXXFLAGS@,$CXXFLAGS,;t t
8957s,@LDFLAGS@,$LDFLAGS,;t t
8958s,@CPPFLAGS@,$CPPFLAGS,;t t
8959s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8960s,@EXEEXT@,$EXEEXT,;t t
8961s,@OBJEXT@,$OBJEXT,;t t
8962s,@DEPDIR@,$DEPDIR,;t t
8963s,@am__include@,$am__include,;t t
8964s,@am__quote@,$am__quote,;t t
8965s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8966s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8967s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8968s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8969s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8970s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8971s,@CC@,$CC,;t t
8972s,@CFLAGS@,$CFLAGS,;t t
8973s,@ac_ct_CC@,$ac_ct_CC,;t t
8974s,@CCDEPMODE@,$CCDEPMODE,;t t
8975s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8976s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8977s,@CPP@,$CPP,;t t
8978s,@EGREP@,$EGREP,;t t
8979s,@DEBUG@,$DEBUG,;t t
8980s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
8981s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
8982s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
8983s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
8984s,@DOXYGEN@,$DOXYGEN,;t t
8985s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8986s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8987s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8988s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8989s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8990s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8991s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8992s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
8993s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
8994s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
8995s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
8996s,@CURL_LIBS@,$CURL_LIBS,;t t
8997s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
8998s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
8999s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
9000s,@LIBOBJS@,$LIBOBJS,;t t
9001s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9002CEOF
9003
9004_ACEOF
9005
9006  cat >>$CONFIG_STATUS <<\_ACEOF
9007  # Split the substitutions into bite-sized pieces for seds with
9008  # small command number limits, like on Digital OSF/1 and HP-UX.
9009  ac_max_sed_lines=48
9010  ac_sed_frag=1 # Number of current file.
9011  ac_beg=1 # First line for current file.
9012  ac_end=$ac_max_sed_lines # Line after last line for current file.
9013  ac_more_lines=:
9014  ac_sed_cmds=
9015  while $ac_more_lines; do
9016    if test $ac_beg -gt 1; then
9017      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9018    else
9019      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9020    fi
9021    if test ! -s $tmp/subs.frag; then
9022      ac_more_lines=false
9023    else
9024      # The purpose of the label and of the branching condition is to
9025      # speed up the sed processing (if there are no `@' at all, there
9026      # is no need to browse any of the substitutions).
9027      # These are the two extra sed commands mentioned above.
9028      (echo ':t
9029  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9030      if test -z "$ac_sed_cmds"; then
9031        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9032      else
9033        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9034      fi
9035      ac_sed_frag=`expr $ac_sed_frag + 1`
9036      ac_beg=$ac_end
9037      ac_end=`expr $ac_end + $ac_max_sed_lines`
9038    fi
9039  done
9040  if test -z "$ac_sed_cmds"; then
9041    ac_sed_cmds=cat
9042  fi
9043fi # test -n "$CONFIG_FILES"
9044
9045_ACEOF
9046cat >>$CONFIG_STATUS <<\_ACEOF
9047for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9048  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9049  case $ac_file in
9050  - | *:- | *:-:* ) # input from stdin
9051        cat >$tmp/stdin
9052        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9053        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9054  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9055        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9056  * )   ac_file_in=$ac_file.in ;;
9057  esac
9058
9059  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9060  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9062         X"$ac_file" : 'X\(//\)[^/]' \| \
9063         X"$ac_file" : 'X\(//\)$' \| \
9064         X"$ac_file" : 'X\(/\)' \| \
9065         .     : '\(.\)' 2>/dev/null ||
9066echo X"$ac_file" |
9067    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9068          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9069          /^X\(\/\/\)$/{ s//\1/; q; }
9070          /^X\(\/\).*/{ s//\1/; q; }
9071          s/.*/./; q'`
9072  { if $as_mkdir_p; then
9073    mkdir -p "$ac_dir"
9074  else
9075    as_dir="$ac_dir"
9076    as_dirs=
9077    while test ! -d "$as_dir"; do
9078      as_dirs="$as_dir $as_dirs"
9079      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9080$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9081         X"$as_dir" : 'X\(//\)[^/]' \| \
9082         X"$as_dir" : 'X\(//\)$' \| \
9083         X"$as_dir" : 'X\(/\)' \| \
9084         .     : '\(.\)' 2>/dev/null ||
9085echo X"$as_dir" |
9086    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9087          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9088          /^X\(\/\/\)$/{ s//\1/; q; }
9089          /^X\(\/\).*/{ s//\1/; q; }
9090          s/.*/./; q'`
9091    done
9092    test ! -n "$as_dirs" || mkdir $as_dirs
9093  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9094echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9095   { (exit 1); exit 1; }; }; }
9096
9097  ac_builddir=.
9098
9099if test "$ac_dir" != .; then
9100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9101  # A "../" for each directory in $ac_dir_suffix.
9102  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9103else
9104  ac_dir_suffix= ac_top_builddir=
9105fi
9106
9107case $srcdir in
9108  .)  # No --srcdir option.  We are building in place.
9109    ac_srcdir=.
9110    if test -z "$ac_top_builddir"; then
9111       ac_top_srcdir=.
9112    else
9113       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9114    fi ;;
9115  [\\/]* | ?:[\\/]* )  # Absolute path.
9116    ac_srcdir=$srcdir$ac_dir_suffix;
9117    ac_top_srcdir=$srcdir ;;
9118  *) # Relative path.
9119    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9120    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9121esac
9122
9123# Do not use `cd foo && pwd` to compute absolute paths, because
9124# the directories may not exist.
9125case `pwd` in
9126.) ac_abs_builddir="$ac_dir";;
9127*)
9128  case "$ac_dir" in
9129  .) ac_abs_builddir=`pwd`;;
9130  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9131  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9132  esac;;
9133esac
9134case $ac_abs_builddir in
9135.) ac_abs_top_builddir=${ac_top_builddir}.;;
9136*)
9137  case ${ac_top_builddir}. in
9138  .) ac_abs_top_builddir=$ac_abs_builddir;;
9139  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9140  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9141  esac;;
9142esac
9143case $ac_abs_builddir in
9144.) ac_abs_srcdir=$ac_srcdir;;
9145*)
9146  case $ac_srcdir in
9147  .) ac_abs_srcdir=$ac_abs_builddir;;
9148  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9149  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9150  esac;;
9151esac
9152case $ac_abs_builddir in
9153.) ac_abs_top_srcdir=$ac_top_srcdir;;
9154*)
9155  case $ac_top_srcdir in
9156  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9157  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9158  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9159  esac;;
9160esac
9161
9162
9163  case $INSTALL in
9164  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9165  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9166  esac
9167
9168  if test x"$ac_file" != x-; then
9169    { echo "$as_me:$LINENO: creating $ac_file" >&5
9170echo "$as_me: creating $ac_file" >&6;}
9171    rm -f "$ac_file"
9172  fi
9173  # Let's still pretend it is `configure' which instantiates (i.e., don't
9174  # use $as_me), people would be surprised to read:
9175  #    /* config.h.  Generated by config.status.  */
9176  if test x"$ac_file" = x-; then
9177    configure_input=
9178  else
9179    configure_input="$ac_file.  "
9180  fi
9181  configure_input=$configure_input"Generated from `echo $ac_file_in |
9182                                     sed 's,.*/,,'` by configure."
9183
9184  # First look for the input files in the build tree, otherwise in the
9185  # src tree.
9186  ac_file_inputs=`IFS=:
9187    for f in $ac_file_in; do
9188      case $f in
9189      -) echo $tmp/stdin ;;
9190      [\\/$]*)
9191         # Absolute (can't be DOS-style, as IFS=:)
9192         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9193echo "$as_me: error: cannot find input file: $f" >&2;}
9194   { (exit 1); exit 1; }; }
9195         echo "$f";;
9196      *) # Relative
9197         if test -f "$f"; then
9198           # Build tree
9199           echo "$f"
9200         elif test -f "$srcdir/$f"; then
9201           # Source tree
9202           echo "$srcdir/$f"
9203         else
9204           # /dev/null tree
9205           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9206echo "$as_me: error: cannot find input file: $f" >&2;}
9207   { (exit 1); exit 1; }; }
9208         fi;;
9209      esac
9210    done` || { (exit 1); exit 1; }
9211_ACEOF
9212cat >>$CONFIG_STATUS <<_ACEOF
9213  sed "$ac_vpsub
9214$extrasub
9215_ACEOF
9216cat >>$CONFIG_STATUS <<\_ACEOF
9217:t
9218/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9219s,@configure_input@,$configure_input,;t t
9220s,@srcdir@,$ac_srcdir,;t t
9221s,@abs_srcdir@,$ac_abs_srcdir,;t t
9222s,@top_srcdir@,$ac_top_srcdir,;t t
9223s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9224s,@builddir@,$ac_builddir,;t t
9225s,@abs_builddir@,$ac_abs_builddir,;t t
9226s,@top_builddir@,$ac_top_builddir,;t t
9227s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9228s,@INSTALL@,$ac_INSTALL,;t t
9229" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9230  rm -f $tmp/stdin
9231  if test x"$ac_file" != x-; then
9232    mv $tmp/out $ac_file
9233  else
9234    cat $tmp/out
9235    rm -f $tmp/out
9236  fi
9237
9238done
9239_ACEOF
9240cat >>$CONFIG_STATUS <<\_ACEOF
9241
9242#
9243# CONFIG_HEADER section.
9244#
9245
9246# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9247# NAME is the cpp macro being defined and VALUE is the value it is being given.
9248#
9249# ac_d sets the value in "#define NAME VALUE" lines.
9250ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9251ac_dB='[         ].*$,\1#\2'
9252ac_dC=' '
9253ac_dD=',;t'
9254# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9255ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9256ac_uB='$,\1#\2define\3'
9257ac_uC=' '
9258ac_uD=',;t'
9259
9260for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9261  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9262  case $ac_file in
9263  - | *:- | *:-:* ) # input from stdin
9264        cat >$tmp/stdin
9265        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9266        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9267  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9268        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9269  * )   ac_file_in=$ac_file.in ;;
9270  esac
9271
9272  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9273echo "$as_me: creating $ac_file" >&6;}
9274
9275  # First look for the input files in the build tree, otherwise in the
9276  # src tree.
9277  ac_file_inputs=`IFS=:
9278    for f in $ac_file_in; do
9279      case $f in
9280      -) echo $tmp/stdin ;;
9281      [\\/$]*)
9282         # Absolute (can't be DOS-style, as IFS=:)
9283         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9284echo "$as_me: error: cannot find input file: $f" >&2;}
9285   { (exit 1); exit 1; }; }
9286         # Do quote $f, to prevent DOS paths from being IFS'd.
9287         echo "$f";;
9288      *) # Relative
9289         if test -f "$f"; then
9290           # Build tree
9291           echo "$f"
9292         elif test -f "$srcdir/$f"; then
9293           # Source tree
9294           echo "$srcdir/$f"
9295         else
9296           # /dev/null tree
9297           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9298echo "$as_me: error: cannot find input file: $f" >&2;}
9299   { (exit 1); exit 1; }; }
9300         fi;;
9301      esac
9302    done` || { (exit 1); exit 1; }
9303  # Remove the trailing spaces.
9304  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9305
9306_ACEOF
9307
9308# Transform confdefs.h into two sed scripts, `conftest.defines' and
9309# `conftest.undefs', that substitutes the proper values into
9310# config.h.in to produce config.h.  The first handles `#define'
9311# templates, and the second `#undef' templates.
9312# And first: Protect against being on the right side of a sed subst in
9313# config.status.  Protect against being in an unquoted here document
9314# in config.status.
9315rm -f conftest.defines conftest.undefs
9316# Using a here document instead of a string reduces the quoting nightmare.
9317# Putting comments in sed scripts is not portable.
9318#
9319# `end' is used to avoid that the second main sed command (meant for
9320# 0-ary CPP macros) applies to n-ary macro definitions.
9321# See the Autoconf documentation for `clear'.
9322cat >confdef2sed.sed <<\_ACEOF
9323s/[\\&,]/\\&/g
9324s,[\\$`],\\&,g
9325t clear
9326: clear
9327s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9328t end
9329s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9330: end
9331_ACEOF
9332# If some macros were called several times there might be several times
9333# the same #defines, which is useless.  Nevertheless, we may not want to
9334# sort them, since we want the *last* AC-DEFINE to be honored.
9335uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9336sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9337rm -f confdef2sed.sed
9338
9339# This sed command replaces #undef with comments.  This is necessary, for
9340# example, in the case of _POSIX_SOURCE, which is predefined and required
9341# on some systems where configure will not decide to define it.
9342cat >>conftest.undefs <<\_ACEOF
9343s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9344_ACEOF
9345
9346# Break up conftest.defines because some shells have a limit on the size
9347# of here documents, and old seds have small limits too (100 cmds).
9348echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9349echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9350echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9351echo '  :' >>$CONFIG_STATUS
9352rm -f conftest.tail
9353while grep . conftest.defines >/dev/null
9354do
9355  # Write a limited-size here document to $tmp/defines.sed.
9356  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9357  # Speed up: don't consider the non `#define' lines.
9358  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9359  # Work around the forget-to-reset-the-flag bug.
9360  echo 't clr' >>$CONFIG_STATUS
9361  echo ': clr' >>$CONFIG_STATUS
9362  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9363  echo 'CEOF
9364  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9365  rm -f $tmp/in
9366  mv $tmp/out $tmp/in
9367' >>$CONFIG_STATUS
9368  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9369  rm -f conftest.defines
9370  mv conftest.tail conftest.defines
9371done
9372rm -f conftest.defines
9373echo '  fi # grep' >>$CONFIG_STATUS
9374echo >>$CONFIG_STATUS
9375
9376# Break up conftest.undefs because some shells have a limit on the size
9377# of here documents, and old seds have small limits too (100 cmds).
9378echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9379rm -f conftest.tail
9380while grep . conftest.undefs >/dev/null
9381do
9382  # Write a limited-size here document to $tmp/undefs.sed.
9383  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9384  # Speed up: don't consider the non `#undef'
9385  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9386  # Work around the forget-to-reset-the-flag bug.
9387  echo 't clr' >>$CONFIG_STATUS
9388  echo ': clr' >>$CONFIG_STATUS
9389  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9390  echo 'CEOF
9391  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9392  rm -f $tmp/in
9393  mv $tmp/out $tmp/in
9394' >>$CONFIG_STATUS
9395  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9396  rm -f conftest.undefs
9397  mv conftest.tail conftest.undefs
9398done
9399rm -f conftest.undefs
9400
9401cat >>$CONFIG_STATUS <<\_ACEOF
9402  # Let's still pretend it is `configure' which instantiates (i.e., don't
9403  # use $as_me), people would be surprised to read:
9404  #    /* config.h.  Generated by config.status.  */
9405  if test x"$ac_file" = x-; then
9406    echo "/* Generated by configure.  */" >$tmp/config.h
9407  else
9408    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9409  fi
9410  cat $tmp/in >>$tmp/config.h
9411  rm -f $tmp/in
9412  if test x"$ac_file" != x-; then
9413    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9414      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9415echo "$as_me: $ac_file is unchanged" >&6;}
9416    else
9417      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9419         X"$ac_file" : 'X\(//\)[^/]' \| \
9420         X"$ac_file" : 'X\(//\)$' \| \
9421         X"$ac_file" : 'X\(/\)' \| \
9422         .     : '\(.\)' 2>/dev/null ||
9423echo X"$ac_file" |
9424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9425          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9426          /^X\(\/\/\)$/{ s//\1/; q; }
9427          /^X\(\/\).*/{ s//\1/; q; }
9428          s/.*/./; q'`
9429      { if $as_mkdir_p; then
9430    mkdir -p "$ac_dir"
9431  else
9432    as_dir="$ac_dir"
9433    as_dirs=
9434    while test ! -d "$as_dir"; do
9435      as_dirs="$as_dir $as_dirs"
9436      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9438         X"$as_dir" : 'X\(//\)[^/]' \| \
9439         X"$as_dir" : 'X\(//\)$' \| \
9440         X"$as_dir" : 'X\(/\)' \| \
9441         .     : '\(.\)' 2>/dev/null ||
9442echo X"$as_dir" |
9443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9444          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9445          /^X\(\/\/\)$/{ s//\1/; q; }
9446          /^X\(\/\).*/{ s//\1/; q; }
9447          s/.*/./; q'`
9448    done
9449    test ! -n "$as_dirs" || mkdir $as_dirs
9450  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9451echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9452   { (exit 1); exit 1; }; }; }
9453
9454      rm -f $ac_file
9455      mv $tmp/config.h $ac_file
9456    fi
9457  else
9458    cat $tmp/config.h
9459    rm -f $tmp/config.h
9460  fi
9461# Compute $ac_file's index in $config_headers.
9462_am_stamp_count=1
9463for _am_header in $config_headers :; do
9464  case $_am_header in
9465    $ac_file | $ac_file:* )
9466      break ;;
9467    * )
9468      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9469  esac
9470done
9471echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9472$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9473         X$ac_file : 'X\(//\)[^/]' \| \
9474         X$ac_file : 'X\(//\)$' \| \
9475         X$ac_file : 'X\(/\)' \| \
9476         .     : '\(.\)' 2>/dev/null ||
9477echo X$ac_file |
9478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9479          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9480          /^X\(\/\/\)$/{ s//\1/; q; }
9481          /^X\(\/\).*/{ s//\1/; q; }
9482          s/.*/./; q'`/stamp-h$_am_stamp_count
9483done
9484_ACEOF
9485cat >>$CONFIG_STATUS <<\_ACEOF
9486
9487#
9488# CONFIG_COMMANDS section.
9489#
9490for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9491  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9492  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9493  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9494$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9495         X"$ac_dest" : 'X\(//\)[^/]' \| \
9496         X"$ac_dest" : 'X\(//\)$' \| \
9497         X"$ac_dest" : 'X\(/\)' \| \
9498         .     : '\(.\)' 2>/dev/null ||
9499echo X"$ac_dest" |
9500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9501          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9502          /^X\(\/\/\)$/{ s//\1/; q; }
9503          /^X\(\/\).*/{ s//\1/; q; }
9504          s/.*/./; q'`
9505  { if $as_mkdir_p; then
9506    mkdir -p "$ac_dir"
9507  else
9508    as_dir="$ac_dir"
9509    as_dirs=
9510    while test ! -d "$as_dir"; do
9511      as_dirs="$as_dir $as_dirs"
9512      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9514         X"$as_dir" : 'X\(//\)[^/]' \| \
9515         X"$as_dir" : 'X\(//\)$' \| \
9516         X"$as_dir" : 'X\(/\)' \| \
9517         .     : '\(.\)' 2>/dev/null ||
9518echo X"$as_dir" |
9519    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9520          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9521          /^X\(\/\/\)$/{ s//\1/; q; }
9522          /^X\(\/\).*/{ s//\1/; q; }
9523          s/.*/./; q'`
9524    done
9525    test ! -n "$as_dirs" || mkdir $as_dirs
9526  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9527echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9528   { (exit 1); exit 1; }; }; }
9529
9530  ac_builddir=.
9531
9532if test "$ac_dir" != .; then
9533  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9534  # A "../" for each directory in $ac_dir_suffix.
9535  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9536else
9537  ac_dir_suffix= ac_top_builddir=
9538fi
9539
9540case $srcdir in
9541  .)  # No --srcdir option.  We are building in place.
9542    ac_srcdir=.
9543    if test -z "$ac_top_builddir"; then
9544       ac_top_srcdir=.
9545    else
9546       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9547    fi ;;
9548  [\\/]* | ?:[\\/]* )  # Absolute path.
9549    ac_srcdir=$srcdir$ac_dir_suffix;
9550    ac_top_srcdir=$srcdir ;;
9551  *) # Relative path.
9552    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9553    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9554esac
9555
9556# Do not use `cd foo && pwd` to compute absolute paths, because
9557# the directories may not exist.
9558case `pwd` in
9559.) ac_abs_builddir="$ac_dir";;
9560*)
9561  case "$ac_dir" in
9562  .) ac_abs_builddir=`pwd`;;
9563  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9564  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9565  esac;;
9566esac
9567case $ac_abs_builddir in
9568.) ac_abs_top_builddir=${ac_top_builddir}.;;
9569*)
9570  case ${ac_top_builddir}. in
9571  .) ac_abs_top_builddir=$ac_abs_builddir;;
9572  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9573  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9574  esac;;
9575esac
9576case $ac_abs_builddir in
9577.) ac_abs_srcdir=$ac_srcdir;;
9578*)
9579  case $ac_srcdir in
9580  .) ac_abs_srcdir=$ac_abs_builddir;;
9581  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9582  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9583  esac;;
9584esac
9585case $ac_abs_builddir in
9586.) ac_abs_top_srcdir=$ac_top_srcdir;;
9587*)
9588  case $ac_top_srcdir in
9589  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9590  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9591  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9592  esac;;
9593esac
9594
9595
9596  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9597echo "$as_me: executing $ac_dest commands" >&6;}
9598  case $ac_dest in
9599    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9600  # Strip MF so we end up with the name of the file.
9601  mf=`echo "$mf" | sed -e 's/:.*$//'`
9602  # Check whether this is an Automake generated Makefile or not.
9603  # We used to match only the files named `Makefile.in', but
9604  # some people rename them; so instead we look at the file content.
9605  # Grep'ing the first line is not enough: some people post-process
9606  # each Makefile.in and add a new line on top of each file to say so.
9607  # So let's grep whole file.
9608  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9609    dirpart=`(dirname "$mf") 2>/dev/null ||
9610$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9611         X"$mf" : 'X\(//\)[^/]' \| \
9612         X"$mf" : 'X\(//\)$' \| \
9613         X"$mf" : 'X\(/\)' \| \
9614         .     : '\(.\)' 2>/dev/null ||
9615echo X"$mf" |
9616    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9617          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9618          /^X\(\/\/\)$/{ s//\1/; q; }
9619          /^X\(\/\).*/{ s//\1/; q; }
9620          s/.*/./; q'`
9621  else
9622    continue
9623  fi
9624  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9625  # Extract the definition of DEP_FILES from the Makefile without
9626  # running `make'.
9627  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9628  test -z "$DEPDIR" && continue
9629  # When using ansi2knr, U may be empty or an underscore; expand it
9630  U=`sed -n -e '/^U = / s///p' < "$mf"`
9631  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9632  # We invoke sed twice because it is the simplest approach to
9633  # changing $(DEPDIR) to its actual value in the expansion.
9634  for file in `sed -n -e '
9635    /^DEP_FILES = .*\\\\$/ {
9636      s/^DEP_FILES = //
9637      :loop
9638        s/\\\\$//
9639        p
9640        n
9641        /\\\\$/ b loop
9642      p
9643    }
9644    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9645       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9646    # Make sure the directory exists.
9647    test -f "$dirpart/$file" && continue
9648    fdir=`(dirname "$file") 2>/dev/null ||
9649$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9650         X"$file" : 'X\(//\)[^/]' \| \
9651         X"$file" : 'X\(//\)$' \| \
9652         X"$file" : 'X\(/\)' \| \
9653         .     : '\(.\)' 2>/dev/null ||
9654echo X"$file" |
9655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9656          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9657          /^X\(\/\/\)$/{ s//\1/; q; }
9658          /^X\(\/\).*/{ s//\1/; q; }
9659          s/.*/./; q'`
9660    { if $as_mkdir_p; then
9661    mkdir -p $dirpart/$fdir
9662  else
9663    as_dir=$dirpart/$fdir
9664    as_dirs=
9665    while test ! -d "$as_dir"; do
9666      as_dirs="$as_dir $as_dirs"
9667      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9669         X"$as_dir" : 'X\(//\)[^/]' \| \
9670         X"$as_dir" : 'X\(//\)$' \| \
9671         X"$as_dir" : 'X\(/\)' \| \
9672         .     : '\(.\)' 2>/dev/null ||
9673echo X"$as_dir" |
9674    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9675          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9676          /^X\(\/\/\)$/{ s//\1/; q; }
9677          /^X\(\/\).*/{ s//\1/; q; }
9678          s/.*/./; q'`
9679    done
9680    test ! -n "$as_dirs" || mkdir $as_dirs
9681  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9682echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9683   { (exit 1); exit 1; }; }; }
9684
9685    # echo "creating $dirpart/$file"
9686    echo '# dummy' > "$dirpart/$file"
9687  done
9688done
9689 ;;
9690  esac
9691done
9692_ACEOF
9693
9694cat >>$CONFIG_STATUS <<\_ACEOF
9695
9696{ (exit 0); exit 0; }
9697_ACEOF
9698chmod +x $CONFIG_STATUS
9699ac_clean_files=$ac_clean_files_save
9700
9701
9702# configure is writing to config.log, and then calls config.status.
9703# config.status does its own redirection, appending to config.log.
9704# Unfortunately, on DOS this fails, as config.log is still kept open
9705# by configure, so config.status won't be able to write to it; its
9706# output is simply discarded.  So we exec the FD to /dev/null,
9707# effectively closing config.log, so it can be properly (re)opened and
9708# appended to by config.status.  When coming back to configure, we
9709# need to make the FD available again.
9710if test "$no_create" != yes; then
9711  ac_cs_success=:
9712  ac_config_status_args=
9713  test "$silent" = yes &&
9714    ac_config_status_args="$ac_config_status_args --quiet"
9715  exec 5>/dev/null
9716  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9717  exec 5>>config.log
9718  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9719  # would make configure fail if this is the last instruction.
9720  $ac_cs_success || { (exit 1); exit 1; }
9721fi
9722
Note: See TracBrowser for help on using the repository browser.