Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure @ 5279

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

orxonox/trunk: more variable configure

  • Property svn:executable set to *
File size: 353.5 KB
RevLine 
[1956]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[5066]3# Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha.
[1956]4#
[3240]5# Report bugs to <orxonox-dev at mail.datacore.ch>.
[1956]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## --------------------- ##
[1853]13
[1956]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
[1853]25
[1956]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
[1853]32
33
[1956]34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
[1853]39
[1956]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
[1853]52
[1956]53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
[1853]59
[1956]60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
[1853]65
[1956]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
[1853]198else
[1956]199  as_expr=false
[1853]200fi
201
[1956]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'
[1853]217fi
[1956]218rm -f conf$$ conf$$.exe conf$$.file
[1853]219
[1956]220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
[1853]226
[1956]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'
[5066]272PACKAGE_VERSION='0.3.1_alpha'
273PACKAGE_STRING='orxonox 0.3.1_alpha'
[3240]274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
[1956]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
[5276]314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'
[1956]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; }; }
[1853]658fi
659
[1956]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
[1853]670
[1956]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
[1853]699fi
700
[1956]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
[5066]791\`configure' configures orxonox 0.3.1_alpha to adapt to many kinds of systems.
[1956]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
[2980]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]
[1956]853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
[5066]858     short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";;
[1956]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]
[2706]865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
[3205]867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
[3592]869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
[4774]871  --disable-gtk           Prevents GTK from being loaded
872  --disable-curl          Prevents libcURL from being loaded
[3788]873  --enable-profile        builds orxonox with profiling support
[3863]874  --enable-efence         builds orxonox with efence support
[3558]875  --enable-documentation  also builds the sDocumentation while make from
876                          srcdir
[1956]877
[3173]878Optional Packages:
879  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
880  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
[5221]881  --with-shared-lib-path  Tells the executable, where to look for the shared
882                          libraries.
[4774]883  --with-sub-projects     also builds the subProjects while make from srcdir
[3173]884
[1956]885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
[3240]899Report bugs to <orxonox-dev at mail.datacore.ch>.
[1956]900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
[5066]995orxonox configure 0.3.1_alpha
[1956]996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
[5066]1009It was created by orxonox $as_me 0.3.1_alpha, which was
[1956]1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
[2980]1345
[3424]1346## Detect the canonical host and target build environment.
[1956]1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
[2980]1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
[1956]1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
[1853]1505        fi
[1956]1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
[1853]1513fi
[1956]1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
[1853]1571else
[1956]1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
[1853]1577fi
[1956]1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
[1853]1592
[1956]1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
[4826]1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
[2706]1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
[4826]1619  for d in ./-p ./--version;
[2706]1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
[1956]1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
[2706]1709# test to see if srcdir already configured
[1956]1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
[5066]1729 VERSION='0.3.1_alpha'
[1956]1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
[2627]1856
[1959]1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
[3424]1860#########################
1861## Checks for programs ##
1862#########################
[1956]1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
[4826]2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
[1956]2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
[4826]2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
[1956]2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
[4054]2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
[1956]2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
[4826]3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
[1956]3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
[4826]3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
[1956]3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
[1971]3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
[1956]3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
[1971]3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
[4774]3929## THIS IS OUR DEFAULT-DATA-DIRECTORY
3930
[3424]3931##################################
3932## CHECKING  OPTIONAL ARGUMENTS ##
3933##################################
[4774]3934#----------------#
3935# Data-Directory #
3936#----------------#
3937DATA_DIR=$datadir
3938echo \$\{prefix\}
3939if test $DATA_DIR = \$\{prefix\}/share ; then
3940        echo "not given"
3941        DATA_DIR=/usr/share
3942else
3943        echo "given: $DATA_DIR"
3944fi
[3424]3945
[4774]3946cat >>confdefs.h <<_ACEOF
3947#define DATADIR "$DATA_DIR"
3948_ACEOF
3949
3950
[3424]3951#-----------------#
[5221]3952# shared-lib-path #
3953#-----------------#
3954SHARED_LIB_PATH=no
3955echo "$as_me:$LINENO: checking shared lib path" >&5
3956echo $ECHO_N "checking shared lib path... $ECHO_C" >&6
3957
3958# Check whether --with-shared-lib-path or --without-shared-lib-path was given.
3959if test "${with_shared_lib_path+set}" = set; then
3960  withval="$with_shared_lib_path"
[5224]3961  SHARED_LIB_PATH=$withval
[5221]3962fi;
[5224]3963if test x$SHARED_LIB_PATH != xno; then
[5265]3964        echo "set to $SHARED_LIB_PATH"
[5224]3965else
[5221]3966        echo "no"
3967fi
3968
3969
3970#-----------------#
[3424]3971# DEBUG-statement #
3972#-----------------#
[3173]3973DEBUG=no
3974echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3975echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
[3181]3976# Check whether --enable-debug or --disable-debug was given.
3977if test "${enable_debug+set}" = set; then
3978  enableval="$enable_debug"
[3205]3979  DEBUG=$enableval
[3173]3980fi;
3981
[3424]3982if test x$DEBUG = xno; then
[4556]3983        echo "no"
3984        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3985        DEBUG=4
[3424]3986elif test x$DEBUG = xyes; then
[4556]3987        echo "yes"
3988        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3989        DEBUG=4
[3205]3990else
[4556]3991        echo "yes: setting debuglevel to to $DEBUG"
[3205]3992fi
3993
[3173]3994cat >>confdefs.h <<_ACEOF
[3205]3995#define DEBUG $DEBUG
[3173]3996_ACEOF
3997
3998
3999
[3592]4000#---------------#
4001# Modular Debug #
4002#---------------#
4003MODULAR_DEBUG=yes
4004echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
4005echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
4006# Check whether --enable-modular-debug or --disable-modular-debug was given.
4007if test "${enable_modular_debug+set}" = set; then
4008  enableval="$enable_modular_debug"
4009  MODULAR_DEBUG=$enableval
4010fi;
4011
4012if test x$MODULAR_DEBUG = xno; then
[4556]4013        echo "no"
[3592]4014elif test x$MODULAR_DEBUG = xyes; then
[4556]4015        echo "yes"
[3592]4016
4017cat >>confdefs.h <<_ACEOF
4018#define MODULAR_DEBUG 1
4019_ACEOF
4020
4021fi
4022
[3424]4023#--------------#
4024# GTK-disabled #
4025#--------------#
[3100]4026echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
4027echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
[4774]4028# Check whether --enable-gtk or --disable-gtk was given.
4029if test "${enable_gtk+set}" = set; then
4030  enableval="$enable_gtk"
[3100]4031  def_gtk=no
[3205]4032else
4033  def_gtk=yes
[3100]4034fi;
[3424]4035if test x$def_gtk = xyes; then
[3100]4036  echo "yes"
4037fi
[3424]4038if test x$def_gtk = xno; then
[3100]4039  echo "no"
4040fi
[3423]4041
[3424]4042#------------------#
4043# libCurl-disabled #
4044#------------------#
[3423]4045echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4046echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
[4774]4047# Check whether --enable-curl or --disable-curl was given.
4048if test "${enable_curl+set}" = set; then
4049  enableval="$enable_curl"
[3423]4050  def_curl=no
4051else
4052  def_curl=yes
4053fi;
[3424]4054if test x$def_curl = xyes; then
[3423]4055  echo "yes"
4056fi
[3424]4057if test x$def_curl = xno; then
[3423]4058  echo "no"
4059fi
4060
[3424]4061#-------------------#
4062# SubProject-enable #
4063#-------------------#
4064def_sub_projects=no
[3377]4065echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4066echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
[4774]4067
4068# Check whether --with-sub-projects or --without-sub-projects was given.
4069if test "${with_sub_projects+set}" = set; then
4070  withval="$with_sub_projects"
[3377]4071  def_sub_projects=yes
4072fi;
[3424]4073if test x$def_sub_projects = xyes; then
[3377]4074  echo "yes"
4075fi
[3424]4076if test x$def_sub_projects = xno; then
[3377]4077  echo "no"
4078fi
4079
4080
4081if test x$def_sub_projects = xyes; then
4082  SUB_PROJECTS_TRUE=
4083  SUB_PROJECTS_FALSE='#'
4084else
4085  SUB_PROJECTS_TRUE='#'
4086  SUB_PROJECTS_FALSE=
4087fi
4088
4089
[3788]4090#-------------------#
4091# Profiling Enabled #
4092#-------------------#
4093def_profiling=no
4094echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4095echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4096# Check whether --enable-profile or --disable-profile was given.
4097if test "${enable_profile+set}" = set; then
4098  enableval="$enable_profile"
4099  def_profiling=yes
4100fi;
4101if test x$def_profiling = xyes; then
4102  echo "yes"
4103  CXXFLAGS="$CXXFLAGS -pg"
4104fi
4105if test x$def_profiling = xno; then
4106  echo "no"
4107fi
4108
[3863]4109#----------------#
4110# efence Enabled #
4111#----------------#
4112def_efence=no
4113echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4114echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4115# Check whether --enable-efence or --disable-efence was given.
4116if test "${enable_efence+set}" = set; then
4117  enableval="$enable_efence"
4118  def_efence=yes
4119fi;
4120if test x$def_efence = xyes; then
4121  echo "yes"
4122fi
4123if test x$def_efence = xno; then
4124  echo "no"
4125fi
4126
[3558]4127#----------------------#
4128# Documentation-enable #
4129#----------------------#
4130def_documentation=no
4131echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4132echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4133# Check whether --enable-documentation or --disable-documentation was given.
4134if test "${enable_documentation+set}" = set; then
4135  enableval="$enable_documentation"
4136  def_documentation=yes
4137fi;
4138if test x$def_documentation = xyes; then
4139  echo "yes"
4140fi
4141if test x$def_documentation = xno; then
4142  echo "no"
4143fi
4144
4145
4146if test x$def_documentation = xyes; then
4147  DOCUMENTATION_TRUE=
4148  DOCUMENTATION_FALSE='#'
4149else
4150  DOCUMENTATION_TRUE='#'
4151  DOCUMENTATION_FALSE=
4152fi
4153
[4774]4154
[3424]4155#######################
4156## PROGRAMM CHECKING ##
4157## 3. party Programs ##
4158#######################
4159
4160#----------------------#
4161# checking for Doxygen #
4162#----------------------#
[3219]4163# Extract the first word of "doxygen", so it can be a program name with args.
4164set dummy doxygen; ac_word=$2
4165echo "$as_me:$LINENO: checking for $ac_word" >&5
4166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167if test "${ac_cv_path_DOXYGEN+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  case $DOXYGEN in
4171  [\\/]* | ?:[\\/]*)
4172  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4173  ;;
4174  *)
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180  for ac_exec_ext in '' $ac_executable_extensions; do
4181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184    break 2
4185  fi
4186done
4187done
4188
4189  ;;
4190esac
4191fi
4192DOXYGEN=$ac_cv_path_DOXYGEN
4193
4194if test -n "$DOXYGEN"; then
4195  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4196echo "${ECHO_T}$DOXYGEN" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202
4203
4204if test $DOXYGEN; then
4205  DOXYGEN_TRUE=
4206  DOXYGEN_FALSE='#'
4207else
4208  DOXYGEN_TRUE='#'
4209  DOXYGEN_FALSE=
4210fi
4211
4212
[3789]4213#--------------------#
4214# checking for gprof #
4215#--------------------#
4216# Extract the first word of "gprof", so it can be a program name with args.
4217set dummy gprof; ac_word=$2
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220if test "${ac_cv_path_GPROF+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  case $GPROF in
4224  [\\/]* | ?:[\\/]*)
4225  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4226  ;;
4227  *)
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233  for ac_exec_ext in '' $ac_executable_extensions; do
4234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240done
4241
4242  ;;
4243esac
4244fi
4245GPROF=$ac_cv_path_GPROF
4246
4247if test -n "$GPROF"; then
4248  echo "$as_me:$LINENO: result: $GPROF" >&5
4249echo "${ECHO_T}$GPROF" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255
[4130]4256#-------------------------#
4257# checking for pkg-config #
4258#-------------------------#
4259if test x$def_gtk = xyes; then
4260 # Extract the first word of "pkg-config", so it can be a program name with args.
4261set dummy pkg-config; ac_word=$2
4262echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  case $PKG_CONFIG in
4268  [\\/]* | ?:[\\/]*)
4269  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4270  ;;
4271  *)
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_exec_ext in '' $ac_executable_extensions; do
4278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284done
4285
4286  ;;
4287esac
4288fi
4289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4290
4291if test -n "$PKG_CONFIG"; then
4292  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4293echo "${ECHO_T}$PKG_CONFIG" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299fi
4300
4301
[3424]4302#########################
4303## CHECKING FOR SYSTEM ##
4304#########################
4305## here the system is checked, and openGL is included
4306## also checking for SDL on differen Systems
[1971]4307
[2925]4308echo "$as_me:$LINENO: checking for System" >&5
4309echo $ECHO_N "checking for System... $ECHO_C" >&6
[2980]4310## checking for openGL-environment and other sys-specific parameters
4311case "$target" in
[4825]4312
4313###########
[3424]4314#---------#
4315# WINDOWS #
4316#---------#
[4825]4317###########
[2980]4318  *-*-mingw32*)
[2925]4319echo "mingw-WINDOWS detected"
[1971]4320
[5224]4321CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
[3790]4322
[2925]4323    mingw="yes"
4324    MSBITFIELDS="-mms-bitfields"
4325    MWINDOWS="-mwindows"
[1971]4326
[5276]4327#--------#
4328# MIN-GW #
4329#--------#
[4697]4330# checking for mingw32
4331    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4332echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4333if test "${ac_cv_lib_mingw32_main+set}" = set; then
4334  echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336  ac_check_lib_save_LIBS=$LIBS
4337LIBS="-lmingw32  $LIBS"
4338cat >conftest.$ac_ext <<_ACEOF
4339/* confdefs.h.  */
4340_ACEOF
4341cat confdefs.h >>conftest.$ac_ext
4342cat >>conftest.$ac_ext <<_ACEOF
4343/* end confdefs.h.  */
[1971]4344
4345
[4697]4346int
4347main ()
4348{
4349main ();
4350  ;
4351  return 0;
4352}
4353_ACEOF
4354rm -f conftest.$ac_objext conftest$ac_exeext
4355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356  (eval $ac_link) 2>conftest.er1
4357  ac_status=$?
4358  grep -v '^ *+' conftest.er1 >conftest.err
4359  rm -f conftest.er1
4360  cat conftest.err >&5
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } &&
4363         { ac_try='test -z "$ac_c_werror_flag"
4364                         || test ! -s conftest.err'
4365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366  (eval $ac_try) 2>&5
4367  ac_status=$?
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); }; } &&
4370         { ac_try='test -s conftest$ac_exeext'
4371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372  (eval $ac_try) 2>&5
4373  ac_status=$?
4374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375  (exit $ac_status); }; }; then
4376  ac_cv_lib_mingw32_main=yes
4377else
4378  echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
[1971]4380
[4697]4381ac_cv_lib_mingw32_main=no
4382fi
4383rm -f conftest.err conftest.$ac_objext \
4384      conftest$ac_exeext conftest.$ac_ext
4385LIBS=$ac_check_lib_save_LIBS
4386fi
4387echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4388echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4389if test $ac_cv_lib_mingw32_main = yes; then
4390  FOUND_mingw32=yes
4391fi
[2925]4392
[4697]4393    if test x$FOUND_mingw32 = xyes; then
4394        LIBS="$LIBS -lmingw32"
4395    fi
[2925]4396
[5276]4397#---------------#
4398# open-GL (win) #
4399#---------------#
4400# checking gl header
4401   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
[2925]4402
4403
4404
[4697]4405
4406
4407
4408
4409
4410
[1971]4411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4412                  inttypes.h stdint.h unistd.h
4413do
4414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4415echo "$as_me:$LINENO: checking for $ac_header" >&5
4416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418  echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420  cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426$ac_includes_default
4427
4428#include <$ac_header>
4429_ACEOF
4430rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432  (eval $ac_compile) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } &&
4439         { ac_try='test -z "$ac_c_werror_flag"
4440                         || test ! -s conftest.err'
4441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442  (eval $ac_try) 2>&5
4443  ac_status=$?
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); }; } &&
4446         { ac_try='test -s conftest.$ac_objext'
4447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448  (eval $ac_try) 2>&5
4449  ac_status=$?
4450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451  (exit $ac_status); }; }; then
4452  eval "$as_ac_Header=yes"
4453else
4454  echo "$as_me: failed program was:" >&5
4455sed 's/^/| /' conftest.$ac_ext >&5
4456
4457eval "$as_ac_Header=no"
4458fi
4459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460fi
4461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463if test `eval echo '${'$as_ac_Header'}'` = yes; then
4464  cat >>confdefs.h <<_ACEOF
4465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4466_ACEOF
4467
4468fi
4469
4470done
4471
4472
4473
[5276]4474for ac_header in GL/gl.h
[2879]4475do
4476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4477if eval "test \"\${$as_ac_Header+set}\" = set"; then
4478  echo "$as_me:$LINENO: checking for $ac_header" >&5
4479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4480if eval "test \"\${$as_ac_Header+set}\" = set"; then
4481  echo $ECHO_N "(cached) $ECHO_C" >&6
4482fi
4483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485else
4486  # Is the header compilable?
4487echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4489cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495$ac_includes_default
4496#include <$ac_header>
4497_ACEOF
4498rm -f conftest.$ac_objext
4499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500  (eval $ac_compile) 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); } &&
4507         { ac_try='test -z "$ac_c_werror_flag"
4508                         || test ! -s conftest.err'
4509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510  (eval $ac_try) 2>&5
4511  ac_status=$?
4512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513  (exit $ac_status); }; } &&
4514         { ac_try='test -s conftest.$ac_objext'
4515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516  (eval $ac_try) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; }; then
4520  ac_header_compiler=yes
4521else
4522  echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525ac_header_compiler=no
4526fi
4527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4529echo "${ECHO_T}$ac_header_compiler" >&6
4530
4531# Is the header present?
4532echo "$as_me:$LINENO: checking $ac_header presence" >&5
4533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4534cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h.  */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h.  */
4540#include <$ac_header>
4541_ACEOF
4542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544  ac_status=$?
4545  grep -v '^ *+' conftest.er1 >conftest.err
4546  rm -f conftest.er1
4547  cat conftest.err >&5
4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549  (exit $ac_status); } >/dev/null; then
4550  if test -s conftest.err; then
4551    ac_cpp_err=$ac_c_preproc_warn_flag
4552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4553  else
4554    ac_cpp_err=
4555  fi
4556else
4557  ac_cpp_err=yes
4558fi
4559if test -z "$ac_cpp_err"; then
4560  ac_header_preproc=yes
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565  ac_header_preproc=no
4566fi
4567rm -f conftest.err conftest.$ac_ext
4568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4569echo "${ECHO_T}$ac_header_preproc" >&6
4570
4571# So?  What about this header?
4572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4573  yes:no: )
4574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4578    ac_header_preproc=yes
4579    ;;
4580  no:yes:* )
4581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4593    (
4594      cat <<\_ASBOX
[3240]4595## ---------------------------------------------- ##
4596## Report this to orxonox-dev at mail.datacore.ch ##
4597## ---------------------------------------------- ##
[2879]4598_ASBOX
4599    ) |
4600      sed "s/^/$as_me: WARNING:     /" >&2
4601    ;;
4602esac
4603echo "$as_me:$LINENO: checking for $ac_header" >&5
4604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4605if eval "test \"\${$as_ac_Header+set}\" = set"; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608  eval "$as_ac_Header=\$ac_header_preproc"
4609fi
4610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4612
4613fi
4614if test `eval echo '${'$as_ac_Header'}'` = yes; then
4615  cat >>confdefs.h <<_ACEOF
4616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617_ACEOF
4618
4619else
[5276]4620  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4621echo "$as_me: error: cannot find opengl headers" >&2;}
[2879]4622   { (exit 1); exit 1; }; }
4623fi
4624
4625done
4626
[5276]4627#   checking for Windows openGl library
4628    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4629echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4630if test "${ac_cv_lib_opengl32_main+set}" = set; then
[1959]4631  echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633  ac_check_lib_save_LIBS=$LIBS
[5276]4634LIBS="-lopengl32  $LIBS"
[1959]4635cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h.  */
[1956]4637_ACEOF
[1959]4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h.  */
[1956]4641
[1971]4642
[1959]4643int
4644main ()
4645{
[1971]4646main ();
[1959]4647  ;
4648  return 0;
4649}
4650_ACEOF
4651rm -f conftest.$ac_objext conftest$ac_exeext
4652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4653  (eval $ac_link) 2>conftest.er1
4654  ac_status=$?
4655  grep -v '^ *+' conftest.er1 >conftest.err
4656  rm -f conftest.er1
4657  cat conftest.err >&5
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); } &&
4660         { ac_try='test -z "$ac_c_werror_flag"
4661                         || test ! -s conftest.err'
4662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663  (eval $ac_try) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; } &&
4667         { ac_try='test -s conftest$ac_exeext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
[5276]4673  ac_cv_lib_opengl32_main=yes
[1959]4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
[1956]4677
[5276]4678ac_cv_lib_opengl32_main=no
[1956]4679fi
[1959]4680rm -f conftest.err conftest.$ac_objext \
4681      conftest$ac_exeext conftest.$ac_ext
4682LIBS=$ac_check_lib_save_LIBS
4683fi
[5276]4684echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4685echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4686if test $ac_cv_lib_opengl32_main = yes; then
4687  FOUND_GL=yes; LIBS="$LIBS -lopengl32"
[4697]4688fi
4689
[5276]4690    if test x$FOUND_GL != xyes ; then
4691         echo "------------------"
4692         echo "opengl not found."
4693         echo "please install the opengl package which can be found at http://www.opengl.org"
4694         echo "------------------"
4695         exit -1
[4697]4696    fi
4697
[5276]4698# cheking for GLU-header
[4697]4699
[5276]4700for ac_header in GL/glu.h
[1971]4701do
4702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4703if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704  echo "$as_me:$LINENO: checking for $ac_header" >&5
4705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707  echo $ECHO_N "(cached) $ECHO_C" >&6
4708fi
4709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4711else
4712  # Is the header compilable?
4713echo "$as_me:$LINENO: checking $ac_header usability" >&5
4714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4715cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h.  */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h.  */
4721$ac_includes_default
4722#include <$ac_header>
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726  (eval $ac_compile) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733         { ac_try='test -z "$ac_c_werror_flag"
4734                         || test ! -s conftest.err'
4735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736  (eval $ac_try) 2>&5
4737  ac_status=$?
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); }; } &&
4740         { ac_try='test -s conftest.$ac_objext'
4741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742  (eval $ac_try) 2>&5
4743  ac_status=$?
4744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745  (exit $ac_status); }; }; then
4746  ac_header_compiler=yes
4747else
4748  echo "$as_me: failed program was:" >&5
4749sed 's/^/| /' conftest.$ac_ext >&5
4750
4751ac_header_compiler=no
4752fi
4753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4755echo "${ECHO_T}$ac_header_compiler" >&6
4756
4757# Is the header present?
4758echo "$as_me:$LINENO: checking $ac_header presence" >&5
4759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4760cat >conftest.$ac_ext <<_ACEOF
4761/* confdefs.h.  */
4762_ACEOF
4763cat confdefs.h >>conftest.$ac_ext
4764cat >>conftest.$ac_ext <<_ACEOF
4765/* end confdefs.h.  */
4766#include <$ac_header>
4767_ACEOF
4768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } >/dev/null; then
4776  if test -s conftest.err; then
4777    ac_cpp_err=$ac_c_preproc_warn_flag
4778    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4779  else
4780    ac_cpp_err=
4781  fi
4782else
4783  ac_cpp_err=yes
4784fi
4785if test -z "$ac_cpp_err"; then
4786  ac_header_preproc=yes
4787else
4788  echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791  ac_header_preproc=no
4792fi
4793rm -f conftest.err conftest.$ac_ext
4794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4795echo "${ECHO_T}$ac_header_preproc" >&6
4796
4797# So?  What about this header?
4798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4799  yes:no: )
4800    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4804    ac_header_preproc=yes
4805    ;;
4806  no:yes:* )
4807    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4809    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4810echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4811    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4813    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4814echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4817    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4819    (
4820      cat <<\_ASBOX
[3240]4821## ---------------------------------------------- ##
4822## Report this to orxonox-dev at mail.datacore.ch ##
4823## ---------------------------------------------- ##
[1971]4824_ASBOX
4825    ) |
4826      sed "s/^/$as_me: WARNING:     /" >&2
4827    ;;
4828esac
4829echo "$as_me:$LINENO: checking for $ac_header" >&5
4830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4831if eval "test \"\${$as_ac_Header+set}\" = set"; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  eval "$as_ac_Header=\$ac_header_preproc"
4835fi
4836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4838
4839fi
4840if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841  cat >>confdefs.h <<_ACEOF
4842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843_ACEOF
4844
4845else
4846  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4847echo "$as_me: error: cannot find opengl headers" >&2;}
4848   { (exit 1); exit 1; }; }
4849fi
4850
4851done
4852
[5276]4853
4854# checking for libGLU
4855    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4856echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4857if test "${ac_cv_lib_glu32_main+set}" = set; then
[1956]4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  ac_check_lib_save_LIBS=$LIBS
[5276]4861LIBS="-lglu32  $LIBS"
[1956]4862cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868
[2701]4869
[1956]4870int
4871main ()
4872{
[2701]4873main ();
[1956]4874  ;
4875  return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext conftest$ac_exeext
4879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880  (eval $ac_link) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } &&
4887         { ac_try='test -z "$ac_c_werror_flag"
4888                         || test ! -s conftest.err'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; } &&
4894         { ac_try='test -s conftest$ac_exeext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
[5276]4900  ac_cv_lib_glu32_main=yes
[1956]4901else
4902  echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
[5276]4905ac_cv_lib_glu32_main=no
[1956]4906fi
4907rm -f conftest.err conftest.$ac_objext \
4908      conftest$ac_exeext conftest.$ac_ext
4909LIBS=$ac_check_lib_save_LIBS
4910fi
[5276]4911echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4912echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4913if test $ac_cv_lib_glu32_main = yes; then
4914  FOUND_GLU=yes; LIBS="$LIBS -lGLU32"
[1959]4915fi
4916
[5276]4917    if test x$FOUND_GLU != xyes ; then
[4556]4918         echo "------------------"
[5276]4919         echo "GLU library not found."
4920         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
[4556]4921         echo "------------------"
4922         exit -1
[2701]4923    fi
4924
[5276]4925# checking glew header
[4697]4926
[5276]4927for ac_header in GL/glew.h
[4697]4928do
4929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930if eval "test \"\${$as_ac_Header+set}\" = set"; then
4931  echo "$as_me:$LINENO: checking for $ac_header" >&5
4932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4933if eval "test \"\${$as_ac_Header+set}\" = set"; then
[1959]4934  echo $ECHO_N "(cached) $ECHO_C" >&6
[4697]4935fi
4936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[1959]4938else
[4697]4939  # Is the header compilable?
4940echo "$as_me:$LINENO: checking $ac_header usability" >&5
4941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4942cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h.  */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h.  */
4948$ac_includes_default
4949#include <$ac_header>
4950_ACEOF
4951rm -f conftest.$ac_objext
4952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953  (eval $ac_compile) 2>conftest.er1
4954  ac_status=$?
4955  grep -v '^ *+' conftest.er1 >conftest.err
4956  rm -f conftest.er1
4957  cat conftest.err >&5
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); } &&
4960         { ac_try='test -z "$ac_c_werror_flag"
4961                         || test ! -s conftest.err'
4962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963  (eval $ac_try) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; } &&
4967         { ac_try='test -s conftest.$ac_objext'
4968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969  (eval $ac_try) 2>&5
4970  ac_status=$?
4971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972  (exit $ac_status); }; }; then
4973  ac_header_compiler=yes
4974else
4975  echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978ac_header_compiler=no
4979fi
4980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4982echo "${ECHO_T}$ac_header_compiler" >&6
4983
4984# Is the header present?
4985echo "$as_me:$LINENO: checking $ac_header presence" >&5
4986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993#include <$ac_header>
4994_ACEOF
4995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4996  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997  ac_status=$?
4998  grep -v '^ *+' conftest.er1 >conftest.err
4999  rm -f conftest.er1
5000  cat conftest.err >&5
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); } >/dev/null; then
5003  if test -s conftest.err; then
5004    ac_cpp_err=$ac_c_preproc_warn_flag
5005    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5006  else
5007    ac_cpp_err=
5008  fi
5009else
5010  ac_cpp_err=yes
5011fi
5012if test -z "$ac_cpp_err"; then
5013  ac_header_preproc=yes
5014else
5015  echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018  ac_header_preproc=no
5019fi
5020rm -f conftest.err conftest.$ac_ext
5021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5022echo "${ECHO_T}$ac_header_preproc" >&6
5023
5024# So?  What about this header?
5025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5026  yes:no: )
5027    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5031    ac_header_preproc=yes
5032    ;;
5033  no:yes:* )
5034    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5036    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5037echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5038    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5040    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5041echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5044    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5046    (
5047      cat <<\_ASBOX
5048## ---------------------------------------------- ##
5049## Report this to orxonox-dev at mail.datacore.ch ##
5050## ---------------------------------------------- ##
5051_ASBOX
5052    ) |
5053      sed "s/^/$as_me: WARNING:     /" >&2
5054    ;;
5055esac
5056echo "$as_me:$LINENO: checking for $ac_header" >&5
5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061  eval "$as_ac_Header=\$ac_header_preproc"
5062fi
5063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5065
5066fi
5067if test `eval echo '${'$as_ac_Header'}'` = yes; then
5068  cat >>confdefs.h <<_ACEOF
5069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5070_ACEOF
5071
5072else
[5276]5073  { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5
5074echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;}
[4697]5075   { (exit 1); exit 1; }; }
5076fi
5077
5078done
5079
[5276]5080#   checking for Windows glew library
5081    echo "$as_me:$LINENO: checking for main in -lglew32" >&5
5082echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6
5083if test "${ac_cv_lib_glew32_main+set}" = set; then
[4697]5084  echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
[1959]5086  ac_check_lib_save_LIBS=$LIBS
[5276]5087LIBS="-lglew32  $LIBS"
[1959]5088cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h.  */
[1956]5090_ACEOF
[1959]5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h.  */
[1956]5094
[1971]5095
[1959]5096int
5097main ()
5098{
[1971]5099main ();
[1959]5100  ;
5101  return 0;
5102}
5103_ACEOF
5104rm -f conftest.$ac_objext conftest$ac_exeext
5105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106  (eval $ac_link) 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); } &&
5113         { ac_try='test -z "$ac_c_werror_flag"
5114                         || test ! -s conftest.err'
5115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116  (eval $ac_try) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); }; } &&
5120         { ac_try='test -s conftest$ac_exeext'
5121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122  (eval $ac_try) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }; }; then
[5276]5126  ac_cv_lib_glew32_main=yes
[1959]5127else
5128  echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
[1956]5130
[5276]5131ac_cv_lib_glew32_main=no
[1956]5132fi
[1959]5133rm -f conftest.err conftest.$ac_objext \
5134      conftest$ac_exeext conftest.$ac_ext
5135LIBS=$ac_check_lib_save_LIBS
5136fi
[5276]5137echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5
5138echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6
5139if test $ac_cv_lib_glew32_main = yes; then
5140  FOUND_GLEW=yes; LIBS="$LIBS -lglew32"
[1959]5141fi
[1956]5142
[5276]5143    if test x$FOUND_GLEW != xyes ; then
[4697]5144         echo "------------------"
[5276]5145         echo "opengl extension wrangler not found."
5146         echo "please install the glew package which can be found at http://glew.sourceforge.net"
[4697]5147         echo "------------------"
5148         exit -1
[2701]5149    fi
[1959]5150
[5276]5151#--------#
5152# openAL #
5153#--------#
5154# checking for openAL-headers
[5271]5155
[5276]5156for ac_header in AL/al.h
[5271]5157do
5158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159if eval "test \"\${$as_ac_Header+set}\" = set"; then
5160  echo "$as_me:$LINENO: checking for $ac_header" >&5
5161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163  echo $ECHO_N "(cached) $ECHO_C" >&6
5164fi
5165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5167else
5168  # Is the header compilable?
5169echo "$as_me:$LINENO: checking $ac_header usability" >&5
5170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h.  */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h.  */
5177$ac_includes_default
5178#include <$ac_header>
5179_ACEOF
5180rm -f conftest.$ac_objext
5181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182  (eval $ac_compile) 2>conftest.er1
5183  ac_status=$?
5184  grep -v '^ *+' conftest.er1 >conftest.err
5185  rm -f conftest.er1
5186  cat conftest.err >&5
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); } &&
5189         { ac_try='test -z "$ac_c_werror_flag"
5190                         || test ! -s conftest.err'
5191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192  (eval $ac_try) 2>&5
5193  ac_status=$?
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); }; } &&
5196         { ac_try='test -s conftest.$ac_objext'
5197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198  (eval $ac_try) 2>&5
5199  ac_status=$?
5200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201  (exit $ac_status); }; }; then
5202  ac_header_compiler=yes
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207ac_header_compiler=no
5208fi
5209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5210echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5211echo "${ECHO_T}$ac_header_compiler" >&6
5212
5213# Is the header present?
5214echo "$as_me:$LINENO: checking $ac_header presence" >&5
5215echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5216cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h.  */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h.  */
5222#include <$ac_header>
5223_ACEOF
5224if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5225  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5226  ac_status=$?
5227  grep -v '^ *+' conftest.er1 >conftest.err
5228  rm -f conftest.er1
5229  cat conftest.err >&5
5230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231  (exit $ac_status); } >/dev/null; then
5232  if test -s conftest.err; then
5233    ac_cpp_err=$ac_c_preproc_warn_flag
5234    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5235  else
5236    ac_cpp_err=
5237  fi
5238else
5239  ac_cpp_err=yes
5240fi
5241if test -z "$ac_cpp_err"; then
5242  ac_header_preproc=yes
5243else
5244  echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247  ac_header_preproc=no
5248fi
5249rm -f conftest.err conftest.$ac_ext
5250echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5251echo "${ECHO_T}$ac_header_preproc" >&6
5252
5253# So?  What about this header?
5254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5255  yes:no: )
5256    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5258    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5260    ac_header_preproc=yes
5261    ;;
5262  no:yes:* )
5263    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5265    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5266echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5267    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5269    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5270echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5273    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5275    (
5276      cat <<\_ASBOX
5277## ---------------------------------------------- ##
5278## Report this to orxonox-dev at mail.datacore.ch ##
5279## ---------------------------------------------- ##
5280_ASBOX
5281    ) |
5282      sed "s/^/$as_me: WARNING:     /" >&2
5283    ;;
5284esac
5285echo "$as_me:$LINENO: checking for $ac_header" >&5
5286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288  echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290  eval "$as_ac_Header=\$ac_header_preproc"
5291fi
5292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5294
5295fi
5296if test `eval echo '${'$as_ac_Header'}'` = yes; then
5297  cat >>confdefs.h <<_ACEOF
5298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5299_ACEOF
5300
5301else
[5276]5302  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
5303echo "$as_me: error: cannot find openAL header." >&2;}
[5271]5304   { (exit 1); exit 1; }; }
5305fi
5306
5307done
5308
[5276]5309# checking for openAL-lib
5310  echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5
5311echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6
5312if test "${ac_cv_lib_OpenAL32_main+set}" = set; then
[5271]5313  echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315  ac_check_lib_save_LIBS=$LIBS
[5276]5316LIBS="-lOpenAL32  $LIBS"
[5271]5317cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h.  */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h.  */
5323
5324
5325int
5326main ()
5327{
5328main ();
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext conftest$ac_exeext
5334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335  (eval $ac_link) 2>conftest.er1
5336  ac_status=$?
5337  grep -v '^ *+' conftest.er1 >conftest.err
5338  rm -f conftest.er1
5339  cat conftest.err >&5
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); } &&
5342         { ac_try='test -z "$ac_c_werror_flag"
5343                         || test ! -s conftest.err'
5344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345  (eval $ac_try) 2>&5
5346  ac_status=$?
5347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348  (exit $ac_status); }; } &&
5349         { ac_try='test -s conftest$ac_exeext'
5350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351  (eval $ac_try) 2>&5
5352  ac_status=$?
5353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); }; }; then
[5276]5355  ac_cv_lib_OpenAL32_main=yes
[5271]5356else
5357  echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
[5276]5360ac_cv_lib_OpenAL32_main=no
[5271]5361fi
5362rm -f conftest.err conftest.$ac_objext \
5363      conftest$ac_exeext conftest.$ac_ext
5364LIBS=$ac_check_lib_save_LIBS
5365fi
[5276]5366echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5
5367echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6
5368if test $ac_cv_lib_OpenAL32_main = yes; then
5369  FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32"
[5271]5370fi
5371
[5276]5372  echo "$as_me:$LINENO: checking for main in -lALut" >&5
5373echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6
5374if test "${ac_cv_lib_ALut_main+set}" = set; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  ac_check_lib_save_LIBS=$LIBS
5378LIBS="-lALut  $LIBS"
5379cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
[5271]5385
[4697]5386
[5276]5387int
5388main ()
5389{
5390main ();
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397  (eval $ac_link) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404         { ac_try='test -z "$ac_c_werror_flag"
5405                         || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411         { ac_try='test -s conftest$ac_exeext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  ac_cv_lib_ALut_main=yes
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422ac_cv_lib_ALut_main=no
5423fi
5424rm -f conftest.err conftest.$ac_objext \
5425      conftest$ac_exeext conftest.$ac_ext
5426LIBS=$ac_check_lib_save_LIBS
5427fi
5428echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5
5429echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6
5430if test $ac_cv_lib_ALut_main = yes; then
5431  FOUND_ALUT=yes; LIBS="$LIBS -lALut"
5432fi
5433
5434     if test x$FOUND_OPENAL != xyes ; then
5435        echo "------------------"
5436        echo "openal library not found."
5437        echo "please install the openal library, which can be found at http://www.openal.org"
5438        echo "------------------"
5439        exit -1
5440     fi
5441
5442
5443#-----------#
5444# SDL(win) #
5445#-----------#
5446# checking for SDL-headers
5447
5448for ac_header in SDL/SDL.h
[2989]5449do
5450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5451if eval "test \"\${$as_ac_Header+set}\" = set"; then
5452  echo "$as_me:$LINENO: checking for $ac_header" >&5
5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456fi
5457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459else
5460  # Is the header compilable?
5461echo "$as_me:$LINENO: checking $ac_header usability" >&5
5462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469$ac_includes_default
5470#include <$ac_header>
5471_ACEOF
5472rm -f conftest.$ac_objext
5473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474  (eval $ac_compile) 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } &&
5481         { ac_try='test -z "$ac_c_werror_flag"
5482                         || test ! -s conftest.err'
5483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484  (eval $ac_try) 2>&5
5485  ac_status=$?
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; } &&
5488         { ac_try='test -s conftest.$ac_objext'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; }; then
5494  ac_header_compiler=yes
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499ac_header_compiler=no
5500fi
5501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5503echo "${ECHO_T}$ac_header_compiler" >&6
5504
5505# Is the header present?
5506echo "$as_me:$LINENO: checking $ac_header presence" >&5
5507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5508cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h.  */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h.  */
5514#include <$ac_header>
5515_ACEOF
5516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } >/dev/null; then
5524  if test -s conftest.err; then
5525    ac_cpp_err=$ac_c_preproc_warn_flag
5526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527  else
5528    ac_cpp_err=
5529  fi
5530else
5531  ac_cpp_err=yes
5532fi
5533if test -z "$ac_cpp_err"; then
5534  ac_header_preproc=yes
5535else
5536  echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
5539  ac_header_preproc=no
5540fi
5541rm -f conftest.err conftest.$ac_ext
5542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5543echo "${ECHO_T}$ac_header_preproc" >&6
5544
5545# So?  What about this header?
5546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5547  yes:no: )
5548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5552    ac_header_preproc=yes
[2701]5553    ;;
[2989]5554  no:yes:* )
5555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5567    (
5568      cat <<\_ASBOX
[3240]5569## ---------------------------------------------- ##
5570## Report this to orxonox-dev at mail.datacore.ch ##
5571## ---------------------------------------------- ##
[2989]5572_ASBOX
5573    ) |
5574      sed "s/^/$as_me: WARNING:     /" >&2
5575    ;;
5576esac
5577echo "$as_me:$LINENO: checking for $ac_header" >&5
5578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  eval "$as_ac_Header=\$ac_header_preproc"
5583fi
5584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[2701]5586
[2989]5587fi
5588if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589  cat >>confdefs.h <<_ACEOF
5590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591_ACEOF
5592
5593else
[5276]5594  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5595echo "$as_me: error: cannot find SDL headers" >&2;}
[2989]5596   { (exit 1); exit 1; }; }
5597fi
5598
5599done
5600
[5276]5601
5602#checking for libSDL
5603    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5604echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5605if test "${ac_cv_lib_sdlmain_main+set}" = set; then
[2989]5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  ac_check_lib_save_LIBS=$LIBS
[5276]5609LIBS="-lsdlmain  $LIBS"
[2989]5610cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h.  */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h.  */
5616
5617
5618int
5619main ()
5620{
5621main ();
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext conftest$ac_exeext
5627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5628  (eval $ac_link) 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } &&
5635         { ac_try='test -z "$ac_c_werror_flag"
5636                         || test ! -s conftest.err'
5637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638  (eval $ac_try) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); }; } &&
5642         { ac_try='test -s conftest$ac_exeext'
5643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644  (eval $ac_try) 2>&5
5645  ac_status=$?
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); }; }; then
[5276]5648  ac_cv_lib_sdlmain_main=yes
[2989]5649else
5650  echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
[5276]5653ac_cv_lib_sdlmain_main=no
[2989]5654fi
5655rm -f conftest.err conftest.$ac_objext \
5656      conftest$ac_exeext conftest.$ac_ext
5657LIBS=$ac_check_lib_save_LIBS
5658fi
[5276]5659echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5660echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5661if test $ac_cv_lib_sdlmain_main = yes; then
5662  FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"
[2989]5663fi
5664
[5276]5665    if test x$FOUND_sdlmain != xyes ; then
5666        echo "------------------"
5667        echo "SDL library not found."
5668        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5669        echo "------------------"
5670        exit 1
5671    fi
5672    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5673echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5674if test "${ac_cv_lib_sdl_main+set}" = set; then
[2989]5675  echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677  ac_check_lib_save_LIBS=$LIBS
[5276]5678LIBS="-lsdl  $LIBS"
[2989]5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685
5686
5687int
5688main ()
5689{
5690main ();
5691  ;
5692  return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext conftest$ac_exeext
5696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697  (eval $ac_link) 2>conftest.er1
5698  ac_status=$?
5699  grep -v '^ *+' conftest.er1 >conftest.err
5700  rm -f conftest.er1
5701  cat conftest.err >&5
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } &&
5704         { ac_try='test -z "$ac_c_werror_flag"
5705                         || test ! -s conftest.err'
5706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707  (eval $ac_try) 2>&5
5708  ac_status=$?
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); }; } &&
5711         { ac_try='test -s conftest$ac_exeext'
5712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713  (eval $ac_try) 2>&5
5714  ac_status=$?
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); }; }; then
[5276]5717  ac_cv_lib_sdl_main=yes
[2989]5718else
5719  echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
[5276]5722ac_cv_lib_sdl_main=no
[2989]5723fi
5724rm -f conftest.err conftest.$ac_objext \
5725      conftest$ac_exeext conftest.$ac_ext
5726LIBS=$ac_check_lib_save_LIBS
5727fi
[5276]5728echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5729echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5730if test $ac_cv_lib_sdl_main = yes; then
5731  FOUND_SDL=yes; LIBS="$LIBS -lsdl"
[2989]5732fi
5733
[5276]5734    if test x$FOUND_SDL != xyes ; then
[2989]5735        echo "------------------"
[5276]5736        echo "SDL library not found."
5737        echo "please install the SDL library, which can be found at http://www.libsdl.org"
[2989]5738        echo "------------------"
5739        exit -1
[5276]5740    fi
[4825]5741
[5276]5742  ;;
5743
[4825]5744#########
[3424]5745#-------#
5746# LINUX #
5747#-------#
[4825]5748#########
[2980]5749 *-*-linux*)
[2701]5750echo "Linux detected"
[1956]5751
[2701]5752 Linux="yes"
5753
[5224]5754##CPPFLAGS="-I/usr/include $CPPFLAGS"
5755##LDFLAGS="-L/usr/lib $LDFLAGS"
[5221]5756if test x$SHARED_LIB_PATH != xno; then
[5265]5757        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
5758        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
[5221]5759fi
5760
[5277]5761#--------#
5762# openGL #
5763#--------#
5764ac_save_LDFLAGS="${LDFLAGS}"
5765
[2968]5766# checking gl header
[2701]5767
[2879]5768for ac_header in GL/gl.h
5769do
5770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5771if eval "test \"\${$as_ac_Header+set}\" = set"; then
5772  echo "$as_me:$LINENO: checking for $ac_header" >&5
5773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5774if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776fi
5777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5779else
5780  # Is the header compilable?
5781echo "$as_me:$LINENO: checking $ac_header usability" >&5
5782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5783cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h.  */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h.  */
5789$ac_includes_default
5790#include <$ac_header>
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794  (eval $ac_compile) 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } &&
5801         { ac_try='test -z "$ac_c_werror_flag"
5802                         || test ! -s conftest.err'
5803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804  (eval $ac_try) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; } &&
5808         { ac_try='test -s conftest.$ac_objext'
5809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810  (eval $ac_try) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; }; then
5814  ac_header_compiler=yes
5815else
5816  echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819ac_header_compiler=no
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5823echo "${ECHO_T}$ac_header_compiler" >&6
5824
5825# Is the header present?
5826echo "$as_me:$LINENO: checking $ac_header presence" >&5
5827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5828cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834#include <$ac_header>
5835_ACEOF
5836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5837  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } >/dev/null; then
5844  if test -s conftest.err; then
5845    ac_cpp_err=$ac_c_preproc_warn_flag
5846    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5847  else
5848    ac_cpp_err=
5849  fi
5850else
5851  ac_cpp_err=yes
5852fi
5853if test -z "$ac_cpp_err"; then
5854  ac_header_preproc=yes
5855else
5856  echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859  ac_header_preproc=no
5860fi
5861rm -f conftest.err conftest.$ac_ext
5862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5863echo "${ECHO_T}$ac_header_preproc" >&6
5864
5865# So?  What about this header?
5866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5867  yes:no: )
5868    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5870    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5872    ac_header_preproc=yes
5873    ;;
5874  no:yes:* )
5875    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5877    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5878echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5879    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5881    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5882echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5883    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5885    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5887    (
5888      cat <<\_ASBOX
[3240]5889## ---------------------------------------------- ##
5890## Report this to orxonox-dev at mail.datacore.ch ##
5891## ---------------------------------------------- ##
[2879]5892_ASBOX
5893    ) |
5894      sed "s/^/$as_me: WARNING:     /" >&2
5895    ;;
5896esac
5897echo "$as_me:$LINENO: checking for $ac_header" >&5
5898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900  echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902  eval "$as_ac_Header=\$ac_header_preproc"
5903fi
5904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5906
5907fi
5908if test `eval echo '${'$as_ac_Header'}'` = yes; then
5909  cat >>confdefs.h <<_ACEOF
5910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5911_ACEOF
5912
5913else
5914  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5915echo "$as_me: error: cannot find opengl headers" >&2;}
5916   { (exit 1); exit 1; }; }
5917fi
5918
5919done
5920
5921
[2701]5922#  checking for Unix GL
[5221]5923   echo "$as_me:$LINENO: checking for main in -lGL" >&5
5924echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5925if test "${ac_cv_lib_GL_main+set}" = set; then
[1956]5926  echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928  ac_check_lib_save_LIBS=$LIBS
[2701]5929LIBS="-lGL  $LIBS"
[1956]5930cat >conftest.$ac_ext <<_ACEOF
5931/* confdefs.h.  */
5932_ACEOF
5933cat confdefs.h >>conftest.$ac_ext
5934cat >>conftest.$ac_ext <<_ACEOF
5935/* end confdefs.h.  */
5936
[5221]5937
[1956]5938int
5939main ()
5940{
[5221]5941main ();
[1956]5942  ;
5943  return 0;
5944}
5945_ACEOF
5946rm -f conftest.$ac_objext conftest$ac_exeext
5947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948  (eval $ac_link) 2>conftest.er1
5949  ac_status=$?
5950  grep -v '^ *+' conftest.er1 >conftest.err
5951  rm -f conftest.er1
5952  cat conftest.err >&5
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); } &&
5955         { ac_try='test -z "$ac_c_werror_flag"
5956                         || test ! -s conftest.err'
5957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958  (eval $ac_try) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }; } &&
5962         { ac_try='test -s conftest$ac_exeext'
5963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964  (eval $ac_try) 2>&5
5965  ac_status=$?
5966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967  (exit $ac_status); }; }; then
[5221]5968  ac_cv_lib_GL_main=yes
[1956]5969else
5970  echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
[5221]5973ac_cv_lib_GL_main=no
[1956]5974fi
5975rm -f conftest.err conftest.$ac_objext \
5976      conftest$ac_exeext conftest.$ac_ext
5977LIBS=$ac_check_lib_save_LIBS
5978fi
[5221]5979echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5980echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5981if test $ac_cv_lib_GL_main = yes; then
[5277]5982  FOUND_GL=yes; LIBS="$LIBS -lGL"; LDFLAGS="${LDFLAGS} -lGL"
[2701]5983fi
5984
[5276]5985   if test x$FOUND_GL != xyes ; then
[4556]5986         echo "------------------"
5987         echo "opengl not found."
5988         echo "please install the opengl package which can be found at http://www.opengl.org"
5989         echo "------------------"
5990         exit -1
[2701]5991   fi
5992
5993# cheking for GLU-header
5994
5995for ac_header in GL/glu.h
5996do
5997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999  echo "$as_me:$LINENO: checking for $ac_header" >&5
6000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6001if eval "test \"\${$as_ac_Header+set}\" = set"; then
6002  echo $ECHO_N "(cached) $ECHO_C" >&6
6003fi
6004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006else
6007  # Is the header compilable?
6008echo "$as_me:$LINENO: checking $ac_header usability" >&5
6009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6010cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h.  */
[1956]6012_ACEOF
[2701]6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h.  */
6016$ac_includes_default
6017#include <$ac_header>
6018_ACEOF
6019rm -f conftest.$ac_objext
6020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>conftest.er1
6022  ac_status=$?
6023  grep -v '^ *+' conftest.er1 >conftest.err
6024  rm -f conftest.er1
6025  cat conftest.err >&5
6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027  (exit $ac_status); } &&
6028         { ac_try='test -z "$ac_c_werror_flag"
6029                         || test ! -s conftest.err'
6030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031  (eval $ac_try) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; } &&
6035         { ac_try='test -s conftest.$ac_objext'
6036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037  (eval $ac_try) 2>&5
6038  ac_status=$?
6039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040  (exit $ac_status); }; }; then
6041  ac_header_compiler=yes
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
[1956]6045
[2701]6046ac_header_compiler=no
6047fi
6048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6050echo "${ECHO_T}$ac_header_compiler" >&6
[1956]6051
[2701]6052# Is the header present?
6053echo "$as_me:$LINENO: checking $ac_header presence" >&5
6054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6055cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <$ac_header>
6062_ACEOF
6063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } >/dev/null; then
6071  if test -s conftest.err; then
6072    ac_cpp_err=$ac_c_preproc_warn_flag
6073    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074  else
6075    ac_cpp_err=
6076  fi
6077else
6078  ac_cpp_err=yes
[1956]6079fi
[2701]6080if test -z "$ac_cpp_err"; then
6081  ac_header_preproc=yes
6082else
6083  echo "$as_me: failed program was:" >&5
6084sed 's/^/| /' conftest.$ac_ext >&5
[1956]6085
[2701]6086  ac_header_preproc=no
6087fi
6088rm -f conftest.err conftest.$ac_ext
6089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6090echo "${ECHO_T}$ac_header_preproc" >&6
[1956]6091
[2701]6092# So?  What about this header?
6093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6094  yes:no: )
6095    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6097    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6099    ac_header_preproc=yes
6100    ;;
6101  no:yes:* )
6102    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6104    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6105echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6106    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6108    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6109echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6110    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6112    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6114    (
6115      cat <<\_ASBOX
[3240]6116## ---------------------------------------------- ##
6117## Report this to orxonox-dev at mail.datacore.ch ##
6118## ---------------------------------------------- ##
[2701]6119_ASBOX
6120    ) |
6121      sed "s/^/$as_me: WARNING:     /" >&2
6122    ;;
6123esac
6124echo "$as_me:$LINENO: checking for $ac_header" >&5
6125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6126if eval "test \"\${$as_ac_Header+set}\" = set"; then
[2190]6127  echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
[2701]6129  eval "$as_ac_Header=\$ac_header_preproc"
6130fi
6131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133
6134fi
6135if test `eval echo '${'$as_ac_Header'}'` = yes; then
6136  cat >>confdefs.h <<_ACEOF
6137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6138_ACEOF
6139
6140else
6141  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6142echo "$as_me: error: cannot find opengl headers" >&2;}
6143   { (exit 1); exit 1; }; }
6144fi
6145
6146done
6147
[5277]6148    echo "$as_me:$LINENO: checking for main in -lGLU" >&5
6149echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
6150if test "${ac_cv_lib_GLU_main+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  ac_check_lib_save_LIBS=$LIBS
6154LIBS="-lGLU  $LIBS"
6155cat >conftest.$ac_ext <<_ACEOF
6156/* confdefs.h.  */
6157_ACEOF
6158cat confdefs.h >>conftest.$ac_ext
6159cat >>conftest.$ac_ext <<_ACEOF
6160/* end confdefs.h.  */
[5224]6161
[5277]6162
6163int
6164main ()
6165{
6166main ();
6167  ;
6168  return 0;
6169}
6170_ACEOF
6171rm -f conftest.$ac_objext conftest$ac_exeext
6172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6173  (eval $ac_link) 2>conftest.er1
6174  ac_status=$?
6175  grep -v '^ *+' conftest.er1 >conftest.err
6176  rm -f conftest.er1
6177  cat conftest.err >&5
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); } &&
6180         { ac_try='test -z "$ac_c_werror_flag"
6181                         || test ! -s conftest.err'
6182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183  (eval $ac_try) 2>&5
6184  ac_status=$?
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); }; } &&
6187         { ac_try='test -s conftest$ac_exeext'
6188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189  (eval $ac_try) 2>&5
6190  ac_status=$?
6191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192  (exit $ac_status); }; }; then
6193  ac_cv_lib_GLU_main=yes
6194else
6195  echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198ac_cv_lib_GLU_main=no
6199fi
6200rm -f conftest.err conftest.$ac_objext \
6201      conftest$ac_exeext conftest.$ac_ext
6202LIBS=$ac_check_lib_save_LIBS
6203fi
6204echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
6205echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
6206if test $ac_cv_lib_GLU_main = yes; then
6207  FOUND_GLU=yes; LIBS="$LIBS -lGLU"
6208fi
6209
6210    if test x$FOUND_GLU != xyes ; then
6211         echo "------------------"
6212         echo "GLU library not found."
6213         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
6214         echo "------------------"
6215         exit -1
6216    fi
6217
[5265]6218# checking for GLEW-headers
6219
6220for ac_header in GL/glew.h
6221do
6222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224  echo "$as_me:$LINENO: checking for $ac_header" >&5
6225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227  echo $ECHO_N "(cached) $ECHO_C" >&6
6228fi
6229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6231else
6232  # Is the header compilable?
6233echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6235cat >conftest.$ac_ext <<_ACEOF
6236/* confdefs.h.  */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h.  */
6241$ac_includes_default
6242#include <$ac_header>
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246  (eval $ac_compile) 2>conftest.er1
6247  ac_status=$?
6248  grep -v '^ *+' conftest.er1 >conftest.err
6249  rm -f conftest.er1
6250  cat conftest.err >&5
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); } &&
6253         { ac_try='test -z "$ac_c_werror_flag"
6254                         || test ! -s conftest.err'
6255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256  (eval $ac_try) 2>&5
6257  ac_status=$?
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); }; } &&
6260         { ac_try='test -s conftest.$ac_objext'
6261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262  (eval $ac_try) 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; }; then
6266  ac_header_compiler=yes
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271ac_header_compiler=no
6272fi
6273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6275echo "${ECHO_T}$ac_header_compiler" >&6
6276
6277# Is the header present?
6278echo "$as_me:$LINENO: checking $ac_header presence" >&5
6279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6280cat >conftest.$ac_ext <<_ACEOF
6281/* confdefs.h.  */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h.  */
6286#include <$ac_header>
6287_ACEOF
6288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6289  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6290  ac_status=$?
6291  grep -v '^ *+' conftest.er1 >conftest.err
6292  rm -f conftest.er1
6293  cat conftest.err >&5
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); } >/dev/null; then
6296  if test -s conftest.err; then
6297    ac_cpp_err=$ac_c_preproc_warn_flag
6298    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6299  else
6300    ac_cpp_err=
6301  fi
6302else
6303  ac_cpp_err=yes
6304fi
6305if test -z "$ac_cpp_err"; then
6306  ac_header_preproc=yes
6307else
6308  echo "$as_me: failed program was:" >&5
6309sed 's/^/| /' conftest.$ac_ext >&5
6310
6311  ac_header_preproc=no
6312fi
6313rm -f conftest.err conftest.$ac_ext
6314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6315echo "${ECHO_T}$ac_header_preproc" >&6
6316
6317# So?  What about this header?
6318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6319  yes:no: )
6320    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6321echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6322    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6323echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6324    ac_header_preproc=yes
6325    ;;
6326  no:yes:* )
6327    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6328echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6329    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6330echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6331    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6332echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6333    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6334echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6335    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6336echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6337    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6338echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6339    (
6340      cat <<\_ASBOX
6341## ---------------------------------------------- ##
6342## Report this to orxonox-dev at mail.datacore.ch ##
6343## ---------------------------------------------- ##
6344_ASBOX
6345    ) |
6346      sed "s/^/$as_me: WARNING:     /" >&2
6347    ;;
6348esac
6349echo "$as_me:$LINENO: checking for $ac_header" >&5
6350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6351if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354  eval "$as_ac_Header=\$ac_header_preproc"
6355fi
6356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6358
6359fi
6360if test `eval echo '${'$as_ac_Header'}'` = yes; then
6361  cat >>confdefs.h <<_ACEOF
6362#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6363_ACEOF
6364
6365else
6366  { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5
6367echo "$as_me: error: cannot find glew headers" >&2;}
6368   { (exit 1); exit 1; }; }
6369fi
6370
6371done
6372
6373# checking for GLEW-lib
6374  echo "$as_me:$LINENO: checking for main in -lGLEW" >&5
6375echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6
6376if test "${ac_cv_lib_GLEW_main+set}" = set; then
6377  echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379  ac_check_lib_save_LIBS=$LIBS
6380LIBS="-lGLEW  $LIBS"
6381cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387
6388
6389int
6390main ()
6391{
6392main ();
6393  ;
6394  return 0;
6395}
6396_ACEOF
6397rm -f conftest.$ac_objext conftest$ac_exeext
6398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399  (eval $ac_link) 2>conftest.er1
6400  ac_status=$?
6401  grep -v '^ *+' conftest.er1 >conftest.err
6402  rm -f conftest.er1
6403  cat conftest.err >&5
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); } &&
6406         { ac_try='test -z "$ac_c_werror_flag"
6407                         || test ! -s conftest.err'
6408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409  (eval $ac_try) 2>&5
6410  ac_status=$?
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); }; } &&
6413         { ac_try='test -s conftest$ac_exeext'
6414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415  (eval $ac_try) 2>&5
6416  ac_status=$?
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); }; }; then
6419  ac_cv_lib_GLEW_main=yes
6420else
6421  echo "$as_me: failed program was:" >&5
6422sed 's/^/| /' conftest.$ac_ext >&5
6423
6424ac_cv_lib_GLEW_main=no
6425fi
6426rm -f conftest.err conftest.$ac_objext \
6427      conftest$ac_exeext conftest.$ac_ext
6428LIBS=$ac_check_lib_save_LIBS
6429fi
6430echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5
6431echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6
6432if test $ac_cv_lib_GLEW_main = yes; then
[5277]6433  FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"
[5265]6434fi
6435
[5277]6436   if test x$FOUND_GLEW != xyes ; then
[5265]6437         echo "------------------"
6438         echo "glew not found."
6439         echo "please install the glew package which can be found at http://glew.sourceforge.net"
6440         echo "------------------"
6441         exit -1
6442   fi
[5277]6443## resetting LD-flags as before GL
6444LDFLAGS="${ac_save_LDFLAGS}"
[5265]6445
[5224]6446#--------#
6447# openAL #
6448#--------#
6449# checking for openAL-headers
6450
6451for ac_header in AL/al.h
6452do
6453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6454if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455  echo "$as_me:$LINENO: checking for $ac_header" >&5
6456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6457if eval "test \"\${$as_ac_Header+set}\" = set"; then
[2701]6458  echo $ECHO_N "(cached) $ECHO_C" >&6
[5224]6459fi
6460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[2701]6462else
[5224]6463  # Is the header compilable?
6464echo "$as_me:$LINENO: checking $ac_header usability" >&5
6465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6466cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472$ac_includes_default
6473#include <$ac_header>
6474_ACEOF
6475rm -f conftest.$ac_objext
6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477  (eval $ac_compile) 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } &&
6484         { ac_try='test -z "$ac_c_werror_flag"
6485                         || test ! -s conftest.err'
6486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487  (eval $ac_try) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); }; } &&
6491         { ac_try='test -s conftest.$ac_objext'
6492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493  (eval $ac_try) 2>&5
6494  ac_status=$?
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); }; }; then
6497  ac_header_compiler=yes
6498else
6499  echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502ac_header_compiler=no
6503fi
6504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6506echo "${ECHO_T}$ac_header_compiler" >&6
6507
6508# Is the header present?
6509echo "$as_me:$LINENO: checking $ac_header presence" >&5
6510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6511cat >conftest.$ac_ext <<_ACEOF
6512/* confdefs.h.  */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h.  */
6517#include <$ac_header>
6518_ACEOF
6519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6521  ac_status=$?
6522  grep -v '^ *+' conftest.er1 >conftest.err
6523  rm -f conftest.er1
6524  cat conftest.err >&5
6525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526  (exit $ac_status); } >/dev/null; then
6527  if test -s conftest.err; then
6528    ac_cpp_err=$ac_c_preproc_warn_flag
6529    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6530  else
6531    ac_cpp_err=
6532  fi
6533else
6534  ac_cpp_err=yes
6535fi
6536if test -z "$ac_cpp_err"; then
6537  ac_header_preproc=yes
6538else
6539  echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542  ac_header_preproc=no
6543fi
6544rm -f conftest.err conftest.$ac_ext
6545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6546echo "${ECHO_T}$ac_header_preproc" >&6
6547
6548# So?  What about this header?
6549case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6550  yes:no: )
6551    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6554echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6555    ac_header_preproc=yes
6556    ;;
6557  no:yes:* )
6558    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6559echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6560    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6561echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6562    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6563echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6564    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6565echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6568    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6569echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6570    (
6571      cat <<\_ASBOX
6572## ---------------------------------------------- ##
6573## Report this to orxonox-dev at mail.datacore.ch ##
6574## ---------------------------------------------- ##
6575_ASBOX
6576    ) |
6577      sed "s/^/$as_me: WARNING:     /" >&2
6578    ;;
6579esac
6580echo "$as_me:$LINENO: checking for $ac_header" >&5
6581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6582if eval "test \"\${$as_ac_Header+set}\" = set"; then
6583  echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585  eval "$as_ac_Header=\$ac_header_preproc"
6586fi
6587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6589
6590fi
6591if test `eval echo '${'$as_ac_Header'}'` = yes; then
6592  cat >>confdefs.h <<_ACEOF
6593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594_ACEOF
6595
6596else
6597  { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5
6598echo "$as_me: error: cannot find openAL header." >&2;}
6599   { (exit 1); exit 1; }; }
6600fi
6601
6602done
6603
6604# checking for openAL-lib
6605  echo "$as_me:$LINENO: checking for main in -lopenal" >&5
6606echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6
6607if test "${ac_cv_lib_openal_main+set}" = set; then
6608  echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
[2190]6610  ac_check_lib_save_LIBS=$LIBS
[5224]6611LIBS="-lopenal  $LIBS"
[2190]6612cat >conftest.$ac_ext <<_ACEOF
6613/* confdefs.h.  */
6614_ACEOF
6615cat confdefs.h >>conftest.$ac_ext
6616cat >>conftest.$ac_ext <<_ACEOF
6617/* end confdefs.h.  */
6618
[5221]6619
[2190]6620int
6621main ()
6622{
[5221]6623main ();
[2190]6624  ;
6625  return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext conftest$ac_exeext
6629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6630  (eval $ac_link) 2>conftest.er1
6631  ac_status=$?
6632  grep -v '^ *+' conftest.er1 >conftest.err
6633  rm -f conftest.er1
6634  cat conftest.err >&5
6635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636  (exit $ac_status); } &&
6637         { ac_try='test -z "$ac_c_werror_flag"
6638                         || test ! -s conftest.err'
6639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640  (eval $ac_try) 2>&5
6641  ac_status=$?
6642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643  (exit $ac_status); }; } &&
6644         { ac_try='test -s conftest$ac_exeext'
6645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646  (eval $ac_try) 2>&5
6647  ac_status=$?
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); }; }; then
[5224]6650  ac_cv_lib_openal_main=yes
[2190]6651else
6652  echo "$as_me: failed program was:" >&5
6653sed 's/^/| /' conftest.$ac_ext >&5
6654
[5224]6655ac_cv_lib_openal_main=no
[2190]6656fi
6657rm -f conftest.err conftest.$ac_objext \
6658      conftest$ac_exeext conftest.$ac_ext
6659LIBS=$ac_check_lib_save_LIBS
6660fi
[5224]6661echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5
6662echo "${ECHO_T}$ac_cv_lib_openal_main" >&6
6663if test $ac_cv_lib_openal_main = yes; then
[5277]6664  FOUND_OPENAL=yes; LIBS="$LIBS -lopenal"
[2190]6665fi
6666
[5277]6667     if test x$FOUND_OPENAL != xyes ; then
[5224]6668        echo "------------------"
6669        echo "openal library not found."
6670        echo "please install the openal library, which can be found at http://www.openal.org"
6671        echo "------------------"
6672        exit -1
6673     fi
6674# checking for alut
[2995]6675
[5224]6676for ac_header in AL/alut.h
[2991]6677do
6678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6679if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680  echo "$as_me:$LINENO: checking for $ac_header" >&5
6681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6682if eval "test \"\${$as_ac_Header+set}\" = set"; then
[2190]6683  echo $ECHO_N "(cached) $ECHO_C" >&6
6684fi
[2991]6685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
[2190]6687else
[2991]6688  # Is the header compilable?
6689echo "$as_me:$LINENO: checking $ac_header usability" >&5
6690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6691cat >conftest.$ac_ext <<_ACEOF
[2190]6692/* confdefs.h.  */
6693_ACEOF
6694cat confdefs.h >>conftest.$ac_ext
6695cat >>conftest.$ac_ext <<_ACEOF
6696/* end confdefs.h.  */
[2991]6697$ac_includes_default
6698#include <$ac_header>
[2190]6699_ACEOF
[2991]6700rm -f conftest.$ac_objext
6701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6702  (eval $ac_compile) 2>conftest.er1
[2190]6703  ac_status=$?
[2991]6704  grep -v '^ *+' conftest.er1 >conftest.err
6705  rm -f conftest.er1
6706  cat conftest.err >&5
[2190]6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
[2991]6708  (exit $ac_status); } &&
6709         { ac_try='test -z "$ac_c_werror_flag"
6710                         || test ! -s conftest.err'
[2190]6711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712  (eval $ac_try) 2>&5
6713  ac_status=$?
6714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
[2991]6715  (exit $ac_status); }; } &&
6716         { ac_try='test -s conftest.$ac_objext'
6717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718  (eval $ac_try) 2>&5
6719  ac_status=$?
6720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
[2190]6721  (exit $ac_status); }; }; then
[2991]6722  ac_header_compiler=yes
[2190]6723else
[2991]6724  echo "$as_me: failed program was:" >&5
[2190]6725sed 's/^/| /' conftest.$ac_ext >&5
6726
[2991]6727ac_header_compiler=no
[2190]6728fi
[2991]6729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6731echo "${ECHO_T}$ac_header_compiler" >&6
6732
6733# Is the header present?
6734echo "$as_me:$LINENO: checking $ac_header presence" >&5
6735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6736cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h.  */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h.  */
6742#include <$ac_header>
6743_ACEOF
6744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6745  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6746  ac_status=$?
6747  grep -v '^ *+' conftest.er1 >conftest.err
6748  rm -f conftest.er1
6749  cat conftest.err >&5
6750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751  (exit $ac_status); } >/dev/null; then
6752  if test -s conftest.err; then
6753    ac_cpp_err=$ac_c_preproc_warn_flag
6754    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6755  else
6756    ac_cpp_err=
6757  fi
6758else
6759  ac_cpp_err=yes
[2190]6760fi
[2991]6761if test -z "$ac_cpp_err"; then
6762  ac_header_preproc=yes
6763else
6764  echo "$as_me: failed program was:" >&5
6765sed 's/^/| /' conftest.$ac_ext >&5
6766
6767  ac_header_preproc=no
6768fi
6769rm -f conftest.err conftest.$ac_ext
6770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6771echo "${ECHO_T}$ac_header_preproc" >&6
6772
6773# So?  What about this header?
6774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6775  yes:no: )
6776    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6780    ac_header_preproc=yes
6781    ;;
6782  no:yes:* )
6783    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6785    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6786echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6787    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6789    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6790echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6793    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6795    (
6796      cat <<\_ASBOX
[3240]6797## ---------------------------------------------- ##
6798## Report this to orxonox-dev at mail.datacore.ch ##
6799## ---------------------------------------------- ##
[2991]6800_ASBOX
6801    ) |
6802      sed "s/^/$as_me: WARNING:     /" >&2
6803    ;;
6804esac
6805echo "$as_me:$LINENO: checking for $ac_header" >&5
6806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6807if eval "test \"\${$as_ac_Header+set}\" = set"; then
6808  echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810  eval "$as_ac_Header=\$ac_header_preproc"
6811fi
6812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6814
6815fi
6816if test `eval echo '${'$as_ac_Header'}'` = yes; then
6817  cat >>confdefs.h <<_ACEOF
6818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6819_ACEOF
6820
6821else
[5224]6822  { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5
6823echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;}
[4697]6824   { (exit 1); exit 1; }; }
6825fi
[2991]6826
[4697]6827done
6828
[5224]6829  echo "$as_me:$LINENO: checking for main in -lalut" >&5
6830echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6
6831if test "${ac_cv_lib_alut_main+set}" = set; then
[2991]6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
[4697]6834  ac_check_lib_save_LIBS=$LIBS
[5224]6835LIBS="-lalut  $LIBS"
[2991]6836cat >conftest.$ac_ext <<_ACEOF
[2190]6837/* confdefs.h.  */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h.  */
[4697]6842
6843
6844int
6845main ()
6846{
6847main ();
6848  ;
6849  return 0;
6850}
[2190]6851_ACEOF
[4697]6852rm -f conftest.$ac_objext conftest$ac_exeext
6853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6854  (eval $ac_link) 2>conftest.er1
[2190]6855  ac_status=$?
6856  grep -v '^ *+' conftest.er1 >conftest.err
6857  rm -f conftest.er1
6858  cat conftest.err >&5
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); } &&
6861         { ac_try='test -z "$ac_c_werror_flag"
6862                         || test ! -s conftest.err'
6863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864  (eval $ac_try) 2>&5
6865  ac_status=$?
6866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867  (exit $ac_status); }; } &&
[4697]6868         { ac_try='test -s conftest$ac_exeext'
[2190]6869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870  (eval $ac_try) 2>&5
6871  ac_status=$?
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); }; }; then
[5224]6874  ac_cv_lib_alut_main=yes
[2190]6875else
6876  echo "$as_me: failed program was:" >&5
6877sed 's/^/| /' conftest.$ac_ext >&5
6878
[5224]6879ac_cv_lib_alut_main=no
[2190]6880fi
[4697]6881rm -f conftest.err conftest.$ac_objext \
6882      conftest$ac_exeext conftest.$ac_ext
6883LIBS=$ac_check_lib_save_LIBS
[2991]6884fi
[5224]6885echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5
6886echo "${ECHO_T}$ac_cv_lib_alut_main" >&6
6887if test $ac_cv_lib_alut_main = yes; then
[5277]6888  FOUND_ALUT=yes; LIBS="-lalut $LIBS"
[2991]6889fi
6890
[5277]6891
[5276]6892#-----#
6893# SDL #
6894#-----#
[4697]6895# checking for SDL
6896  echo "$as_me:$LINENO: checking for SDL-version" >&5
6897echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6
6898  SDL_VERSION=`sdl-config --version`
6899  echo $SDL_VERSION
[3140]6900
[5224]6901   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
[4664]6902
[4697]6903for ac_header in SDL.h
[2995]6904do
6905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6906if eval "test \"\${$as_ac_Header+set}\" = set"; then
6907  echo "$as_me:$LINENO: checking for $ac_header" >&5
6908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6909if eval "test \"\${$as_ac_Header+set}\" = set"; then
6910  echo $ECHO_N "(cached) $ECHO_C" >&6
6911fi
6912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6914else
6915  # Is the header compilable?
6916echo "$as_me:$LINENO: checking $ac_header usability" >&5
6917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6918cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h.  */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h.  */
6924$ac_includes_default
6925#include <$ac_header>
6926_ACEOF
6927rm -f conftest.$ac_objext
6928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6929  (eval $ac_compile) 2>conftest.er1
6930  ac_status=$?
6931  grep -v '^ *+' conftest.er1 >conftest.err
6932  rm -f conftest.er1
6933  cat conftest.err >&5
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); } &&
6936         { ac_try='test -z "$ac_c_werror_flag"
6937                         || test ! -s conftest.err'
6938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939  (eval $ac_try) 2>&5
6940  ac_status=$?
6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); }; } &&
6943         { ac_try='test -s conftest.$ac_objext'
6944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945  (eval $ac_try) 2>&5
6946  ac_status=$?
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); }; }; then
6949  ac_header_compiler=yes
6950else
6951  echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
6954ac_header_compiler=no
6955fi
6956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6958echo "${ECHO_T}$ac_header_compiler" >&6
6959
6960# Is the header present?
6961echo "$as_me:$LINENO: checking $ac_header presence" >&5
6962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6963cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969#include <$ac_header>
6970_ACEOF
6971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973  ac_status=$?
6974  grep -v '^ *+' conftest.er1 >conftest.err
6975  rm -f conftest.er1
6976  cat conftest.err >&5
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); } >/dev/null; then
6979  if test -s conftest.err; then
6980    ac_cpp_err=$ac_c_preproc_warn_flag
6981    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6982  else
6983    ac_cpp_err=
6984  fi
6985else
6986  ac_cpp_err=yes
6987fi
6988if test -z "$ac_cpp_err"; then
6989  ac_header_preproc=yes
6990else
6991  echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994  ac_header_preproc=no
6995fi
6996rm -f conftest.err conftest.$ac_ext
6997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6998echo "${ECHO_T}$ac_header_preproc" >&6
6999
7000# So?  What about this header?
7001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7002  yes:no: )
7003    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7005    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7007    ac_header_preproc=yes
7008    ;;
7009  no:yes:* )
7010    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7012    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7013echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7014    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7016    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7017echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7020    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7022    (
7023      cat <<\_ASBOX
[3240]7024## ---------------------------------------------- ##
7025## Report this to orxonox-dev at mail.datacore.ch ##
7026## ---------------------------------------------- ##
[2995]7027_ASBOX
7028    ) |
7029      sed "s/^/$as_me: WARNING:     /" >&2
7030    ;;
7031esac
7032echo "$as_me:$LINENO: checking for $ac_header" >&5
7033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7034if eval "test \"\${$as_ac_Header+set}\" = set"; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  eval "$as_ac_Header=\$ac_header_preproc"
7038fi
7039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7041
7042fi
7043if test `eval echo '${'$as_ac_Header'}'` = yes; then
7044  cat >>confdefs.h <<_ACEOF
7045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7046_ACEOF
7047
7048else
7049
[4697]7050for ac_header in SDL/SDL.h
[2995]7051do
7052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7053if eval "test \"\${$as_ac_Header+set}\" = set"; then
7054  echo "$as_me:$LINENO: checking for $ac_header" >&5
7055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7056if eval "test \"\${$as_ac_Header+set}\" = set"; then
7057  echo $ECHO_N "(cached) $ECHO_C" >&6
7058fi
7059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7061else
7062  # Is the header compilable?
7063echo "$as_me:$LINENO: checking $ac_header usability" >&5
7064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7065cat >conftest.$ac_ext <<_ACEOF
7066/* confdefs.h.  */
7067_ACEOF
7068cat confdefs.h >>conftest.$ac_ext
7069cat >>conftest.$ac_ext <<_ACEOF
7070/* end confdefs.h.  */
7071$ac_includes_default
7072#include <$ac_header>
7073_ACEOF
7074rm -f conftest.$ac_objext
7075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076  (eval $ac_compile) 2>conftest.er1
7077  ac_status=$?
7078  grep -v '^ *+' conftest.er1 >conftest.err
7079  rm -f conftest.er1
7080  cat conftest.err >&5
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); } &&
7083         { ac_try='test -z "$ac_c_werror_flag"
7084                         || test ! -s conftest.err'
7085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086  (eval $ac_try) 2>&5
7087  ac_status=$?
7088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089  (exit $ac_status); }; } &&
7090         { ac_try='test -s conftest.$ac_objext'
7091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092  (eval $ac_try) 2>&5
7093  ac_status=$?
7094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095  (exit $ac_status); }; }; then
7096  ac_header_compiler=yes
7097else
7098  echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
7100
7101ac_header_compiler=no
7102fi
7103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7104echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7105echo "${ECHO_T}$ac_header_compiler" >&6
7106
7107# Is the header present?
7108echo "$as_me:$LINENO: checking $ac_header presence" >&5
7109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7110cat >conftest.$ac_ext <<_ACEOF
7111/* confdefs.h.  */
7112_ACEOF
7113cat confdefs.h >>conftest.$ac_ext
7114cat >>conftest.$ac_ext <<_ACEOF
7115/* end confdefs.h.  */
7116#include <$ac_header>
7117_ACEOF
7118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7120  ac_status=$?
7121  grep -v '^ *+' conftest.er1 >conftest.err
7122  rm -f conftest.er1
7123  cat conftest.err >&5
7124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125  (exit $ac_status); } >/dev/null; then
7126  if test -s conftest.err; then
7127    ac_cpp_err=$ac_c_preproc_warn_flag
7128    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7129  else
7130    ac_cpp_err=
7131  fi
7132else
7133  ac_cpp_err=yes
7134fi
7135if test -z "$ac_cpp_err"; then
7136  ac_header_preproc=yes
7137else
7138  echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141  ac_header_preproc=no
7142fi
7143rm -f conftest.err conftest.$ac_ext
7144echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7145echo "${ECHO_T}$ac_header_preproc" >&6
7146
7147# So?  What about this header?
7148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7149  yes:no: )
7150    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7154    ac_header_preproc=yes
7155    ;;
7156  no:yes:* )
7157    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7159    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7160echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7161    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7163    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7164echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7165    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7167    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7169    (
7170      cat <<\_ASBOX
[3240]7171## ---------------------------------------------- ##
7172## Report this to orxonox-dev at mail.datacore.ch ##
7173## ---------------------------------------------- ##
[2995]7174_ASBOX
7175    ) |
7176      sed "s/^/$as_me: WARNING:     /" >&2
7177    ;;
7178esac
7179echo "$as_me:$LINENO: checking for $ac_header" >&5
7180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7181if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182  echo $ECHO_N "(cached) $ECHO_C" >&6
7183else
7184  eval "$as_ac_Header=\$ac_header_preproc"
7185fi
7186echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7187echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7188
7189fi
7190if test `eval echo '${'$as_ac_Header'}'` = yes; then
7191  cat >>confdefs.h <<_ACEOF
7192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7193_ACEOF
7194
7195else
[4697]7196  { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5
7197echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}
[2995]7198   { (exit 1); exit 1; }; }
7199fi
7200
7201done
7202
[4697]7203fi
[2995]7204
[4697]7205done
[2995]7206
[5224]7207   LIBS="`sdl-config --libs` $LIBS"
[5221]7208   echo "$as_me:$LINENO: checking for main in -lSDL" >&5
7209echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
7210if test "${ac_cv_lib_SDL_main+set}" = set; then
7211  echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213  ac_check_lib_save_LIBS=$LIBS
7214LIBS="-lSDL  $LIBS"
7215cat >conftest.$ac_ext <<_ACEOF
7216/* confdefs.h.  */
7217_ACEOF
7218cat confdefs.h >>conftest.$ac_ext
7219cat >>conftest.$ac_ext <<_ACEOF
7220/* end confdefs.h.  */
[4662]7221
[5221]7222
7223int
7224main ()
7225{
7226main ();
7227  ;
7228  return 0;
7229}
7230_ACEOF
7231rm -f conftest.$ac_objext conftest$ac_exeext
7232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233  (eval $ac_link) 2>conftest.er1
7234  ac_status=$?
7235  grep -v '^ *+' conftest.er1 >conftest.err
7236  rm -f conftest.er1
7237  cat conftest.err >&5
7238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239  (exit $ac_status); } &&
7240         { ac_try='test -z "$ac_c_werror_flag"
7241                         || test ! -s conftest.err'
7242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243  (eval $ac_try) 2>&5
7244  ac_status=$?
7245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246  (exit $ac_status); }; } &&
7247         { ac_try='test -s conftest$ac_exeext'
7248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249  (eval $ac_try) 2>&5
7250  ac_status=$?
7251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252  (exit $ac_status); }; }; then
7253  ac_cv_lib_SDL_main=yes
7254else
7255  echo "$as_me: failed program was:" >&5
7256sed 's/^/| /' conftest.$ac_ext >&5
7257
7258ac_cv_lib_SDL_main=no
7259fi
7260rm -f conftest.err conftest.$ac_objext \
7261      conftest$ac_exeext conftest.$ac_ext
7262LIBS=$ac_check_lib_save_LIBS
7263fi
7264echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
7265echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
7266if test $ac_cv_lib_SDL_main = yes; then
7267  FOUND_SDL=yes
7268fi
7269
[5276]7270    if test x$FOUND_SDL != xyes ; then
[5221]7271        echo "------------------"
7272        echo "SDL library not found."
7273        echo "please install the SDL library, which can be found at http://www.libsdl.org"
7274        echo "------------------"
7275        exit -1
7276     fi
7277
[2995]7278    ;;
7279
[4825]7280#############
[4697]7281#-----------#
7282# MAC -OS X #
7283#-----------#
[4825]7284#############
[4697]7285 *darwin*)
7286 echo "OS X detected"
[2980]7287
[4697]7288 osX="yes"
[2981]7289
[4697]7290 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
7291# checking gl header
[2989]7292
[4697]7293for ac_header in OpenGL/gl.h
[4504]7294do
7295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296if eval "test \"\${$as_ac_Header+set}\" = set"; then
7297  echo "$as_me:$LINENO: checking for $ac_header" >&5
7298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7299if eval "test \"\${$as_ac_Header+set}\" = set"; then
7300  echo $ECHO_N "(cached) $ECHO_C" >&6
7301fi
7302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7304else
7305  # Is the header compilable?
7306echo "$as_me:$LINENO: checking $ac_header usability" >&5
7307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7308cat >conftest.$ac_ext <<_ACEOF
7309/* confdefs.h.  */
7310_ACEOF
7311cat confdefs.h >>conftest.$ac_ext
7312cat >>conftest.$ac_ext <<_ACEOF
7313/* end confdefs.h.  */
7314$ac_includes_default
7315#include <$ac_header>
7316_ACEOF
7317rm -f conftest.$ac_objext
7318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319  (eval $ac_compile) 2>conftest.er1
7320  ac_status=$?
7321  grep -v '^ *+' conftest.er1 >conftest.err
7322  rm -f conftest.er1
7323  cat conftest.err >&5
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); } &&
7326         { ac_try='test -z "$ac_c_werror_flag"
7327                         || test ! -s conftest.err'
7328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329  (eval $ac_try) 2>&5
7330  ac_status=$?
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); }; } &&
7333         { ac_try='test -s conftest.$ac_objext'
7334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335  (eval $ac_try) 2>&5
7336  ac_status=$?
7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); }; }; then
7339  ac_header_compiler=yes
7340else
7341  echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344ac_header_compiler=no
7345fi
7346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350# Is the header present?
7351echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h.  */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h.  */
7359#include <$ac_header>
7360_ACEOF
7361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363  ac_status=$?
7364  grep -v '^ *+' conftest.er1 >conftest.err
7365  rm -f conftest.er1
7366  cat conftest.err >&5
7367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368  (exit $ac_status); } >/dev/null; then
7369  if test -s conftest.err; then
7370    ac_cpp_err=$ac_c_preproc_warn_flag
7371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7372  else
7373    ac_cpp_err=
7374  fi
7375else
7376  ac_cpp_err=yes
7377fi
7378if test -z "$ac_cpp_err"; then
7379  ac_header_preproc=yes
7380else
7381  echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384  ac_header_preproc=no
7385fi
7386rm -f conftest.err conftest.$ac_ext
7387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390# So?  What about this header?
7391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392  yes:no: )
7393    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7397    ac_header_preproc=yes
7398    ;;
7399  no:yes:* )
7400    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7402    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7403echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7404    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7406    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7407echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7410    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7412    (
7413      cat <<\_ASBOX
7414## ---------------------------------------------- ##
7415## Report this to orxonox-dev at mail.datacore.ch ##
7416## ---------------------------------------------- ##
7417_ASBOX
7418    ) |
7419      sed "s/^/$as_me: WARNING:     /" >&2
7420    ;;
7421esac
7422echo "$as_me:$LINENO: checking for $ac_header" >&5
7423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7424if eval "test \"\${$as_ac_Header+set}\" = set"; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427  eval "$as_ac_Header=\$ac_header_preproc"
7428fi
7429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431
7432fi
7433if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434  cat >>confdefs.h <<_ACEOF
7435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436_ACEOF
7437
7438else
[4697]7439  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7440echo "$as_me: error: cannot find opengl headers" >&2;}
7441   { (exit 1); exit 1; }; }
7442fi
[4504]7443
[4697]7444done
7445
7446# cheking for GLU-header
7447
7448for ac_header in OpenGL/glu.h
[4504]7449do
7450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452  echo "$as_me:$LINENO: checking for $ac_header" >&5
7453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455  echo $ECHO_N "(cached) $ECHO_C" >&6
7456fi
7457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459else
7460  # Is the header compilable?
7461echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463cat >conftest.$ac_ext <<_ACEOF
7464/* confdefs.h.  */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h.  */
7469$ac_includes_default
7470#include <$ac_header>
7471_ACEOF
7472rm -f conftest.$ac_objext
7473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474  (eval $ac_compile) 2>conftest.er1
7475  ac_status=$?
7476  grep -v '^ *+' conftest.er1 >conftest.err
7477  rm -f conftest.er1
7478  cat conftest.err >&5
7479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480  (exit $ac_status); } &&
7481         { ac_try='test -z "$ac_c_werror_flag"
7482                         || test ! -s conftest.err'
7483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484  (eval $ac_try) 2>&5
7485  ac_status=$?
7486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487  (exit $ac_status); }; } &&
7488         { ac_try='test -s conftest.$ac_objext'
7489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490  (eval $ac_try) 2>&5
7491  ac_status=$?
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); }; }; then
7494  ac_header_compiler=yes
7495else
7496  echo "$as_me: failed program was:" >&5
7497sed 's/^/| /' conftest.$ac_ext >&5
7498
7499ac_header_compiler=no
7500fi
7501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503echo "${ECHO_T}$ac_header_compiler" >&6
7504
7505# Is the header present?
7506echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7508cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h.  */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h.  */
7514#include <$ac_header>
7515_ACEOF
7516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7518  ac_status=$?
7519  grep -v '^ *+' conftest.er1 >conftest.err
7520  rm -f conftest.er1
7521  cat conftest.err >&5
7522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523  (exit $ac_status); } >/dev/null; then
7524  if test -s conftest.err; then
7525    ac_cpp_err=$ac_c_preproc_warn_flag
7526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7527  else
7528    ac_cpp_err=
7529  fi
7530else
7531  ac_cpp_err=yes
7532fi
7533if test -z "$ac_cpp_err"; then
7534  ac_header_preproc=yes
7535else
7536  echo "$as_me: failed program was:" >&5
7537sed 's/^/| /' conftest.$ac_ext >&5
7538
7539  ac_header_preproc=no
7540fi
7541rm -f conftest.err conftest.$ac_ext
7542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7543echo "${ECHO_T}$ac_header_preproc" >&6
7544
7545# So?  What about this header?
7546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7547  yes:no: )
7548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7552    ac_header_preproc=yes
7553    ;;
7554  no:yes:* )
7555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7567    (
7568      cat <<\_ASBOX
7569## ---------------------------------------------- ##
7570## Report this to orxonox-dev at mail.datacore.ch ##
7571## ---------------------------------------------- ##
7572_ASBOX
7573    ) |
7574      sed "s/^/$as_me: WARNING:     /" >&2
7575    ;;
7576esac
7577echo "$as_me:$LINENO: checking for $ac_header" >&5
7578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7579if eval "test \"\${$as_ac_Header+set}\" = set"; then
7580  echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582  eval "$as_ac_Header=\$ac_header_preproc"
7583fi
7584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7586
7587fi
7588if test `eval echo '${'$as_ac_Header'}'` = yes; then
7589  cat >>confdefs.h <<_ACEOF
7590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7591_ACEOF
7592
7593else
[4697]7594  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
7595echo "$as_me: error: cannot find opengl headers" >&2;}
[4504]7596   { (exit 1); exit 1; }; }
7597fi
7598
7599done
7600
7601
[4697]7602   LIBS="$LIBS -framework OpenGL"
[4504]7603
7604
[4697]7605## SDL-check
7606       SDL_CFLAGS=`sdl-config --cflags`
7607       SDL_LIBS=`sdl-config --libs`
7608       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7609       LIBS="$LIBS $SDL_LIBS"
[4504]7610
7611
[4697]7612# checking for SDL-headers
7613#    AC_CHECK_HEADERS(SDL/SDL.h ,,
7614#      [AC_MSG_ERROR([cannot find SDL headers]) ])
[4504]7615
[4697]7616## checking for SDL
7617#    SDL_VERSION=1.2.7
7618#    AM_PATH_SDL($SDL_VERSION,
7619#      :,
7620#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
7621#      )
[4504]7622
7623
[4697]7624    ;;
[4665]7625
[4697]7626  *)
7627    ;;
7628esac
7629
7630
7631
7632###################################
7633## CHECKING FOR HEADERS AND LIBS ##
7634###################################
7635
7636#---------#
7637# SDL_ttf #
7638#---------#
7639# checking for SDL_ttf-headers
7640
7641for ac_header in SDL_ttf.h
[4504]7642do
7643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7644if eval "test \"\${$as_ac_Header+set}\" = set"; then
7645  echo "$as_me:$LINENO: checking for $ac_header" >&5
7646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7647if eval "test \"\${$as_ac_Header+set}\" = set"; then
7648  echo $ECHO_N "(cached) $ECHO_C" >&6
7649fi
7650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7652else
7653  # Is the header compilable?
7654echo "$as_me:$LINENO: checking $ac_header usability" >&5
7655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7656cat >conftest.$ac_ext <<_ACEOF
7657/* confdefs.h.  */
7658_ACEOF
7659cat confdefs.h >>conftest.$ac_ext
7660cat >>conftest.$ac_ext <<_ACEOF
7661/* end confdefs.h.  */
7662$ac_includes_default
7663#include <$ac_header>
7664_ACEOF
7665rm -f conftest.$ac_objext
7666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667  (eval $ac_compile) 2>conftest.er1
7668  ac_status=$?
7669  grep -v '^ *+' conftest.er1 >conftest.err
7670  rm -f conftest.er1
7671  cat conftest.err >&5
7672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673  (exit $ac_status); } &&
7674         { ac_try='test -z "$ac_c_werror_flag"
7675                         || test ! -s conftest.err'
7676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677  (eval $ac_try) 2>&5
7678  ac_status=$?
7679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680  (exit $ac_status); }; } &&
7681         { ac_try='test -s conftest.$ac_objext'
7682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683  (eval $ac_try) 2>&5
7684  ac_status=$?
7685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686  (exit $ac_status); }; }; then
7687  ac_header_compiler=yes
7688else
7689  echo "$as_me: failed program was:" >&5
7690sed 's/^/| /' conftest.$ac_ext >&5
7691
7692ac_header_compiler=no
7693fi
7694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7696echo "${ECHO_T}$ac_header_compiler" >&6
7697
7698# Is the header present?
7699echo "$as_me:$LINENO: checking $ac_header presence" >&5
7700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7701cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h.  */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h.  */
7707#include <$ac_header>
7708_ACEOF
7709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7711  ac_status=$?
7712  grep -v '^ *+' conftest.er1 >conftest.err
7713  rm -f conftest.er1
7714  cat conftest.err >&5
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); } >/dev/null; then
7717  if test -s conftest.err; then
7718    ac_cpp_err=$ac_c_preproc_warn_flag
7719    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7720  else
7721    ac_cpp_err=
7722  fi
7723else
7724  ac_cpp_err=yes
7725fi
7726if test -z "$ac_cpp_err"; then
7727  ac_header_preproc=yes
7728else
7729  echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732  ac_header_preproc=no
7733fi
7734rm -f conftest.err conftest.$ac_ext
7735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7736echo "${ECHO_T}$ac_header_preproc" >&6
7737
7738# So?  What about this header?
7739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7740  yes:no: )
7741    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7743    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7745    ac_header_preproc=yes
7746    ;;
7747  no:yes:* )
7748    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7750    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7751echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7752    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7754    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7755echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7758    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7760    (
7761      cat <<\_ASBOX
7762## ---------------------------------------------- ##
7763## Report this to orxonox-dev at mail.datacore.ch ##
7764## ---------------------------------------------- ##
7765_ASBOX
7766    ) |
7767      sed "s/^/$as_me: WARNING:     /" >&2
7768    ;;
7769esac
7770echo "$as_me:$LINENO: checking for $ac_header" >&5
7771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7772if eval "test \"\${$as_ac_Header+set}\" = set"; then
7773  echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775  eval "$as_ac_Header=\$ac_header_preproc"
7776fi
7777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7779
7780fi
7781if test `eval echo '${'$as_ac_Header'}'` = yes; then
7782  cat >>confdefs.h <<_ACEOF
7783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7784_ACEOF
7785
7786else
7787
[4697]7788for ac_header in SDL/SDL_ttf.h
[4662]7789do
7790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7791if eval "test \"\${$as_ac_Header+set}\" = set"; then
7792  echo "$as_me:$LINENO: checking for $ac_header" >&5
7793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7794if eval "test \"\${$as_ac_Header+set}\" = set"; then
7795  echo $ECHO_N "(cached) $ECHO_C" >&6
7796fi
7797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7799else
7800  # Is the header compilable?
7801echo "$as_me:$LINENO: checking $ac_header usability" >&5
7802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7803cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h.  */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h.  */
7809$ac_includes_default
7810#include <$ac_header>
7811_ACEOF
7812rm -f conftest.$ac_objext
7813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814  (eval $ac_compile) 2>conftest.er1
7815  ac_status=$?
7816  grep -v '^ *+' conftest.er1 >conftest.err
7817  rm -f conftest.er1
7818  cat conftest.err >&5
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); } &&
7821         { ac_try='test -z "$ac_c_werror_flag"
7822                         || test ! -s conftest.err'
7823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824  (eval $ac_try) 2>&5
7825  ac_status=$?
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); }; } &&
7828         { ac_try='test -s conftest.$ac_objext'
7829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830  (eval $ac_try) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }; }; then
7834  ac_header_compiler=yes
7835else
7836  echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839ac_header_compiler=no
7840fi
7841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843echo "${ECHO_T}$ac_header_compiler" >&6
7844
7845# Is the header present?
7846echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7848cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h.  */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h.  */
7854#include <$ac_header>
7855_ACEOF
7856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7858  ac_status=$?
7859  grep -v '^ *+' conftest.er1 >conftest.err
7860  rm -f conftest.er1
7861  cat conftest.err >&5
7862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863  (exit $ac_status); } >/dev/null; then
7864  if test -s conftest.err; then
7865    ac_cpp_err=$ac_c_preproc_warn_flag
7866    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7867  else
7868    ac_cpp_err=
7869  fi
7870else
7871  ac_cpp_err=yes
7872fi
7873if test -z "$ac_cpp_err"; then
7874  ac_header_preproc=yes
7875else
7876  echo "$as_me: failed program was:" >&5
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879  ac_header_preproc=no
7880fi
7881rm -f conftest.err conftest.$ac_ext
7882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7883echo "${ECHO_T}$ac_header_preproc" >&6
7884
7885# So?  What about this header?
7886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7887  yes:no: )
7888    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7890    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7892    ac_header_preproc=yes
7893    ;;
7894  no:yes:* )
7895    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7898echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7899    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7901    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7902echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7903    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7905    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7907    (
7908      cat <<\_ASBOX
7909## ---------------------------------------------- ##
7910## Report this to orxonox-dev at mail.datacore.ch ##
7911## ---------------------------------------------- ##
7912_ASBOX
7913    ) |
7914      sed "s/^/$as_me: WARNING:     /" >&2
7915    ;;
7916esac
7917echo "$as_me:$LINENO: checking for $ac_header" >&5
7918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920  echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922  eval "$as_ac_Header=\$ac_header_preproc"
7923fi
7924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926
7927fi
7928if test `eval echo '${'$as_ac_Header'}'` = yes; then
7929  cat >>confdefs.h <<_ACEOF
7930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7931_ACEOF
7932
7933else
[4697]7934  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
7935echo "$as_me: error: cannot find SDL_ttf header." >&2;}
[4665]7936   { (exit 1); exit 1; }; }
7937fi
[4662]7938
[4665]7939done
7940
7941fi
7942
7943done
7944
[4697]7945# checking for SDL_ttf-lib
7946  echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
7947echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6
7948if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
[4665]7949  echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951  ac_check_lib_save_LIBS=$LIBS
[4697]7952LIBS="-lSDL_ttf  $LIBS"
[4665]7953cat >conftest.$ac_ext <<_ACEOF
7954/* confdefs.h.  */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h.  */
7959
[4697]7960/* Override any gcc2 internal prototype to avoid an error.  */
7961#ifdef __cplusplus
7962extern "C"
7963#endif
7964/* We use char because int might match the return type of a gcc2
7965   builtin and then its argument prototype would still apply.  */
7966char TTF_OpenFont ();
[4665]7967int
7968main ()
7969{
[4697]7970TTF_OpenFont ();
[4665]7971  ;
7972  return 0;
7973}
7974_ACEOF
7975rm -f conftest.$ac_objext conftest$ac_exeext
7976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977  (eval $ac_link) 2>conftest.er1
7978  ac_status=$?
7979  grep -v '^ *+' conftest.er1 >conftest.err
7980  rm -f conftest.er1
7981  cat conftest.err >&5
7982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983  (exit $ac_status); } &&
7984         { ac_try='test -z "$ac_c_werror_flag"
7985                         || test ! -s conftest.err'
7986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987  (eval $ac_try) 2>&5
7988  ac_status=$?
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); }; } &&
7991         { ac_try='test -s conftest$ac_exeext'
7992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993  (eval $ac_try) 2>&5
7994  ac_status=$?
7995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996  (exit $ac_status); }; }; then
[4697]7997  ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
[4665]7998else
7999  echo "$as_me: failed program was:" >&5
8000sed 's/^/| /' conftest.$ac_ext >&5
8001
[4697]8002ac_cv_lib_SDL_ttf_TTF_OpenFont=no
[4665]8003fi
8004rm -f conftest.err conftest.$ac_objext \
8005      conftest$ac_exeext conftest.$ac_ext
8006LIBS=$ac_check_lib_save_LIBS
8007fi
[4697]8008echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
8009echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6
8010if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
[5276]8011  FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf"
[4665]8012fi
8013
[5276]8014     if test x$FOUND_SDL_ttf != xyes ; then
[4697]8015        echo "------------------"
8016        echo "SDL_ttf library not found."
8017        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
8018        echo "------------------"
8019        exit -1
8020     fi
[4665]8021
[4697]8022#-----------#
8023# SDL_Image #
8024#-----------#
8025# checking for SDL_image-headers
8026
8027for ac_header in SDL_image.h
[3790]8028do
8029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8030if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031  echo "$as_me:$LINENO: checking for $ac_header" >&5
8032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8033if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034  echo $ECHO_N "(cached) $ECHO_C" >&6
8035fi
8036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8038else
8039  # Is the header compilable?
8040echo "$as_me:$LINENO: checking $ac_header usability" >&5
8041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8042cat >conftest.$ac_ext <<_ACEOF
8043/* confdefs.h.  */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h.  */
8048$ac_includes_default
8049#include <$ac_header>
8050_ACEOF
8051rm -f conftest.$ac_objext
8052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053  (eval $ac_compile) 2>conftest.er1
8054  ac_status=$?
8055  grep -v '^ *+' conftest.er1 >conftest.err
8056  rm -f conftest.er1
8057  cat conftest.err >&5
8058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059  (exit $ac_status); } &&
8060         { ac_try='test -z "$ac_c_werror_flag"
8061                         || test ! -s conftest.err'
8062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063  (eval $ac_try) 2>&5
8064  ac_status=$?
8065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066  (exit $ac_status); }; } &&
8067         { ac_try='test -s conftest.$ac_objext'
8068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069  (eval $ac_try) 2>&5
8070  ac_status=$?
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); }; }; then
8073  ac_header_compiler=yes
8074else
8075  echo "$as_me: failed program was:" >&5
8076sed 's/^/| /' conftest.$ac_ext >&5
8077
8078ac_header_compiler=no
8079fi
8080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8082echo "${ECHO_T}$ac_header_compiler" >&6
8083
8084# Is the header present?
8085echo "$as_me:$LINENO: checking $ac_header presence" >&5
8086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8087cat >conftest.$ac_ext <<_ACEOF
8088/* confdefs.h.  */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h.  */
8093#include <$ac_header>
8094_ACEOF
8095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8097  ac_status=$?
8098  grep -v '^ *+' conftest.er1 >conftest.err
8099  rm -f conftest.er1
8100  cat conftest.err >&5
8101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102  (exit $ac_status); } >/dev/null; then
8103  if test -s conftest.err; then
8104    ac_cpp_err=$ac_c_preproc_warn_flag
8105    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8106  else
8107    ac_cpp_err=
8108  fi
8109else
8110  ac_cpp_err=yes
8111fi
8112if test -z "$ac_cpp_err"; then
8113  ac_header_preproc=yes
8114else
8115  echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118  ac_header_preproc=no
8119fi
8120rm -f conftest.err conftest.$ac_ext
8121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8122echo "${ECHO_T}$ac_header_preproc" >&6
8123
8124# So?  What about this header?
8125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8126  yes:no: )
8127    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8129    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8131    ac_header_preproc=yes
8132    ;;
8133  no:yes:* )
8134    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8136    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8137echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8138    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8140    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8141echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8142    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8144    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8146    (
8147      cat <<\_ASBOX
8148## ---------------------------------------------- ##
8149## Report this to orxonox-dev at mail.datacore.ch ##
8150## ---------------------------------------------- ##
8151_ASBOX
8152    ) |
8153      sed "s/^/$as_me: WARNING:     /" >&2
8154    ;;
8155esac
8156echo "$as_me:$LINENO: checking for $ac_header" >&5
8157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8158if eval "test \"\${$as_ac_Header+set}\" = set"; then
8159  echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161  eval "$as_ac_Header=\$ac_header_preproc"
8162fi
8163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8165
8166fi
8167if test `eval echo '${'$as_ac_Header'}'` = yes; then
8168  cat >>confdefs.h <<_ACEOF
8169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8170_ACEOF
8171
8172else
8173
[4697]8174for ac_header in SDL/SDL_image.h
[3140]8175do
8176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8177if eval "test \"\${$as_ac_Header+set}\" = set"; then
8178  echo "$as_me:$LINENO: checking for $ac_header" >&5
8179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8180if eval "test \"\${$as_ac_Header+set}\" = set"; then
8181  echo $ECHO_N "(cached) $ECHO_C" >&6
8182fi
8183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8185else
8186  # Is the header compilable?
8187echo "$as_me:$LINENO: checking $ac_header usability" >&5
8188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8189cat >conftest.$ac_ext <<_ACEOF
8190/* confdefs.h.  */
8191_ACEOF
8192cat confdefs.h >>conftest.$ac_ext
8193cat >>conftest.$ac_ext <<_ACEOF
8194/* end confdefs.h.  */
8195$ac_includes_default
8196#include <$ac_header>
8197_ACEOF
8198rm -f conftest.$ac_objext
8199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200  (eval $ac_compile) 2>conftest.er1
8201  ac_status=$?
8202  grep -v '^ *+' conftest.er1 >conftest.err
8203  rm -f conftest.er1
8204  cat conftest.err >&5
8205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206  (exit $ac_status); } &&
8207         { ac_try='test -z "$ac_c_werror_flag"
8208                         || test ! -s conftest.err'
8209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210  (eval $ac_try) 2>&5
8211  ac_status=$?
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); }; } &&
8214         { ac_try='test -s conftest.$ac_objext'
8215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216  (eval $ac_try) 2>&5
8217  ac_status=$?
8218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219  (exit $ac_status); }; }; then
8220  ac_header_compiler=yes
8221else
8222  echo "$as_me: failed program was:" >&5
8223sed 's/^/| /' conftest.$ac_ext >&5
[2989]8224
[3140]8225ac_header_compiler=no
8226fi
8227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8229echo "${ECHO_T}$ac_header_compiler" >&6
[2989]8230
[3140]8231# Is the header present?
8232echo "$as_me:$LINENO: checking $ac_header presence" >&5
8233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8234cat >conftest.$ac_ext <<_ACEOF
8235/* confdefs.h.  */
8236_ACEOF
8237cat confdefs.h >>conftest.$ac_ext
8238cat >>conftest.$ac_ext <<_ACEOF
8239/* end confdefs.h.  */
8240#include <$ac_header>
8241_ACEOF
8242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8244  ac_status=$?
8245  grep -v '^ *+' conftest.er1 >conftest.err
8246  rm -f conftest.er1
8247  cat conftest.err >&5
8248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249  (exit $ac_status); } >/dev/null; then
8250  if test -s conftest.err; then
8251    ac_cpp_err=$ac_c_preproc_warn_flag
8252    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8253  else
8254    ac_cpp_err=
8255  fi
8256else
8257  ac_cpp_err=yes
8258fi
8259if test -z "$ac_cpp_err"; then
8260  ac_header_preproc=yes
8261else
8262  echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
8265  ac_header_preproc=no
8266fi
8267rm -f conftest.err conftest.$ac_ext
8268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8269echo "${ECHO_T}$ac_header_preproc" >&6
8270
8271# So?  What about this header?
8272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8273  yes:no: )
8274    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8276    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8278    ac_header_preproc=yes
8279    ;;
8280  no:yes:* )
8281    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8283    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8284echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8285    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8287    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8288echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8289    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8291    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8293    (
8294      cat <<\_ASBOX
[3240]8295## ---------------------------------------------- ##
8296## Report this to orxonox-dev at mail.datacore.ch ##
8297## ---------------------------------------------- ##
[3140]8298_ASBOX
8299    ) |
8300      sed "s/^/$as_me: WARNING:     /" >&2
8301    ;;
8302esac
8303echo "$as_me:$LINENO: checking for $ac_header" >&5
8304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8305if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306  echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308  eval "$as_ac_Header=\$ac_header_preproc"
8309fi
8310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8312
8313fi
8314if test `eval echo '${'$as_ac_Header'}'` = yes; then
8315  cat >>confdefs.h <<_ACEOF
8316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8317_ACEOF
8318
8319else
[4697]8320  { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5
8321echo "$as_me: error: SDL_image header not found." >&2;}
[4665]8322   { (exit 1); exit 1; }; }
8323fi
[4662]8324
[4665]8325done
8326
[4697]8327fi
8328
8329done
8330
8331# checking for SDL_image-lib
8332echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
8333echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
8334if test "${ac_cv_lib_SDL_image_main+set}" = set; then
[4665]8335  echo $ECHO_N "(cached) $ECHO_C" >&6
8336else
8337  ac_check_lib_save_LIBS=$LIBS
[4697]8338LIBS="-lSDL_image  $LIBS"
[4665]8339cat >conftest.$ac_ext <<_ACEOF
8340/* confdefs.h.  */
8341_ACEOF
8342cat confdefs.h >>conftest.$ac_ext
8343cat >>conftest.$ac_ext <<_ACEOF
8344/* end confdefs.h.  */
8345
8346
8347int
8348main ()
8349{
8350main ();
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext conftest$ac_exeext
8356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357  (eval $ac_link) 2>conftest.er1
8358  ac_status=$?
8359  grep -v '^ *+' conftest.er1 >conftest.err
8360  rm -f conftest.er1
8361  cat conftest.err >&5
8362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363  (exit $ac_status); } &&
8364         { ac_try='test -z "$ac_c_werror_flag"
8365                         || test ! -s conftest.err'
8366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367  (eval $ac_try) 2>&5
8368  ac_status=$?
8369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370  (exit $ac_status); }; } &&
8371         { ac_try='test -s conftest$ac_exeext'
8372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373  (eval $ac_try) 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); }; }; then
[4697]8377  ac_cv_lib_SDL_image_main=yes
[4665]8378else
8379  echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
[4697]8382ac_cv_lib_SDL_image_main=no
[4665]8383fi
8384rm -f conftest.err conftest.$ac_objext \
8385      conftest$ac_exeext conftest.$ac_ext
8386LIBS=$ac_check_lib_save_LIBS
8387fi
[4697]8388echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
8389echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
8390if test $ac_cv_lib_SDL_image_main = yes; then
[5276]8391  FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image"
[4665]8392fi
8393
[5276]8394   if test x$FOUND_SDL_image != xyes ; then
[4697]8395      echo "------------------"
8396      echo "SDL_image library not found."
8397      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
8398      echo "------------------"
8399      exit -1
8400   fi
[4665]8401
[4697]8402#-----#
8403# ogg #
8404#-----#
[4825]8405# checking for ogg-headers
[4697]8406
[4825]8407for ac_header in ogg/ogg.h
8408do
8409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410if eval "test \"\${$as_ac_Header+set}\" = set"; then
8411  echo "$as_me:$LINENO: checking for $ac_header" >&5
8412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8413if eval "test \"\${$as_ac_Header+set}\" = set"; then
8414  echo $ECHO_N "(cached) $ECHO_C" >&6
8415fi
8416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8418else
8419  # Is the header compilable?
8420echo "$as_me:$LINENO: checking $ac_header usability" >&5
8421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8422cat >conftest.$ac_ext <<_ACEOF
8423/* confdefs.h.  */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h.  */
8428$ac_includes_default
8429#include <$ac_header>
8430_ACEOF
8431rm -f conftest.$ac_objext
8432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8433  (eval $ac_compile) 2>conftest.er1
8434  ac_status=$?
8435  grep -v '^ *+' conftest.er1 >conftest.err
8436  rm -f conftest.er1
8437  cat conftest.err >&5
8438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439  (exit $ac_status); } &&
8440         { ac_try='test -z "$ac_c_werror_flag"
8441                         || test ! -s conftest.err'
8442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443  (eval $ac_try) 2>&5
8444  ac_status=$?
8445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446  (exit $ac_status); }; } &&
8447         { ac_try='test -s conftest.$ac_objext'
8448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449  (eval $ac_try) 2>&5
8450  ac_status=$?
8451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452  (exit $ac_status); }; }; then
8453  ac_header_compiler=yes
8454else
8455  echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458ac_header_compiler=no
8459fi
8460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8462echo "${ECHO_T}$ac_header_compiler" >&6
8463
8464# Is the header present?
8465echo "$as_me:$LINENO: checking $ac_header presence" >&5
8466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8467cat >conftest.$ac_ext <<_ACEOF
8468/* confdefs.h.  */
8469_ACEOF
8470cat confdefs.h >>conftest.$ac_ext
8471cat >>conftest.$ac_ext <<_ACEOF
8472/* end confdefs.h.  */
8473#include <$ac_header>
8474_ACEOF
8475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8476  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8477  ac_status=$?
8478  grep -v '^ *+' conftest.er1 >conftest.err
8479  rm -f conftest.er1
8480  cat conftest.err >&5
8481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482  (exit $ac_status); } >/dev/null; then
8483  if test -s conftest.err; then
8484    ac_cpp_err=$ac_c_preproc_warn_flag
8485    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8486  else
8487    ac_cpp_err=
8488  fi
8489else
8490  ac_cpp_err=yes
8491fi
8492if test -z "$ac_cpp_err"; then
8493  ac_header_preproc=yes
8494else
8495  echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5
8497
8498  ac_header_preproc=no
8499fi
8500rm -f conftest.err conftest.$ac_ext
8501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8502echo "${ECHO_T}$ac_header_preproc" >&6
8503
8504# So?  What about this header?
8505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8506  yes:no: )
8507    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8511    ac_header_preproc=yes
8512    ;;
8513  no:yes:* )
8514    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8516    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8517echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8518    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8520    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8521echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8522    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8524    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8526    (
8527      cat <<\_ASBOX
8528## ---------------------------------------------- ##
8529## Report this to orxonox-dev at mail.datacore.ch ##
8530## ---------------------------------------------- ##
8531_ASBOX
8532    ) |
8533      sed "s/^/$as_me: WARNING:     /" >&2
8534    ;;
8535esac
8536echo "$as_me:$LINENO: checking for $ac_header" >&5
8537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8538if eval "test \"\${$as_ac_Header+set}\" = set"; then
8539  echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541  eval "$as_ac_Header=\$ac_header_preproc"
8542fi
8543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8545
8546fi
8547if test `eval echo '${'$as_ac_Header'}'` = yes; then
8548  cat >>confdefs.h <<_ACEOF
8549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8550_ACEOF
8551
8552else
8553  { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5
8554echo "$as_me: error: cannot find ogg header." >&2;}
8555   { (exit 1); exit 1; }; }
8556fi
8557
8558done
8559
8560# checking for ogg-lib
8561  echo "$as_me:$LINENO: checking for main in -logg" >&5
8562echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6
8563if test "${ac_cv_lib_ogg_main+set}" = set; then
8564  echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566  ac_check_lib_save_LIBS=$LIBS
8567LIBS="-logg  $LIBS"
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h.  */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h.  */
8574
8575
8576int
8577main ()
8578{
8579main ();
8580  ;
8581  return 0;
8582}
8583_ACEOF
8584rm -f conftest.$ac_objext conftest$ac_exeext
8585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586  (eval $ac_link) 2>conftest.er1
8587  ac_status=$?
8588  grep -v '^ *+' conftest.er1 >conftest.err
8589  rm -f conftest.er1
8590  cat conftest.err >&5
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); } &&
8593         { ac_try='test -z "$ac_c_werror_flag"
8594                         || test ! -s conftest.err'
8595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596  (eval $ac_try) 2>&5
8597  ac_status=$?
8598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599  (exit $ac_status); }; } &&
8600         { ac_try='test -s conftest$ac_exeext'
8601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602  (eval $ac_try) 2>&5
8603  ac_status=$?
8604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605  (exit $ac_status); }; }; then
8606  ac_cv_lib_ogg_main=yes
8607else
8608  echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611ac_cv_lib_ogg_main=no
8612fi
8613rm -f conftest.err conftest.$ac_objext \
8614      conftest$ac_exeext conftest.$ac_ext
8615LIBS=$ac_check_lib_save_LIBS
8616fi
8617echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5
8618echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6
8619if test $ac_cv_lib_ogg_main = yes; then
[5276]8620  FOUND_ogg=yes; LIBS="$LIBS -logg"
[4825]8621fi
8622
[5276]8623     if test x$FOUND_ogg != xyes ; then
[4825]8624        echo "------------------"
8625        echo "ogg library not found."
8626        echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8627        echo "------------------"
8628        exit -1
8629     fi
8630
[4665]8631#--------#
8632# vorbis #
8633#--------#
[4825]8634# checking for vorbis-lib
8635  echo "$as_me:$LINENO: checking for main in -lvorbis" >&5
8636echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6
8637if test "${ac_cv_lib_vorbis_main+set}" = set; then
8638  echo $ECHO_N "(cached) $ECHO_C" >&6
8639else
8640  ac_check_lib_save_LIBS=$LIBS
8641LIBS="-lvorbis  $LIBS"
8642cat >conftest.$ac_ext <<_ACEOF
8643/* confdefs.h.  */
8644_ACEOF
8645cat confdefs.h >>conftest.$ac_ext
8646cat >>conftest.$ac_ext <<_ACEOF
8647/* end confdefs.h.  */
[4665]8648
[4825]8649
8650int
8651main ()
8652{
8653main ();
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658rm -f conftest.$ac_objext conftest$ac_exeext
8659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660  (eval $ac_link) 2>conftest.er1
8661  ac_status=$?
8662  grep -v '^ *+' conftest.er1 >conftest.err
8663  rm -f conftest.er1
8664  cat conftest.err >&5
8665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666  (exit $ac_status); } &&
8667         { ac_try='test -z "$ac_c_werror_flag"
8668                         || test ! -s conftest.err'
8669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670  (eval $ac_try) 2>&5
8671  ac_status=$?
8672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673  (exit $ac_status); }; } &&
8674         { ac_try='test -s conftest$ac_exeext'
8675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676  (eval $ac_try) 2>&5
8677  ac_status=$?
8678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679  (exit $ac_status); }; }; then
8680  ac_cv_lib_vorbis_main=yes
8681else
8682  echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685ac_cv_lib_vorbis_main=no
8686fi
8687rm -f conftest.err conftest.$ac_objext \
8688      conftest$ac_exeext conftest.$ac_ext
8689LIBS=$ac_check_lib_save_LIBS
8690fi
8691echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5
8692echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6
8693if test $ac_cv_lib_vorbis_main = yes; then
[5276]8694  FOUND_vorbis=yes; LIBS="$LIBS -lvorbis"
[4825]8695fi
8696
[5276]8697     if test x$FOUND_vorbis != xyes ; then
[4825]8698        echo "------------------"
8699        echo "vorbis library not found."
8700        echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8701        echo "------------------"
8702        exit -1
8703     fi
8704
[4665]8705#------------#
8706# vorbisfile #
8707#------------#
[4825]8708# checking for vorbis-headers
[4665]8709
[4825]8710for ac_header in vorbis/vorbisfile.h
8711do
8712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8713if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714  echo "$as_me:$LINENO: checking for $ac_header" >&5
8715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8716if eval "test \"\${$as_ac_Header+set}\" = set"; then
8717  echo $ECHO_N "(cached) $ECHO_C" >&6
8718fi
8719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8720echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8721else
8722  # Is the header compilable?
8723echo "$as_me:$LINENO: checking $ac_header usability" >&5
8724echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8725cat >conftest.$ac_ext <<_ACEOF
8726/* confdefs.h.  */
8727_ACEOF
8728cat confdefs.h >>conftest.$ac_ext
8729cat >>conftest.$ac_ext <<_ACEOF
8730/* end confdefs.h.  */
8731$ac_includes_default
8732#include <$ac_header>
8733_ACEOF
8734rm -f conftest.$ac_objext
8735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8736  (eval $ac_compile) 2>conftest.er1
8737  ac_status=$?
8738  grep -v '^ *+' conftest.er1 >conftest.err
8739  rm -f conftest.er1
8740  cat conftest.err >&5
8741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742  (exit $ac_status); } &&
8743         { ac_try='test -z "$ac_c_werror_flag"
8744                         || test ! -s conftest.err'
8745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746  (eval $ac_try) 2>&5
8747  ac_status=$?
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); }; } &&
8750         { ac_try='test -s conftest.$ac_objext'
8751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752  (eval $ac_try) 2>&5
8753  ac_status=$?
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); }; }; then
8756  ac_header_compiler=yes
8757else
8758  echo "$as_me: failed program was:" >&5
8759sed 's/^/| /' conftest.$ac_ext >&5
8760
8761ac_header_compiler=no
8762fi
8763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765echo "${ECHO_T}$ac_header_compiler" >&6
8766
8767# Is the header present?
8768echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8770cat >conftest.$ac_ext <<_ACEOF
8771/* confdefs.h.  */
8772_ACEOF
8773cat confdefs.h >>conftest.$ac_ext
8774cat >>conftest.$ac_ext <<_ACEOF
8775/* end confdefs.h.  */
8776#include <$ac_header>
8777_ACEOF
8778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8779  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8780  ac_status=$?
8781  grep -v '^ *+' conftest.er1 >conftest.err
8782  rm -f conftest.er1
8783  cat conftest.err >&5
8784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785  (exit $ac_status); } >/dev/null; then
8786  if test -s conftest.err; then
8787    ac_cpp_err=$ac_c_preproc_warn_flag
8788    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8789  else
8790    ac_cpp_err=
8791  fi
8792else
8793  ac_cpp_err=yes
8794fi
8795if test -z "$ac_cpp_err"; then
8796  ac_header_preproc=yes
8797else
8798  echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801  ac_header_preproc=no
8802fi
8803rm -f conftest.err conftest.$ac_ext
8804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8805echo "${ECHO_T}$ac_header_preproc" >&6
8806
8807# So?  What about this header?
8808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8809  yes:no: )
8810    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8812    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8814    ac_header_preproc=yes
8815    ;;
8816  no:yes:* )
8817    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8819    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8820echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8821    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8823    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8824echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8825    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8827    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8829    (
8830      cat <<\_ASBOX
8831## ---------------------------------------------- ##
8832## Report this to orxonox-dev at mail.datacore.ch ##
8833## ---------------------------------------------- ##
8834_ASBOX
8835    ) |
8836      sed "s/^/$as_me: WARNING:     /" >&2
8837    ;;
8838esac
8839echo "$as_me:$LINENO: checking for $ac_header" >&5
8840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8841if eval "test \"\${$as_ac_Header+set}\" = set"; then
8842  echo $ECHO_N "(cached) $ECHO_C" >&6
8843else
8844  eval "$as_ac_Header=\$ac_header_preproc"
8845fi
8846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8848
8849fi
8850if test `eval echo '${'$as_ac_Header'}'` = yes; then
8851  cat >>confdefs.h <<_ACEOF
8852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8853_ACEOF
8854
8855else
8856  { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5
8857echo "$as_me: error: cannot find vorbisfile header." >&2;}
8858   { (exit 1); exit 1; }; }
8859fi
8860
8861done
8862
8863# checking for vorbisfile-lib
8864  echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5
8865echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6
8866if test "${ac_cv_lib_vorbisfile_main+set}" = set; then
8867  echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869  ac_check_lib_save_LIBS=$LIBS
8870LIBS="-lvorbisfile  $LIBS"
8871cat >conftest.$ac_ext <<_ACEOF
8872/* confdefs.h.  */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h.  */
8877
8878
8879int
8880main ()
8881{
8882main ();
8883  ;
8884  return 0;
8885}
8886_ACEOF
8887rm -f conftest.$ac_objext conftest$ac_exeext
8888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889  (eval $ac_link) 2>conftest.er1
8890  ac_status=$?
8891  grep -v '^ *+' conftest.er1 >conftest.err
8892  rm -f conftest.er1
8893  cat conftest.err >&5
8894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895  (exit $ac_status); } &&
8896         { ac_try='test -z "$ac_c_werror_flag"
8897                         || test ! -s conftest.err'
8898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899  (eval $ac_try) 2>&5
8900  ac_status=$?
8901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902  (exit $ac_status); }; } &&
8903         { ac_try='test -s conftest$ac_exeext'
8904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905  (eval $ac_try) 2>&5
8906  ac_status=$?
8907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908  (exit $ac_status); }; }; then
8909  ac_cv_lib_vorbisfile_main=yes
8910else
8911  echo "$as_me: failed program was:" >&5
8912sed 's/^/| /' conftest.$ac_ext >&5
8913
8914ac_cv_lib_vorbisfile_main=no
8915fi
8916rm -f conftest.err conftest.$ac_objext \
8917      conftest$ac_exeext conftest.$ac_ext
8918LIBS=$ac_check_lib_save_LIBS
8919fi
8920echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5
8921echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6
8922if test $ac_cv_lib_vorbisfile_main = yes; then
[5276]8923  FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile"
[4825]8924fi
8925
[5276]8926     if test x$FOUND_vorbisfile != xyes ; then
[4825]8927        echo "------------------"
8928        echo "vorbisfile library not found."
8929        echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html"
8930        echo "------------------"
8931        exit -1
8932     fi
8933
[3101]8934
[3424]8935#---------#
8936# libcURL #
8937#---------#
8938if test x$def_curl = xyes; then
[3423]8939
8940for ac_header in curl/curl.h
8941do
8942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944  echo "$as_me:$LINENO: checking for $ac_header" >&5
8945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8946if eval "test \"\${$as_ac_Header+set}\" = set"; then
8947  echo $ECHO_N "(cached) $ECHO_C" >&6
8948fi
8949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8951else
8952  # Is the header compilable?
8953echo "$as_me:$LINENO: checking $ac_header usability" >&5
8954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8955cat >conftest.$ac_ext <<_ACEOF
8956/* confdefs.h.  */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h.  */
8961$ac_includes_default
8962#include <$ac_header>
8963_ACEOF
8964rm -f conftest.$ac_objext
8965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966  (eval $ac_compile) 2>conftest.er1
8967  ac_status=$?
8968  grep -v '^ *+' conftest.er1 >conftest.err
8969  rm -f conftest.er1
8970  cat conftest.err >&5
8971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972  (exit $ac_status); } &&
8973         { ac_try='test -z "$ac_c_werror_flag"
8974                         || test ! -s conftest.err'
8975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976  (eval $ac_try) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); }; } &&
8980         { ac_try='test -s conftest.$ac_objext'
8981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982  (eval $ac_try) 2>&5
8983  ac_status=$?
8984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985  (exit $ac_status); }; }; then
8986  ac_header_compiler=yes
8987else
8988  echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
8991ac_header_compiler=no
8992fi
8993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8995echo "${ECHO_T}$ac_header_compiler" >&6
8996
8997# Is the header present?
8998echo "$as_me:$LINENO: checking $ac_header presence" >&5
8999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9000cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h.  */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h.  */
9006#include <$ac_header>
9007_ACEOF
9008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9009  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010  ac_status=$?
9011  grep -v '^ *+' conftest.er1 >conftest.err
9012  rm -f conftest.er1
9013  cat conftest.err >&5
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); } >/dev/null; then
9016  if test -s conftest.err; then
9017    ac_cpp_err=$ac_c_preproc_warn_flag
9018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019  else
9020    ac_cpp_err=
9021  fi
9022else
9023  ac_cpp_err=yes
9024fi
9025if test -z "$ac_cpp_err"; then
9026  ac_header_preproc=yes
9027else
9028  echo "$as_me: failed program was:" >&5
9029sed 's/^/| /' conftest.$ac_ext >&5
9030
9031  ac_header_preproc=no
9032fi
9033rm -f conftest.err conftest.$ac_ext
9034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035echo "${ECHO_T}$ac_header_preproc" >&6
9036
9037# So?  What about this header?
9038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9039  yes:no: )
9040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9044    ac_header_preproc=yes
9045    ;;
9046  no:yes:* )
9047    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9049    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9050echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9051    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9053    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9054echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9057    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9059    (
9060      cat <<\_ASBOX
9061## ---------------------------------------------- ##
9062## Report this to orxonox-dev at mail.datacore.ch ##
9063## ---------------------------------------------- ##
9064_ASBOX
9065    ) |
9066      sed "s/^/$as_me: WARNING:     /" >&2
9067    ;;
9068esac
9069echo "$as_me:$LINENO: checking for $ac_header" >&5
9070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9071if eval "test \"\${$as_ac_Header+set}\" = set"; then
9072  echo $ECHO_N "(cached) $ECHO_C" >&6
9073else
9074  eval "$as_ac_Header=\$ac_header_preproc"
9075fi
9076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9078
9079fi
9080if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081  cat >>confdefs.h <<_ACEOF
9082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083_ACEOF
[5276]9084 curlHeader=yes
[3423]9085else
[5276]9086  curlHeader=no
[3423]9087fi
9088
9089done
9090
9091 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
9092echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
9093if test "${ac_cv_lib_curl_main+set}" = set; then
9094  echo $ECHO_N "(cached) $ECHO_C" >&6
9095else
9096  ac_check_lib_save_LIBS=$LIBS
9097LIBS="-lcurl  $LIBS"
9098cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h.  */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h.  */
9104
9105
9106int
9107main ()
9108{
9109main ();
9110  ;
9111  return 0;
9112}
9113_ACEOF
9114rm -f conftest.$ac_objext conftest$ac_exeext
9115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116  (eval $ac_link) 2>conftest.er1
9117  ac_status=$?
9118  grep -v '^ *+' conftest.er1 >conftest.err
9119  rm -f conftest.er1
9120  cat conftest.err >&5
9121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); } &&
9123         { ac_try='test -z "$ac_c_werror_flag"
9124                         || test ! -s conftest.err'
9125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126  (eval $ac_try) 2>&5
9127  ac_status=$?
9128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129  (exit $ac_status); }; } &&
9130         { ac_try='test -s conftest$ac_exeext'
9131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132  (eval $ac_try) 2>&5
9133  ac_status=$?
9134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135  (exit $ac_status); }; }; then
9136  ac_cv_lib_curl_main=yes
9137else
9138  echo "$as_me: failed program was:" >&5
9139sed 's/^/| /' conftest.$ac_ext >&5
9140
9141ac_cv_lib_curl_main=no
9142fi
9143rm -f conftest.err conftest.$ac_objext \
9144      conftest$ac_exeext conftest.$ac_ext
9145LIBS=$ac_check_lib_save_LIBS
9146fi
9147echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
9148echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
9149if test $ac_cv_lib_curl_main = yes; then
9150  FOUND_curl=yes
9151fi
9152
9153 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
9154  have_curl=yes
9155  CURL_LIBS=`curl-config --libs`
9156  CURLCFLAGS=`curl-config --cflags`
9157
9158cat >>confdefs.h <<_ACEOF
9159#define HAVE_CURL 1
9160_ACEOF
9161
9162 else
9163  have_curl=no
9164 fi
9165
9166fi
9167
9168
9169
9170
9171if test x$have_curl = xyes; then
9172  HAVE_CURL_TRUE=
9173  HAVE_CURL_FALSE='#'
9174else
9175  HAVE_CURL_TRUE='#'
9176  HAVE_CURL_FALSE=
9177fi
9178
9179
[3863]9180#--------#
9181# efence #
9182#--------#
9183if test x$def_efence = xyes ; then
9184  echo "$as_me:$LINENO: checking for main in -lefence" >&5
9185echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
9186if test "${ac_cv_lib_efence_main+set}" = set; then
9187  echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189  ac_check_lib_save_LIBS=$LIBS
9190LIBS="-lefence  $LIBS"
9191cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h.  */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h.  */
9197
9198
9199int
9200main ()
9201{
9202main ();
9203  ;
9204  return 0;
9205}
9206_ACEOF
9207rm -f conftest.$ac_objext conftest$ac_exeext
9208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209  (eval $ac_link) 2>conftest.er1
9210  ac_status=$?
9211  grep -v '^ *+' conftest.er1 >conftest.err
9212  rm -f conftest.er1
9213  cat conftest.err >&5
9214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215  (exit $ac_status); } &&
9216         { ac_try='test -z "$ac_c_werror_flag"
9217                         || test ! -s conftest.err'
9218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219  (eval $ac_try) 2>&5
9220  ac_status=$?
9221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222  (exit $ac_status); }; } &&
9223         { ac_try='test -s conftest$ac_exeext'
9224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225  (eval $ac_try) 2>&5
9226  ac_status=$?
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); }; }; then
9229  ac_cv_lib_efence_main=yes
9230else
9231  echo "$as_me: failed program was:" >&5
9232sed 's/^/| /' conftest.$ac_ext >&5
9233
9234ac_cv_lib_efence_main=no
9235fi
9236rm -f conftest.err conftest.$ac_objext \
9237      conftest$ac_exeext conftest.$ac_ext
9238LIBS=$ac_check_lib_save_LIBS
9239fi
9240echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
9241echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
9242if test $ac_cv_lib_efence_main = yes; then
[5276]9243  FOUND_efence=yes; LIBS="$LIBS -lefence"
[3863]9244fi
9245
[5276]9246   if test x$FOUND_efence != xyes ; then
9247     echo "efence was requested, but is not installed!! going on"
[3863]9248   fi
9249
9250fi
9251
[5276]9252#-----#
9253# GTK #
9254#-----#
9255if test x$def_gtk = xyes; then
9256#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
9257        echo "$as_me:$LINENO: checking for gtk2.0" >&5
9258echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
9259        if `$PKG_CONFIG --exists gtk+-2.0`; then
9260                echo "yes"
9261                have_gtk2=yes
9262                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9263                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9264
9265cat >>confdefs.h <<_ACEOF
9266#define HAVE_GTK2 1
9267_ACEOF
9268
9269                if test $DEBUG -ge 3; then
9270                 echo "cflags: $GTK2_CFLAGS"
9271                 echo "libs: $GTK2_LIBS"
9272                fi
9273        else
9274                echo "no"
9275        fi
9276
9277fi
9278
9279
9280
9281
9282if test x$have_gtk2 = xyes; then
9283  HAVE_GTK2_TRUE=
9284  HAVE_GTK2_FALSE='#'
9285else
9286  HAVE_GTK2_TRUE='#'
9287  HAVE_GTK2_FALSE=
9288fi
9289
9290
9291
[1956]9292# FIXME: Replace `main' with a function in `-lm':
9293
9294echo "$as_me:$LINENO: checking for main in -lm" >&5
9295echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9296if test "${ac_cv_lib_m_main+set}" = set; then
9297  echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299  ac_check_lib_save_LIBS=$LIBS
9300LIBS="-lm  $LIBS"
9301cat >conftest.$ac_ext <<_ACEOF
9302/* confdefs.h.  */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h.  */
9307
9308
9309int
9310main ()
9311{
9312main ();
9313  ;
9314  return 0;
9315}
9316_ACEOF
9317rm -f conftest.$ac_objext conftest$ac_exeext
9318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319  (eval $ac_link) 2>conftest.er1
9320  ac_status=$?
9321  grep -v '^ *+' conftest.er1 >conftest.err
9322  rm -f conftest.er1
9323  cat conftest.err >&5
9324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325  (exit $ac_status); } &&
9326         { ac_try='test -z "$ac_c_werror_flag"
9327                         || test ! -s conftest.err'
9328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329  (eval $ac_try) 2>&5
9330  ac_status=$?
9331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332  (exit $ac_status); }; } &&
9333         { ac_try='test -s conftest$ac_exeext'
9334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335  (eval $ac_try) 2>&5
9336  ac_status=$?
9337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338  (exit $ac_status); }; }; then
9339  ac_cv_lib_m_main=yes
9340else
9341  echo "$as_me: failed program was:" >&5
9342sed 's/^/| /' conftest.$ac_ext >&5
9343
9344ac_cv_lib_m_main=no
9345fi
9346rm -f conftest.err conftest.$ac_objext \
9347      conftest$ac_exeext conftest.$ac_ext
9348LIBS=$ac_check_lib_save_LIBS
9349fi
9350echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9351echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9352if test $ac_cv_lib_m_main = yes; then
9353  cat >>confdefs.h <<_ACEOF
9354#define HAVE_LIBM 1
9355_ACEOF
9356
9357  LIBS="-lm $LIBS"
9358
9359fi
9360
9361
[2018]9362
[1956]9363# Checks for header files.
9364echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9365echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9366if test "${ac_cv_header_stdc+set}" = set; then
9367  echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369  cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h.  */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h.  */
9375#include <stdlib.h>
9376#include <stdarg.h>
9377#include <string.h>
9378#include <float.h>
9379
9380int
9381main ()
9382{
9383
9384  ;
9385  return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext
9389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390  (eval $ac_compile) 2>conftest.er1
9391  ac_status=$?
9392  grep -v '^ *+' conftest.er1 >conftest.err
9393  rm -f conftest.er1
9394  cat conftest.err >&5
9395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396  (exit $ac_status); } &&
9397         { ac_try='test -z "$ac_c_werror_flag"
9398                         || test ! -s conftest.err'
9399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400  (eval $ac_try) 2>&5
9401  ac_status=$?
9402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403  (exit $ac_status); }; } &&
9404         { ac_try='test -s conftest.$ac_objext'
9405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406  (eval $ac_try) 2>&5
9407  ac_status=$?
9408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409  (exit $ac_status); }; }; then
9410  ac_cv_header_stdc=yes
9411else
9412  echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
9414
9415ac_cv_header_stdc=no
9416fi
9417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9418
9419if test $ac_cv_header_stdc = yes; then
9420  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9421  cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h.  */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h.  */
9427#include <string.h>
9428
9429_ACEOF
9430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431  $EGREP "memchr" >/dev/null 2>&1; then
9432  :
9433else
9434  ac_cv_header_stdc=no
9435fi
9436rm -f conftest*
9437
9438fi
9439
9440if test $ac_cv_header_stdc = yes; then
9441  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9442  cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h.  */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h.  */
9448#include <stdlib.h>
9449
9450_ACEOF
9451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9452  $EGREP "free" >/dev/null 2>&1; then
9453  :
9454else
9455  ac_cv_header_stdc=no
9456fi
9457rm -f conftest*
9458
9459fi
9460
9461if test $ac_cv_header_stdc = yes; then
9462  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9463  if test "$cross_compiling" = yes; then
9464  :
9465else
9466  cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h.  */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h.  */
9472#include <ctype.h>
9473#if ((' ' & 0x0FF) == 0x020)
9474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9476#else
9477# define ISLOWER(c) \
9478                   (('a' <= (c) && (c) <= 'i') \
9479                     || ('j' <= (c) && (c) <= 'r') \
9480                     || ('s' <= (c) && (c) <= 'z'))
9481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9482#endif
9483
9484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9485int
9486main ()
9487{
9488  int i;
9489  for (i = 0; i < 256; i++)
9490    if (XOR (islower (i), ISLOWER (i))
9491        || toupper (i) != TOUPPER (i))
9492      exit(2);
9493  exit (0);
9494}
9495_ACEOF
9496rm -f conftest$ac_exeext
9497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498  (eval $ac_link) 2>&5
9499  ac_status=$?
9500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503  (eval $ac_try) 2>&5
9504  ac_status=$?
9505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506  (exit $ac_status); }; }; then
9507  :
9508else
9509  echo "$as_me: program exited with status $ac_status" >&5
9510echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513( exit $ac_status )
9514ac_cv_header_stdc=no
9515fi
9516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9517fi
9518fi
9519fi
9520echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9521echo "${ECHO_T}$ac_cv_header_stdc" >&6
9522if test $ac_cv_header_stdc = yes; then
9523
9524cat >>confdefs.h <<\_ACEOF
9525#define STDC_HEADERS 1
9526_ACEOF
9527
9528fi
9529
9530
9531
9532for ac_header in stdlib.h string.h
9533do
9534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9535if eval "test \"\${$as_ac_Header+set}\" = set"; then
9536  echo "$as_me:$LINENO: checking for $ac_header" >&5
9537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9538if eval "test \"\${$as_ac_Header+set}\" = set"; then
9539  echo $ECHO_N "(cached) $ECHO_C" >&6
9540fi
9541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9543else
9544  # Is the header compilable?
9545echo "$as_me:$LINENO: checking $ac_header usability" >&5
9546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9547cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h.  */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h.  */
9553$ac_includes_default
9554#include <$ac_header>
9555_ACEOF
9556rm -f conftest.$ac_objext
9557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558  (eval $ac_compile) 2>conftest.er1
9559  ac_status=$?
9560  grep -v '^ *+' conftest.er1 >conftest.err
9561  rm -f conftest.er1
9562  cat conftest.err >&5
9563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564  (exit $ac_status); } &&
9565         { ac_try='test -z "$ac_c_werror_flag"
9566                         || test ! -s conftest.err'
9567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568  (eval $ac_try) 2>&5
9569  ac_status=$?
9570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571  (exit $ac_status); }; } &&
9572         { ac_try='test -s conftest.$ac_objext'
9573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574  (eval $ac_try) 2>&5
9575  ac_status=$?
9576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577  (exit $ac_status); }; }; then
9578  ac_header_compiler=yes
9579else
9580  echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583ac_header_compiler=no
9584fi
9585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587echo "${ECHO_T}$ac_header_compiler" >&6
9588
9589# Is the header present?
9590echo "$as_me:$LINENO: checking $ac_header presence" >&5
9591echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9592cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h.  */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h.  */
9598#include <$ac_header>
9599_ACEOF
9600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9601  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9602  ac_status=$?
9603  grep -v '^ *+' conftest.er1 >conftest.err
9604  rm -f conftest.er1
9605  cat conftest.err >&5
9606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607  (exit $ac_status); } >/dev/null; then
9608  if test -s conftest.err; then
9609    ac_cpp_err=$ac_c_preproc_warn_flag
9610    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9611  else
9612    ac_cpp_err=
9613  fi
9614else
9615  ac_cpp_err=yes
9616fi
9617if test -z "$ac_cpp_err"; then
9618  ac_header_preproc=yes
9619else
9620  echo "$as_me: failed program was:" >&5
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
9623  ac_header_preproc=no
9624fi
9625rm -f conftest.err conftest.$ac_ext
9626echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627echo "${ECHO_T}$ac_header_preproc" >&6
9628
9629# So?  What about this header?
9630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9631  yes:no: )
9632    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9635echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9636    ac_header_preproc=yes
9637    ;;
9638  no:yes:* )
9639    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9641    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9642echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9643    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9644echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9645    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9646echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9647    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9649    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9650echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9651    (
9652      cat <<\_ASBOX
[3240]9653## ---------------------------------------------- ##
9654## Report this to orxonox-dev at mail.datacore.ch ##
9655## ---------------------------------------------- ##
[1956]9656_ASBOX
9657    ) |
9658      sed "s/^/$as_me: WARNING:     /" >&2
9659    ;;
9660esac
9661echo "$as_me:$LINENO: checking for $ac_header" >&5
9662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9663if eval "test \"\${$as_ac_Header+set}\" = set"; then
9664  echo $ECHO_N "(cached) $ECHO_C" >&6
9665else
9666  eval "$as_ac_Header=\$ac_header_preproc"
9667fi
9668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9670
9671fi
9672if test `eval echo '${'$as_ac_Header'}'` = yes; then
9673  cat >>confdefs.h <<_ACEOF
9674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9675_ACEOF
9676
9677fi
9678
9679done
9680
9681
9682# Checks for typedefs, structures, and compiler characteristics.
9683echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9684echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
9685if test "${ac_cv_header_stdbool_h+set}" = set; then
9686  echo $ECHO_N "(cached) $ECHO_C" >&6
9687else
9688  cat >conftest.$ac_ext <<_ACEOF
9689/* confdefs.h.  */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h.  */
9694
9695#include <stdbool.h>
9696#ifndef bool
9697# error bool is not defined
9698#endif
9699#ifndef false
9700# error false is not defined
9701#endif
9702#if false
9703# error false is not 0
9704#endif
9705#ifndef true
9706# error true is not defined
9707#endif
9708#if true != 1
9709# error true is not 1
9710#endif
9711#ifndef __bool_true_false_are_defined
9712# error __bool_true_false_are_defined is not defined
9713#endif
9714
9715        struct s { _Bool s: 1; _Bool t; } s;
9716
9717        char a[true == 1 ? 1 : -1];
9718        char b[false == 0 ? 1 : -1];
9719        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9720        char d[(bool) -0.5 == true ? 1 : -1];
9721        bool e = &s;
9722        char f[(_Bool) -0.0 == false ? 1 : -1];
9723        char g[true];
9724        char h[sizeof (_Bool)];
9725        char i[sizeof s.t];
9726
9727int
9728main ()
9729{
9730 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
9731  ;
9732  return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext
9736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737  (eval $ac_compile) 2>conftest.er1
9738  ac_status=$?
9739  grep -v '^ *+' conftest.er1 >conftest.err
9740  rm -f conftest.er1
9741  cat conftest.err >&5
9742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743  (exit $ac_status); } &&
9744         { ac_try='test -z "$ac_c_werror_flag"
9745                         || test ! -s conftest.err'
9746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747  (eval $ac_try) 2>&5
9748  ac_status=$?
9749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750  (exit $ac_status); }; } &&
9751         { ac_try='test -s conftest.$ac_objext'
9752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753  (eval $ac_try) 2>&5
9754  ac_status=$?
9755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756  (exit $ac_status); }; }; then
9757  ac_cv_header_stdbool_h=yes
9758else
9759  echo "$as_me: failed program was:" >&5
9760sed 's/^/| /' conftest.$ac_ext >&5
9761
9762ac_cv_header_stdbool_h=no
9763fi
9764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9765fi
9766echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9767echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9768echo "$as_me:$LINENO: checking for _Bool" >&5
9769echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
9770if test "${ac_cv_type__Bool+set}" = set; then
9771  echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773  cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h.  */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h.  */
9779$ac_includes_default
9780int
9781main ()
9782{
9783if ((_Bool *) 0)
9784  return 0;
9785if (sizeof (_Bool))
9786  return 0;
9787  ;
9788  return 0;
9789}
9790_ACEOF
9791rm -f conftest.$ac_objext
9792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793  (eval $ac_compile) 2>conftest.er1
9794  ac_status=$?
9795  grep -v '^ *+' conftest.er1 >conftest.err
9796  rm -f conftest.er1
9797  cat conftest.err >&5
9798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799  (exit $ac_status); } &&
9800         { ac_try='test -z "$ac_c_werror_flag"
9801                         || test ! -s conftest.err'
9802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803  (eval $ac_try) 2>&5
9804  ac_status=$?
9805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806  (exit $ac_status); }; } &&
9807         { ac_try='test -s conftest.$ac_objext'
9808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809  (eval $ac_try) 2>&5
9810  ac_status=$?
9811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812  (exit $ac_status); }; }; then
9813  ac_cv_type__Bool=yes
9814else
9815  echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818ac_cv_type__Bool=no
9819fi
9820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9821fi
9822echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9823echo "${ECHO_T}$ac_cv_type__Bool" >&6
9824if test $ac_cv_type__Bool = yes; then
9825
9826cat >>confdefs.h <<_ACEOF
9827#define HAVE__BOOL 1
9828_ACEOF
9829
9830
9831fi
9832
9833if test $ac_cv_header_stdbool_h = yes; then
9834
9835cat >>confdefs.h <<\_ACEOF
9836#define HAVE_STDBOOL_H 1
9837_ACEOF
9838
9839fi
9840
9841
9842# Checks for library functions.
9843
9844for ac_header in stdlib.h
9845do
9846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9847if eval "test \"\${$as_ac_Header+set}\" = set"; then
9848  echo "$as_me:$LINENO: checking for $ac_header" >&5
9849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9850if eval "test \"\${$as_ac_Header+set}\" = set"; then
9851  echo $ECHO_N "(cached) $ECHO_C" >&6
9852fi
9853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9855else
9856  # Is the header compilable?
9857echo "$as_me:$LINENO: checking $ac_header usability" >&5
9858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9859cat >conftest.$ac_ext <<_ACEOF
9860/* confdefs.h.  */
9861_ACEOF
9862cat confdefs.h >>conftest.$ac_ext
9863cat >>conftest.$ac_ext <<_ACEOF
9864/* end confdefs.h.  */
9865$ac_includes_default
9866#include <$ac_header>
9867_ACEOF
9868rm -f conftest.$ac_objext
9869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9870  (eval $ac_compile) 2>conftest.er1
9871  ac_status=$?
9872  grep -v '^ *+' conftest.er1 >conftest.err
9873  rm -f conftest.er1
9874  cat conftest.err >&5
9875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876  (exit $ac_status); } &&
9877         { ac_try='test -z "$ac_c_werror_flag"
9878                         || test ! -s conftest.err'
9879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880  (eval $ac_try) 2>&5
9881  ac_status=$?
9882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883  (exit $ac_status); }; } &&
9884         { ac_try='test -s conftest.$ac_objext'
9885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886  (eval $ac_try) 2>&5
9887  ac_status=$?
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); }; }; then
9890  ac_header_compiler=yes
9891else
9892  echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895ac_header_compiler=no
9896fi
9897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9899echo "${ECHO_T}$ac_header_compiler" >&6
9900
9901# Is the header present?
9902echo "$as_me:$LINENO: checking $ac_header presence" >&5
9903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h.  */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h.  */
9910#include <$ac_header>
9911_ACEOF
9912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9913  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9914  ac_status=$?
9915  grep -v '^ *+' conftest.er1 >conftest.err
9916  rm -f conftest.er1
9917  cat conftest.err >&5
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); } >/dev/null; then
9920  if test -s conftest.err; then
9921    ac_cpp_err=$ac_c_preproc_warn_flag
9922    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9923  else
9924    ac_cpp_err=
9925  fi
9926else
9927  ac_cpp_err=yes
9928fi
9929if test -z "$ac_cpp_err"; then
9930  ac_header_preproc=yes
9931else
9932  echo "$as_me: failed program was:" >&5
9933sed 's/^/| /' conftest.$ac_ext >&5
9934
9935  ac_header_preproc=no
9936fi
9937rm -f conftest.err conftest.$ac_ext
9938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9939echo "${ECHO_T}$ac_header_preproc" >&6
9940
9941# So?  What about this header?
9942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9943  yes:no: )
9944    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9946    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9948    ac_header_preproc=yes
9949    ;;
9950  no:yes:* )
9951    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9953    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9954echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9955    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9957    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9958echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9959    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9961    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9963    (
9964      cat <<\_ASBOX
[3240]9965## ---------------------------------------------- ##
9966## Report this to orxonox-dev at mail.datacore.ch ##
9967## ---------------------------------------------- ##
[1956]9968_ASBOX
9969    ) |
9970      sed "s/^/$as_me: WARNING:     /" >&2
9971    ;;
9972esac
9973echo "$as_me:$LINENO: checking for $ac_header" >&5
9974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9975if eval "test \"\${$as_ac_Header+set}\" = set"; then
9976  echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978  eval "$as_ac_Header=\$ac_header_preproc"
9979fi
9980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9982
9983fi
9984if test `eval echo '${'$as_ac_Header'}'` = yes; then
9985  cat >>confdefs.h <<_ACEOF
9986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9987_ACEOF
9988
9989fi
9990
9991done
9992
9993echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9994echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
9995if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9996  echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998  if test "$cross_compiling" = yes; then
9999  ac_cv_func_malloc_0_nonnull=no
10000else
10001  cat >conftest.$ac_ext <<_ACEOF
10002/* confdefs.h.  */
10003_ACEOF
10004cat confdefs.h >>conftest.$ac_ext
10005cat >>conftest.$ac_ext <<_ACEOF
10006/* end confdefs.h.  */
10007#if STDC_HEADERS || HAVE_STDLIB_H
10008# include <stdlib.h>
10009#else
10010char *malloc ();
10011#endif
10012
10013int
10014main ()
10015{
10016exit (malloc (0) ? 0 : 1);
10017  ;
10018  return 0;
10019}
10020_ACEOF
10021rm -f conftest$ac_exeext
10022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023  (eval $ac_link) 2>&5
10024  ac_status=$?
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028  (eval $ac_try) 2>&5
10029  ac_status=$?
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); }; }; then
10032  ac_cv_func_malloc_0_nonnull=yes
10033else
10034  echo "$as_me: program exited with status $ac_status" >&5
10035echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038( exit $ac_status )
10039ac_cv_func_malloc_0_nonnull=no
10040fi
10041rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10042fi
10043fi
10044echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10045echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
10046if test $ac_cv_func_malloc_0_nonnull = yes; then
10047
10048cat >>confdefs.h <<\_ACEOF
10049#define HAVE_MALLOC 1
10050_ACEOF
10051
10052else
10053  cat >>confdefs.h <<\_ACEOF
10054#define HAVE_MALLOC 0
10055_ACEOF
10056
10057   case $LIBOBJS in
10058    "malloc.$ac_objext"   | \
10059  *" malloc.$ac_objext"   | \
10060    "malloc.$ac_objext "* | \
10061  *" malloc.$ac_objext "* ) ;;
10062  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
10063esac
10064
10065
10066cat >>confdefs.h <<\_ACEOF
10067#define malloc rpl_malloc
10068_ACEOF
10069
10070fi
10071
10072
10073
10074
10075
10076for ac_func in bzero sqrt
10077do
10078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10079echo "$as_me:$LINENO: checking for $ac_func" >&5
10080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10081if eval "test \"\${$as_ac_var+set}\" = set"; then
10082  echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084  cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h.  */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h.  */
10090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10091   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10092#define $ac_func innocuous_$ac_func
10093
10094/* System header to define __stub macros and hopefully few prototypes,
10095    which can conflict with char $ac_func (); below.
10096    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10097    <limits.h> exists even on freestanding compilers.  */
10098
10099#ifdef __STDC__
10100# include <limits.h>
10101#else
10102# include <assert.h>
10103#endif
10104
10105#undef $ac_func
10106
10107/* Override any gcc2 internal prototype to avoid an error.  */
10108#ifdef __cplusplus
10109extern "C"
10110{
10111#endif
10112/* We use char because int might match the return type of a gcc2
10113   builtin and then its argument prototype would still apply.  */
10114char $ac_func ();
10115/* The GNU C library defines this for functions which it implements
10116    to always fail with ENOSYS.  Some functions are actually named
10117    something starting with __ and the normal name is an alias.  */
10118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10119choke me
10120#else
10121char (*f) () = $ac_func;
10122#endif
10123#ifdef __cplusplus
10124}
10125#endif
10126
10127int
10128main ()
10129{
10130return f != $ac_func;
10131  ;
10132  return 0;
10133}
10134_ACEOF
10135rm -f conftest.$ac_objext conftest$ac_exeext
10136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137  (eval $ac_link) 2>conftest.er1
10138  ac_status=$?
10139  grep -v '^ *+' conftest.er1 >conftest.err
10140  rm -f conftest.er1
10141  cat conftest.err >&5
10142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143  (exit $ac_status); } &&
10144         { ac_try='test -z "$ac_c_werror_flag"
10145                         || test ! -s conftest.err'
10146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147  (eval $ac_try) 2>&5
10148  ac_status=$?
10149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150  (exit $ac_status); }; } &&
10151         { ac_try='test -s conftest$ac_exeext'
10152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153  (eval $ac_try) 2>&5
10154  ac_status=$?
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); }; }; then
10157  eval "$as_ac_var=yes"
10158else
10159  echo "$as_me: failed program was:" >&5
10160sed 's/^/| /' conftest.$ac_ext >&5
10161
10162eval "$as_ac_var=no"
10163fi
10164rm -f conftest.err conftest.$ac_objext \
10165      conftest$ac_exeext conftest.$ac_ext
10166fi
10167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10169if test `eval echo '${'$as_ac_var'}'` = yes; then
10170  cat >>confdefs.h <<_ACEOF
10171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10172_ACEOF
10173
10174fi
10175done
10176
10177
[3424]10178######################
10179## OUTPUT CONFIGURE ##
10180######################
[5160]10181                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"
[1956]10182
[3377]10183
[1956]10184cat >confcache <<\_ACEOF
10185# This file is a shell script that caches the results of configure
10186# tests run on this system so they can be shared between configure
10187# scripts and configure runs, see configure's option --config-cache.
10188# It is not useful on other systems.  If it contains results you don't
10189# want to keep, you may remove or edit it.
10190#
10191# config.status only pays attention to the cache file if you give it
10192# the --recheck option to rerun configure.
10193#
10194# `ac_cv_env_foo' variables (set or unset) will be overridden when
10195# loading this file, other *unset* `ac_cv_foo' will be assigned the
10196# following values.
10197
10198_ACEOF
10199
10200# The following way of writing the cache mishandles newlines in values,
10201# but we know of no workaround that is simple, portable, and efficient.
10202# So, don't put newlines in cache variables' values.
10203# Ultrix sh set writes to stderr and can't be redirected directly,
10204# and sets the high bit in the cache file unless we assign to the vars.
10205{
10206  (set) 2>&1 |
10207    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10208    *ac_space=\ *)
10209      # `set' does not quote correctly, so add quotes (double-quote
10210      # substitution turns \\\\ into \\, and sed turns \\ into \).
10211      sed -n \
10212        "s/'/'\\\\''/g;
10213          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10214      ;;
10215    *)
10216      # `set' quotes correctly as required by POSIX, so do not add quotes.
10217      sed -n \
10218        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10219      ;;
10220    esac;
10221} |
10222  sed '
10223     t clear
10224     : clear
10225     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10226     t end
10227     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10228     : end' >>confcache
10229if diff $cache_file confcache >/dev/null 2>&1; then :; else
10230  if test -w $cache_file; then
10231    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10232    cat confcache >$cache_file
10233  else
10234    echo "not updating unwritable cache $cache_file"
10235  fi
10236fi
10237rm -f confcache
10238
10239test "x$prefix" = xNONE && prefix=$ac_default_prefix
10240# Let make expand exec_prefix.
10241test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10242
10243# VPATH may cause trouble with some makes, so we remove $(srcdir),
10244# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10245# trailing colons and then remove the whole line if VPATH becomes empty
10246# (actually we leave an empty line to preserve line numbers).
10247if test "x$srcdir" = x.; then
10248  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10249s/:*\$(srcdir):*/:/;
10250s/:*\${srcdir}:*/:/;
10251s/:*@srcdir@:*/:/;
10252s/^\([^=]*=[     ]*\):*/\1/;
10253s/:*$//;
10254s/^[^=]*=[       ]*$//;
10255}'
10256fi
10257
10258DEFS=-DHAVE_CONFIG_H
10259
10260ac_libobjs=
10261ac_ltlibobjs=
10262for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10263  # 1. Remove the extension, and $U if already installed.
10264  ac_i=`echo "$ac_i" |
10265         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10266  # 2. Add them.
10267  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10268  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10269done
10270LIBOBJS=$ac_libobjs
10271
10272LTLIBOBJS=$ac_ltlibobjs
10273
10274
10275if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10276  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10277Usually this means the macro was only invoked conditionally." >&5
10278echo "$as_me: error: conditional \"AMDEP\" was never defined.
10279Usually this means the macro was only invoked conditionally." >&2;}
10280   { (exit 1); exit 1; }; }
10281fi
10282if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10283  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10284Usually this means the macro was only invoked conditionally." >&5
10285echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10286Usually this means the macro was only invoked conditionally." >&2;}
10287   { (exit 1); exit 1; }; }
10288fi
10289if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10290  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10291Usually this means the macro was only invoked conditionally." >&5
10292echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10293Usually this means the macro was only invoked conditionally." >&2;}
10294   { (exit 1); exit 1; }; }
10295fi
[3377]10296if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
10297  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
10298Usually this means the macro was only invoked conditionally." >&5
10299echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
10300Usually this means the macro was only invoked conditionally." >&2;}
10301   { (exit 1); exit 1; }; }
10302fi
[3558]10303if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
10304  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
10305Usually this means the macro was only invoked conditionally." >&5
10306echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
10307Usually this means the macro was only invoked conditionally." >&2;}
10308   { (exit 1); exit 1; }; }
10309fi
[3219]10310if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
10311  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
10312Usually this means the macro was only invoked conditionally." >&5
10313echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
10314Usually this means the macro was only invoked conditionally." >&2;}
10315   { (exit 1); exit 1; }; }
10316fi
[5276]10317if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
10318  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
[2980]10319Usually this means the macro was only invoked conditionally." >&5
[5276]10320echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
[2980]10321Usually this means the macro was only invoked conditionally." >&2;}
10322   { (exit 1); exit 1; }; }
10323fi
[5276]10324if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
10325  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
[3423]10326Usually this means the macro was only invoked conditionally." >&5
[5276]10327echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
[3423]10328Usually this means the macro was only invoked conditionally." >&2;}
10329   { (exit 1); exit 1; }; }
10330fi
[1956]10331
10332: ${CONFIG_STATUS=./config.status}
10333ac_clean_files_save=$ac_clean_files
10334ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10335{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10336echo "$as_me: creating $CONFIG_STATUS" >&6;}
10337cat >$CONFIG_STATUS <<_ACEOF
10338#! $SHELL
10339# Generated by $as_me.
10340# Run this file to recreate the current configuration.
10341# Compiler output produced by configure, useful for debugging
10342# configure, is in config.log if it exists.
10343
10344debug=false
10345ac_cs_recheck=false
10346ac_cs_silent=false
10347SHELL=\${CONFIG_SHELL-$SHELL}
10348_ACEOF
10349
10350cat >>$CONFIG_STATUS <<\_ACEOF
10351## --------------------- ##
10352## M4sh Initialization.  ##
10353## --------------------- ##
10354
10355# Be Bourne compatible
10356if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10357  emulate sh
10358  NULLCMD=:
10359  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10360  # is contrary to our usage.  Disable this feature.
10361  alias -g '${1+"$@"}'='"$@"'
10362elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10363  set -o posix
10364fi
10365DUALCASE=1; export DUALCASE # for MKS sh
10366
10367# Support unset when possible.
10368if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10369  as_unset=unset
10370else
10371  as_unset=false
10372fi
10373
10374
10375# Work around bugs in pre-3.0 UWIN ksh.
10376$as_unset ENV MAIL MAILPATH
10377PS1='$ '
10378PS2='> '
10379PS4='+ '
10380
10381# NLS nuisances.
10382for as_var in \
10383  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10384  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10385  LC_TELEPHONE LC_TIME
10386do
10387  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10388    eval $as_var=C; export $as_var
10389  else
10390    $as_unset $as_var
10391  fi
10392done
10393
10394# Required to use basename.
10395if expr a : '\(a\)' >/dev/null 2>&1; then
10396  as_expr=expr
10397else
10398  as_expr=false
10399fi
10400
10401if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10402  as_basename=basename
10403else
10404  as_basename=false
10405fi
10406
10407
10408# Name of the executable.
10409as_me=`$as_basename "$0" ||
10410$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10411         X"$0" : 'X\(//\)$' \| \
10412         X"$0" : 'X\(/\)$' \| \
10413         .     : '\(.\)' 2>/dev/null ||
10414echo X/"$0" |
10415    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10416          /^X\/\(\/\/\)$/{ s//\1/; q; }
10417          /^X\/\(\/\).*/{ s//\1/; q; }
10418          s/.*/./; q'`
10419
10420
10421# PATH needs CR, and LINENO needs CR and PATH.
10422# Avoid depending upon Character Ranges.
10423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10426as_cr_digits='0123456789'
10427as_cr_alnum=$as_cr_Letters$as_cr_digits
10428
10429# The user is always right.
10430if test "${PATH_SEPARATOR+set}" != set; then
10431  echo "#! /bin/sh" >conf$$.sh
10432  echo  "exit 0"   >>conf$$.sh
10433  chmod +x conf$$.sh
10434  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10435    PATH_SEPARATOR=';'
10436  else
10437    PATH_SEPARATOR=:
10438  fi
10439  rm -f conf$$.sh
10440fi
10441
10442
10443  as_lineno_1=$LINENO
10444  as_lineno_2=$LINENO
10445  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10446  test "x$as_lineno_1" != "x$as_lineno_2" &&
10447  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10448  # Find who we are.  Look in the path if we contain no path at all
10449  # relative or not.
10450  case $0 in
10451    *[\\/]* ) as_myself=$0 ;;
10452    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453for as_dir in $PATH
10454do
10455  IFS=$as_save_IFS
10456  test -z "$as_dir" && as_dir=.
10457  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10458done
10459
10460       ;;
10461  esac
10462  # We did not find ourselves, most probably we were run as `sh COMMAND'
10463  # in which case we are not to be found in the path.
10464  if test "x$as_myself" = x; then
10465    as_myself=$0
10466  fi
10467  if test ! -f "$as_myself"; then
10468    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10469echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10470   { (exit 1); exit 1; }; }
10471  fi
10472  case $CONFIG_SHELL in
10473  '')
10474    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10476do
10477  IFS=$as_save_IFS
10478  test -z "$as_dir" && as_dir=.
10479  for as_base in sh bash ksh sh5; do
10480         case $as_dir in
10481         /*)
10482           if ("$as_dir/$as_base" -c '
10483  as_lineno_1=$LINENO
10484  as_lineno_2=$LINENO
10485  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10486  test "x$as_lineno_1" != "x$as_lineno_2" &&
10487  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10488             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10489             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10490             CONFIG_SHELL=$as_dir/$as_base
10491             export CONFIG_SHELL
10492             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10493           fi;;
10494         esac
10495       done
10496done
10497;;
10498  esac
10499
10500  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10501  # uniformly replaced by the line number.  The first 'sed' inserts a
10502  # line-number line before each line; the second 'sed' does the real
10503  # work.  The second script uses 'N' to pair each line-number line
10504  # with the numbered line, and appends trailing '-' during
10505  # substitution so that $LINENO is not a special case at line end.
10506  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10507  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10508  sed '=' <$as_myself |
10509    sed '
10510      N
10511      s,$,-,
10512      : loop
10513      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10514      t loop
10515      s,-$,,
10516      s,^['$as_cr_digits']*\n,,
10517    ' >$as_me.lineno &&
10518  chmod +x $as_me.lineno ||
10519    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10520echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10521   { (exit 1); exit 1; }; }
10522
10523  # Don't try to exec as it changes $[0], causing all sort of problems
10524  # (the dirname of $[0] is not the place where we might find the
10525  # original and so on.  Autoconf is especially sensible to this).
10526  . ./$as_me.lineno
10527  # Exit status is that of the last command.
10528  exit
10529}
10530
10531
10532case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10533  *c*,-n*) ECHO_N= ECHO_C='
10534' ECHO_T='      ' ;;
10535  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10536  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10537esac
10538
10539if expr a : '\(a\)' >/dev/null 2>&1; then
10540  as_expr=expr
10541else
10542  as_expr=false
10543fi
10544
10545rm -f conf$$ conf$$.exe conf$$.file
10546echo >conf$$.file
10547if ln -s conf$$.file conf$$ 2>/dev/null; then
10548  # We could just check for DJGPP; but this test a) works b) is more generic
10549  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10550  if test -f conf$$.exe; then
10551    # Don't use ln at all; we don't have any links
10552    as_ln_s='cp -p'
10553  else
10554    as_ln_s='ln -s'
10555  fi
10556elif ln conf$$.file conf$$ 2>/dev/null; then
10557  as_ln_s=ln
10558else
10559  as_ln_s='cp -p'
10560fi
10561rm -f conf$$ conf$$.exe conf$$.file
10562
10563if mkdir -p . 2>/dev/null; then
10564  as_mkdir_p=:
10565else
10566  test -d ./-p && rmdir ./-p
10567  as_mkdir_p=false
10568fi
10569
10570as_executable_p="test -f"
10571
10572# Sed expression to map a string onto a valid CPP name.
10573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10574
10575# Sed expression to map a string onto a valid variable name.
10576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10577
10578
10579# IFS
10580# We need space, tab and new line, in precisely that order.
10581as_nl='
10582'
10583IFS="   $as_nl"
10584
10585# CDPATH.
10586$as_unset CDPATH
10587
10588exec 6>&1
10589
10590# Open the log real soon, to keep \$[0] and so on meaningful, and to
10591# report actual input values of CONFIG_FILES etc. instead of their
10592# values after options handling.  Logging --version etc. is OK.
10593exec 5>>config.log
10594{
10595  echo
10596  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10597## Running $as_me. ##
10598_ASBOX
10599} >&5
10600cat >&5 <<_CSEOF
10601
[5066]10602This file was extended by orxonox $as_me 0.3.1_alpha, which was
[1956]10603generated by GNU Autoconf 2.59.  Invocation command line was
10604
10605  CONFIG_FILES    = $CONFIG_FILES
10606  CONFIG_HEADERS  = $CONFIG_HEADERS
10607  CONFIG_LINKS    = $CONFIG_LINKS
10608  CONFIG_COMMANDS = $CONFIG_COMMANDS
10609  $ $0 $@
10610
10611_CSEOF
10612echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10613echo >&5
10614_ACEOF
10615
10616# Files that config.status was made for.
10617if test -n "$ac_config_files"; then
10618  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10619fi
10620
10621if test -n "$ac_config_headers"; then
10622  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10623fi
10624
10625if test -n "$ac_config_links"; then
10626  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10627fi
10628
10629if test -n "$ac_config_commands"; then
10630  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10631fi
10632
10633cat >>$CONFIG_STATUS <<\_ACEOF
10634
10635ac_cs_usage="\
10636\`$as_me' instantiates files from templates according to the
10637current configuration.
10638
10639Usage: $0 [OPTIONS] [FILE]...
10640
10641  -h, --help       print this help, then exit
10642  -V, --version    print version number, then exit
10643  -q, --quiet      do not print progress messages
10644  -d, --debug      don't remove temporary files
10645      --recheck    update $as_me by reconfiguring in the same conditions
10646  --file=FILE[:TEMPLATE]
10647                   instantiate the configuration file FILE
10648  --header=FILE[:TEMPLATE]
10649                   instantiate the configuration header FILE
10650
10651Configuration files:
10652$config_files
10653
10654Configuration headers:
10655$config_headers
10656
10657Configuration commands:
10658$config_commands
10659
10660Report bugs to <bug-autoconf@gnu.org>."
10661_ACEOF
10662
10663cat >>$CONFIG_STATUS <<_ACEOF
10664ac_cs_version="\\
[5066]10665orxonox config.status 0.3.1_alpha
[1956]10666configured by $0, generated by GNU Autoconf 2.59,
10667  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10668
10669Copyright (C) 2003 Free Software Foundation, Inc.
10670This config.status script is free software; the Free Software Foundation
10671gives unlimited permission to copy, distribute and modify it."
10672srcdir=$srcdir
10673INSTALL="$INSTALL"
10674_ACEOF
10675
10676cat >>$CONFIG_STATUS <<\_ACEOF
10677# If no file are specified by the user, then we need to provide default
10678# value.  By we need to know if files were specified by the user.
10679ac_need_defaults=:
10680while test $# != 0
10681do
10682  case $1 in
10683  --*=*)
10684    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10685    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10686    ac_shift=:
10687    ;;
10688  -*)
10689    ac_option=$1
10690    ac_optarg=$2
10691    ac_shift=shift
10692    ;;
10693  *) # This is not an option, so the user has probably given explicit
10694     # arguments.
10695     ac_option=$1
10696     ac_need_defaults=false;;
10697  esac
10698
10699  case $ac_option in
10700  # Handling of the options.
10701_ACEOF
10702cat >>$CONFIG_STATUS <<\_ACEOF
10703  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10704    ac_cs_recheck=: ;;
10705  --version | --vers* | -V )
10706    echo "$ac_cs_version"; exit 0 ;;
10707  --he | --h)
10708    # Conflict between --help and --header
10709    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10710Try \`$0 --help' for more information." >&5
10711echo "$as_me: error: ambiguous option: $1
10712Try \`$0 --help' for more information." >&2;}
10713   { (exit 1); exit 1; }; };;
10714  --help | --hel | -h )
10715    echo "$ac_cs_usage"; exit 0 ;;
10716  --debug | --d* | -d )
10717    debug=: ;;
10718  --file | --fil | --fi | --f )
10719    $ac_shift
10720    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10721    ac_need_defaults=false;;
10722  --header | --heade | --head | --hea )
10723    $ac_shift
10724    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10725    ac_need_defaults=false;;
10726  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10727  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10728    ac_cs_silent=: ;;
10729
10730  # This is an error.
10731  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10732Try \`$0 --help' for more information." >&5
10733echo "$as_me: error: unrecognized option: $1
10734Try \`$0 --help' for more information." >&2;}
10735   { (exit 1); exit 1; }; } ;;
10736
10737  *) ac_config_targets="$ac_config_targets $1" ;;
10738
10739  esac
10740  shift
10741done
10742
10743ac_configure_extra_args=
10744
10745if $ac_cs_silent; then
10746  exec 6>/dev/null
10747  ac_configure_extra_args="$ac_configure_extra_args --silent"
10748fi
10749
10750_ACEOF
10751cat >>$CONFIG_STATUS <<_ACEOF
10752if \$ac_cs_recheck; then
10753  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10754  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10755fi
10756
10757_ACEOF
10758
10759cat >>$CONFIG_STATUS <<_ACEOF
10760#
10761# INIT-COMMANDS section.
10762#
10763
10764AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10765
10766_ACEOF
10767
10768
10769
10770cat >>$CONFIG_STATUS <<\_ACEOF
10771for ac_config_target in $ac_config_targets
10772do
10773  case "$ac_config_target" in
10774  # Handling of arguments.
10775  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
[3377]10776  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
[3493]10777  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
10778  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
[3489]10779  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
[4789]10780  "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;;
[4506]10781  "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;;
[4484]10782  "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;;
[4338]10783  "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;;
[4416]10784  "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;;
[4527]10785  "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;;
[5160]10786  "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;;
[3493]10787  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
[4265]10788  "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;;
[3549]10789  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
10790  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
[4263]10791  "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;;
[4338]10792  "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;;
[4531]10793  "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;;
[1956]10794  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10795  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10796  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10797echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10798   { (exit 1); exit 1; }; };;
10799  esac
10800done
10801
10802# If the user did not use the arguments to specify the items to instantiate,
10803# then the envvar interface is used.  Set only those that are not.
10804# We use the long form for the default assignment because of an extremely
10805# bizarre bug on SunOS 4.1.3.
10806if $ac_need_defaults; then
10807  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10808  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10809  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10810fi
10811
10812# Have a temporary directory for convenience.  Make it in the build tree
10813# simply because there is no reason to put it here, and in addition,
10814# creating and moving files from /tmp can sometimes cause problems.
10815# Create a temporary directory, and hook for its removal unless debugging.
10816$debug ||
10817{
10818  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10819  trap '{ (exit 1); exit 1; }' 1 2 13 15
10820}
10821
10822# Create a (secure) tmp directory for tmp files.
10823
10824{
10825  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10826  test -n "$tmp" && test -d "$tmp"
10827}  ||
10828{
10829  tmp=./confstat$$-$RANDOM
10830  (umask 077 && mkdir $tmp)
10831} ||
10832{
10833   echo "$me: cannot create a temporary directory in ." >&2
10834   { (exit 1); exit 1; }
10835}
10836
10837_ACEOF
10838
10839cat >>$CONFIG_STATUS <<_ACEOF
10840
10841#
10842# CONFIG_FILES section.
10843#
10844
10845# No need to generate the scripts if there are no CONFIG_FILES.
10846# This happens for instance when ./config.status config.h
10847if test -n "\$CONFIG_FILES"; then
10848  # Protect against being on the right side of a sed subst in config.status.
10849  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10850   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10851s,@SHELL@,$SHELL,;t t
10852s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10853s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10854s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10855s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10856s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10857s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10858s,@exec_prefix@,$exec_prefix,;t t
10859s,@prefix@,$prefix,;t t
10860s,@program_transform_name@,$program_transform_name,;t t
10861s,@bindir@,$bindir,;t t
10862s,@sbindir@,$sbindir,;t t
10863s,@libexecdir@,$libexecdir,;t t
10864s,@datadir@,$datadir,;t t
10865s,@sysconfdir@,$sysconfdir,;t t
10866s,@sharedstatedir@,$sharedstatedir,;t t
10867s,@localstatedir@,$localstatedir,;t t
10868s,@libdir@,$libdir,;t t
10869s,@includedir@,$includedir,;t t
10870s,@oldincludedir@,$oldincludedir,;t t
10871s,@infodir@,$infodir,;t t
10872s,@mandir@,$mandir,;t t
10873s,@build_alias@,$build_alias,;t t
10874s,@host_alias@,$host_alias,;t t
10875s,@target_alias@,$target_alias,;t t
10876s,@DEFS@,$DEFS,;t t
10877s,@ECHO_C@,$ECHO_C,;t t
10878s,@ECHO_N@,$ECHO_N,;t t
10879s,@ECHO_T@,$ECHO_T,;t t
10880s,@LIBS@,$LIBS,;t t
[2980]10881s,@build@,$build,;t t
10882s,@build_cpu@,$build_cpu,;t t
10883s,@build_vendor@,$build_vendor,;t t
10884s,@build_os@,$build_os,;t t
10885s,@host@,$host,;t t
10886s,@host_cpu@,$host_cpu,;t t
10887s,@host_vendor@,$host_vendor,;t t
10888s,@host_os@,$host_os,;t t
10889s,@target@,$target,;t t
10890s,@target_cpu@,$target_cpu,;t t
10891s,@target_vendor@,$target_vendor,;t t
10892s,@target_os@,$target_os,;t t
[1956]10893s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10894s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10895s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10896s,@CYGPATH_W@,$CYGPATH_W,;t t
10897s,@PACKAGE@,$PACKAGE,;t t
10898s,@VERSION@,$VERSION,;t t
10899s,@ACLOCAL@,$ACLOCAL,;t t
10900s,@AUTOCONF@,$AUTOCONF,;t t
10901s,@AUTOMAKE@,$AUTOMAKE,;t t
10902s,@AUTOHEADER@,$AUTOHEADER,;t t
10903s,@MAKEINFO@,$MAKEINFO,;t t
10904s,@AMTAR@,$AMTAR,;t t
10905s,@install_sh@,$install_sh,;t t
10906s,@STRIP@,$STRIP,;t t
10907s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10908s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
[2706]10909s,@mkdir_p@,$mkdir_p,;t t
[1956]10910s,@AWK@,$AWK,;t t
10911s,@SET_MAKE@,$SET_MAKE,;t t
10912s,@am__leading_dot@,$am__leading_dot,;t t
10913s,@CXX@,$CXX,;t t
10914s,@CXXFLAGS@,$CXXFLAGS,;t t
10915s,@LDFLAGS@,$LDFLAGS,;t t
10916s,@CPPFLAGS@,$CPPFLAGS,;t t
10917s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10918s,@EXEEXT@,$EXEEXT,;t t
10919s,@OBJEXT@,$OBJEXT,;t t
10920s,@DEPDIR@,$DEPDIR,;t t
10921s,@am__include@,$am__include,;t t
10922s,@am__quote@,$am__quote,;t t
10923s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10924s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10925s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10926s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10927s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10928s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
[4054]10929s,@RANLIB@,$RANLIB,;t t
10930s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
[1956]10931s,@CC@,$CC,;t t
10932s,@CFLAGS@,$CFLAGS,;t t
10933s,@ac_ct_CC@,$ac_ct_CC,;t t
10934s,@CCDEPMODE@,$CCDEPMODE,;t t
10935s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10936s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10937s,@CPP@,$CPP,;t t
10938s,@EGREP@,$EGREP,;t t
[3173]10939s,@DEBUG@,$DEBUG,;t t
[3377]10940s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
10941s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
[3558]10942s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
10943s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
[3219]10944s,@DOXYGEN@,$DOXYGEN,;t t
10945s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
10946s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
[3789]10947s,@GPROF@,$GPROF,;t t
[4130]10948s,@PKG_CONFIG@,$PKG_CONFIG,;t t
[2989]10949s,@MSBITFIELDS@,$MSBITFIELDS,;t t
[5276]10950s,@CURL_LIBS@,$CURL_LIBS,;t t
10951s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
10952s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
10953s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
[3099]10954s,@GTK2_LIBS@,$GTK2_LIBS,;t t
[2980]10955s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
10956s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
10957s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
[1956]10958s,@LIBOBJS@,$LIBOBJS,;t t
10959s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10960CEOF
10961
10962_ACEOF
10963
10964  cat >>$CONFIG_STATUS <<\_ACEOF
10965  # Split the substitutions into bite-sized pieces for seds with
10966  # small command number limits, like on Digital OSF/1 and HP-UX.
10967  ac_max_sed_lines=48
10968  ac_sed_frag=1 # Number of current file.
10969  ac_beg=1 # First line for current file.
10970  ac_end=$ac_max_sed_lines # Line after last line for current file.
10971  ac_more_lines=:
10972  ac_sed_cmds=
10973  while $ac_more_lines; do
10974    if test $ac_beg -gt 1; then
10975      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10976    else
10977      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10978    fi
10979    if test ! -s $tmp/subs.frag; then
10980      ac_more_lines=false
10981    else
10982      # The purpose of the label and of the branching condition is to
10983      # speed up the sed processing (if there are no `@' at all, there
10984      # is no need to browse any of the substitutions).
10985      # These are the two extra sed commands mentioned above.
10986      (echo ':t
10987  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10988      if test -z "$ac_sed_cmds"; then
10989        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10990      else
10991        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10992      fi
10993      ac_sed_frag=`expr $ac_sed_frag + 1`
10994      ac_beg=$ac_end
10995      ac_end=`expr $ac_end + $ac_max_sed_lines`
10996    fi
10997  done
10998  if test -z "$ac_sed_cmds"; then
10999    ac_sed_cmds=cat
11000  fi
11001fi # test -n "$CONFIG_FILES"
11002
11003_ACEOF
11004cat >>$CONFIG_STATUS <<\_ACEOF
11005for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11006  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11007  case $ac_file in
11008  - | *:- | *:-:* ) # input from stdin
11009        cat >$tmp/stdin
11010        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11011        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11012  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11013        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11014  * )   ac_file_in=$ac_file.in ;;
11015  esac
11016
11017  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11018  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11019$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11020         X"$ac_file" : 'X\(//\)[^/]' \| \
11021         X"$ac_file" : 'X\(//\)$' \| \
11022         X"$ac_file" : 'X\(/\)' \| \
11023         .     : '\(.\)' 2>/dev/null ||
11024echo X"$ac_file" |
11025    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11026          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11027          /^X\(\/\/\)$/{ s//\1/; q; }
11028          /^X\(\/\).*/{ s//\1/; q; }
11029          s/.*/./; q'`
11030  { if $as_mkdir_p; then
11031    mkdir -p "$ac_dir"
11032  else
11033    as_dir="$ac_dir"
11034    as_dirs=
11035    while test ! -d "$as_dir"; do
11036      as_dirs="$as_dir $as_dirs"
11037      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11038$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11039         X"$as_dir" : 'X\(//\)[^/]' \| \
11040         X"$as_dir" : 'X\(//\)$' \| \
11041         X"$as_dir" : 'X\(/\)' \| \
11042         .     : '\(.\)' 2>/dev/null ||
11043echo X"$as_dir" |
11044    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11045          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11046          /^X\(\/\/\)$/{ s//\1/; q; }
11047          /^X\(\/\).*/{ s//\1/; q; }
11048          s/.*/./; q'`
11049    done
11050    test ! -n "$as_dirs" || mkdir $as_dirs
11051  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11052echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11053   { (exit 1); exit 1; }; }; }
11054
11055  ac_builddir=.
11056
11057if test "$ac_dir" != .; then
11058  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11059  # A "../" for each directory in $ac_dir_suffix.
11060  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11061else
11062  ac_dir_suffix= ac_top_builddir=
11063fi
11064
11065case $srcdir in
11066  .)  # No --srcdir option.  We are building in place.
11067    ac_srcdir=.
11068    if test -z "$ac_top_builddir"; then
11069       ac_top_srcdir=.
11070    else
11071       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11072    fi ;;
11073  [\\/]* | ?:[\\/]* )  # Absolute path.
11074    ac_srcdir=$srcdir$ac_dir_suffix;
11075    ac_top_srcdir=$srcdir ;;
11076  *) # Relative path.
11077    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11078    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11079esac
11080
11081# Do not use `cd foo && pwd` to compute absolute paths, because
11082# the directories may not exist.
11083case `pwd` in
11084.) ac_abs_builddir="$ac_dir";;
11085*)
11086  case "$ac_dir" in
11087  .) ac_abs_builddir=`pwd`;;
11088  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11089  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11090  esac;;
11091esac
11092case $ac_abs_builddir in
11093.) ac_abs_top_builddir=${ac_top_builddir}.;;
11094*)
11095  case ${ac_top_builddir}. in
11096  .) ac_abs_top_builddir=$ac_abs_builddir;;
11097  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11098  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11099  esac;;
11100esac
11101case $ac_abs_builddir in
11102.) ac_abs_srcdir=$ac_srcdir;;
11103*)
11104  case $ac_srcdir in
11105  .) ac_abs_srcdir=$ac_abs_builddir;;
11106  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11107  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11108  esac;;
11109esac
11110case $ac_abs_builddir in
11111.) ac_abs_top_srcdir=$ac_top_srcdir;;
11112*)
11113  case $ac_top_srcdir in
11114  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11115  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11116  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11117  esac;;
11118esac
11119
11120
11121  case $INSTALL in
11122  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11123  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11124  esac
11125
11126  if test x"$ac_file" != x-; then
11127    { echo "$as_me:$LINENO: creating $ac_file" >&5
11128echo "$as_me: creating $ac_file" >&6;}
11129    rm -f "$ac_file"
11130  fi
11131  # Let's still pretend it is `configure' which instantiates (i.e., don't
11132  # use $as_me), people would be surprised to read:
11133  #    /* config.h.  Generated by config.status.  */
11134  if test x"$ac_file" = x-; then
11135    configure_input=
11136  else
11137    configure_input="$ac_file.  "
11138  fi
11139  configure_input=$configure_input"Generated from `echo $ac_file_in |
11140                                     sed 's,.*/,,'` by configure."
11141
11142  # First look for the input files in the build tree, otherwise in the
11143  # src tree.
11144  ac_file_inputs=`IFS=:
11145    for f in $ac_file_in; do
11146      case $f in
11147      -) echo $tmp/stdin ;;
11148      [\\/$]*)
11149         # Absolute (can't be DOS-style, as IFS=:)
11150         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11151echo "$as_me: error: cannot find input file: $f" >&2;}
11152   { (exit 1); exit 1; }; }
11153         echo "$f";;
11154      *) # Relative
11155         if test -f "$f"; then
11156           # Build tree
11157           echo "$f"
11158         elif test -f "$srcdir/$f"; then
11159           # Source tree
11160           echo "$srcdir/$f"
11161         else
11162           # /dev/null tree
11163           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11164echo "$as_me: error: cannot find input file: $f" >&2;}
11165   { (exit 1); exit 1; }; }
11166         fi;;
11167      esac
11168    done` || { (exit 1); exit 1; }
11169_ACEOF
11170cat >>$CONFIG_STATUS <<_ACEOF
11171  sed "$ac_vpsub
11172$extrasub
11173_ACEOF
11174cat >>$CONFIG_STATUS <<\_ACEOF
11175:t
11176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11177s,@configure_input@,$configure_input,;t t
11178s,@srcdir@,$ac_srcdir,;t t
11179s,@abs_srcdir@,$ac_abs_srcdir,;t t
11180s,@top_srcdir@,$ac_top_srcdir,;t t
11181s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11182s,@builddir@,$ac_builddir,;t t
11183s,@abs_builddir@,$ac_abs_builddir,;t t
11184s,@top_builddir@,$ac_top_builddir,;t t
11185s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11186s,@INSTALL@,$ac_INSTALL,;t t
11187" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11188  rm -f $tmp/stdin
11189  if test x"$ac_file" != x-; then
11190    mv $tmp/out $ac_file
11191  else
11192    cat $tmp/out
11193    rm -f $tmp/out
11194  fi
11195
11196done
11197_ACEOF
11198cat >>$CONFIG_STATUS <<\_ACEOF
11199
11200#
11201# CONFIG_HEADER section.
11202#
11203
11204# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11205# NAME is the cpp macro being defined and VALUE is the value it is being given.
11206#
11207# ac_d sets the value in "#define NAME VALUE" lines.
11208ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11209ac_dB='[         ].*$,\1#\2'
11210ac_dC=' '
11211ac_dD=',;t'
11212# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11213ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11214ac_uB='$,\1#\2define\3'
11215ac_uC=' '
11216ac_uD=',;t'
11217
11218for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11219  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11220  case $ac_file in
11221  - | *:- | *:-:* ) # input from stdin
11222        cat >$tmp/stdin
11223        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11224        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11225  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11226        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11227  * )   ac_file_in=$ac_file.in ;;
11228  esac
11229
11230  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11231echo "$as_me: creating $ac_file" >&6;}
11232
11233  # First look for the input files in the build tree, otherwise in the
11234  # src tree.
11235  ac_file_inputs=`IFS=:
11236    for f in $ac_file_in; do
11237      case $f in
11238      -) echo $tmp/stdin ;;
11239      [\\/$]*)
11240         # Absolute (can't be DOS-style, as IFS=:)
11241         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11242echo "$as_me: error: cannot find input file: $f" >&2;}
11243   { (exit 1); exit 1; }; }
11244         # Do quote $f, to prevent DOS paths from being IFS'd.
11245         echo "$f";;
11246      *) # Relative
11247         if test -f "$f"; then
11248           # Build tree
11249           echo "$f"
11250         elif test -f "$srcdir/$f"; then
11251           # Source tree
11252           echo "$srcdir/$f"
11253         else
11254           # /dev/null tree
11255           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11256echo "$as_me: error: cannot find input file: $f" >&2;}
11257   { (exit 1); exit 1; }; }
11258         fi;;
11259      esac
11260    done` || { (exit 1); exit 1; }
11261  # Remove the trailing spaces.
11262  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11263
11264_ACEOF
11265
11266# Transform confdefs.h into two sed scripts, `conftest.defines' and
11267# `conftest.undefs', that substitutes the proper values into
11268# config.h.in to produce config.h.  The first handles `#define'
11269# templates, and the second `#undef' templates.
11270# And first: Protect against being on the right side of a sed subst in
11271# config.status.  Protect against being in an unquoted here document
11272# in config.status.
11273rm -f conftest.defines conftest.undefs
11274# Using a here document instead of a string reduces the quoting nightmare.
11275# Putting comments in sed scripts is not portable.
11276#
11277# `end' is used to avoid that the second main sed command (meant for
11278# 0-ary CPP macros) applies to n-ary macro definitions.
11279# See the Autoconf documentation for `clear'.
11280cat >confdef2sed.sed <<\_ACEOF
11281s/[\\&,]/\\&/g
11282s,[\\$`],\\&,g
11283t clear
11284: clear
11285s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11286t end
11287s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11288: end
11289_ACEOF
11290# If some macros were called several times there might be several times
11291# the same #defines, which is useless.  Nevertheless, we may not want to
11292# sort them, since we want the *last* AC-DEFINE to be honored.
11293uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11294sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11295rm -f confdef2sed.sed
11296
11297# This sed command replaces #undef with comments.  This is necessary, for
11298# example, in the case of _POSIX_SOURCE, which is predefined and required
11299# on some systems where configure will not decide to define it.
11300cat >>conftest.undefs <<\_ACEOF
11301s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11302_ACEOF
11303
11304# Break up conftest.defines because some shells have a limit on the size
11305# of here documents, and old seds have small limits too (100 cmds).
11306echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11307echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11308echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11309echo '  :' >>$CONFIG_STATUS
11310rm -f conftest.tail
11311while grep . conftest.defines >/dev/null
11312do
11313  # Write a limited-size here document to $tmp/defines.sed.
11314  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11315  # Speed up: don't consider the non `#define' lines.
11316  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11317  # Work around the forget-to-reset-the-flag bug.
11318  echo 't clr' >>$CONFIG_STATUS
11319  echo ': clr' >>$CONFIG_STATUS
11320  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11321  echo 'CEOF
11322  sed -f $tmp/defines.sed $tmp/in >$tmp/out
11323  rm -f $tmp/in
11324  mv $tmp/out $tmp/in
11325' >>$CONFIG_STATUS
11326  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11327  rm -f conftest.defines
11328  mv conftest.tail conftest.defines
11329done
11330rm -f conftest.defines
11331echo '  fi # grep' >>$CONFIG_STATUS
11332echo >>$CONFIG_STATUS
11333
11334# Break up conftest.undefs because some shells have a limit on the size
11335# of here documents, and old seds have small limits too (100 cmds).
11336echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11337rm -f conftest.tail
11338while grep . conftest.undefs >/dev/null
11339do
11340  # Write a limited-size here document to $tmp/undefs.sed.
11341  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11342  # Speed up: don't consider the non `#undef'
11343  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11344  # Work around the forget-to-reset-the-flag bug.
11345  echo 't clr' >>$CONFIG_STATUS
11346  echo ': clr' >>$CONFIG_STATUS
11347  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11348  echo 'CEOF
11349  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11350  rm -f $tmp/in
11351  mv $tmp/out $tmp/in
11352' >>$CONFIG_STATUS
11353  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11354  rm -f conftest.undefs
11355  mv conftest.tail conftest.undefs
11356done
11357rm -f conftest.undefs
11358
11359cat >>$CONFIG_STATUS <<\_ACEOF
11360  # Let's still pretend it is `configure' which instantiates (i.e., don't
11361  # use $as_me), people would be surprised to read:
11362  #    /* config.h.  Generated by config.status.  */
11363  if test x"$ac_file" = x-; then
11364    echo "/* Generated by configure.  */" >$tmp/config.h
11365  else
11366    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11367  fi
11368  cat $tmp/in >>$tmp/config.h
11369  rm -f $tmp/in
11370  if test x"$ac_file" != x-; then
11371    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11372      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11373echo "$as_me: $ac_file is unchanged" >&6;}
11374    else
11375      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11377         X"$ac_file" : 'X\(//\)[^/]' \| \
11378         X"$ac_file" : 'X\(//\)$' \| \
11379         X"$ac_file" : 'X\(/\)' \| \
11380         .     : '\(.\)' 2>/dev/null ||
11381echo X"$ac_file" |
11382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11383          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11384          /^X\(\/\/\)$/{ s//\1/; q; }
11385          /^X\(\/\).*/{ s//\1/; q; }
11386          s/.*/./; q'`
11387      { if $as_mkdir_p; then
11388    mkdir -p "$ac_dir"
11389  else
11390    as_dir="$ac_dir"
11391    as_dirs=
11392    while test ! -d "$as_dir"; do
11393      as_dirs="$as_dir $as_dirs"
11394      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11396         X"$as_dir" : 'X\(//\)[^/]' \| \
11397         X"$as_dir" : 'X\(//\)$' \| \
11398         X"$as_dir" : 'X\(/\)' \| \
11399         .     : '\(.\)' 2>/dev/null ||
11400echo X"$as_dir" |
11401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11402          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11403          /^X\(\/\/\)$/{ s//\1/; q; }
11404          /^X\(\/\).*/{ s//\1/; q; }
11405          s/.*/./; q'`
11406    done
11407    test ! -n "$as_dirs" || mkdir $as_dirs
11408  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11409echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11410   { (exit 1); exit 1; }; }; }
11411
11412      rm -f $ac_file
11413      mv $tmp/config.h $ac_file
11414    fi
11415  else
11416    cat $tmp/config.h
11417    rm -f $tmp/config.h
11418  fi
11419# Compute $ac_file's index in $config_headers.
11420_am_stamp_count=1
11421for _am_header in $config_headers :; do
11422  case $_am_header in
11423    $ac_file | $ac_file:* )
11424      break ;;
11425    * )
11426      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11427  esac
11428done
11429echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11430$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431         X$ac_file : 'X\(//\)[^/]' \| \
11432         X$ac_file : 'X\(//\)$' \| \
11433         X$ac_file : 'X\(/\)' \| \
11434         .     : '\(.\)' 2>/dev/null ||
11435echo X$ac_file |
11436    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11437          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11438          /^X\(\/\/\)$/{ s//\1/; q; }
11439          /^X\(\/\).*/{ s//\1/; q; }
11440          s/.*/./; q'`/stamp-h$_am_stamp_count
11441done
11442_ACEOF
11443cat >>$CONFIG_STATUS <<\_ACEOF
11444
11445#
11446# CONFIG_COMMANDS section.
11447#
11448for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11449  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11450  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11451  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11452$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11453         X"$ac_dest" : 'X\(//\)[^/]' \| \
11454         X"$ac_dest" : 'X\(//\)$' \| \
11455         X"$ac_dest" : 'X\(/\)' \| \
11456         .     : '\(.\)' 2>/dev/null ||
11457echo X"$ac_dest" |
11458    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11459          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11460          /^X\(\/\/\)$/{ s//\1/; q; }
11461          /^X\(\/\).*/{ s//\1/; q; }
11462          s/.*/./; q'`
11463  { if $as_mkdir_p; then
11464    mkdir -p "$ac_dir"
11465  else
11466    as_dir="$ac_dir"
11467    as_dirs=
11468    while test ! -d "$as_dir"; do
11469      as_dirs="$as_dir $as_dirs"
11470      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11471$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11472         X"$as_dir" : 'X\(//\)[^/]' \| \
11473         X"$as_dir" : 'X\(//\)$' \| \
11474         X"$as_dir" : 'X\(/\)' \| \
11475         .     : '\(.\)' 2>/dev/null ||
11476echo X"$as_dir" |
11477    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11478          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11479          /^X\(\/\/\)$/{ s//\1/; q; }
11480          /^X\(\/\).*/{ s//\1/; q; }
11481          s/.*/./; q'`
11482    done
11483    test ! -n "$as_dirs" || mkdir $as_dirs
11484  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11485echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11486   { (exit 1); exit 1; }; }; }
11487
11488  ac_builddir=.
11489
11490if test "$ac_dir" != .; then
11491  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11492  # A "../" for each directory in $ac_dir_suffix.
11493  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11494else
11495  ac_dir_suffix= ac_top_builddir=
11496fi
11497
11498case $srcdir in
11499  .)  # No --srcdir option.  We are building in place.
11500    ac_srcdir=.
11501    if test -z "$ac_top_builddir"; then
11502       ac_top_srcdir=.
11503    else
11504       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11505    fi ;;
11506  [\\/]* | ?:[\\/]* )  # Absolute path.
11507    ac_srcdir=$srcdir$ac_dir_suffix;
11508    ac_top_srcdir=$srcdir ;;
11509  *) # Relative path.
11510    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11511    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11512esac
11513
11514# Do not use `cd foo && pwd` to compute absolute paths, because
11515# the directories may not exist.
11516case `pwd` in
11517.) ac_abs_builddir="$ac_dir";;
11518*)
11519  case "$ac_dir" in
11520  .) ac_abs_builddir=`pwd`;;
11521  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11522  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11523  esac;;
11524esac
11525case $ac_abs_builddir in
11526.) ac_abs_top_builddir=${ac_top_builddir}.;;
11527*)
11528  case ${ac_top_builddir}. in
11529  .) ac_abs_top_builddir=$ac_abs_builddir;;
11530  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11531  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11532  esac;;
11533esac
11534case $ac_abs_builddir in
11535.) ac_abs_srcdir=$ac_srcdir;;
11536*)
11537  case $ac_srcdir in
11538  .) ac_abs_srcdir=$ac_abs_builddir;;
11539  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11540  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11541  esac;;
11542esac
11543case $ac_abs_builddir in
11544.) ac_abs_top_srcdir=$ac_top_srcdir;;
11545*)
11546  case $ac_top_srcdir in
11547  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11548  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11549  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11550  esac;;
11551esac
11552
11553
11554  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11555echo "$as_me: executing $ac_dest commands" >&6;}
11556  case $ac_dest in
11557    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11558  # Strip MF so we end up with the name of the file.
11559  mf=`echo "$mf" | sed -e 's/:.*$//'`
11560  # Check whether this is an Automake generated Makefile or not.
11561  # We used to match only the files named `Makefile.in', but
11562  # some people rename them; so instead we look at the file content.
11563  # Grep'ing the first line is not enough: some people post-process
11564  # each Makefile.in and add a new line on top of each file to say so.
11565  # So let's grep whole file.
11566  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11567    dirpart=`(dirname "$mf") 2>/dev/null ||
11568$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11569         X"$mf" : 'X\(//\)[^/]' \| \
11570         X"$mf" : 'X\(//\)$' \| \
11571         X"$mf" : 'X\(/\)' \| \
11572         .     : '\(.\)' 2>/dev/null ||
11573echo X"$mf" |
11574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11575          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11576          /^X\(\/\/\)$/{ s//\1/; q; }
11577          /^X\(\/\).*/{ s//\1/; q; }
11578          s/.*/./; q'`
11579  else
11580    continue
11581  fi
11582  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11583  # Extract the definition of DEP_FILES from the Makefile without
11584  # running `make'.
[4826]11585  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
[1956]11586  test -z "$DEPDIR" && continue
11587  # When using ansi2knr, U may be empty or an underscore; expand it
[4826]11588  U=`sed -n 's/^U = //p' < "$mf"`
[1956]11589  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11590  # We invoke sed twice because it is the simplest approach to
11591  # changing $(DEPDIR) to its actual value in the expansion.
[4826]11592  for file in `sed -n '
[1956]11593    /^DEP_FILES = .*\\\\$/ {
11594      s/^DEP_FILES = //
11595      :loop
11596        s/\\\\$//
11597        p
11598        n
11599        /\\\\$/ b loop
11600      p
11601    }
11602    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11603       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11604    # Make sure the directory exists.
11605    test -f "$dirpart/$file" && continue
11606    fdir=`(dirname "$file") 2>/dev/null ||
11607$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11608         X"$file" : 'X\(//\)[^/]' \| \
11609         X"$file" : 'X\(//\)$' \| \
11610         X"$file" : 'X\(/\)' \| \
11611         .     : '\(.\)' 2>/dev/null ||
11612echo X"$file" |
11613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11614          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11615          /^X\(\/\/\)$/{ s//\1/; q; }
11616          /^X\(\/\).*/{ s//\1/; q; }
11617          s/.*/./; q'`
11618    { if $as_mkdir_p; then
11619    mkdir -p $dirpart/$fdir
11620  else
11621    as_dir=$dirpart/$fdir
11622    as_dirs=
11623    while test ! -d "$as_dir"; do
11624      as_dirs="$as_dir $as_dirs"
11625      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11626$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11627         X"$as_dir" : 'X\(//\)[^/]' \| \
11628         X"$as_dir" : 'X\(//\)$' \| \
11629         X"$as_dir" : 'X\(/\)' \| \
11630         .     : '\(.\)' 2>/dev/null ||
11631echo X"$as_dir" |
11632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11633          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11634          /^X\(\/\/\)$/{ s//\1/; q; }
11635          /^X\(\/\).*/{ s//\1/; q; }
11636          s/.*/./; q'`
11637    done
11638    test ! -n "$as_dirs" || mkdir $as_dirs
11639  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11640echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11641   { (exit 1); exit 1; }; }; }
11642
11643    # echo "creating $dirpart/$file"
11644    echo '# dummy' > "$dirpart/$file"
11645  done
11646done
11647 ;;
11648  esac
11649done
11650_ACEOF
11651
11652cat >>$CONFIG_STATUS <<\_ACEOF
11653
11654{ (exit 0); exit 0; }
11655_ACEOF
11656chmod +x $CONFIG_STATUS
11657ac_clean_files=$ac_clean_files_save
11658
11659
11660# configure is writing to config.log, and then calls config.status.
11661# config.status does its own redirection, appending to config.log.
11662# Unfortunately, on DOS this fails, as config.log is still kept open
11663# by configure, so config.status won't be able to write to it; its
11664# output is simply discarded.  So we exec the FD to /dev/null,
11665# effectively closing config.log, so it can be properly (re)opened and
11666# appended to by config.status.  When coming back to configure, we
11667# need to make the FD available again.
11668if test "$no_create" != yes; then
11669  ac_cs_success=:
11670  ac_config_status_args=
11671  test "$silent" = yes &&
11672    ac_config_status_args="$ac_config_status_args --quiet"
11673  exec 5>/dev/null
11674  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11675  exec 5>>config.log
11676  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11677  # would make configure fail if this is the last instruction.
11678  $ac_cs_success || { (exit 1); exit 1; }
11679fi
11680
Note: See TracBrowser for help on using the repository browser.