Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/updater: better check if pthread is not enabled

  • 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
6972if test x$have_gthread = xyes ; then
6973
6974for ac_header in pthread.h
6975do
6976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6977if eval "test \"\${$as_ac_Header+set}\" = set"; then
6978  echo "$as_me:$LINENO: checking for $ac_header" >&5
6979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6980if eval "test \"\${$as_ac_Header+set}\" = set"; then
6981  echo $ECHO_N "(cached) $ECHO_C" >&6
6982fi
6983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6985else
6986  # Is the header compilable?
6987echo "$as_me:$LINENO: checking $ac_header usability" >&5
6988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6989cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h.  */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h.  */
6995$ac_includes_default
6996#include <$ac_header>
6997_ACEOF
6998rm -f conftest.$ac_objext
6999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000  (eval $ac_compile) 2>conftest.er1
7001  ac_status=$?
7002  grep -v '^ *+' conftest.er1 >conftest.err
7003  rm -f conftest.er1
7004  cat conftest.err >&5
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); } &&
7007         { ac_try='test -z "$ac_c_werror_flag"
7008                         || test ! -s conftest.err'
7009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010  (eval $ac_try) 2>&5
7011  ac_status=$?
7012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013  (exit $ac_status); }; } &&
7014         { ac_try='test -s conftest.$ac_objext'
7015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016  (eval $ac_try) 2>&5
7017  ac_status=$?
7018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019  (exit $ac_status); }; }; then
7020  ac_header_compiler=yes
7021else
7022  echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025ac_header_compiler=no
7026fi
7027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7029echo "${ECHO_T}$ac_header_compiler" >&6
7030
7031# Is the header present?
7032echo "$as_me:$LINENO: checking $ac_header presence" >&5
7033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7034cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h.  */
7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h.  */
7040#include <$ac_header>
7041_ACEOF
7042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7043  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7044  ac_status=$?
7045  grep -v '^ *+' conftest.er1 >conftest.err
7046  rm -f conftest.er1
7047  cat conftest.err >&5
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); } >/dev/null; then
7050  if test -s conftest.err; then
7051    ac_cpp_err=$ac_c_preproc_warn_flag
7052    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7053  else
7054    ac_cpp_err=
7055  fi
7056else
7057  ac_cpp_err=yes
7058fi
7059if test -z "$ac_cpp_err"; then
7060  ac_header_preproc=yes
7061else
7062  echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065  ac_header_preproc=no
7066fi
7067rm -f conftest.err conftest.$ac_ext
7068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7069echo "${ECHO_T}$ac_header_preproc" >&6
7070
7071# So?  What about this header?
7072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7073  yes:no: )
7074    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7076    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7078    ac_header_preproc=yes
7079    ;;
7080  no:yes:* )
7081    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7083    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7084echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7085    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7087    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7088echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7089    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7091    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7093    (
7094      cat <<\_ASBOX
7095## ---------------------------------------------- ##
7096## Report this to orxonox-dev at mail.datacore.ch ##
7097## ---------------------------------------------- ##
7098_ASBOX
7099    ) |
7100      sed "s/^/$as_me: WARNING:     /" >&2
7101    ;;
7102esac
7103echo "$as_me:$LINENO: checking for $ac_header" >&5
7104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7105if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106  echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108  eval "$as_ac_Header=\$ac_header_preproc"
7109fi
7110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112
7113fi
7114if test `eval echo '${'$as_ac_Header'}'` = yes; then
7115  cat >>confdefs.h <<_ACEOF
7116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7117_ACEOF
7118 pthreadHeader="yes"
7119else
7120  pthreadHeader="no"
7121fi
7122
7123done
7124
7125  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7126echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7127if test "${ac_cv_lib_pthread_main+set}" = set; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130  ac_check_lib_save_LIBS=$LIBS
7131LIBS="-lpthread  $LIBS"
7132cat >conftest.$ac_ext <<_ACEOF
7133/* confdefs.h.  */
7134_ACEOF
7135cat confdefs.h >>conftest.$ac_ext
7136cat >>conftest.$ac_ext <<_ACEOF
7137/* end confdefs.h.  */
7138
7139
7140int
7141main ()
7142{
7143main ();
7144  ;
7145  return 0;
7146}
7147_ACEOF
7148rm -f conftest.$ac_objext conftest$ac_exeext
7149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7150  (eval $ac_link) 2>conftest.er1
7151  ac_status=$?
7152  grep -v '^ *+' conftest.er1 >conftest.err
7153  rm -f conftest.er1
7154  cat conftest.err >&5
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); } &&
7157         { ac_try='test -z "$ac_c_werror_flag"
7158                         || test ! -s conftest.err'
7159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160  (eval $ac_try) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); }; } &&
7164         { ac_try='test -s conftest$ac_exeext'
7165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166  (eval $ac_try) 2>&5
7167  ac_status=$?
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); }; }; then
7170  ac_cv_lib_pthread_main=yes
7171else
7172  echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175ac_cv_lib_pthread_main=no
7176fi
7177rm -f conftest.err conftest.$ac_objext \
7178      conftest$ac_exeext conftest.$ac_ext
7179LIBS=$ac_check_lib_save_LIBS
7180fi
7181echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7182echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7183if test $ac_cv_lib_pthread_main = yes; then
7184  FOUND_pthread=yes
7185fi
7186
7187   if test "$FOUND_pthread" = "yes" ; then
7188      LIBS="$LIBS -lpthread"
7189   fi
7190fi
7191
7192# FIXME: Replace `main' with a function in `-lm':
7193
7194echo "$as_me:$LINENO: checking for main in -lm" >&5
7195echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7196if test "${ac_cv_lib_m_main+set}" = set; then
7197  echo $ECHO_N "(cached) $ECHO_C" >&6
7198else
7199  ac_check_lib_save_LIBS=$LIBS
7200LIBS="-lm  $LIBS"
7201cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h.  */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h.  */
7207
7208
7209int
7210main ()
7211{
7212main ();
7213  ;
7214  return 0;
7215}
7216_ACEOF
7217rm -f conftest.$ac_objext conftest$ac_exeext
7218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219  (eval $ac_link) 2>conftest.er1
7220  ac_status=$?
7221  grep -v '^ *+' conftest.er1 >conftest.err
7222  rm -f conftest.er1
7223  cat conftest.err >&5
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } &&
7226         { ac_try='test -z "$ac_c_werror_flag"
7227                         || test ! -s conftest.err'
7228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229  (eval $ac_try) 2>&5
7230  ac_status=$?
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); }; } &&
7233         { ac_try='test -s conftest$ac_exeext'
7234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235  (eval $ac_try) 2>&5
7236  ac_status=$?
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); }; }; then
7239  ac_cv_lib_m_main=yes
7240else
7241  echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244ac_cv_lib_m_main=no
7245fi
7246rm -f conftest.err conftest.$ac_objext \
7247      conftest$ac_exeext conftest.$ac_ext
7248LIBS=$ac_check_lib_save_LIBS
7249fi
7250echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7251echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7252if test $ac_cv_lib_m_main = yes; then
7253  cat >>confdefs.h <<_ACEOF
7254#define HAVE_LIBM 1
7255_ACEOF
7256
7257  LIBS="-lm $LIBS"
7258
7259fi
7260
7261
7262
7263# Checks for header files.
7264echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7265echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7266if test "${ac_cv_header_stdc+set}" = set; then
7267  echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269  cat >conftest.$ac_ext <<_ACEOF
7270/* confdefs.h.  */
7271_ACEOF
7272cat confdefs.h >>conftest.$ac_ext
7273cat >>conftest.$ac_ext <<_ACEOF
7274/* end confdefs.h.  */
7275#include <stdlib.h>
7276#include <stdarg.h>
7277#include <string.h>
7278#include <float.h>
7279
7280int
7281main ()
7282{
7283
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288rm -f conftest.$ac_objext
7289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290  (eval $ac_compile) 2>conftest.er1
7291  ac_status=$?
7292  grep -v '^ *+' conftest.er1 >conftest.err
7293  rm -f conftest.er1
7294  cat conftest.err >&5
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); } &&
7297         { ac_try='test -z "$ac_c_werror_flag"
7298                         || test ! -s conftest.err'
7299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300  (eval $ac_try) 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); }; } &&
7304         { ac_try='test -s conftest.$ac_objext'
7305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306  (eval $ac_try) 2>&5
7307  ac_status=$?
7308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309  (exit $ac_status); }; }; then
7310  ac_cv_header_stdc=yes
7311else
7312  echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315ac_cv_header_stdc=no
7316fi
7317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7318
7319if test $ac_cv_header_stdc = yes; then
7320  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7321  cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h.  */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h.  */
7327#include <string.h>
7328
7329_ACEOF
7330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331  $EGREP "memchr" >/dev/null 2>&1; then
7332  :
7333else
7334  ac_cv_header_stdc=no
7335fi
7336rm -f conftest*
7337
7338fi
7339
7340if test $ac_cv_header_stdc = yes; then
7341  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7342  cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h.  */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h.  */
7348#include <stdlib.h>
7349
7350_ACEOF
7351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7352  $EGREP "free" >/dev/null 2>&1; then
7353  :
7354else
7355  ac_cv_header_stdc=no
7356fi
7357rm -f conftest*
7358
7359fi
7360
7361if test $ac_cv_header_stdc = yes; then
7362  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7363  if test "$cross_compiling" = yes; then
7364  :
7365else
7366  cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372#include <ctype.h>
7373#if ((' ' & 0x0FF) == 0x020)
7374# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7375# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7376#else
7377# define ISLOWER(c) \
7378                   (('a' <= (c) && (c) <= 'i') \
7379                     || ('j' <= (c) && (c) <= 'r') \
7380                     || ('s' <= (c) && (c) <= 'z'))
7381# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7382#endif
7383
7384#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7385int
7386main ()
7387{
7388  int i;
7389  for (i = 0; i < 256; i++)
7390    if (XOR (islower (i), ISLOWER (i))
7391        || toupper (i) != TOUPPER (i))
7392      exit(2);
7393  exit (0);
7394}
7395_ACEOF
7396rm -f conftest$ac_exeext
7397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398  (eval $ac_link) 2>&5
7399  ac_status=$?
7400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403  (eval $ac_try) 2>&5
7404  ac_status=$?
7405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); }; }; then
7407  :
7408else
7409  echo "$as_me: program exited with status $ac_status" >&5
7410echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413( exit $ac_status )
7414ac_cv_header_stdc=no
7415fi
7416rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7417fi
7418fi
7419fi
7420echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7421echo "${ECHO_T}$ac_cv_header_stdc" >&6
7422if test $ac_cv_header_stdc = yes; then
7423
7424cat >>confdefs.h <<\_ACEOF
7425#define STDC_HEADERS 1
7426_ACEOF
7427
7428fi
7429
7430
7431
7432for ac_header in stdlib.h string.h
7433do
7434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7435if eval "test \"\${$as_ac_Header+set}\" = set"; then
7436  echo "$as_me:$LINENO: checking for $ac_header" >&5
7437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7438if eval "test \"\${$as_ac_Header+set}\" = set"; then
7439  echo $ECHO_N "(cached) $ECHO_C" >&6
7440fi
7441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7443else
7444  # Is the header compilable?
7445echo "$as_me:$LINENO: checking $ac_header usability" >&5
7446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7447cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h.  */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h.  */
7453$ac_includes_default
7454#include <$ac_header>
7455_ACEOF
7456rm -f conftest.$ac_objext
7457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7458  (eval $ac_compile) 2>conftest.er1
7459  ac_status=$?
7460  grep -v '^ *+' conftest.er1 >conftest.err
7461  rm -f conftest.er1
7462  cat conftest.err >&5
7463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464  (exit $ac_status); } &&
7465         { ac_try='test -z "$ac_c_werror_flag"
7466                         || test ! -s conftest.err'
7467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468  (eval $ac_try) 2>&5
7469  ac_status=$?
7470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471  (exit $ac_status); }; } &&
7472         { ac_try='test -s conftest.$ac_objext'
7473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474  (eval $ac_try) 2>&5
7475  ac_status=$?
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); }; }; then
7478  ac_header_compiler=yes
7479else
7480  echo "$as_me: failed program was:" >&5
7481sed 's/^/| /' conftest.$ac_ext >&5
7482
7483ac_header_compiler=no
7484fi
7485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7487echo "${ECHO_T}$ac_header_compiler" >&6
7488
7489# Is the header present?
7490echo "$as_me:$LINENO: checking $ac_header presence" >&5
7491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7492cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498#include <$ac_header>
7499_ACEOF
7500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7502  ac_status=$?
7503  grep -v '^ *+' conftest.er1 >conftest.err
7504  rm -f conftest.er1
7505  cat conftest.err >&5
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); } >/dev/null; then
7508  if test -s conftest.err; then
7509    ac_cpp_err=$ac_c_preproc_warn_flag
7510    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7511  else
7512    ac_cpp_err=
7513  fi
7514else
7515  ac_cpp_err=yes
7516fi
7517if test -z "$ac_cpp_err"; then
7518  ac_header_preproc=yes
7519else
7520  echo "$as_me: failed program was:" >&5
7521sed 's/^/| /' conftest.$ac_ext >&5
7522
7523  ac_header_preproc=no
7524fi
7525rm -f conftest.err conftest.$ac_ext
7526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7527echo "${ECHO_T}$ac_header_preproc" >&6
7528
7529# So?  What about this header?
7530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7531  yes:no: )
7532    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7536    ac_header_preproc=yes
7537    ;;
7538  no:yes:* )
7539    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7541    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7542echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7543    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7545    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7546echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7547    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7549    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7551    (
7552      cat <<\_ASBOX
7553## ---------------------------------------------- ##
7554## Report this to orxonox-dev at mail.datacore.ch ##
7555## ---------------------------------------------- ##
7556_ASBOX
7557    ) |
7558      sed "s/^/$as_me: WARNING:     /" >&2
7559    ;;
7560esac
7561echo "$as_me:$LINENO: checking for $ac_header" >&5
7562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7563if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564  echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566  eval "$as_ac_Header=\$ac_header_preproc"
7567fi
7568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7570
7571fi
7572if test `eval echo '${'$as_ac_Header'}'` = yes; then
7573  cat >>confdefs.h <<_ACEOF
7574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7575_ACEOF
7576
7577fi
7578
7579done
7580
7581
7582# Checks for typedefs, structures, and compiler characteristics.
7583echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7584echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7585if test "${ac_cv_header_stdbool_h+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  cat >conftest.$ac_ext <<_ACEOF
7589/* confdefs.h.  */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h.  */
7594
7595#include <stdbool.h>
7596#ifndef bool
7597# error bool is not defined
7598#endif
7599#ifndef false
7600# error false is not defined
7601#endif
7602#if false
7603# error false is not 0
7604#endif
7605#ifndef true
7606# error true is not defined
7607#endif
7608#if true != 1
7609# error true is not 1
7610#endif
7611#ifndef __bool_true_false_are_defined
7612# error __bool_true_false_are_defined is not defined
7613#endif
7614
7615        struct s { _Bool s: 1; _Bool t; } s;
7616
7617        char a[true == 1 ? 1 : -1];
7618        char b[false == 0 ? 1 : -1];
7619        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7620        char d[(bool) -0.5 == true ? 1 : -1];
7621        bool e = &s;
7622        char f[(_Bool) -0.0 == false ? 1 : -1];
7623        char g[true];
7624        char h[sizeof (_Bool)];
7625        char i[sizeof s.t];
7626
7627int
7628main ()
7629{
7630 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7631  ;
7632  return 0;
7633}
7634_ACEOF
7635rm -f conftest.$ac_objext
7636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637  (eval $ac_compile) 2>conftest.er1
7638  ac_status=$?
7639  grep -v '^ *+' conftest.er1 >conftest.err
7640  rm -f conftest.er1
7641  cat conftest.err >&5
7642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); } &&
7644         { ac_try='test -z "$ac_c_werror_flag"
7645                         || test ! -s conftest.err'
7646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647  (eval $ac_try) 2>&5
7648  ac_status=$?
7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650  (exit $ac_status); }; } &&
7651         { ac_try='test -s conftest.$ac_objext'
7652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653  (eval $ac_try) 2>&5
7654  ac_status=$?
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); }; }; then
7657  ac_cv_header_stdbool_h=yes
7658else
7659  echo "$as_me: failed program was:" >&5
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
7662ac_cv_header_stdbool_h=no
7663fi
7664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7665fi
7666echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7667echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7668echo "$as_me:$LINENO: checking for _Bool" >&5
7669echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7670if test "${ac_cv_type__Bool+set}" = set; then
7671  echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673  cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h.  */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h.  */
7679$ac_includes_default
7680int
7681main ()
7682{
7683if ((_Bool *) 0)
7684  return 0;
7685if (sizeof (_Bool))
7686  return 0;
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
7692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693  (eval $ac_compile) 2>conftest.er1
7694  ac_status=$?
7695  grep -v '^ *+' conftest.er1 >conftest.err
7696  rm -f conftest.er1
7697  cat conftest.err >&5
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); } &&
7700         { ac_try='test -z "$ac_c_werror_flag"
7701                         || test ! -s conftest.err'
7702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703  (eval $ac_try) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; } &&
7707         { ac_try='test -s conftest.$ac_objext'
7708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709  (eval $ac_try) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); }; }; then
7713  ac_cv_type__Bool=yes
7714else
7715  echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718ac_cv_type__Bool=no
7719fi
7720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7721fi
7722echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7723echo "${ECHO_T}$ac_cv_type__Bool" >&6
7724if test $ac_cv_type__Bool = yes; then
7725
7726cat >>confdefs.h <<_ACEOF
7727#define HAVE__BOOL 1
7728_ACEOF
7729
7730
7731fi
7732
7733if test $ac_cv_header_stdbool_h = yes; then
7734
7735cat >>confdefs.h <<\_ACEOF
7736#define HAVE_STDBOOL_H 1
7737_ACEOF
7738
7739fi
7740
7741
7742# Checks for library functions.
7743
7744for ac_header in stdlib.h
7745do
7746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747if eval "test \"\${$as_ac_Header+set}\" = set"; then
7748  echo "$as_me:$LINENO: checking for $ac_header" >&5
7749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7750if eval "test \"\${$as_ac_Header+set}\" = set"; then
7751  echo $ECHO_N "(cached) $ECHO_C" >&6
7752fi
7753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7755else
7756  # Is the header compilable?
7757echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7759cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h.  */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h.  */
7765$ac_includes_default
7766#include <$ac_header>
7767_ACEOF
7768rm -f conftest.$ac_objext
7769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770  (eval $ac_compile) 2>conftest.er1
7771  ac_status=$?
7772  grep -v '^ *+' conftest.er1 >conftest.err
7773  rm -f conftest.er1
7774  cat conftest.err >&5
7775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776  (exit $ac_status); } &&
7777         { ac_try='test -z "$ac_c_werror_flag"
7778                         || test ! -s conftest.err'
7779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780  (eval $ac_try) 2>&5
7781  ac_status=$?
7782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783  (exit $ac_status); }; } &&
7784         { ac_try='test -s conftest.$ac_objext'
7785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786  (eval $ac_try) 2>&5
7787  ac_status=$?
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); }; }; then
7790  ac_header_compiler=yes
7791else
7792  echo "$as_me: failed program was:" >&5
7793sed 's/^/| /' conftest.$ac_ext >&5
7794
7795ac_header_compiler=no
7796fi
7797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7799echo "${ECHO_T}$ac_header_compiler" >&6
7800
7801# Is the header present?
7802echo "$as_me:$LINENO: checking $ac_header presence" >&5
7803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7804cat >conftest.$ac_ext <<_ACEOF
7805/* confdefs.h.  */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h.  */
7810#include <$ac_header>
7811_ACEOF
7812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7814  ac_status=$?
7815  grep -v '^ *+' conftest.er1 >conftest.err
7816  rm -f conftest.er1
7817  cat conftest.err >&5
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } >/dev/null; then
7820  if test -s conftest.err; then
7821    ac_cpp_err=$ac_c_preproc_warn_flag
7822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7823  else
7824    ac_cpp_err=
7825  fi
7826else
7827  ac_cpp_err=yes
7828fi
7829if test -z "$ac_cpp_err"; then
7830  ac_header_preproc=yes
7831else
7832  echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835  ac_header_preproc=no
7836fi
7837rm -f conftest.err conftest.$ac_ext
7838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7839echo "${ECHO_T}$ac_header_preproc" >&6
7840
7841# So?  What about this header?
7842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843  yes:no: )
7844    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7846    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7848    ac_header_preproc=yes
7849    ;;
7850  no:yes:* )
7851    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7854echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7855    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7857    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7858echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7861    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7863    (
7864      cat <<\_ASBOX
7865## ---------------------------------------------- ##
7866## Report this to orxonox-dev at mail.datacore.ch ##
7867## ---------------------------------------------- ##
7868_ASBOX
7869    ) |
7870      sed "s/^/$as_me: WARNING:     /" >&2
7871    ;;
7872esac
7873echo "$as_me:$LINENO: checking for $ac_header" >&5
7874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7875if eval "test \"\${$as_ac_Header+set}\" = set"; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  eval "$as_ac_Header=\$ac_header_preproc"
7879fi
7880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882
7883fi
7884if test `eval echo '${'$as_ac_Header'}'` = yes; then
7885  cat >>confdefs.h <<_ACEOF
7886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887_ACEOF
7888
7889fi
7890
7891done
7892
7893echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7894echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
7895if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7896  echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898  if test "$cross_compiling" = yes; then
7899  ac_cv_func_malloc_0_nonnull=no
7900else
7901  cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h.  */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h.  */
7907#if STDC_HEADERS || HAVE_STDLIB_H
7908# include <stdlib.h>
7909#else
7910char *malloc ();
7911#endif
7912
7913int
7914main ()
7915{
7916exit (malloc (0) ? 0 : 1);
7917  ;
7918  return 0;
7919}
7920_ACEOF
7921rm -f conftest$ac_exeext
7922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923  (eval $ac_link) 2>&5
7924  ac_status=$?
7925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928  (eval $ac_try) 2>&5
7929  ac_status=$?
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); }; }; then
7932  ac_cv_func_malloc_0_nonnull=yes
7933else
7934  echo "$as_me: program exited with status $ac_status" >&5
7935echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938( exit $ac_status )
7939ac_cv_func_malloc_0_nonnull=no
7940fi
7941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7942fi
7943fi
7944echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7945echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
7946if test $ac_cv_func_malloc_0_nonnull = yes; then
7947
7948cat >>confdefs.h <<\_ACEOF
7949#define HAVE_MALLOC 1
7950_ACEOF
7951
7952else
7953  cat >>confdefs.h <<\_ACEOF
7954#define HAVE_MALLOC 0
7955_ACEOF
7956
7957   case $LIBOBJS in
7958    "malloc.$ac_objext"   | \
7959  *" malloc.$ac_objext"   | \
7960    "malloc.$ac_objext "* | \
7961  *" malloc.$ac_objext "* ) ;;
7962  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
7963esac
7964
7965
7966cat >>confdefs.h <<\_ACEOF
7967#define malloc rpl_malloc
7968_ACEOF
7969
7970fi
7971
7972
7973
7974
7975
7976for ac_func in bzero sqrt
7977do
7978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7979echo "$as_me:$LINENO: checking for $ac_func" >&5
7980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7981if eval "test \"\${$as_ac_var+set}\" = set"; then
7982  echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984  cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h.  */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h.  */
7990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7991   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7992#define $ac_func innocuous_$ac_func
7993
7994/* System header to define __stub macros and hopefully few prototypes,
7995    which can conflict with char $ac_func (); below.
7996    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997    <limits.h> exists even on freestanding compilers.  */
7998
7999#ifdef __STDC__
8000# include <limits.h>
8001#else
8002# include <assert.h>
8003#endif
8004
8005#undef $ac_func
8006
8007/* Override any gcc2 internal prototype to avoid an error.  */
8008#ifdef __cplusplus
8009extern "C"
8010{
8011#endif
8012/* We use char because int might match the return type of a gcc2
8013   builtin and then its argument prototype would still apply.  */
8014char $ac_func ();
8015/* The GNU C library defines this for functions which it implements
8016    to always fail with ENOSYS.  Some functions are actually named
8017    something starting with __ and the normal name is an alias.  */
8018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8019choke me
8020#else
8021char (*f) () = $ac_func;
8022#endif
8023#ifdef __cplusplus
8024}
8025#endif
8026
8027int
8028main ()
8029{
8030return f != $ac_func;
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037  (eval $ac_link) 2>conftest.er1
8038  ac_status=$?
8039  grep -v '^ *+' conftest.er1 >conftest.err
8040  rm -f conftest.er1
8041  cat conftest.err >&5
8042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043  (exit $ac_status); } &&
8044         { ac_try='test -z "$ac_c_werror_flag"
8045                         || test ! -s conftest.err'
8046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047  (eval $ac_try) 2>&5
8048  ac_status=$?
8049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050  (exit $ac_status); }; } &&
8051         { ac_try='test -s conftest$ac_exeext'
8052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053  (eval $ac_try) 2>&5
8054  ac_status=$?
8055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056  (exit $ac_status); }; }; then
8057  eval "$as_ac_var=yes"
8058else
8059  echo "$as_me: failed program was:" >&5
8060sed 's/^/| /' conftest.$ac_ext >&5
8061
8062eval "$as_ac_var=no"
8063fi
8064rm -f conftest.err conftest.$ac_objext \
8065      conftest$ac_exeext conftest.$ac_ext
8066fi
8067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8069if test `eval echo '${'$as_ac_var'}'` = yes; then
8070  cat >>confdefs.h <<_ACEOF
8071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8072_ACEOF
8073
8074fi
8075done
8076
8077
8078                                                  ac_config_files="$ac_config_files Makefile src/console/Makefile src/gui/Makefile src/Makefile src/importer/Makefile"
8079
8080cat >confcache <<\_ACEOF
8081# This file is a shell script that caches the results of configure
8082# tests run on this system so they can be shared between configure
8083# scripts and configure runs, see configure's option --config-cache.
8084# It is not useful on other systems.  If it contains results you don't
8085# want to keep, you may remove or edit it.
8086#
8087# config.status only pays attention to the cache file if you give it
8088# the --recheck option to rerun configure.
8089#
8090# `ac_cv_env_foo' variables (set or unset) will be overridden when
8091# loading this file, other *unset* `ac_cv_foo' will be assigned the
8092# following values.
8093
8094_ACEOF
8095
8096# The following way of writing the cache mishandles newlines in values,
8097# but we know of no workaround that is simple, portable, and efficient.
8098# So, don't put newlines in cache variables' values.
8099# Ultrix sh set writes to stderr and can't be redirected directly,
8100# and sets the high bit in the cache file unless we assign to the vars.
8101{
8102  (set) 2>&1 |
8103    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8104    *ac_space=\ *)
8105      # `set' does not quote correctly, so add quotes (double-quote
8106      # substitution turns \\\\ into \\, and sed turns \\ into \).
8107      sed -n \
8108        "s/'/'\\\\''/g;
8109          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8110      ;;
8111    *)
8112      # `set' quotes correctly as required by POSIX, so do not add quotes.
8113      sed -n \
8114        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8115      ;;
8116    esac;
8117} |
8118  sed '
8119     t clear
8120     : clear
8121     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8122     t end
8123     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8124     : end' >>confcache
8125if diff $cache_file confcache >/dev/null 2>&1; then :; else
8126  if test -w $cache_file; then
8127    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8128    cat confcache >$cache_file
8129  else
8130    echo "not updating unwritable cache $cache_file"
8131  fi
8132fi
8133rm -f confcache
8134
8135test "x$prefix" = xNONE && prefix=$ac_default_prefix
8136# Let make expand exec_prefix.
8137test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8138
8139# VPATH may cause trouble with some makes, so we remove $(srcdir),
8140# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8141# trailing colons and then remove the whole line if VPATH becomes empty
8142# (actually we leave an empty line to preserve line numbers).
8143if test "x$srcdir" = x.; then
8144  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8145s/:*\$(srcdir):*/:/;
8146s/:*\${srcdir}:*/:/;
8147s/:*@srcdir@:*/:/;
8148s/^\([^=]*=[     ]*\):*/\1/;
8149s/:*$//;
8150s/^[^=]*=[       ]*$//;
8151}'
8152fi
8153
8154DEFS=-DHAVE_CONFIG_H
8155
8156ac_libobjs=
8157ac_ltlibobjs=
8158for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8159  # 1. Remove the extension, and $U if already installed.
8160  ac_i=`echo "$ac_i" |
8161         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8162  # 2. Add them.
8163  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8164  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8165done
8166LIBOBJS=$ac_libobjs
8167
8168LTLIBOBJS=$ac_ltlibobjs
8169
8170
8171if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8172  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8173Usually this means the macro was only invoked conditionally." >&5
8174echo "$as_me: error: conditional \"AMDEP\" was never defined.
8175Usually this means the macro was only invoked conditionally." >&2;}
8176   { (exit 1); exit 1; }; }
8177fi
8178if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8179  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8180Usually this means the macro was only invoked conditionally." >&5
8181echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8182Usually this means the macro was only invoked conditionally." >&2;}
8183   { (exit 1); exit 1; }; }
8184fi
8185if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8186  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8187Usually this means the macro was only invoked conditionally." >&5
8188echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8189Usually this means the macro was only invoked conditionally." >&2;}
8190   { (exit 1); exit 1; }; }
8191fi
8192if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8193  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8194Usually this means the macro was only invoked conditionally." >&5
8195echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8196Usually this means the macro was only invoked conditionally." >&2;}
8197   { (exit 1); exit 1; }; }
8198fi
8199if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8200  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8201Usually this means the macro was only invoked conditionally." >&5
8202echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8203Usually this means the macro was only invoked conditionally." >&2;}
8204   { (exit 1); exit 1; }; }
8205fi
8206if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8207  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8208Usually this means the macro was only invoked conditionally." >&5
8209echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8210Usually this means the macro was only invoked conditionally." >&2;}
8211   { (exit 1); exit 1; }; }
8212fi
8213if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8214  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8215Usually this means the macro was only invoked conditionally." >&5
8216echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8217Usually this means the macro was only invoked conditionally." >&2;}
8218   { (exit 1); exit 1; }; }
8219fi
8220
8221: ${CONFIG_STATUS=./config.status}
8222ac_clean_files_save=$ac_clean_files
8223ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8224{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8225echo "$as_me: creating $CONFIG_STATUS" >&6;}
8226cat >$CONFIG_STATUS <<_ACEOF
8227#! $SHELL
8228# Generated by $as_me.
8229# Run this file to recreate the current configuration.
8230# Compiler output produced by configure, useful for debugging
8231# configure, is in config.log if it exists.
8232
8233debug=false
8234ac_cs_recheck=false
8235ac_cs_silent=false
8236SHELL=\${CONFIG_SHELL-$SHELL}
8237_ACEOF
8238
8239cat >>$CONFIG_STATUS <<\_ACEOF
8240## --------------------- ##
8241## M4sh Initialization.  ##
8242## --------------------- ##
8243
8244# Be Bourne compatible
8245if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8246  emulate sh
8247  NULLCMD=:
8248  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8249  # is contrary to our usage.  Disable this feature.
8250  alias -g '${1+"$@"}'='"$@"'
8251elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8252  set -o posix
8253fi
8254DUALCASE=1; export DUALCASE # for MKS sh
8255
8256# Support unset when possible.
8257if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8258  as_unset=unset
8259else
8260  as_unset=false
8261fi
8262
8263
8264# Work around bugs in pre-3.0 UWIN ksh.
8265$as_unset ENV MAIL MAILPATH
8266PS1='$ '
8267PS2='> '
8268PS4='+ '
8269
8270# NLS nuisances.
8271for as_var in \
8272  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8273  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8274  LC_TELEPHONE LC_TIME
8275do
8276  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8277    eval $as_var=C; export $as_var
8278  else
8279    $as_unset $as_var
8280  fi
8281done
8282
8283# Required to use basename.
8284if expr a : '\(a\)' >/dev/null 2>&1; then
8285  as_expr=expr
8286else
8287  as_expr=false
8288fi
8289
8290if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8291  as_basename=basename
8292else
8293  as_basename=false
8294fi
8295
8296
8297# Name of the executable.
8298as_me=`$as_basename "$0" ||
8299$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8300         X"$0" : 'X\(//\)$' \| \
8301         X"$0" : 'X\(/\)$' \| \
8302         .     : '\(.\)' 2>/dev/null ||
8303echo X/"$0" |
8304    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8305          /^X\/\(\/\/\)$/{ s//\1/; q; }
8306          /^X\/\(\/\).*/{ s//\1/; q; }
8307          s/.*/./; q'`
8308
8309
8310# PATH needs CR, and LINENO needs CR and PATH.
8311# Avoid depending upon Character Ranges.
8312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8315as_cr_digits='0123456789'
8316as_cr_alnum=$as_cr_Letters$as_cr_digits
8317
8318# The user is always right.
8319if test "${PATH_SEPARATOR+set}" != set; then
8320  echo "#! /bin/sh" >conf$$.sh
8321  echo  "exit 0"   >>conf$$.sh
8322  chmod +x conf$$.sh
8323  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8324    PATH_SEPARATOR=';'
8325  else
8326    PATH_SEPARATOR=:
8327  fi
8328  rm -f conf$$.sh
8329fi
8330
8331
8332  as_lineno_1=$LINENO
8333  as_lineno_2=$LINENO
8334  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8335  test "x$as_lineno_1" != "x$as_lineno_2" &&
8336  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8337  # Find who we are.  Look in the path if we contain no path at all
8338  # relative or not.
8339  case $0 in
8340    *[\\/]* ) as_myself=$0 ;;
8341    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8347done
8348
8349       ;;
8350  esac
8351  # We did not find ourselves, most probably we were run as `sh COMMAND'
8352  # in which case we are not to be found in the path.
8353  if test "x$as_myself" = x; then
8354    as_myself=$0
8355  fi
8356  if test ! -f "$as_myself"; then
8357    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8358echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8359   { (exit 1); exit 1; }; }
8360  fi
8361  case $CONFIG_SHELL in
8362  '')
8363    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8365do
8366  IFS=$as_save_IFS
8367  test -z "$as_dir" && as_dir=.
8368  for as_base in sh bash ksh sh5; do
8369         case $as_dir in
8370         /*)
8371           if ("$as_dir/$as_base" -c '
8372  as_lineno_1=$LINENO
8373  as_lineno_2=$LINENO
8374  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8375  test "x$as_lineno_1" != "x$as_lineno_2" &&
8376  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8377             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8378             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8379             CONFIG_SHELL=$as_dir/$as_base
8380             export CONFIG_SHELL
8381             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8382           fi;;
8383         esac
8384       done
8385done
8386;;
8387  esac
8388
8389  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8390  # uniformly replaced by the line number.  The first 'sed' inserts a
8391  # line-number line before each line; the second 'sed' does the real
8392  # work.  The second script uses 'N' to pair each line-number line
8393  # with the numbered line, and appends trailing '-' during
8394  # substitution so that $LINENO is not a special case at line end.
8395  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8396  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8397  sed '=' <$as_myself |
8398    sed '
8399      N
8400      s,$,-,
8401      : loop
8402      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8403      t loop
8404      s,-$,,
8405      s,^['$as_cr_digits']*\n,,
8406    ' >$as_me.lineno &&
8407  chmod +x $as_me.lineno ||
8408    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8409echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8410   { (exit 1); exit 1; }; }
8411
8412  # Don't try to exec as it changes $[0], causing all sort of problems
8413  # (the dirname of $[0] is not the place where we might find the
8414  # original and so on.  Autoconf is especially sensible to this).
8415  . ./$as_me.lineno
8416  # Exit status is that of the last command.
8417  exit
8418}
8419
8420
8421case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8422  *c*,-n*) ECHO_N= ECHO_C='
8423' ECHO_T='      ' ;;
8424  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8425  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8426esac
8427
8428if expr a : '\(a\)' >/dev/null 2>&1; then
8429  as_expr=expr
8430else
8431  as_expr=false
8432fi
8433
8434rm -f conf$$ conf$$.exe conf$$.file
8435echo >conf$$.file
8436if ln -s conf$$.file conf$$ 2>/dev/null; then
8437  # We could just check for DJGPP; but this test a) works b) is more generic
8438  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8439  if test -f conf$$.exe; then
8440    # Don't use ln at all; we don't have any links
8441    as_ln_s='cp -p'
8442  else
8443    as_ln_s='ln -s'
8444  fi
8445elif ln conf$$.file conf$$ 2>/dev/null; then
8446  as_ln_s=ln
8447else
8448  as_ln_s='cp -p'
8449fi
8450rm -f conf$$ conf$$.exe conf$$.file
8451
8452if mkdir -p . 2>/dev/null; then
8453  as_mkdir_p=:
8454else
8455  test -d ./-p && rmdir ./-p
8456  as_mkdir_p=false
8457fi
8458
8459as_executable_p="test -f"
8460
8461# Sed expression to map a string onto a valid CPP name.
8462as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8463
8464# Sed expression to map a string onto a valid variable name.
8465as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8466
8467
8468# IFS
8469# We need space, tab and new line, in precisely that order.
8470as_nl='
8471'
8472IFS="   $as_nl"
8473
8474# CDPATH.
8475$as_unset CDPATH
8476
8477exec 6>&1
8478
8479# Open the log real soon, to keep \$[0] and so on meaningful, and to
8480# report actual input values of CONFIG_FILES etc. instead of their
8481# values after options handling.  Logging --version etc. is OK.
8482exec 5>>config.log
8483{
8484  echo
8485  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8486## Running $as_me. ##
8487_ASBOX
8488} >&5
8489cat >&5 <<_CSEOF
8490
8491This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
8492generated by GNU Autoconf 2.59.  Invocation command line was
8493
8494  CONFIG_FILES    = $CONFIG_FILES
8495  CONFIG_HEADERS  = $CONFIG_HEADERS
8496  CONFIG_LINKS    = $CONFIG_LINKS
8497  CONFIG_COMMANDS = $CONFIG_COMMANDS
8498  $ $0 $@
8499
8500_CSEOF
8501echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8502echo >&5
8503_ACEOF
8504
8505# Files that config.status was made for.
8506if test -n "$ac_config_files"; then
8507  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8508fi
8509
8510if test -n "$ac_config_headers"; then
8511  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8512fi
8513
8514if test -n "$ac_config_links"; then
8515  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8516fi
8517
8518if test -n "$ac_config_commands"; then
8519  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8520fi
8521
8522cat >>$CONFIG_STATUS <<\_ACEOF
8523
8524ac_cs_usage="\
8525\`$as_me' instantiates files from templates according to the
8526current configuration.
8527
8528Usage: $0 [OPTIONS] [FILE]...
8529
8530  -h, --help       print this help, then exit
8531  -V, --version    print version number, then exit
8532  -q, --quiet      do not print progress messages
8533  -d, --debug      don't remove temporary files
8534      --recheck    update $as_me by reconfiguring in the same conditions
8535  --file=FILE[:TEMPLATE]
8536                   instantiate the configuration file FILE
8537  --header=FILE[:TEMPLATE]
8538                   instantiate the configuration header FILE
8539
8540Configuration files:
8541$config_files
8542
8543Configuration headers:
8544$config_headers
8545
8546Configuration commands:
8547$config_commands
8548
8549Report bugs to <bug-autoconf@gnu.org>."
8550_ACEOF
8551
8552cat >>$CONFIG_STATUS <<_ACEOF
8553ac_cs_version="\\
8554orxonox config.status 0.2.1-pre-alpha
8555configured by $0, generated by GNU Autoconf 2.59,
8556  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8557
8558Copyright (C) 2003 Free Software Foundation, Inc.
8559This config.status script is free software; the Free Software Foundation
8560gives unlimited permission to copy, distribute and modify it."
8561srcdir=$srcdir
8562INSTALL="$INSTALL"
8563_ACEOF
8564
8565cat >>$CONFIG_STATUS <<\_ACEOF
8566# If no file are specified by the user, then we need to provide default
8567# value.  By we need to know if files were specified by the user.
8568ac_need_defaults=:
8569while test $# != 0
8570do
8571  case $1 in
8572  --*=*)
8573    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8574    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8575    ac_shift=:
8576    ;;
8577  -*)
8578    ac_option=$1
8579    ac_optarg=$2
8580    ac_shift=shift
8581    ;;
8582  *) # This is not an option, so the user has probably given explicit
8583     # arguments.
8584     ac_option=$1
8585     ac_need_defaults=false;;
8586  esac
8587
8588  case $ac_option in
8589  # Handling of the options.
8590_ACEOF
8591cat >>$CONFIG_STATUS <<\_ACEOF
8592  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8593    ac_cs_recheck=: ;;
8594  --version | --vers* | -V )
8595    echo "$ac_cs_version"; exit 0 ;;
8596  --he | --h)
8597    # Conflict between --help and --header
8598    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8599Try \`$0 --help' for more information." >&5
8600echo "$as_me: error: ambiguous option: $1
8601Try \`$0 --help' for more information." >&2;}
8602   { (exit 1); exit 1; }; };;
8603  --help | --hel | -h )
8604    echo "$ac_cs_usage"; exit 0 ;;
8605  --debug | --d* | -d )
8606    debug=: ;;
8607  --file | --fil | --fi | --f )
8608    $ac_shift
8609    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8610    ac_need_defaults=false;;
8611  --header | --heade | --head | --hea )
8612    $ac_shift
8613    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8614    ac_need_defaults=false;;
8615  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8616  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8617    ac_cs_silent=: ;;
8618
8619  # This is an error.
8620  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8621Try \`$0 --help' for more information." >&5
8622echo "$as_me: error: unrecognized option: $1
8623Try \`$0 --help' for more information." >&2;}
8624   { (exit 1); exit 1; }; } ;;
8625
8626  *) ac_config_targets="$ac_config_targets $1" ;;
8627
8628  esac
8629  shift
8630done
8631
8632ac_configure_extra_args=
8633
8634if $ac_cs_silent; then
8635  exec 6>/dev/null
8636  ac_configure_extra_args="$ac_configure_extra_args --silent"
8637fi
8638
8639_ACEOF
8640cat >>$CONFIG_STATUS <<_ACEOF
8641if \$ac_cs_recheck; then
8642  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8643  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8644fi
8645
8646_ACEOF
8647
8648cat >>$CONFIG_STATUS <<_ACEOF
8649#
8650# INIT-COMMANDS section.
8651#
8652
8653AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8654
8655_ACEOF
8656
8657
8658
8659cat >>$CONFIG_STATUS <<\_ACEOF
8660for ac_config_target in $ac_config_targets
8661do
8662  case "$ac_config_target" in
8663  # Handling of arguments.
8664  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8665  "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
8666  "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
8667  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8668  "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;;
8669  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8670  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8671  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8672echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8673   { (exit 1); exit 1; }; };;
8674  esac
8675done
8676
8677# If the user did not use the arguments to specify the items to instantiate,
8678# then the envvar interface is used.  Set only those that are not.
8679# We use the long form for the default assignment because of an extremely
8680# bizarre bug on SunOS 4.1.3.
8681if $ac_need_defaults; then
8682  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8683  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8684  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8685fi
8686
8687# Have a temporary directory for convenience.  Make it in the build tree
8688# simply because there is no reason to put it here, and in addition,
8689# creating and moving files from /tmp can sometimes cause problems.
8690# Create a temporary directory, and hook for its removal unless debugging.
8691$debug ||
8692{
8693  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8694  trap '{ (exit 1); exit 1; }' 1 2 13 15
8695}
8696
8697# Create a (secure) tmp directory for tmp files.
8698
8699{
8700  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8701  test -n "$tmp" && test -d "$tmp"
8702}  ||
8703{
8704  tmp=./confstat$$-$RANDOM
8705  (umask 077 && mkdir $tmp)
8706} ||
8707{
8708   echo "$me: cannot create a temporary directory in ." >&2
8709   { (exit 1); exit 1; }
8710}
8711
8712_ACEOF
8713
8714cat >>$CONFIG_STATUS <<_ACEOF
8715
8716#
8717# CONFIG_FILES section.
8718#
8719
8720# No need to generate the scripts if there are no CONFIG_FILES.
8721# This happens for instance when ./config.status config.h
8722if test -n "\$CONFIG_FILES"; then
8723  # Protect against being on the right side of a sed subst in config.status.
8724  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8725   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8726s,@SHELL@,$SHELL,;t t
8727s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8728s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8729s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8730s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8731s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8732s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8733s,@exec_prefix@,$exec_prefix,;t t
8734s,@prefix@,$prefix,;t t
8735s,@program_transform_name@,$program_transform_name,;t t
8736s,@bindir@,$bindir,;t t
8737s,@sbindir@,$sbindir,;t t
8738s,@libexecdir@,$libexecdir,;t t
8739s,@datadir@,$datadir,;t t
8740s,@sysconfdir@,$sysconfdir,;t t
8741s,@sharedstatedir@,$sharedstatedir,;t t
8742s,@localstatedir@,$localstatedir,;t t
8743s,@libdir@,$libdir,;t t
8744s,@includedir@,$includedir,;t t
8745s,@oldincludedir@,$oldincludedir,;t t
8746s,@infodir@,$infodir,;t t
8747s,@mandir@,$mandir,;t t
8748s,@build_alias@,$build_alias,;t t
8749s,@host_alias@,$host_alias,;t t
8750s,@target_alias@,$target_alias,;t t
8751s,@DEFS@,$DEFS,;t t
8752s,@ECHO_C@,$ECHO_C,;t t
8753s,@ECHO_N@,$ECHO_N,;t t
8754s,@ECHO_T@,$ECHO_T,;t t
8755s,@LIBS@,$LIBS,;t t
8756s,@build@,$build,;t t
8757s,@build_cpu@,$build_cpu,;t t
8758s,@build_vendor@,$build_vendor,;t t
8759s,@build_os@,$build_os,;t t
8760s,@host@,$host,;t t
8761s,@host_cpu@,$host_cpu,;t t
8762s,@host_vendor@,$host_vendor,;t t
8763s,@host_os@,$host_os,;t t
8764s,@target@,$target,;t t
8765s,@target_cpu@,$target_cpu,;t t
8766s,@target_vendor@,$target_vendor,;t t
8767s,@target_os@,$target_os,;t t
8768s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8769s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8770s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8771s,@CYGPATH_W@,$CYGPATH_W,;t t
8772s,@PACKAGE@,$PACKAGE,;t t
8773s,@VERSION@,$VERSION,;t t
8774s,@ACLOCAL@,$ACLOCAL,;t t
8775s,@AUTOCONF@,$AUTOCONF,;t t
8776s,@AUTOMAKE@,$AUTOMAKE,;t t
8777s,@AUTOHEADER@,$AUTOHEADER,;t t
8778s,@MAKEINFO@,$MAKEINFO,;t t
8779s,@AMTAR@,$AMTAR,;t t
8780s,@install_sh@,$install_sh,;t t
8781s,@STRIP@,$STRIP,;t t
8782s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8783s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8784s,@mkdir_p@,$mkdir_p,;t t
8785s,@AWK@,$AWK,;t t
8786s,@SET_MAKE@,$SET_MAKE,;t t
8787s,@am__leading_dot@,$am__leading_dot,;t t
8788s,@CXX@,$CXX,;t t
8789s,@CXXFLAGS@,$CXXFLAGS,;t t
8790s,@LDFLAGS@,$LDFLAGS,;t t
8791s,@CPPFLAGS@,$CPPFLAGS,;t t
8792s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8793s,@EXEEXT@,$EXEEXT,;t t
8794s,@OBJEXT@,$OBJEXT,;t t
8795s,@DEPDIR@,$DEPDIR,;t t
8796s,@am__include@,$am__include,;t t
8797s,@am__quote@,$am__quote,;t t
8798s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8799s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8800s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8801s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8802s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8803s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8804s,@CC@,$CC,;t t
8805s,@CFLAGS@,$CFLAGS,;t t
8806s,@ac_ct_CC@,$ac_ct_CC,;t t
8807s,@CCDEPMODE@,$CCDEPMODE,;t t
8808s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8809s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8810s,@CPP@,$CPP,;t t
8811s,@EGREP@,$EGREP,;t t
8812s,@DEBUG@,$DEBUG,;t t
8813s,@DOXYGEN@,$DOXYGEN,;t t
8814s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8815s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8816s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8817s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8818s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8819s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8820s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8821s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
8822s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
8823s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
8824s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
8825s,@CURL_LIBS@,$CURL_LIBS,;t t
8826s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
8827s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
8828s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
8829s,@LIBOBJS@,$LIBOBJS,;t t
8830s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8831CEOF
8832
8833_ACEOF
8834
8835  cat >>$CONFIG_STATUS <<\_ACEOF
8836  # Split the substitutions into bite-sized pieces for seds with
8837  # small command number limits, like on Digital OSF/1 and HP-UX.
8838  ac_max_sed_lines=48
8839  ac_sed_frag=1 # Number of current file.
8840  ac_beg=1 # First line for current file.
8841  ac_end=$ac_max_sed_lines # Line after last line for current file.
8842  ac_more_lines=:
8843  ac_sed_cmds=
8844  while $ac_more_lines; do
8845    if test $ac_beg -gt 1; then
8846      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8847    else
8848      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8849    fi
8850    if test ! -s $tmp/subs.frag; then
8851      ac_more_lines=false
8852    else
8853      # The purpose of the label and of the branching condition is to
8854      # speed up the sed processing (if there are no `@' at all, there
8855      # is no need to browse any of the substitutions).
8856      # These are the two extra sed commands mentioned above.
8857      (echo ':t
8858  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8859      if test -z "$ac_sed_cmds"; then
8860        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8861      else
8862        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8863      fi
8864      ac_sed_frag=`expr $ac_sed_frag + 1`
8865      ac_beg=$ac_end
8866      ac_end=`expr $ac_end + $ac_max_sed_lines`
8867    fi
8868  done
8869  if test -z "$ac_sed_cmds"; then
8870    ac_sed_cmds=cat
8871  fi
8872fi # test -n "$CONFIG_FILES"
8873
8874_ACEOF
8875cat >>$CONFIG_STATUS <<\_ACEOF
8876for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8877  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8878  case $ac_file in
8879  - | *:- | *:-:* ) # input from stdin
8880        cat >$tmp/stdin
8881        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8882        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8883  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8884        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8885  * )   ac_file_in=$ac_file.in ;;
8886  esac
8887
8888  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8889  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8890$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8891         X"$ac_file" : 'X\(//\)[^/]' \| \
8892         X"$ac_file" : 'X\(//\)$' \| \
8893         X"$ac_file" : 'X\(/\)' \| \
8894         .     : '\(.\)' 2>/dev/null ||
8895echo X"$ac_file" |
8896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8897          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8898          /^X\(\/\/\)$/{ s//\1/; q; }
8899          /^X\(\/\).*/{ s//\1/; q; }
8900          s/.*/./; q'`
8901  { if $as_mkdir_p; then
8902    mkdir -p "$ac_dir"
8903  else
8904    as_dir="$ac_dir"
8905    as_dirs=
8906    while test ! -d "$as_dir"; do
8907      as_dirs="$as_dir $as_dirs"
8908      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8909$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8910         X"$as_dir" : 'X\(//\)[^/]' \| \
8911         X"$as_dir" : 'X\(//\)$' \| \
8912         X"$as_dir" : 'X\(/\)' \| \
8913         .     : '\(.\)' 2>/dev/null ||
8914echo X"$as_dir" |
8915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8916          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8917          /^X\(\/\/\)$/{ s//\1/; q; }
8918          /^X\(\/\).*/{ s//\1/; q; }
8919          s/.*/./; q'`
8920    done
8921    test ! -n "$as_dirs" || mkdir $as_dirs
8922  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8923echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8924   { (exit 1); exit 1; }; }; }
8925
8926  ac_builddir=.
8927
8928if test "$ac_dir" != .; then
8929  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8930  # A "../" for each directory in $ac_dir_suffix.
8931  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8932else
8933  ac_dir_suffix= ac_top_builddir=
8934fi
8935
8936case $srcdir in
8937  .)  # No --srcdir option.  We are building in place.
8938    ac_srcdir=.
8939    if test -z "$ac_top_builddir"; then
8940       ac_top_srcdir=.
8941    else
8942       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8943    fi ;;
8944  [\\/]* | ?:[\\/]* )  # Absolute path.
8945    ac_srcdir=$srcdir$ac_dir_suffix;
8946    ac_top_srcdir=$srcdir ;;
8947  *) # Relative path.
8948    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8949    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8950esac
8951
8952# Do not use `cd foo && pwd` to compute absolute paths, because
8953# the directories may not exist.
8954case `pwd` in
8955.) ac_abs_builddir="$ac_dir";;
8956*)
8957  case "$ac_dir" in
8958  .) ac_abs_builddir=`pwd`;;
8959  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8960  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8961  esac;;
8962esac
8963case $ac_abs_builddir in
8964.) ac_abs_top_builddir=${ac_top_builddir}.;;
8965*)
8966  case ${ac_top_builddir}. in
8967  .) ac_abs_top_builddir=$ac_abs_builddir;;
8968  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8969  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8970  esac;;
8971esac
8972case $ac_abs_builddir in
8973.) ac_abs_srcdir=$ac_srcdir;;
8974*)
8975  case $ac_srcdir in
8976  .) ac_abs_srcdir=$ac_abs_builddir;;
8977  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8978  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8979  esac;;
8980esac
8981case $ac_abs_builddir in
8982.) ac_abs_top_srcdir=$ac_top_srcdir;;
8983*)
8984  case $ac_top_srcdir in
8985  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8986  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8987  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8988  esac;;
8989esac
8990
8991
8992  case $INSTALL in
8993  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8994  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8995  esac
8996
8997  if test x"$ac_file" != x-; then
8998    { echo "$as_me:$LINENO: creating $ac_file" >&5
8999echo "$as_me: creating $ac_file" >&6;}
9000    rm -f "$ac_file"
9001  fi
9002  # Let's still pretend it is `configure' which instantiates (i.e., don't
9003  # use $as_me), people would be surprised to read:
9004  #    /* config.h.  Generated by config.status.  */
9005  if test x"$ac_file" = x-; then
9006    configure_input=
9007  else
9008    configure_input="$ac_file.  "
9009  fi
9010  configure_input=$configure_input"Generated from `echo $ac_file_in |
9011                                     sed 's,.*/,,'` by configure."
9012
9013  # First look for the input files in the build tree, otherwise in the
9014  # src tree.
9015  ac_file_inputs=`IFS=:
9016    for f in $ac_file_in; do
9017      case $f in
9018      -) echo $tmp/stdin ;;
9019      [\\/$]*)
9020         # Absolute (can't be DOS-style, as IFS=:)
9021         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9022echo "$as_me: error: cannot find input file: $f" >&2;}
9023   { (exit 1); exit 1; }; }
9024         echo "$f";;
9025      *) # Relative
9026         if test -f "$f"; then
9027           # Build tree
9028           echo "$f"
9029         elif test -f "$srcdir/$f"; then
9030           # Source tree
9031           echo "$srcdir/$f"
9032         else
9033           # /dev/null tree
9034           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9035echo "$as_me: error: cannot find input file: $f" >&2;}
9036   { (exit 1); exit 1; }; }
9037         fi;;
9038      esac
9039    done` || { (exit 1); exit 1; }
9040_ACEOF
9041cat >>$CONFIG_STATUS <<_ACEOF
9042  sed "$ac_vpsub
9043$extrasub
9044_ACEOF
9045cat >>$CONFIG_STATUS <<\_ACEOF
9046:t
9047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9048s,@configure_input@,$configure_input,;t t
9049s,@srcdir@,$ac_srcdir,;t t
9050s,@abs_srcdir@,$ac_abs_srcdir,;t t
9051s,@top_srcdir@,$ac_top_srcdir,;t t
9052s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9053s,@builddir@,$ac_builddir,;t t
9054s,@abs_builddir@,$ac_abs_builddir,;t t
9055s,@top_builddir@,$ac_top_builddir,;t t
9056s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9057s,@INSTALL@,$ac_INSTALL,;t t
9058" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9059  rm -f $tmp/stdin
9060  if test x"$ac_file" != x-; then
9061    mv $tmp/out $ac_file
9062  else
9063    cat $tmp/out
9064    rm -f $tmp/out
9065  fi
9066
9067done
9068_ACEOF
9069cat >>$CONFIG_STATUS <<\_ACEOF
9070
9071#
9072# CONFIG_HEADER section.
9073#
9074
9075# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9076# NAME is the cpp macro being defined and VALUE is the value it is being given.
9077#
9078# ac_d sets the value in "#define NAME VALUE" lines.
9079ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9080ac_dB='[         ].*$,\1#\2'
9081ac_dC=' '
9082ac_dD=',;t'
9083# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9084ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9085ac_uB='$,\1#\2define\3'
9086ac_uC=' '
9087ac_uD=',;t'
9088
9089for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9090  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9091  case $ac_file in
9092  - | *:- | *:-:* ) # input from stdin
9093        cat >$tmp/stdin
9094        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9095        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9096  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9097        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9098  * )   ac_file_in=$ac_file.in ;;
9099  esac
9100
9101  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9102echo "$as_me: creating $ac_file" >&6;}
9103
9104  # First look for the input files in the build tree, otherwise in the
9105  # src tree.
9106  ac_file_inputs=`IFS=:
9107    for f in $ac_file_in; do
9108      case $f in
9109      -) echo $tmp/stdin ;;
9110      [\\/$]*)
9111         # Absolute (can't be DOS-style, as IFS=:)
9112         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9113echo "$as_me: error: cannot find input file: $f" >&2;}
9114   { (exit 1); exit 1; }; }
9115         # Do quote $f, to prevent DOS paths from being IFS'd.
9116         echo "$f";;
9117      *) # Relative
9118         if test -f "$f"; then
9119           # Build tree
9120           echo "$f"
9121         elif test -f "$srcdir/$f"; then
9122           # Source tree
9123           echo "$srcdir/$f"
9124         else
9125           # /dev/null tree
9126           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9127echo "$as_me: error: cannot find input file: $f" >&2;}
9128   { (exit 1); exit 1; }; }
9129         fi;;
9130      esac
9131    done` || { (exit 1); exit 1; }
9132  # Remove the trailing spaces.
9133  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9134
9135_ACEOF
9136
9137# Transform confdefs.h into two sed scripts, `conftest.defines' and
9138# `conftest.undefs', that substitutes the proper values into
9139# config.h.in to produce config.h.  The first handles `#define'
9140# templates, and the second `#undef' templates.
9141# And first: Protect against being on the right side of a sed subst in
9142# config.status.  Protect against being in an unquoted here document
9143# in config.status.
9144rm -f conftest.defines conftest.undefs
9145# Using a here document instead of a string reduces the quoting nightmare.
9146# Putting comments in sed scripts is not portable.
9147#
9148# `end' is used to avoid that the second main sed command (meant for
9149# 0-ary CPP macros) applies to n-ary macro definitions.
9150# See the Autoconf documentation for `clear'.
9151cat >confdef2sed.sed <<\_ACEOF
9152s/[\\&,]/\\&/g
9153s,[\\$`],\\&,g
9154t clear
9155: clear
9156s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9157t end
9158s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9159: end
9160_ACEOF
9161# If some macros were called several times there might be several times
9162# the same #defines, which is useless.  Nevertheless, we may not want to
9163# sort them, since we want the *last* AC-DEFINE to be honored.
9164uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9165sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9166rm -f confdef2sed.sed
9167
9168# This sed command replaces #undef with comments.  This is necessary, for
9169# example, in the case of _POSIX_SOURCE, which is predefined and required
9170# on some systems where configure will not decide to define it.
9171cat >>conftest.undefs <<\_ACEOF
9172s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9173_ACEOF
9174
9175# Break up conftest.defines because some shells have a limit on the size
9176# of here documents, and old seds have small limits too (100 cmds).
9177echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9178echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9179echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9180echo '  :' >>$CONFIG_STATUS
9181rm -f conftest.tail
9182while grep . conftest.defines >/dev/null
9183do
9184  # Write a limited-size here document to $tmp/defines.sed.
9185  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9186  # Speed up: don't consider the non `#define' lines.
9187  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9188  # Work around the forget-to-reset-the-flag bug.
9189  echo 't clr' >>$CONFIG_STATUS
9190  echo ': clr' >>$CONFIG_STATUS
9191  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9192  echo 'CEOF
9193  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9194  rm -f $tmp/in
9195  mv $tmp/out $tmp/in
9196' >>$CONFIG_STATUS
9197  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9198  rm -f conftest.defines
9199  mv conftest.tail conftest.defines
9200done
9201rm -f conftest.defines
9202echo '  fi # grep' >>$CONFIG_STATUS
9203echo >>$CONFIG_STATUS
9204
9205# Break up conftest.undefs because some shells have a limit on the size
9206# of here documents, and old seds have small limits too (100 cmds).
9207echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9208rm -f conftest.tail
9209while grep . conftest.undefs >/dev/null
9210do
9211  # Write a limited-size here document to $tmp/undefs.sed.
9212  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9213  # Speed up: don't consider the non `#undef'
9214  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9215  # Work around the forget-to-reset-the-flag bug.
9216  echo 't clr' >>$CONFIG_STATUS
9217  echo ': clr' >>$CONFIG_STATUS
9218  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9219  echo 'CEOF
9220  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9221  rm -f $tmp/in
9222  mv $tmp/out $tmp/in
9223' >>$CONFIG_STATUS
9224  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9225  rm -f conftest.undefs
9226  mv conftest.tail conftest.undefs
9227done
9228rm -f conftest.undefs
9229
9230cat >>$CONFIG_STATUS <<\_ACEOF
9231  # Let's still pretend it is `configure' which instantiates (i.e., don't
9232  # use $as_me), people would be surprised to read:
9233  #    /* config.h.  Generated by config.status.  */
9234  if test x"$ac_file" = x-; then
9235    echo "/* Generated by configure.  */" >$tmp/config.h
9236  else
9237    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9238  fi
9239  cat $tmp/in >>$tmp/config.h
9240  rm -f $tmp/in
9241  if test x"$ac_file" != x-; then
9242    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9243      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9244echo "$as_me: $ac_file is unchanged" >&6;}
9245    else
9246      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9247$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9248         X"$ac_file" : 'X\(//\)[^/]' \| \
9249         X"$ac_file" : 'X\(//\)$' \| \
9250         X"$ac_file" : 'X\(/\)' \| \
9251         .     : '\(.\)' 2>/dev/null ||
9252echo X"$ac_file" |
9253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9254          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9255          /^X\(\/\/\)$/{ s//\1/; q; }
9256          /^X\(\/\).*/{ s//\1/; q; }
9257          s/.*/./; q'`
9258      { if $as_mkdir_p; then
9259    mkdir -p "$ac_dir"
9260  else
9261    as_dir="$ac_dir"
9262    as_dirs=
9263    while test ! -d "$as_dir"; do
9264      as_dirs="$as_dir $as_dirs"
9265      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9267         X"$as_dir" : 'X\(//\)[^/]' \| \
9268         X"$as_dir" : 'X\(//\)$' \| \
9269         X"$as_dir" : 'X\(/\)' \| \
9270         .     : '\(.\)' 2>/dev/null ||
9271echo X"$as_dir" |
9272    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9273          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9274          /^X\(\/\/\)$/{ s//\1/; q; }
9275          /^X\(\/\).*/{ s//\1/; q; }
9276          s/.*/./; q'`
9277    done
9278    test ! -n "$as_dirs" || mkdir $as_dirs
9279  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9280echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9281   { (exit 1); exit 1; }; }; }
9282
9283      rm -f $ac_file
9284      mv $tmp/config.h $ac_file
9285    fi
9286  else
9287    cat $tmp/config.h
9288    rm -f $tmp/config.h
9289  fi
9290# Compute $ac_file's index in $config_headers.
9291_am_stamp_count=1
9292for _am_header in $config_headers :; do
9293  case $_am_header in
9294    $ac_file | $ac_file:* )
9295      break ;;
9296    * )
9297      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9298  esac
9299done
9300echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9301$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9302         X$ac_file : 'X\(//\)[^/]' \| \
9303         X$ac_file : 'X\(//\)$' \| \
9304         X$ac_file : 'X\(/\)' \| \
9305         .     : '\(.\)' 2>/dev/null ||
9306echo X$ac_file |
9307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9308          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9309          /^X\(\/\/\)$/{ s//\1/; q; }
9310          /^X\(\/\).*/{ s//\1/; q; }
9311          s/.*/./; q'`/stamp-h$_am_stamp_count
9312done
9313_ACEOF
9314cat >>$CONFIG_STATUS <<\_ACEOF
9315
9316#
9317# CONFIG_COMMANDS section.
9318#
9319for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9320  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9321  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9322  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9323$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9324         X"$ac_dest" : 'X\(//\)[^/]' \| \
9325         X"$ac_dest" : 'X\(//\)$' \| \
9326         X"$ac_dest" : 'X\(/\)' \| \
9327         .     : '\(.\)' 2>/dev/null ||
9328echo X"$ac_dest" |
9329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9330          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9331          /^X\(\/\/\)$/{ s//\1/; q; }
9332          /^X\(\/\).*/{ s//\1/; q; }
9333          s/.*/./; q'`
9334  { if $as_mkdir_p; then
9335    mkdir -p "$ac_dir"
9336  else
9337    as_dir="$ac_dir"
9338    as_dirs=
9339    while test ! -d "$as_dir"; do
9340      as_dirs="$as_dir $as_dirs"
9341      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9343         X"$as_dir" : 'X\(//\)[^/]' \| \
9344         X"$as_dir" : 'X\(//\)$' \| \
9345         X"$as_dir" : 'X\(/\)' \| \
9346         .     : '\(.\)' 2>/dev/null ||
9347echo X"$as_dir" |
9348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9349          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9350          /^X\(\/\/\)$/{ s//\1/; q; }
9351          /^X\(\/\).*/{ s//\1/; q; }
9352          s/.*/./; q'`
9353    done
9354    test ! -n "$as_dirs" || mkdir $as_dirs
9355  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9356echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9357   { (exit 1); exit 1; }; }; }
9358
9359  ac_builddir=.
9360
9361if test "$ac_dir" != .; then
9362  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9363  # A "../" for each directory in $ac_dir_suffix.
9364  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9365else
9366  ac_dir_suffix= ac_top_builddir=
9367fi
9368
9369case $srcdir in
9370  .)  # No --srcdir option.  We are building in place.
9371    ac_srcdir=.
9372    if test -z "$ac_top_builddir"; then
9373       ac_top_srcdir=.
9374    else
9375       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9376    fi ;;
9377  [\\/]* | ?:[\\/]* )  # Absolute path.
9378    ac_srcdir=$srcdir$ac_dir_suffix;
9379    ac_top_srcdir=$srcdir ;;
9380  *) # Relative path.
9381    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9382    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9383esac
9384
9385# Do not use `cd foo && pwd` to compute absolute paths, because
9386# the directories may not exist.
9387case `pwd` in
9388.) ac_abs_builddir="$ac_dir";;
9389*)
9390  case "$ac_dir" in
9391  .) ac_abs_builddir=`pwd`;;
9392  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9393  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9394  esac;;
9395esac
9396case $ac_abs_builddir in
9397.) ac_abs_top_builddir=${ac_top_builddir}.;;
9398*)
9399  case ${ac_top_builddir}. in
9400  .) ac_abs_top_builddir=$ac_abs_builddir;;
9401  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9402  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9403  esac;;
9404esac
9405case $ac_abs_builddir in
9406.) ac_abs_srcdir=$ac_srcdir;;
9407*)
9408  case $ac_srcdir in
9409  .) ac_abs_srcdir=$ac_abs_builddir;;
9410  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9411  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9412  esac;;
9413esac
9414case $ac_abs_builddir in
9415.) ac_abs_top_srcdir=$ac_top_srcdir;;
9416*)
9417  case $ac_top_srcdir in
9418  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9419  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9420  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9421  esac;;
9422esac
9423
9424
9425  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9426echo "$as_me: executing $ac_dest commands" >&6;}
9427  case $ac_dest in
9428    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9429  # Strip MF so we end up with the name of the file.
9430  mf=`echo "$mf" | sed -e 's/:.*$//'`
9431  # Check whether this is an Automake generated Makefile or not.
9432  # We used to match only the files named `Makefile.in', but
9433  # some people rename them; so instead we look at the file content.
9434  # Grep'ing the first line is not enough: some people post-process
9435  # each Makefile.in and add a new line on top of each file to say so.
9436  # So let's grep whole file.
9437  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9438    dirpart=`(dirname "$mf") 2>/dev/null ||
9439$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9440         X"$mf" : 'X\(//\)[^/]' \| \
9441         X"$mf" : 'X\(//\)$' \| \
9442         X"$mf" : 'X\(/\)' \| \
9443         .     : '\(.\)' 2>/dev/null ||
9444echo X"$mf" |
9445    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9446          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9447          /^X\(\/\/\)$/{ s//\1/; q; }
9448          /^X\(\/\).*/{ s//\1/; q; }
9449          s/.*/./; q'`
9450  else
9451    continue
9452  fi
9453  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9454  # Extract the definition of DEP_FILES from the Makefile without
9455  # running `make'.
9456  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9457  test -z "$DEPDIR" && continue
9458  # When using ansi2knr, U may be empty or an underscore; expand it
9459  U=`sed -n 's/^U = //p' < "$mf"`
9460  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9461  # We invoke sed twice because it is the simplest approach to
9462  # changing $(DEPDIR) to its actual value in the expansion.
9463  for file in `sed -n '
9464    /^DEP_FILES = .*\\\\$/ {
9465      s/^DEP_FILES = //
9466      :loop
9467        s/\\\\$//
9468        p
9469        n
9470        /\\\\$/ b loop
9471      p
9472    }
9473    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9474       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9475    # Make sure the directory exists.
9476    test -f "$dirpart/$file" && continue
9477    fdir=`(dirname "$file") 2>/dev/null ||
9478$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9479         X"$file" : 'X\(//\)[^/]' \| \
9480         X"$file" : 'X\(//\)$' \| \
9481         X"$file" : 'X\(/\)' \| \
9482         .     : '\(.\)' 2>/dev/null ||
9483echo X"$file" |
9484    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9485          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9486          /^X\(\/\/\)$/{ s//\1/; q; }
9487          /^X\(\/\).*/{ s//\1/; q; }
9488          s/.*/./; q'`
9489    { if $as_mkdir_p; then
9490    mkdir -p $dirpart/$fdir
9491  else
9492    as_dir=$dirpart/$fdir
9493    as_dirs=
9494    while test ! -d "$as_dir"; do
9495      as_dirs="$as_dir $as_dirs"
9496      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9497$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9498         X"$as_dir" : 'X\(//\)[^/]' \| \
9499         X"$as_dir" : 'X\(//\)$' \| \
9500         X"$as_dir" : 'X\(/\)' \| \
9501         .     : '\(.\)' 2>/dev/null ||
9502echo X"$as_dir" |
9503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9504          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9505          /^X\(\/\/\)$/{ s//\1/; q; }
9506          /^X\(\/\).*/{ s//\1/; q; }
9507          s/.*/./; q'`
9508    done
9509    test ! -n "$as_dirs" || mkdir $as_dirs
9510  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9511echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9512   { (exit 1); exit 1; }; }; }
9513
9514    # echo "creating $dirpart/$file"
9515    echo '# dummy' > "$dirpart/$file"
9516  done
9517done
9518 ;;
9519  esac
9520done
9521_ACEOF
9522
9523cat >>$CONFIG_STATUS <<\_ACEOF
9524
9525{ (exit 0); exit 0; }
9526_ACEOF
9527chmod +x $CONFIG_STATUS
9528ac_clean_files=$ac_clean_files_save
9529
9530
9531# configure is writing to config.log, and then calls config.status.
9532# config.status does its own redirection, appending to config.log.
9533# Unfortunately, on DOS this fails, as config.log is still kept open
9534# by configure, so config.status won't be able to write to it; its
9535# output is simply discarded.  So we exec the FD to /dev/null,
9536# effectively closing config.log, so it can be properly (re)opened and
9537# appended to by config.status.  When coming back to configure, we
9538# need to make the FD available again.
9539if test "$no_create" != yes; then
9540  ac_cs_success=:
9541  ac_config_status_args=
9542  test "$silent" = yes &&
9543    ac_config_status_args="$ac_config_status_args --quiet"
9544  exec 5>/dev/null
9545  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9546  exec 5>>config.log
9547  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9548  # would make configure fail if this is the last instruction.
9549  $ac_cs_success || { (exit 1); exit 1; }
9550fi
9551
Note: See TracBrowser for help on using the repository browser.