Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/updater/configure @ 3273

Last change on this file since 3273 was 3273, checked in by bensch, 20 years ago

orxonox/branches/updater: checking if pthread is an option

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