Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/updater: deleted threading again. I have found a different Way
Now I am redrawing the GUI every time a ProgressBar is changed.

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