Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/configure @ 3789

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

orxonox/trunk: also checking for gprof

  • Property svn:executable set to *
File size: 292.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.2.2-pre-alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.2.2-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.2-pre-alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.2.2-pre-alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.2.2-pre-alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --enable-sub-projects   also builds the subProjects while make from srcdir
872  --enable-profile        builds orxonox with profiling support
873  --enable-documentation  also builds the sDocumentation while make from
874                          srcdir
875
876Optional Packages:
877  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879  --without-gtk           Prevents GTK from being loaded
880  --without-gthread       Prevents gThread from being loaded
881  --without-pthread       Prevents pthread from being loaded
882  --without-curl          Prevents libcURL from being loaded
883  --without-sdl-image     Prevents SDL_image from being loaded
884
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.2.2-pre-alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.2.2-pre-alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--version;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.2.2-pre-alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2526      # Solaris 8's {/usr,}/bin/sh.
2527      touch sub/conftst$i.h
2528    done
2529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2530
2531    case $depmode in
2532    nosideeffect)
2533      # after this tag, mechanisms are not by side-effect, so they'll
2534      # only be used when explicitly requested
2535      if test "x$enable_dependency_tracking" = xyes; then
2536        continue
2537      else
2538        break
2539      fi
2540      ;;
2541    none) break ;;
2542    esac
2543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2544    # mode.  It turns out that the SunPro C++ compiler does not properly
2545    # handle `-M -o', and we need to detect this.
2546    if depmode=$depmode \
2547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2550         >/dev/null 2>conftest.err &&
2551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2554      # icc doesn't choke on unknown options, it will just issue warnings
2555      # or remarks (even with -Werror).  So we grep stderr for any message
2556      # that says an option was ignored or not supported.
2557      # When given -MP, icc 7.0 and 7.1 complain thusly:
2558      #   icc: Command line warning: ignoring option '-M'; no argument required
2559      # The diagnosis changed in icc 8.0:
2560      #   icc: Command line remark: option '-MP' not supported
2561      if (grep 'ignoring option' conftest.err ||
2562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2563        am_cv_CXX_dependencies_compiler_type=$depmode
2564        break
2565      fi
2566    fi
2567  done
2568
2569  cd ..
2570  rm -rf conftest.dir
2571else
2572  am_cv_CXX_dependencies_compiler_type=none
2573fi
2574
2575fi
2576echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2577echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2579
2580
2581
2582if
2583  test "x$enable_dependency_tracking" != xno \
2584  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2585  am__fastdepCXX_TRUE=
2586  am__fastdepCXX_FALSE='#'
2587else
2588  am__fastdepCXX_TRUE='#'
2589  am__fastdepCXX_FALSE=
2590fi
2591
2592
2593ac_ext=c
2594ac_cpp='$CPP $CPPFLAGS'
2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598if test -n "$ac_tool_prefix"; then
2599  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2600set dummy ${ac_tool_prefix}gcc; ac_word=$2
2601echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603if test "${ac_cv_prog_CC+set}" = set; then
2604  echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606  if test -n "$CC"; then
2607  ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612  IFS=$as_save_IFS
2613  test -z "$as_dir" && as_dir=.
2614  for ac_exec_ext in '' $ac_executable_extensions; do
2615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621done
2622
2623fi
2624fi
2625CC=$ac_cv_prog_CC
2626if test -n "$CC"; then
2627  echo "$as_me:$LINENO: result: $CC" >&5
2628echo "${ECHO_T}$CC" >&6
2629else
2630  echo "$as_me:$LINENO: result: no" >&5
2631echo "${ECHO_T}no" >&6
2632fi
2633
2634fi
2635if test -z "$ac_cv_prog_CC"; then
2636  ac_ct_CC=$CC
2637  # Extract the first word of "gcc", so it can be a program name with args.
2638set dummy gcc; ac_word=$2
2639echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642  echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644  if test -n "$ac_ct_CC"; then
2645  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650  IFS=$as_save_IFS
2651  test -z "$as_dir" && as_dir=.
2652  for ac_exec_ext in '' $ac_executable_extensions; do
2653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654    ac_cv_prog_ac_ct_CC="gcc"
2655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656    break 2
2657  fi
2658done
2659done
2660
2661fi
2662fi
2663ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664if test -n "$ac_ct_CC"; then
2665  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2666echo "${ECHO_T}$ac_ct_CC" >&6
2667else
2668  echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6
2670fi
2671
2672  CC=$ac_ct_CC
2673else
2674  CC="$ac_cv_prog_CC"
2675fi
2676
2677if test -z "$CC"; then
2678  if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}cc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}cc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "cc", so it can be a program name with args.
2718set dummy cc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="cc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757fi
2758if test -z "$CC"; then
2759  # Extract the first word of "cc", so it can be a program name with args.
2760set dummy cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769  ac_prog_rejected=no
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773  IFS=$as_save_IFS
2774  test -z "$as_dir" && as_dir=.
2775  for ac_exec_ext in '' $ac_executable_extensions; do
2776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2778       ac_prog_rejected=yes
2779       continue
2780     fi
2781    ac_cv_prog_CC="cc"
2782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783    break 2
2784  fi
2785done
2786done
2787
2788if test $ac_prog_rejected = yes; then
2789  # We found a bogon in the path, so make sure we never use it.
2790  set dummy $ac_cv_prog_CC
2791  shift
2792  if test $# != 0; then
2793    # We chose a different compiler from the bogus one.
2794    # However, it has the same basename, so the bogon will be chosen
2795    # first if we set CC to just the basename; use the full file name.
2796    shift
2797    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2798  fi
2799fi
2800fi
2801fi
2802CC=$ac_cv_prog_CC
2803if test -n "$CC"; then
2804  echo "$as_me:$LINENO: result: $CC" >&5
2805echo "${ECHO_T}$CC" >&6
2806else
2807  echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6
2809fi
2810
2811fi
2812if test -z "$CC"; then
2813  if test -n "$ac_tool_prefix"; then
2814  for ac_prog in cl
2815  do
2816    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818echo "$as_me:$LINENO: checking for $ac_word" >&5
2819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820if test "${ac_cv_prog_CC+set}" = set; then
2821  echo $ECHO_N "(cached) $ECHO_C" >&6
2822else
2823  if test -n "$CC"; then
2824  ac_cv_prog_CC="$CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829  IFS=$as_save_IFS
2830  test -z "$as_dir" && as_dir=.
2831  for ac_exec_ext in '' $ac_executable_extensions; do
2832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835    break 2
2836  fi
2837done
2838done
2839
2840fi
2841fi
2842CC=$ac_cv_prog_CC
2843if test -n "$CC"; then
2844  echo "$as_me:$LINENO: result: $CC" >&5
2845echo "${ECHO_T}$CC" >&6
2846else
2847  echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6
2849fi
2850
2851    test -n "$CC" && break
2852  done
2853fi
2854if test -z "$CC"; then
2855  ac_ct_CC=$CC
2856  for ac_prog in cl
2857do
2858  # Extract the first word of "$ac_prog", so it can be a program name with args.
2859set dummy $ac_prog; ac_word=$2
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863  echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865  if test -n "$ac_ct_CC"; then
2866  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871  IFS=$as_save_IFS
2872  test -z "$as_dir" && as_dir=.
2873  for ac_exec_ext in '' $ac_executable_extensions; do
2874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875    ac_cv_prog_ac_ct_CC="$ac_prog"
2876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877    break 2
2878  fi
2879done
2880done
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
2886  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887echo "${ECHO_T}$ac_ct_CC" >&6
2888else
2889  echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891fi
2892
2893  test -n "$ac_ct_CC" && break
2894done
2895
2896  CC=$ac_ct_CC
2897fi
2898
2899fi
2900
2901
2902test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2903See \`config.log' for more details." >&5
2904echo "$as_me: error: no acceptable C compiler found in \$PATH
2905See \`config.log' for more details." >&2;}
2906   { (exit 1); exit 1; }; }
2907
2908# Provide some information about the compiler.
2909echo "$as_me:$LINENO:" \
2910     "checking for C compiler version" >&5
2911ac_compiler=`set X $ac_compile; echo $2`
2912{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2913  (eval $ac_compiler --version </dev/null >&5) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }
2917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2918  (eval $ac_compiler -v </dev/null >&5) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }
2922{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2923  (eval $ac_compiler -V </dev/null >&5) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }
2927
2928echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2929echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2930if test "${ac_cv_c_compiler_gnu+set}" = set; then
2931  echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933  cat >conftest.$ac_ext <<_ACEOF
2934/* confdefs.h.  */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943#ifndef __GNUC__
2944       choke me
2945#endif
2946
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext
2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953  (eval $ac_compile) 2>conftest.er1
2954  ac_status=$?
2955  grep -v '^ *+' conftest.er1 >conftest.err
2956  rm -f conftest.er1
2957  cat conftest.err >&5
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); } &&
2960         { ac_try='test -z "$ac_c_werror_flag"
2961                         || test ! -s conftest.err'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; } &&
2967         { ac_try='test -s conftest.$ac_objext'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; }; then
2973  ac_compiler_gnu=yes
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978ac_compiler_gnu=no
2979fi
2980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982
2983fi
2984echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2985echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2986GCC=`test $ac_compiler_gnu = yes && echo yes`
2987ac_test_CFLAGS=${CFLAGS+set}
2988ac_save_CFLAGS=$CFLAGS
2989CFLAGS="-g"
2990echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2991echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2992if test "${ac_cv_prog_cc_g+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h.  */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010rm -f conftest.$ac_objext
3011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012  (eval $ac_compile) 2>conftest.er1
3013  ac_status=$?
3014  grep -v '^ *+' conftest.er1 >conftest.err
3015  rm -f conftest.er1
3016  cat conftest.err >&5
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); } &&
3019         { ac_try='test -z "$ac_c_werror_flag"
3020                         || test ! -s conftest.err'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; } &&
3026         { ac_try='test -s conftest.$ac_objext'
3027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028  (eval $ac_try) 2>&5
3029  ac_status=$?
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; }; then
3032  ac_cv_prog_cc_g=yes
3033else
3034  echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037ac_cv_prog_cc_g=no
3038fi
3039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040fi
3041echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3042echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3043if test "$ac_test_CFLAGS" = set; then
3044  CFLAGS=$ac_save_CFLAGS
3045elif test $ac_cv_prog_cc_g = yes; then
3046  if test "$GCC" = yes; then
3047    CFLAGS="-g -O2"
3048  else
3049    CFLAGS="-g"
3050  fi
3051else
3052  if test "$GCC" = yes; then
3053    CFLAGS="-O2"
3054  else
3055    CFLAGS=
3056  fi
3057fi
3058echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3059echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3060if test "${ac_cv_prog_cc_stdc+set}" = set; then
3061  echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063  ac_cv_prog_cc_stdc=no
3064ac_save_CC=$CC
3065cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h.  */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h.  */
3071#include <stdarg.h>
3072#include <stdio.h>
3073#include <sys/types.h>
3074#include <sys/stat.h>
3075/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3076struct buf { int x; };
3077FILE * (*rcsopen) (struct buf *, struct stat *, int);
3078static char *e (p, i)
3079     char **p;
3080     int i;
3081{
3082  return p[i];
3083}
3084static char *f (char * (*g) (char **, int), char **p, ...)
3085{
3086  char *s;
3087  va_list v;
3088  va_start (v,p);
3089  s = g (p, va_arg (v,int));
3090  va_end (v);
3091  return s;
3092}
3093
3094/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3095   function prototypes and stuff, but not '\xHH' hex character constants.
3096   These don't provoke an error unfortunately, instead are silently treated
3097   as 'x'.  The following induces an error, until -std1 is added to get
3098   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3099   array size at least.  It's necessary to write '\x00'==0 to get something
3100   that's true only with -std1.  */
3101int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102
3103int test (int i, double x);
3104struct s1 {int (*f) (int a);};
3105struct s2 {int (*f) (double a);};
3106int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3107int argc;
3108char **argv;
3109int
3110main ()
3111{
3112return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117# Don't try gcc -ansi; that turns off useful extensions and
3118# breaks some systems' header files.
3119# AIX                   -qlanglvl=ansi
3120# Ultrix and OSF/1      -std1
3121# HP-UX 10.20 and later -Ae
3122# HP-UX older versions  -Aa -D_HPUX_SOURCE
3123# SVR4                  -Xc -D__EXTENSIONS__
3124for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3125do
3126  CC="$ac_save_CC $ac_arg"
3127  rm -f conftest.$ac_objext
3128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129  (eval $ac_compile) 2>conftest.er1
3130  ac_status=$?
3131  grep -v '^ *+' conftest.er1 >conftest.err
3132  rm -f conftest.er1
3133  cat conftest.err >&5
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); } &&
3136         { ac_try='test -z "$ac_c_werror_flag"
3137                         || test ! -s conftest.err'
3138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139  (eval $ac_try) 2>&5
3140  ac_status=$?
3141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142  (exit $ac_status); }; } &&
3143         { ac_try='test -s conftest.$ac_objext'
3144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145  (eval $ac_try) 2>&5
3146  ac_status=$?
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); }; }; then
3149  ac_cv_prog_cc_stdc=$ac_arg
3150break
3151else
3152  echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155fi
3156rm -f conftest.err conftest.$ac_objext
3157done
3158rm -f conftest.$ac_ext conftest.$ac_objext
3159CC=$ac_save_CC
3160
3161fi
3162
3163case "x$ac_cv_prog_cc_stdc" in
3164  x|xno)
3165    echo "$as_me:$LINENO: result: none needed" >&5
3166echo "${ECHO_T}none needed" >&6 ;;
3167  *)
3168    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3169echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3170    CC="$CC $ac_cv_prog_cc_stdc" ;;
3171esac
3172
3173# Some people use a C++ compiler to compile C.  Since we use `exit',
3174# in C++ we need to declare it.  In case someone uses the same compiler
3175# for both compiling C and C++ we need to have the C++ compiler decide
3176# the declaration of exit, since it's the most demanding environment.
3177cat >conftest.$ac_ext <<_ACEOF
3178#ifndef __cplusplus
3179  choke me
3180#endif
3181_ACEOF
3182rm -f conftest.$ac_objext
3183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3184  (eval $ac_compile) 2>conftest.er1
3185  ac_status=$?
3186  grep -v '^ *+' conftest.er1 >conftest.err
3187  rm -f conftest.er1
3188  cat conftest.err >&5
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); } &&
3191         { ac_try='test -z "$ac_c_werror_flag"
3192                         || test ! -s conftest.err'
3193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194  (eval $ac_try) 2>&5
3195  ac_status=$?
3196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197  (exit $ac_status); }; } &&
3198         { ac_try='test -s conftest.$ac_objext'
3199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200  (eval $ac_try) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }; }; then
3204  for ac_declaration in \
3205   '' \
3206   'extern "C" void std::exit (int) throw (); using std::exit;' \
3207   'extern "C" void std::exit (int); using std::exit;' \
3208   'extern "C" void exit (int) throw ();' \
3209   'extern "C" void exit (int);' \
3210   'void exit (int);'
3211do
3212  cat >conftest.$ac_ext <<_ACEOF
3213/* confdefs.h.  */
3214_ACEOF
3215cat confdefs.h >>conftest.$ac_ext
3216cat >>conftest.$ac_ext <<_ACEOF
3217/* end confdefs.h.  */
3218$ac_declaration
3219#include <stdlib.h>
3220int
3221main ()
3222{
3223exit (42);
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext
3229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230  (eval $ac_compile) 2>conftest.er1
3231  ac_status=$?
3232  grep -v '^ *+' conftest.er1 >conftest.err
3233  rm -f conftest.er1
3234  cat conftest.err >&5
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); } &&
3237         { ac_try='test -z "$ac_c_werror_flag"
3238                         || test ! -s conftest.err'
3239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240  (eval $ac_try) 2>&5
3241  ac_status=$?
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); }; } &&
3244         { ac_try='test -s conftest.$ac_objext'
3245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246  (eval $ac_try) 2>&5
3247  ac_status=$?
3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); }; }; then
3250  :
3251else
3252  echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255continue
3256fi
3257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3258  cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h.  */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h.  */
3264$ac_declaration
3265int
3266main ()
3267{
3268exit (42);
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275  (eval $ac_compile) 2>conftest.er1
3276  ac_status=$?
3277  grep -v '^ *+' conftest.er1 >conftest.err
3278  rm -f conftest.er1
3279  cat conftest.err >&5
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); } &&
3282         { ac_try='test -z "$ac_c_werror_flag"
3283                         || test ! -s conftest.err'
3284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285  (eval $ac_try) 2>&5
3286  ac_status=$?
3287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288  (exit $ac_status); }; } &&
3289         { ac_try='test -s conftest.$ac_objext'
3290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291  (eval $ac_try) 2>&5
3292  ac_status=$?
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); }; }; then
3295  break
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300fi
3301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302done
3303rm -f conftest*
3304if test -n "$ac_declaration"; then
3305  echo '#ifdef __cplusplus' >>confdefs.h
3306  echo $ac_declaration      >>confdefs.h
3307  echo '#endif'             >>confdefs.h
3308fi
3309
3310else
3311  echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314fi
3315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322depcc="$CC"   am_compiler_list=
3323
3324echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3325echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3326if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3330  # We make a subdir and do the tests there.  Otherwise we can end up
3331  # making bogus files that we don't know about and never remove.  For
3332  # instance it was reported that on HP-UX the gcc test will end up
3333  # making a dummy file named `D' -- because `-MD' means `put the output
3334  # in D'.
3335  mkdir conftest.dir
3336  # Copy depcomp to subdir because otherwise we won't find it if we're
3337  # using a relative directory.
3338  cp "$am_depcomp" conftest.dir
3339  cd conftest.dir
3340  # We will build objects and dependencies in a subdirectory because
3341  # it helps to detect inapplicable dependency modes.  For instance
3342  # both Tru64's cc and ICC support -MD to output dependencies as a
3343  # side effect of compilation, but ICC will put the dependencies in
3344  # the current directory while Tru64 will put them in the object
3345  # directory.
3346  mkdir sub
3347
3348  am_cv_CC_dependencies_compiler_type=none
3349  if test "$am_compiler_list" = ""; then
3350     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3351  fi
3352  for depmode in $am_compiler_list; do
3353    # Setup a source with many dependencies, because some compilers
3354    # like to wrap large dependency lists on column 80 (with \), and
3355    # we should not choose a depcomp mode which is confused by this.
3356    #
3357    # We need to recreate these files for each test, as the compiler may
3358    # overwrite some of them when testing with obscure command lines.
3359    # This happens at least with the AIX C compiler.
3360    : > sub/conftest.c
3361    for i in 1 2 3 4 5 6; do
3362      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3363      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3364      # Solaris 8's {/usr,}/bin/sh.
3365      touch sub/conftst$i.h
3366    done
3367    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3368
3369    case $depmode in
3370    nosideeffect)
3371      # after this tag, mechanisms are not by side-effect, so they'll
3372      # only be used when explicitly requested
3373      if test "x$enable_dependency_tracking" = xyes; then
3374        continue
3375      else
3376        break
3377      fi
3378      ;;
3379    none) break ;;
3380    esac
3381    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3382    # mode.  It turns out that the SunPro C++ compiler does not properly
3383    # handle `-M -o', and we need to detect this.
3384    if depmode=$depmode \
3385       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3386       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3387       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3388         >/dev/null 2>conftest.err &&
3389       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3390       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3391       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3392      # icc doesn't choke on unknown options, it will just issue warnings
3393      # or remarks (even with -Werror).  So we grep stderr for any message
3394      # that says an option was ignored or not supported.
3395      # When given -MP, icc 7.0 and 7.1 complain thusly:
3396      #   icc: Command line warning: ignoring option '-M'; no argument required
3397      # The diagnosis changed in icc 8.0:
3398      #   icc: Command line remark: option '-MP' not supported
3399      if (grep 'ignoring option' conftest.err ||
3400          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3401        am_cv_CC_dependencies_compiler_type=$depmode
3402        break
3403      fi
3404    fi
3405  done
3406
3407  cd ..
3408  rm -rf conftest.dir
3409else
3410  am_cv_CC_dependencies_compiler_type=none
3411fi
3412
3413fi
3414echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3415echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3416CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3417
3418
3419
3420if
3421  test "x$enable_dependency_tracking" != xno \
3422  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3423  am__fastdepCC_TRUE=
3424  am__fastdepCC_FALSE='#'
3425else
3426  am__fastdepCC_TRUE='#'
3427  am__fastdepCC_FALSE=
3428fi
3429
3430
3431
3432ac_ext=c
3433ac_cpp='$CPP $CPPFLAGS'
3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3438echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3439# On Suns, sometimes $CPP names a directory.
3440if test -n "$CPP" && test -d "$CPP"; then
3441  CPP=
3442fi
3443if test -z "$CPP"; then
3444  if test "${ac_cv_prog_CPP+set}" = set; then
3445  echo $ECHO_N "(cached) $ECHO_C" >&6
3446else
3447      # Double quotes because CPP needs to be expanded
3448    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449    do
3450      ac_preproc_ok=false
3451for ac_c_preproc_warn_flag in '' yes
3452do
3453  # Use a header file that comes with gcc, so configuring glibc
3454  # with a fresh cross-compiler works.
3455  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456  # <limits.h> exists even on freestanding compilers.
3457  # On the NeXT, cc -E runs the code through the compiler's parser,
3458  # not just through cpp. "Syntax error" is here to catch this case.
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465#ifdef __STDC__
3466# include <limits.h>
3467#else
3468# include <assert.h>
3469#endif
3470                     Syntax error
3471_ACEOF
3472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } >/dev/null; then
3480  if test -s conftest.err; then
3481    ac_cpp_err=$ac_c_preproc_warn_flag
3482    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3483  else
3484    ac_cpp_err=
3485  fi
3486else
3487  ac_cpp_err=yes
3488fi
3489if test -z "$ac_cpp_err"; then
3490  :
3491else
3492  echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495  # Broken: fails on valid input.
3496continue
3497fi
3498rm -f conftest.err conftest.$ac_ext
3499
3500  # OK, works on sane cases.  Now check whether non-existent headers
3501  # can be detected and how.
3502  cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h.  */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h.  */
3508#include <ac_nonexistent.h>
3509_ACEOF
3510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3511  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } >/dev/null; then
3518  if test -s conftest.err; then
3519    ac_cpp_err=$ac_c_preproc_warn_flag
3520    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3521  else
3522    ac_cpp_err=
3523  fi
3524else
3525  ac_cpp_err=yes
3526fi
3527if test -z "$ac_cpp_err"; then
3528  # Broken: success on invalid input.
3529continue
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534  # Passes both tests.
3535ac_preproc_ok=:
3536break
3537fi
3538rm -f conftest.err conftest.$ac_ext
3539
3540done
3541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3542rm -f conftest.err conftest.$ac_ext
3543if $ac_preproc_ok; then
3544  break
3545fi
3546
3547    done
3548    ac_cv_prog_CPP=$CPP
3549
3550fi
3551  CPP=$ac_cv_prog_CPP
3552else
3553  ac_cv_prog_CPP=$CPP
3554fi
3555echo "$as_me:$LINENO: result: $CPP" >&5
3556echo "${ECHO_T}$CPP" >&6
3557ac_preproc_ok=false
3558for ac_c_preproc_warn_flag in '' yes
3559do
3560  # Use a header file that comes with gcc, so configuring glibc
3561  # with a fresh cross-compiler works.
3562  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563  # <limits.h> exists even on freestanding compilers.
3564  # On the NeXT, cc -E runs the code through the compiler's parser,
3565  # not just through cpp. "Syntax error" is here to catch this case.
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572#ifdef __STDC__
3573# include <limits.h>
3574#else
3575# include <assert.h>
3576#endif
3577                     Syntax error
3578_ACEOF
3579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3580  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } >/dev/null; then
3587  if test -s conftest.err; then
3588    ac_cpp_err=$ac_c_preproc_warn_flag
3589    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590  else
3591    ac_cpp_err=
3592  fi
3593else
3594  ac_cpp_err=yes
3595fi
3596if test -z "$ac_cpp_err"; then
3597  :
3598else
3599  echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602  # Broken: fails on valid input.
3603continue
3604fi
3605rm -f conftest.err conftest.$ac_ext
3606
3607  # OK, works on sane cases.  Now check whether non-existent headers
3608  # can be detected and how.
3609  cat >conftest.$ac_ext <<_ACEOF
3610/* confdefs.h.  */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h.  */
3615#include <ac_nonexistent.h>
3616_ACEOF
3617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3619  ac_status=$?
3620  grep -v '^ *+' conftest.er1 >conftest.err
3621  rm -f conftest.er1
3622  cat conftest.err >&5
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); } >/dev/null; then
3625  if test -s conftest.err; then
3626    ac_cpp_err=$ac_c_preproc_warn_flag
3627    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3628  else
3629    ac_cpp_err=
3630  fi
3631else
3632  ac_cpp_err=yes
3633fi
3634if test -z "$ac_cpp_err"; then
3635  # Broken: success on invalid input.
3636continue
3637else
3638  echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641  # Passes both tests.
3642ac_preproc_ok=:
3643break
3644fi
3645rm -f conftest.err conftest.$ac_ext
3646
3647done
3648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649rm -f conftest.err conftest.$ac_ext
3650if $ac_preproc_ok; then
3651  :
3652else
3653  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654See \`config.log' for more details." >&5
3655echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656See \`config.log' for more details." >&2;}
3657   { (exit 1); exit 1; }; }
3658fi
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666
3667echo "$as_me:$LINENO: checking for egrep" >&5
3668echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3669if test "${ac_cv_prog_egrep+set}" = set; then
3670  echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3673    then ac_cv_prog_egrep='grep -E'
3674    else ac_cv_prog_egrep='egrep'
3675    fi
3676fi
3677echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3678echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3679 EGREP=$ac_cv_prog_egrep
3680
3681
3682echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3683echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3684if test "${ac_cv_header_stdc+set}" = set; then
3685  echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687  cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h.  */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h.  */
3693#include <stdlib.h>
3694#include <stdarg.h>
3695#include <string.h>
3696#include <float.h>
3697
3698int
3699main ()
3700{
3701
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext
3707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708  (eval $ac_compile) 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } &&
3715         { ac_try='test -z "$ac_c_werror_flag"
3716                         || test ! -s conftest.err'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; } &&
3722         { ac_try='test -s conftest.$ac_objext'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; }; then
3728  ac_cv_header_stdc=yes
3729else
3730  echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733ac_cv_header_stdc=no
3734fi
3735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736
3737if test $ac_cv_header_stdc = yes; then
3738  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3739  cat >conftest.$ac_ext <<_ACEOF
3740/* confdefs.h.  */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h.  */
3745#include <string.h>
3746
3747_ACEOF
3748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3749  $EGREP "memchr" >/dev/null 2>&1; then
3750  :
3751else
3752  ac_cv_header_stdc=no
3753fi
3754rm -f conftest*
3755
3756fi
3757
3758if test $ac_cv_header_stdc = yes; then
3759  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3760  cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h.  */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h.  */
3766#include <stdlib.h>
3767
3768_ACEOF
3769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770  $EGREP "free" >/dev/null 2>&1; then
3771  :
3772else
3773  ac_cv_header_stdc=no
3774fi
3775rm -f conftest*
3776
3777fi
3778
3779if test $ac_cv_header_stdc = yes; then
3780  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3781  if test "$cross_compiling" = yes; then
3782  :
3783else
3784  cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h.  */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h.  */
3790#include <ctype.h>
3791#if ((' ' & 0x0FF) == 0x020)
3792# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3793# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3794#else
3795# define ISLOWER(c) \
3796                   (('a' <= (c) && (c) <= 'i') \
3797                     || ('j' <= (c) && (c) <= 'r') \
3798                     || ('s' <= (c) && (c) <= 'z'))
3799# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3800#endif
3801
3802#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3803int
3804main ()
3805{
3806  int i;
3807  for (i = 0; i < 256; i++)
3808    if (XOR (islower (i), ISLOWER (i))
3809        || toupper (i) != TOUPPER (i))
3810      exit(2);
3811  exit (0);
3812}
3813_ACEOF
3814rm -f conftest$ac_exeext
3815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816  (eval $ac_link) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; }; then
3825  :
3826else
3827  echo "$as_me: program exited with status $ac_status" >&5
3828echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831( exit $ac_status )
3832ac_cv_header_stdc=no
3833fi
3834rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3835fi
3836fi
3837fi
3838echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3839echo "${ECHO_T}$ac_cv_header_stdc" >&6
3840if test $ac_cv_header_stdc = yes; then
3841
3842cat >>confdefs.h <<\_ACEOF
3843#define STDC_HEADERS 1
3844_ACEOF
3845
3846fi
3847
3848
3849##################################
3850## CHECKING  OPTIONAL ARGUMENTS ##
3851##################################
3852
3853#-----------------#
3854# DEBUG-statement #
3855#-----------------#
3856DEBUG=no
3857echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3858echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3859# Check whether --enable-debug or --disable-debug was given.
3860if test "${enable_debug+set}" = set; then
3861  enableval="$enable_debug"
3862  DEBUG=$enableval
3863fi;
3864
3865if test x$DEBUG = xno; then
3866        echo "no"
3867        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3868        DEBUG=4
3869elif test x$DEBUG = xyes; then
3870        echo "yes"
3871        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3872        DEBUG=4
3873else
3874        echo "yes: setting debuglevel to to $DEBUG"
3875fi
3876
3877cat >>confdefs.h <<_ACEOF
3878#define DEBUG $DEBUG
3879_ACEOF
3880
3881
3882
3883
3884#---------------#
3885# Modular Debug #
3886#---------------#
3887MODULAR_DEBUG=yes
3888echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3889echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3890# Check whether --enable-modular-debug or --disable-modular-debug was given.
3891if test "${enable_modular_debug+set}" = set; then
3892  enableval="$enable_modular_debug"
3893  MODULAR_DEBUG=$enableval
3894fi;
3895
3896if test x$MODULAR_DEBUG = xno; then
3897        echo "no"
3898elif test x$MODULAR_DEBUG = xyes; then
3899        echo "yes"
3900
3901cat >>confdefs.h <<_ACEOF
3902#define MODULAR_DEBUG 1
3903_ACEOF
3904
3905fi
3906
3907#--------------#
3908# GTK-disabled #
3909#--------------#
3910echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3911echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3912
3913# Check whether --with-gtk or --without-gtk was given.
3914if test "${with_gtk+set}" = set; then
3915  withval="$with_gtk"
3916  def_gtk=no
3917else
3918  def_gtk=yes
3919fi;
3920if test x$def_gtk = xyes; then
3921  echo "yes"
3922fi
3923if test x$def_gtk = xno; then
3924  echo "no"
3925fi
3926
3927#------------------#
3928# gThread-disabled #
3929#------------------#
3930echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
3931echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
3932
3933# Check whether --with-gthread or --without-gthread was given.
3934if test "${with_gthread+set}" = set; then
3935  withval="$with_gthread"
3936  def_gthread=no
3937else
3938  def_gthread=yes
3939fi;
3940if test x$def_gthread = xyes; then
3941  echo "yes"
3942fi
3943if test x$def_gthread = xno; then
3944  echo "no"
3945fi
3946
3947#------------------#
3948# pthread-disabled #
3949#------------------#
3950echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
3951echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
3952
3953# Check whether --with-pthread or --without-pthread was given.
3954if test "${with_pthread+set}" = set; then
3955  withval="$with_pthread"
3956  def_pthread=no
3957else
3958  def_pthread=yes
3959fi;
3960if test x$def_pthread = xyes; then
3961  echo "yes"
3962fi
3963if test x$def_pthread = xno; then
3964  echo "no"
3965fi
3966
3967#------------------#
3968# libCurl-disabled #
3969#------------------#
3970echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3971echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3972
3973# Check whether --with-curl or --without-curl was given.
3974if test "${with_curl+set}" = set; then
3975  withval="$with_curl"
3976  def_curl=no
3977else
3978  def_curl=yes
3979fi;
3980if test x$def_curl = xyes; then
3981  echo "yes"
3982fi
3983if test x$def_curl = xno; then
3984  echo "no"
3985fi
3986
3987#-------------------#
3988# SDL_image-disable #
3989#-------------------#
3990def_sdl_image=yes
3991echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
3992echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
3993
3994# Check whether --with-sdl_image or --without-sdl_image was given.
3995if test "${with_sdl_image+set}" = set; then
3996  withval="$with_sdl_image"
3997  def_sdl_image=no
3998fi;
3999if test x$def_sdl_image = xyes; then
4000  echo "yes"
4001fi
4002if test x$def_sdl_image = xno; then
4003  echo "no"
4004fi
4005
4006#-------------------#
4007# SubProject-enable #
4008#-------------------#
4009def_sub_projects=no
4010echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4011echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4012# Check whether --enable-sub-projects or --disable-sub-projects was given.
4013if test "${enable_sub_projects+set}" = set; then
4014  enableval="$enable_sub_projects"
4015  def_sub_projects=yes
4016fi;
4017if test x$def_sub_projects = xyes; then
4018  echo "yes"
4019fi
4020if test x$def_sub_projects = xno; then
4021  echo "no"
4022fi
4023
4024
4025if test x$def_sub_projects = xyes; then
4026  SUB_PROJECTS_TRUE=
4027  SUB_PROJECTS_FALSE='#'
4028else
4029  SUB_PROJECTS_TRUE='#'
4030  SUB_PROJECTS_FALSE=
4031fi
4032
4033
4034#-------------------#
4035# Profiling Enabled #
4036#-------------------#
4037def_profiling=no
4038echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4039echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4040# Check whether --enable-profile or --disable-profile was given.
4041if test "${enable_profile+set}" = set; then
4042  enableval="$enable_profile"
4043  def_profiling=yes
4044fi;
4045if test x$def_profiling = xyes; then
4046
4047
4048if test x$def_sub_projects = xyes; then
4049  SUB_PROJECTS_TRUE=
4050  SUB_PROJECTS_FALSE='#'
4051else
4052  SUB_PROJECTS_TRUE='#'
4053  SUB_PROJECTS_FALSE=
4054fi
4055
4056  echo "yes"
4057  CXXFLAGS="$CXXFLAGS -pg"
4058fi
4059if test x$def_profiling = xno; then
4060  echo "no"
4061fi
4062
4063#----------------------#
4064# Documentation-enable #
4065#----------------------#
4066def_documentation=no
4067echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4068echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4069# Check whether --enable-documentation or --disable-documentation was given.
4070if test "${enable_documentation+set}" = set; then
4071  enableval="$enable_documentation"
4072  def_documentation=yes
4073fi;
4074if test x$def_documentation = xyes; then
4075  echo "yes"
4076fi
4077if test x$def_documentation = xno; then
4078  echo "no"
4079fi
4080
4081
4082if test x$def_documentation = xyes; then
4083  DOCUMENTATION_TRUE=
4084  DOCUMENTATION_FALSE='#'
4085else
4086  DOCUMENTATION_TRUE='#'
4087  DOCUMENTATION_FALSE=
4088fi
4089
4090#######################
4091## PROGRAMM CHECKING ##
4092## 3. party Programs ##
4093#######################
4094
4095#----------------------#
4096# checking for Doxygen #
4097#----------------------#
4098# Extract the first word of "doxygen", so it can be a program name with args.
4099set dummy doxygen; ac_word=$2
4100echo "$as_me:$LINENO: checking for $ac_word" >&5
4101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102if test "${ac_cv_path_DOXYGEN+set}" = set; then
4103  echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105  case $DOXYGEN in
4106  [\\/]* | ?:[\\/]*)
4107  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4108  ;;
4109  *)
4110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113  IFS=$as_save_IFS
4114  test -z "$as_dir" && as_dir=.
4115  for ac_exec_ext in '' $ac_executable_extensions; do
4116  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4118    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119    break 2
4120  fi
4121done
4122done
4123
4124  ;;
4125esac
4126fi
4127DOXYGEN=$ac_cv_path_DOXYGEN
4128
4129if test -n "$DOXYGEN"; then
4130  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4131echo "${ECHO_T}$DOXYGEN" >&6
4132else
4133  echo "$as_me:$LINENO: result: no" >&5
4134echo "${ECHO_T}no" >&6
4135fi
4136
4137
4138
4139if test $DOXYGEN; then
4140  DOXYGEN_TRUE=
4141  DOXYGEN_FALSE='#'
4142else
4143  DOXYGEN_TRUE='#'
4144  DOXYGEN_FALSE=
4145fi
4146
4147
4148#--------------------#
4149# checking for gprof #
4150#--------------------#
4151# Extract the first word of "gprof", so it can be a program name with args.
4152set dummy gprof; ac_word=$2
4153echo "$as_me:$LINENO: checking for $ac_word" >&5
4154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155if test "${ac_cv_path_GPROF+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  case $GPROF in
4159  [\\/]* | ?:[\\/]*)
4160  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4161  ;;
4162  *)
4163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166  IFS=$as_save_IFS
4167  test -z "$as_dir" && as_dir=.
4168  for ac_exec_ext in '' $ac_executable_extensions; do
4169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172    break 2
4173  fi
4174done
4175done
4176
4177  ;;
4178esac
4179fi
4180GPROF=$ac_cv_path_GPROF
4181
4182if test -n "$GPROF"; then
4183  echo "$as_me:$LINENO: result: $GPROF" >&5
4184echo "${ECHO_T}$GPROF" >&6
4185else
4186  echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188fi
4189
4190
4191#########################
4192## CHECKING FOR SYSTEM ##
4193#########################
4194## here the system is checked, and openGL is included
4195## also checking for SDL on differen Systems
4196
4197echo "$as_me:$LINENO: checking for System" >&5
4198echo $ECHO_N "checking for System... $ECHO_C" >&6
4199## checking for openGL-environment and other sys-specific parameters
4200case "$target" in
4201#---------#
4202# WINDOWS #
4203#---------#
4204  *-*-mingw32*)
4205echo "mingw-WINDOWS detected"
4206
4207    mingw="yes"
4208    MSBITFIELDS="-mms-bitfields"
4209    MWINDOWS="-mwindows"
4210
4211# checking gl header
4212        #done before loop
4213
4214# checking gl header
4215   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4226                  inttypes.h stdint.h unistd.h
4227do
4228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4229echo "$as_me:$LINENO: checking for $ac_header" >&5
4230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4231if eval "test \"\${$as_ac_Header+set}\" = set"; then
4232  echo $ECHO_N "(cached) $ECHO_C" >&6
4233else
4234  cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240$ac_includes_default
4241
4242#include <$ac_header>
4243_ACEOF
4244rm -f conftest.$ac_objext
4245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4246  (eval $ac_compile) 2>conftest.er1
4247  ac_status=$?
4248  grep -v '^ *+' conftest.er1 >conftest.err
4249  rm -f conftest.er1
4250  cat conftest.err >&5
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); } &&
4253         { ac_try='test -z "$ac_c_werror_flag"
4254                         || test ! -s conftest.err'
4255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256  (eval $ac_try) 2>&5
4257  ac_status=$?
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); }; } &&
4260         { ac_try='test -s conftest.$ac_objext'
4261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262  (eval $ac_try) 2>&5
4263  ac_status=$?
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); }; }; then
4266  eval "$as_ac_Header=yes"
4267else
4268  echo "$as_me: failed program was:" >&5
4269sed 's/^/| /' conftest.$ac_ext >&5
4270
4271eval "$as_ac_Header=no"
4272fi
4273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4274fi
4275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4277if test `eval echo '${'$as_ac_Header'}'` = yes; then
4278  cat >>confdefs.h <<_ACEOF
4279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4280_ACEOF
4281
4282fi
4283
4284done
4285
4286
4287
4288for ac_header in GL/gl.h
4289do
4290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4291if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292  echo "$as_me:$LINENO: checking for $ac_header" >&5
4293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4294if eval "test \"\${$as_ac_Header+set}\" = set"; then
4295  echo $ECHO_N "(cached) $ECHO_C" >&6
4296fi
4297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4299else
4300  # Is the header compilable?
4301echo "$as_me:$LINENO: checking $ac_header usability" >&5
4302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4303cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309$ac_includes_default
4310#include <$ac_header>
4311_ACEOF
4312rm -f conftest.$ac_objext
4313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314  (eval $ac_compile) 2>conftest.er1
4315  ac_status=$?
4316  grep -v '^ *+' conftest.er1 >conftest.err
4317  rm -f conftest.er1
4318  cat conftest.err >&5
4319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320  (exit $ac_status); } &&
4321         { ac_try='test -z "$ac_c_werror_flag"
4322                         || test ! -s conftest.err'
4323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324  (eval $ac_try) 2>&5
4325  ac_status=$?
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); }; } &&
4328         { ac_try='test -s conftest.$ac_objext'
4329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330  (eval $ac_try) 2>&5
4331  ac_status=$?
4332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333  (exit $ac_status); }; }; then
4334  ac_header_compiler=yes
4335else
4336  echo "$as_me: failed program was:" >&5
4337sed 's/^/| /' conftest.$ac_ext >&5
4338
4339ac_header_compiler=no
4340fi
4341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4343echo "${ECHO_T}$ac_header_compiler" >&6
4344
4345# Is the header present?
4346echo "$as_me:$LINENO: checking $ac_header presence" >&5
4347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4348cat >conftest.$ac_ext <<_ACEOF
4349/* confdefs.h.  */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h.  */
4354#include <$ac_header>
4355_ACEOF
4356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } >/dev/null; then
4364  if test -s conftest.err; then
4365    ac_cpp_err=$ac_c_preproc_warn_flag
4366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4367  else
4368    ac_cpp_err=
4369  fi
4370else
4371  ac_cpp_err=yes
4372fi
4373if test -z "$ac_cpp_err"; then
4374  ac_header_preproc=yes
4375else
4376  echo "$as_me: failed program was:" >&5
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
4379  ac_header_preproc=no
4380fi
4381rm -f conftest.err conftest.$ac_ext
4382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4383echo "${ECHO_T}$ac_header_preproc" >&6
4384
4385# So?  What about this header?
4386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4387  yes:no: )
4388    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4392    ac_header_preproc=yes
4393    ;;
4394  no:yes:* )
4395    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4397    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4398echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4399    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4401    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4402echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4405    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4407    (
4408      cat <<\_ASBOX
4409## ---------------------------------------------- ##
4410## Report this to orxonox-dev at mail.datacore.ch ##
4411## ---------------------------------------------- ##
4412_ASBOX
4413    ) |
4414      sed "s/^/$as_me: WARNING:     /" >&2
4415    ;;
4416esac
4417echo "$as_me:$LINENO: checking for $ac_header" >&5
4418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4419if eval "test \"\${$as_ac_Header+set}\" = set"; then
4420  echo $ECHO_N "(cached) $ECHO_C" >&6
4421else
4422  eval "$as_ac_Header=\$ac_header_preproc"
4423fi
4424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4426
4427fi
4428if test `eval echo '${'$as_ac_Header'}'` = yes; then
4429  cat >>confdefs.h <<_ACEOF
4430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431_ACEOF
4432
4433else
4434  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4435echo "$as_me: error: cannot find opengl headers" >&2;}
4436   { (exit 1); exit 1; }; }
4437fi
4438
4439done
4440
4441#   checking for Windows openGl library
4442    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4443echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4444if test "${ac_cv_lib_opengl32_main+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  ac_check_lib_save_LIBS=$LIBS
4448LIBS="-lopengl32  $LIBS"
4449cat >conftest.$ac_ext <<_ACEOF
4450/* confdefs.h.  */
4451_ACEOF
4452cat confdefs.h >>conftest.$ac_ext
4453cat >>conftest.$ac_ext <<_ACEOF
4454/* end confdefs.h.  */
4455
4456
4457int
4458main ()
4459{
4460main ();
4461  ;
4462  return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext conftest$ac_exeext
4466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467  (eval $ac_link) 2>conftest.er1
4468  ac_status=$?
4469  grep -v '^ *+' conftest.er1 >conftest.err
4470  rm -f conftest.er1
4471  cat conftest.err >&5
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); } &&
4474         { ac_try='test -z "$ac_c_werror_flag"
4475                         || test ! -s conftest.err'
4476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477  (eval $ac_try) 2>&5
4478  ac_status=$?
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); }; } &&
4481         { ac_try='test -s conftest$ac_exeext'
4482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483  (eval $ac_try) 2>&5
4484  ac_status=$?
4485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486  (exit $ac_status); }; }; then
4487  ac_cv_lib_opengl32_main=yes
4488else
4489  echo "$as_me: failed program was:" >&5
4490sed 's/^/| /' conftest.$ac_ext >&5
4491
4492ac_cv_lib_opengl32_main=no
4493fi
4494rm -f conftest.err conftest.$ac_objext \
4495      conftest$ac_exeext conftest.$ac_ext
4496LIBS=$ac_check_lib_save_LIBS
4497fi
4498echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4499echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4500if test $ac_cv_lib_opengl32_main = yes; then
4501  FOUND_opengl32=yes
4502else
4503  "gl/gl.h"
4504fi
4505
4506    if test x$FOUND_opengl32 = xyes ; then
4507        LIBS="$LIBS -lopengl32"
4508    else
4509         echo "------------------"
4510         echo "opengl not found."
4511         echo "please install the opengl package which can be found at http://www.opengl.org"
4512         echo "------------------"
4513         exit -1
4514    fi
4515
4516# cheking for GLU-header
4517
4518for ac_header in GL/glu.h
4519do
4520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4521if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522  echo "$as_me:$LINENO: checking for $ac_header" >&5
4523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526fi
4527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529else
4530  # Is the header compilable?
4531echo "$as_me:$LINENO: checking $ac_header usability" >&5
4532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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$ac_includes_default
4540#include <$ac_header>
4541_ACEOF
4542rm -f conftest.$ac_objext
4543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544  (eval $ac_compile) 2>conftest.er1
4545  ac_status=$?
4546  grep -v '^ *+' conftest.er1 >conftest.err
4547  rm -f conftest.er1
4548  cat conftest.err >&5
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); } &&
4551         { ac_try='test -z "$ac_c_werror_flag"
4552                         || test ! -s conftest.err'
4553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554  (eval $ac_try) 2>&5
4555  ac_status=$?
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); }; } &&
4558         { ac_try='test -s conftest.$ac_objext'
4559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560  (eval $ac_try) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; }; then
4564  ac_header_compiler=yes
4565else
4566  echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569ac_header_compiler=no
4570fi
4571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4573echo "${ECHO_T}$ac_header_compiler" >&6
4574
4575# Is the header present?
4576echo "$as_me:$LINENO: checking $ac_header presence" >&5
4577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4578cat >conftest.$ac_ext <<_ACEOF
4579/* confdefs.h.  */
4580_ACEOF
4581cat confdefs.h >>conftest.$ac_ext
4582cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h.  */
4584#include <$ac_header>
4585_ACEOF
4586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4587  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } >/dev/null; then
4594  if test -s conftest.err; then
4595    ac_cpp_err=$ac_c_preproc_warn_flag
4596    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4597  else
4598    ac_cpp_err=
4599  fi
4600else
4601  ac_cpp_err=yes
4602fi
4603if test -z "$ac_cpp_err"; then
4604  ac_header_preproc=yes
4605else
4606  echo "$as_me: failed program was:" >&5
4607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609  ac_header_preproc=no
4610fi
4611rm -f conftest.err conftest.$ac_ext
4612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4613echo "${ECHO_T}$ac_header_preproc" >&6
4614
4615# So?  What about this header?
4616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4617  yes:no: )
4618    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4620    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4622    ac_header_preproc=yes
4623    ;;
4624  no:yes:* )
4625    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4627    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4628echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4629    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4631    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4632echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4635    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4637    (
4638      cat <<\_ASBOX
4639## ---------------------------------------------- ##
4640## Report this to orxonox-dev at mail.datacore.ch ##
4641## ---------------------------------------------- ##
4642_ASBOX
4643    ) |
4644      sed "s/^/$as_me: WARNING:     /" >&2
4645    ;;
4646esac
4647echo "$as_me:$LINENO: checking for $ac_header" >&5
4648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4649if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650  echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652  eval "$as_ac_Header=\$ac_header_preproc"
4653fi
4654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656
4657fi
4658if test `eval echo '${'$as_ac_Header'}'` = yes; then
4659  cat >>confdefs.h <<_ACEOF
4660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4661_ACEOF
4662
4663else
4664  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4665echo "$as_me: error: cannot find opengl headers" >&2;}
4666   { (exit 1); exit 1; }; }
4667fi
4668
4669done
4670
4671
4672# checking for libGLU
4673    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4674echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4675if test "${ac_cv_lib_glu32_main+set}" = set; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  ac_check_lib_save_LIBS=$LIBS
4679LIBS="-lglu32  $LIBS"
4680cat >conftest.$ac_ext <<_ACEOF
4681/* confdefs.h.  */
4682_ACEOF
4683cat confdefs.h >>conftest.$ac_ext
4684cat >>conftest.$ac_ext <<_ACEOF
4685/* end confdefs.h.  */
4686
4687
4688int
4689main ()
4690{
4691main ();
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696rm -f conftest.$ac_objext conftest$ac_exeext
4697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4698  (eval $ac_link) 2>conftest.er1
4699  ac_status=$?
4700  grep -v '^ *+' conftest.er1 >conftest.err
4701  rm -f conftest.er1
4702  cat conftest.err >&5
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); } &&
4705         { ac_try='test -z "$ac_c_werror_flag"
4706                         || test ! -s conftest.err'
4707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708  (eval $ac_try) 2>&5
4709  ac_status=$?
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); }; } &&
4712         { ac_try='test -s conftest$ac_exeext'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; }; then
4718  ac_cv_lib_glu32_main=yes
4719else
4720  echo "$as_me: failed program was:" >&5
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723ac_cv_lib_glu32_main=no
4724fi
4725rm -f conftest.err conftest.$ac_objext \
4726      conftest$ac_exeext conftest.$ac_ext
4727LIBS=$ac_check_lib_save_LIBS
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4730echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4731if test $ac_cv_lib_glu32_main = yes; then
4732  FOUND_glu32=yes
4733fi
4734
4735    if test x$FOUND_glu32 = xyes ; then
4736        LIBS="$LIBS -lGLU32"
4737    else
4738         echo "------------------"
4739         echo "GLU library not found."
4740         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4741         echo "------------------"
4742         exit -1
4743    fi
4744
4745# checking for mingw32
4746    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4747echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4748if test "${ac_cv_lib_mingw32_main+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  ac_check_lib_save_LIBS=$LIBS
4752LIBS="-lmingw32  $LIBS"
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h.  */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h.  */
4759
4760
4761int
4762main ()
4763{
4764main ();
4765  ;
4766  return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext conftest$ac_exeext
4770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771  (eval $ac_link) 2>conftest.er1
4772  ac_status=$?
4773  grep -v '^ *+' conftest.er1 >conftest.err
4774  rm -f conftest.er1
4775  cat conftest.err >&5
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); } &&
4778         { ac_try='test -z "$ac_c_werror_flag"
4779                         || test ! -s conftest.err'
4780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781  (eval $ac_try) 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }; } &&
4785         { ac_try='test -s conftest$ac_exeext'
4786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787  (eval $ac_try) 2>&5
4788  ac_status=$?
4789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790  (exit $ac_status); }; }; then
4791  ac_cv_lib_mingw32_main=yes
4792else
4793  echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796ac_cv_lib_mingw32_main=no
4797fi
4798rm -f conftest.err conftest.$ac_objext \
4799      conftest$ac_exeext conftest.$ac_ext
4800LIBS=$ac_check_lib_save_LIBS
4801fi
4802echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4803echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4804if test $ac_cv_lib_mingw32_main = yes; then
4805  FOUND_mingw32=yes
4806fi
4807
4808    if test x$FOUND_mingw32 = xyes; then
4809        LIBS="$LIBS -lmingw32"
4810    fi
4811# checking for SDL-headers
4812
4813for ac_header in SDL/SDL.h
4814do
4815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4816if eval "test \"\${$as_ac_Header+set}\" = set"; then
4817  echo "$as_me:$LINENO: checking for $ac_header" >&5
4818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4819if eval "test \"\${$as_ac_Header+set}\" = set"; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821fi
4822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4824else
4825  # Is the header compilable?
4826echo "$as_me:$LINENO: checking $ac_header usability" >&5
4827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4828cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h.  */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h.  */
4834$ac_includes_default
4835#include <$ac_header>
4836_ACEOF
4837rm -f conftest.$ac_objext
4838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839  (eval $ac_compile) 2>conftest.er1
4840  ac_status=$?
4841  grep -v '^ *+' conftest.er1 >conftest.err
4842  rm -f conftest.er1
4843  cat conftest.err >&5
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); } &&
4846         { ac_try='test -z "$ac_c_werror_flag"
4847                         || test ! -s conftest.err'
4848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849  (eval $ac_try) 2>&5
4850  ac_status=$?
4851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852  (exit $ac_status); }; } &&
4853         { ac_try='test -s conftest.$ac_objext'
4854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855  (eval $ac_try) 2>&5
4856  ac_status=$?
4857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858  (exit $ac_status); }; }; then
4859  ac_header_compiler=yes
4860else
4861  echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864ac_header_compiler=no
4865fi
4866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4868echo "${ECHO_T}$ac_header_compiler" >&6
4869
4870# Is the header present?
4871echo "$as_me:$LINENO: checking $ac_header presence" >&5
4872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4873cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h.  */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h.  */
4879#include <$ac_header>
4880_ACEOF
4881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4882  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4883  ac_status=$?
4884  grep -v '^ *+' conftest.er1 >conftest.err
4885  rm -f conftest.er1
4886  cat conftest.err >&5
4887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888  (exit $ac_status); } >/dev/null; then
4889  if test -s conftest.err; then
4890    ac_cpp_err=$ac_c_preproc_warn_flag
4891    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4892  else
4893    ac_cpp_err=
4894  fi
4895else
4896  ac_cpp_err=yes
4897fi
4898if test -z "$ac_cpp_err"; then
4899  ac_header_preproc=yes
4900else
4901  echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904  ac_header_preproc=no
4905fi
4906rm -f conftest.err conftest.$ac_ext
4907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4908echo "${ECHO_T}$ac_header_preproc" >&6
4909
4910# So?  What about this header?
4911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4912  yes:no: )
4913    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4915    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4917    ac_header_preproc=yes
4918    ;;
4919  no:yes:* )
4920    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4922    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4923echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4924    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4926    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4927echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4928    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4930    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4932    (
4933      cat <<\_ASBOX
4934## ---------------------------------------------- ##
4935## Report this to orxonox-dev at mail.datacore.ch ##
4936## ---------------------------------------------- ##
4937_ASBOX
4938    ) |
4939      sed "s/^/$as_me: WARNING:     /" >&2
4940    ;;
4941esac
4942echo "$as_me:$LINENO: checking for $ac_header" >&5
4943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4944if eval "test \"\${$as_ac_Header+set}\" = set"; then
4945  echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947  eval "$as_ac_Header=\$ac_header_preproc"
4948fi
4949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4951
4952fi
4953if test `eval echo '${'$as_ac_Header'}'` = yes; then
4954  cat >>confdefs.h <<_ACEOF
4955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4956_ACEOF
4957
4958else
4959  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4960echo "$as_me: error: cannot find SDL headers" >&2;}
4961   { (exit 1); exit 1; }; }
4962fi
4963
4964done
4965
4966
4967#checking for libSDL
4968    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4969echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4970if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4971  echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973  ac_check_lib_save_LIBS=$LIBS
4974LIBS="-lsdlmain  $LIBS"
4975cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h.  */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h.  */
4981
4982
4983int
4984main ()
4985{
4986main ();
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext conftest$ac_exeext
4992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993  (eval $ac_link) 2>conftest.er1
4994  ac_status=$?
4995  grep -v '^ *+' conftest.er1 >conftest.err
4996  rm -f conftest.er1
4997  cat conftest.err >&5
4998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); } &&
5000         { ac_try='test -z "$ac_c_werror_flag"
5001                         || test ! -s conftest.err'
5002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003  (eval $ac_try) 2>&5
5004  ac_status=$?
5005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006  (exit $ac_status); }; } &&
5007         { ac_try='test -s conftest$ac_exeext'
5008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009  (eval $ac_try) 2>&5
5010  ac_status=$?
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); }; }; then
5013  ac_cv_lib_sdlmain_main=yes
5014else
5015  echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018ac_cv_lib_sdlmain_main=no
5019fi
5020rm -f conftest.err conftest.$ac_objext \
5021      conftest$ac_exeext conftest.$ac_ext
5022LIBS=$ac_check_lib_save_LIBS
5023fi
5024echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5025echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5026if test $ac_cv_lib_sdlmain_main = yes; then
5027  FOUND_sdlmain=yes
5028fi
5029
5030    if test x$FOUND_sdlmain = xyes ; then
5031       LIBS="$LIBS -lsdlmain"
5032    else
5033        echo "------------------"
5034        echo "SDL library not found."
5035        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5036        echo "------------------"
5037        exit 1
5038    fi
5039    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5040echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5041if test "${ac_cv_lib_sdl_main+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  ac_check_lib_save_LIBS=$LIBS
5045LIBS="-lsdl  $LIBS"
5046cat >conftest.$ac_ext <<_ACEOF
5047/* confdefs.h.  */
5048_ACEOF
5049cat confdefs.h >>conftest.$ac_ext
5050cat >>conftest.$ac_ext <<_ACEOF
5051/* end confdefs.h.  */
5052
5053
5054int
5055main ()
5056{
5057main ();
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext conftest$ac_exeext
5063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064  (eval $ac_link) 2>conftest.er1
5065  ac_status=$?
5066  grep -v '^ *+' conftest.er1 >conftest.err
5067  rm -f conftest.er1
5068  cat conftest.err >&5
5069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070  (exit $ac_status); } &&
5071         { ac_try='test -z "$ac_c_werror_flag"
5072                         || test ! -s conftest.err'
5073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074  (eval $ac_try) 2>&5
5075  ac_status=$?
5076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077  (exit $ac_status); }; } &&
5078         { ac_try='test -s conftest$ac_exeext'
5079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080  (eval $ac_try) 2>&5
5081  ac_status=$?
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); }; }; then
5084  ac_cv_lib_sdl_main=yes
5085else
5086  echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089ac_cv_lib_sdl_main=no
5090fi
5091rm -f conftest.err conftest.$ac_objext \
5092      conftest$ac_exeext conftest.$ac_ext
5093LIBS=$ac_check_lib_save_LIBS
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5096echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5097if test $ac_cv_lib_sdl_main = yes; then
5098  FOUND_sdl=yes
5099fi
5100
5101    if test x$FOUND_sdl = xyes ; then
5102       LIBS="$LIBS -lsdl"
5103    else
5104        echo "------------------"
5105        echo "SDL library not found."
5106        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5107        echo "------------------"
5108        exit -1
5109    fi
5110
5111    ;;
5112#-------#
5113# LINUX #
5114#-------#
5115 *-*-linux*)
5116echo "Linux detected"
5117
5118 Linux="yes"
5119
5120CPPFLAGS="-I/usr/X11R6/include"
5121LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5122# checking gl header
5123
5124for ac_header in GL/gl.h
5125do
5126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5127if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128  echo "$as_me:$LINENO: checking for $ac_header" >&5
5129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5130if eval "test \"\${$as_ac_Header+set}\" = set"; then
5131  echo $ECHO_N "(cached) $ECHO_C" >&6
5132fi
5133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5135else
5136  # Is the header compilable?
5137echo "$as_me:$LINENO: checking $ac_header usability" >&5
5138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5139cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h.  */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h.  */
5145$ac_includes_default
5146#include <$ac_header>
5147_ACEOF
5148rm -f conftest.$ac_objext
5149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150  (eval $ac_compile) 2>conftest.er1
5151  ac_status=$?
5152  grep -v '^ *+' conftest.er1 >conftest.err
5153  rm -f conftest.er1
5154  cat conftest.err >&5
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); } &&
5157         { ac_try='test -z "$ac_c_werror_flag"
5158                         || test ! -s conftest.err'
5159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160  (eval $ac_try) 2>&5
5161  ac_status=$?
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); }; } &&
5164         { ac_try='test -s conftest.$ac_objext'
5165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166  (eval $ac_try) 2>&5
5167  ac_status=$?
5168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169  (exit $ac_status); }; }; then
5170  ac_header_compiler=yes
5171else
5172  echo "$as_me: failed program was:" >&5
5173sed 's/^/| /' conftest.$ac_ext >&5
5174
5175ac_header_compiler=no
5176fi
5177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5179echo "${ECHO_T}$ac_header_compiler" >&6
5180
5181# Is the header present?
5182echo "$as_me:$LINENO: checking $ac_header presence" >&5
5183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5184cat >conftest.$ac_ext <<_ACEOF
5185/* confdefs.h.  */
5186_ACEOF
5187cat confdefs.h >>conftest.$ac_ext
5188cat >>conftest.$ac_ext <<_ACEOF
5189/* end confdefs.h.  */
5190#include <$ac_header>
5191_ACEOF
5192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } >/dev/null; then
5200  if test -s conftest.err; then
5201    ac_cpp_err=$ac_c_preproc_warn_flag
5202    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203  else
5204    ac_cpp_err=
5205  fi
5206else
5207  ac_cpp_err=yes
5208fi
5209if test -z "$ac_cpp_err"; then
5210  ac_header_preproc=yes
5211else
5212  echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215  ac_header_preproc=no
5216fi
5217rm -f conftest.err conftest.$ac_ext
5218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5219echo "${ECHO_T}$ac_header_preproc" >&6
5220
5221# So?  What about this header?
5222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5223  yes:no: )
5224    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5228    ac_header_preproc=yes
5229    ;;
5230  no:yes:* )
5231    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5233    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5234echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5235    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5237    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5238echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5239    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5241    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5243    (
5244      cat <<\_ASBOX
5245## ---------------------------------------------- ##
5246## Report this to orxonox-dev at mail.datacore.ch ##
5247## ---------------------------------------------- ##
5248_ASBOX
5249    ) |
5250      sed "s/^/$as_me: WARNING:     /" >&2
5251    ;;
5252esac
5253echo "$as_me:$LINENO: checking for $ac_header" >&5
5254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5255if eval "test \"\${$as_ac_Header+set}\" = set"; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258  eval "$as_ac_Header=\$ac_header_preproc"
5259fi
5260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5262
5263fi
5264if test `eval echo '${'$as_ac_Header'}'` = yes; then
5265  cat >>confdefs.h <<_ACEOF
5266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267_ACEOF
5268
5269else
5270  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5271echo "$as_me: error: cannot find opengl headers" >&2;}
5272   { (exit 1); exit 1; }; }
5273fi
5274
5275done
5276
5277
5278#  checking for Unix GL
5279   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5280echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5281if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284  ac_check_lib_save_LIBS=$LIBS
5285LIBS="-lGL  $LIBS"
5286cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h.  */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h.  */
5292
5293/* Override any gcc2 internal prototype to avoid an error.  */
5294#ifdef __cplusplus
5295extern "C"
5296#endif
5297/* We use char because int might match the return type of a gcc2
5298   builtin and then its argument prototype would still apply.  */
5299char glLoadIdentity ();
5300int
5301main ()
5302{
5303glLoadIdentity ();
5304  ;
5305  return 0;
5306}
5307_ACEOF
5308rm -f conftest.$ac_objext conftest$ac_exeext
5309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5310  (eval $ac_link) 2>conftest.er1
5311  ac_status=$?
5312  grep -v '^ *+' conftest.er1 >conftest.err
5313  rm -f conftest.er1
5314  cat conftest.err >&5
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); } &&
5317         { ac_try='test -z "$ac_c_werror_flag"
5318                         || test ! -s conftest.err'
5319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320  (eval $ac_try) 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }; } &&
5324         { ac_try='test -s conftest$ac_exeext'
5325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326  (eval $ac_try) 2>&5
5327  ac_status=$?
5328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329  (exit $ac_status); }; }; then
5330  ac_cv_lib_GL_glLoadIdentity=yes
5331else
5332  echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335ac_cv_lib_GL_glLoadIdentity=no
5336fi
5337rm -f conftest.err conftest.$ac_objext \
5338      conftest$ac_exeext conftest.$ac_ext
5339LIBS=$ac_check_lib_save_LIBS
5340fi
5341echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5342echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5343if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5344  FOUND_GL=yes
5345fi
5346
5347   if test x$FOUND_GL = xyes ; then
5348     LIBS="$LIBS -lGL"
5349   else
5350         echo "------------------"
5351         echo "opengl not found."
5352         echo "please install the opengl package which can be found at http://www.opengl.org"
5353         echo "------------------"
5354         exit -1
5355   fi
5356
5357# cheking for GLU-header
5358
5359for ac_header in GL/glu.h
5360do
5361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362if eval "test \"\${$as_ac_Header+set}\" = set"; then
5363  echo "$as_me:$LINENO: checking for $ac_header" >&5
5364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5365if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367fi
5368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5370else
5371  # Is the header compilable?
5372echo "$as_me:$LINENO: checking $ac_header usability" >&5
5373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5374cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h.  */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h.  */
5380$ac_includes_default
5381#include <$ac_header>
5382_ACEOF
5383rm -f conftest.$ac_objext
5384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385  (eval $ac_compile) 2>conftest.er1
5386  ac_status=$?
5387  grep -v '^ *+' conftest.er1 >conftest.err
5388  rm -f conftest.er1
5389  cat conftest.err >&5
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); } &&
5392         { ac_try='test -z "$ac_c_werror_flag"
5393                         || test ! -s conftest.err'
5394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395  (eval $ac_try) 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); }; } &&
5399         { ac_try='test -s conftest.$ac_objext'
5400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401  (eval $ac_try) 2>&5
5402  ac_status=$?
5403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404  (exit $ac_status); }; }; then
5405  ac_header_compiler=yes
5406else
5407  echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410ac_header_compiler=no
5411fi
5412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5414echo "${ECHO_T}$ac_header_compiler" >&6
5415
5416# Is the header present?
5417echo "$as_me:$LINENO: checking $ac_header presence" >&5
5418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5419cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h.  */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h.  */
5425#include <$ac_header>
5426_ACEOF
5427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5428  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5429  ac_status=$?
5430  grep -v '^ *+' conftest.er1 >conftest.err
5431  rm -f conftest.er1
5432  cat conftest.err >&5
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); } >/dev/null; then
5435  if test -s conftest.err; then
5436    ac_cpp_err=$ac_c_preproc_warn_flag
5437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5438  else
5439    ac_cpp_err=
5440  fi
5441else
5442  ac_cpp_err=yes
5443fi
5444if test -z "$ac_cpp_err"; then
5445  ac_header_preproc=yes
5446else
5447  echo "$as_me: failed program was:" >&5
5448sed 's/^/| /' conftest.$ac_ext >&5
5449
5450  ac_header_preproc=no
5451fi
5452rm -f conftest.err conftest.$ac_ext
5453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454echo "${ECHO_T}$ac_header_preproc" >&6
5455
5456# So?  What about this header?
5457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5458  yes:no: )
5459    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5463    ac_header_preproc=yes
5464    ;;
5465  no:yes:* )
5466    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5468    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5469echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5470    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5472    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5473echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5474    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5476    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5478    (
5479      cat <<\_ASBOX
5480## ---------------------------------------------- ##
5481## Report this to orxonox-dev at mail.datacore.ch ##
5482## ---------------------------------------------- ##
5483_ASBOX
5484    ) |
5485      sed "s/^/$as_me: WARNING:     /" >&2
5486    ;;
5487esac
5488echo "$as_me:$LINENO: checking for $ac_header" >&5
5489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5490if eval "test \"\${$as_ac_Header+set}\" = set"; then
5491  echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493  eval "$as_ac_Header=\$ac_header_preproc"
5494fi
5495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5497
5498fi
5499if test `eval echo '${'$as_ac_Header'}'` = yes; then
5500  cat >>confdefs.h <<_ACEOF
5501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502_ACEOF
5503
5504else
5505  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5506echo "$as_me: error: cannot find opengl headers" >&2;}
5507   { (exit 1); exit 1; }; }
5508fi
5509
5510done
5511
5512
5513    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5514echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5515if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5516  echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518  ac_check_lib_save_LIBS=$LIBS
5519LIBS="-lGLU  $LIBS"
5520cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h.  */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h.  */
5526
5527/* Override any gcc2 internal prototype to avoid an error.  */
5528#ifdef __cplusplus
5529extern "C"
5530#endif
5531/* We use char because int might match the return type of a gcc2
5532   builtin and then its argument prototype would still apply.  */
5533char gluProject ();
5534int
5535main ()
5536{
5537gluProject ();
5538  ;
5539  return 0;
5540}
5541_ACEOF
5542rm -f conftest.$ac_objext conftest$ac_exeext
5543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544  (eval $ac_link) 2>conftest.er1
5545  ac_status=$?
5546  grep -v '^ *+' conftest.er1 >conftest.err
5547  rm -f conftest.er1
5548  cat conftest.err >&5
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); } &&
5551         { ac_try='test -z "$ac_c_werror_flag"
5552                         || test ! -s conftest.err'
5553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554  (eval $ac_try) 2>&5
5555  ac_status=$?
5556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557  (exit $ac_status); }; } &&
5558         { ac_try='test -s conftest$ac_exeext'
5559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560  (eval $ac_try) 2>&5
5561  ac_status=$?
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); }; }; then
5564  ac_cv_lib_GLU_gluProject=yes
5565else
5566  echo "$as_me: failed program was:" >&5
5567sed 's/^/| /' conftest.$ac_ext >&5
5568
5569ac_cv_lib_GLU_gluProject=no
5570fi
5571rm -f conftest.err conftest.$ac_objext \
5572      conftest$ac_exeext conftest.$ac_ext
5573LIBS=$ac_check_lib_save_LIBS
5574fi
5575echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5576echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5577if test $ac_cv_lib_GLU_gluProject = yes; then
5578  FOUND_GLU=yes
5579fi
5580
5581    if test x$FOUND_GLU = xyes ; then
5582      LIBS="$LIBS -lGLU"
5583    else
5584         echo "------------------"
5585         echo "GLU library not found."
5586         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5587         echo "------------------"
5588         exit -1
5589    fi
5590
5591# checking for SDL-headers
5592
5593for ac_header in SDL/SDL.h
5594do
5595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596if eval "test \"\${$as_ac_Header+set}\" = set"; then
5597  echo "$as_me:$LINENO: checking for $ac_header" >&5
5598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5599if eval "test \"\${$as_ac_Header+set}\" = set"; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601fi
5602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604else
5605  # Is the header compilable?
5606echo "$as_me:$LINENO: checking $ac_header usability" >&5
5607echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5608cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h.  */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h.  */
5614$ac_includes_default
5615#include <$ac_header>
5616_ACEOF
5617rm -f conftest.$ac_objext
5618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619  (eval $ac_compile) 2>conftest.er1
5620  ac_status=$?
5621  grep -v '^ *+' conftest.er1 >conftest.err
5622  rm -f conftest.er1
5623  cat conftest.err >&5
5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625  (exit $ac_status); } &&
5626         { ac_try='test -z "$ac_c_werror_flag"
5627                         || test ! -s conftest.err'
5628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629  (eval $ac_try) 2>&5
5630  ac_status=$?
5631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632  (exit $ac_status); }; } &&
5633         { ac_try='test -s conftest.$ac_objext'
5634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635  (eval $ac_try) 2>&5
5636  ac_status=$?
5637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638  (exit $ac_status); }; }; then
5639  ac_header_compiler=yes
5640else
5641  echo "$as_me: failed program was:" >&5
5642sed 's/^/| /' conftest.$ac_ext >&5
5643
5644ac_header_compiler=no
5645fi
5646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5648echo "${ECHO_T}$ac_header_compiler" >&6
5649
5650# Is the header present?
5651echo "$as_me:$LINENO: checking $ac_header presence" >&5
5652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5653cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h.  */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h.  */
5659#include <$ac_header>
5660_ACEOF
5661if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663  ac_status=$?
5664  grep -v '^ *+' conftest.er1 >conftest.err
5665  rm -f conftest.er1
5666  cat conftest.err >&5
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } >/dev/null; then
5669  if test -s conftest.err; then
5670    ac_cpp_err=$ac_c_preproc_warn_flag
5671    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5672  else
5673    ac_cpp_err=
5674  fi
5675else
5676  ac_cpp_err=yes
5677fi
5678if test -z "$ac_cpp_err"; then
5679  ac_header_preproc=yes
5680else
5681  echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684  ac_header_preproc=no
5685fi
5686rm -f conftest.err conftest.$ac_ext
5687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5688echo "${ECHO_T}$ac_header_preproc" >&6
5689
5690# So?  What about this header?
5691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5692  yes:no: )
5693    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5695    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5696echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5697    ac_header_preproc=yes
5698    ;;
5699  no:yes:* )
5700    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5702    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5703echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5704    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5705echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5706    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5707echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5708    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5710    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5711echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5712    (
5713      cat <<\_ASBOX
5714## ---------------------------------------------- ##
5715## Report this to orxonox-dev at mail.datacore.ch ##
5716## ---------------------------------------------- ##
5717_ASBOX
5718    ) |
5719      sed "s/^/$as_me: WARNING:     /" >&2
5720    ;;
5721esac
5722echo "$as_me:$LINENO: checking for $ac_header" >&5
5723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5724if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725  echo $ECHO_N "(cached) $ECHO_C" >&6
5726else
5727  eval "$as_ac_Header=\$ac_header_preproc"
5728fi
5729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5731
5732fi
5733if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734  cat >>confdefs.h <<_ACEOF
5735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5736_ACEOF
5737
5738else
5739  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5740echo "$as_me: error: cannot find SDL headers" >&2;}
5741   { (exit 1); exit 1; }; }
5742fi
5743
5744done
5745
5746
5747# checking for SDL-lib
5748    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5749echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5750if test "${ac_cv_lib_SDL_main+set}" = set; then
5751  echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753  ac_check_lib_save_LIBS=$LIBS
5754LIBS="-lSDL  $LIBS"
5755cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h.  */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h.  */
5761
5762
5763int
5764main ()
5765{
5766main ();
5767  ;
5768  return 0;
5769}
5770_ACEOF
5771rm -f conftest.$ac_objext conftest$ac_exeext
5772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5773  (eval $ac_link) 2>conftest.er1
5774  ac_status=$?
5775  grep -v '^ *+' conftest.er1 >conftest.err
5776  rm -f conftest.er1
5777  cat conftest.err >&5
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); } &&
5780         { ac_try='test -z "$ac_c_werror_flag"
5781                         || test ! -s conftest.err'
5782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783  (eval $ac_try) 2>&5
5784  ac_status=$?
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); }; } &&
5787         { ac_try='test -s conftest$ac_exeext'
5788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789  (eval $ac_try) 2>&5
5790  ac_status=$?
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); }; }; then
5793  ac_cv_lib_SDL_main=yes
5794else
5795  echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
5798ac_cv_lib_SDL_main=no
5799fi
5800rm -f conftest.err conftest.$ac_objext \
5801      conftest$ac_exeext conftest.$ac_ext
5802LIBS=$ac_check_lib_save_LIBS
5803fi
5804echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5805echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5806if test $ac_cv_lib_SDL_main = yes; then
5807  FOUND_SDL=yes
5808fi
5809
5810     if test x$FOUND_SDL = xyes ; then
5811       LIBS="$LIBS -lSDL"
5812     else
5813        echo "------------------"
5814        echo "SDL library not found."
5815        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5816        echo "------------------"
5817        exit -1
5818     fi
5819
5820
5821## checking for SDL
5822#    SDL_VERSION=1.2.7
5823#    AM_PATH_SDL($SDL_VERSION,
5824#      :,
5825#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5826#      )
5827#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5828#    LIBS="$LIBS $SDL_LIBS"
5829    ;;
5830#-----------#
5831# MAC -OS X #
5832#-----------#
5833 *darwin*)
5834 echo "OS X detected"
5835
5836 osX="yes"
5837
5838 CPPFLAGS="-I/sw/include $CPPFLAGS"
5839# checking gl header
5840
5841for ac_header in OpenGL/gl.h
5842do
5843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5844if eval "test \"\${$as_ac_Header+set}\" = set"; then
5845  echo "$as_me:$LINENO: checking for $ac_header" >&5
5846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5847if eval "test \"\${$as_ac_Header+set}\" = set"; then
5848  echo $ECHO_N "(cached) $ECHO_C" >&6
5849fi
5850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5852else
5853  # Is the header compilable?
5854echo "$as_me:$LINENO: checking $ac_header usability" >&5
5855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5856cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862$ac_includes_default
5863#include <$ac_header>
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867  (eval $ac_compile) 2>conftest.er1
5868  ac_status=$?
5869  grep -v '^ *+' conftest.er1 >conftest.err
5870  rm -f conftest.er1
5871  cat conftest.err >&5
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); } &&
5874         { ac_try='test -z "$ac_c_werror_flag"
5875                         || test ! -s conftest.err'
5876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877  (eval $ac_try) 2>&5
5878  ac_status=$?
5879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880  (exit $ac_status); }; } &&
5881         { ac_try='test -s conftest.$ac_objext'
5882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883  (eval $ac_try) 2>&5
5884  ac_status=$?
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); }; }; then
5887  ac_header_compiler=yes
5888else
5889  echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892ac_header_compiler=no
5893fi
5894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5896echo "${ECHO_T}$ac_header_compiler" >&6
5897
5898# Is the header present?
5899echo "$as_me:$LINENO: checking $ac_header presence" >&5
5900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5901cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h.  */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h.  */
5907#include <$ac_header>
5908_ACEOF
5909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911  ac_status=$?
5912  grep -v '^ *+' conftest.er1 >conftest.err
5913  rm -f conftest.er1
5914  cat conftest.err >&5
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); } >/dev/null; then
5917  if test -s conftest.err; then
5918    ac_cpp_err=$ac_c_preproc_warn_flag
5919    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5920  else
5921    ac_cpp_err=
5922  fi
5923else
5924  ac_cpp_err=yes
5925fi
5926if test -z "$ac_cpp_err"; then
5927  ac_header_preproc=yes
5928else
5929  echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
5931
5932  ac_header_preproc=no
5933fi
5934rm -f conftest.err conftest.$ac_ext
5935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5936echo "${ECHO_T}$ac_header_preproc" >&6
5937
5938# So?  What about this header?
5939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5940  yes:no: )
5941    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5942echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5943    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5944echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5945    ac_header_preproc=yes
5946    ;;
5947  no:yes:* )
5948    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5949echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5950    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5951echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5952    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5953echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5954    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5955echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5956    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5958    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5959echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5960    (
5961      cat <<\_ASBOX
5962## ---------------------------------------------- ##
5963## Report this to orxonox-dev at mail.datacore.ch ##
5964## ---------------------------------------------- ##
5965_ASBOX
5966    ) |
5967      sed "s/^/$as_me: WARNING:     /" >&2
5968    ;;
5969esac
5970echo "$as_me:$LINENO: checking for $ac_header" >&5
5971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973  echo $ECHO_N "(cached) $ECHO_C" >&6
5974else
5975  eval "$as_ac_Header=\$ac_header_preproc"
5976fi
5977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5979
5980fi
5981if test `eval echo '${'$as_ac_Header'}'` = yes; then
5982  cat >>confdefs.h <<_ACEOF
5983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5984_ACEOF
5985
5986else
5987  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5988echo "$as_me: error: cannot find opengl headers" >&2;}
5989   { (exit 1); exit 1; }; }
5990fi
5991
5992done
5993
5994# cheking for GLU-header
5995
5996for ac_header in OpenGL/glu.h
5997do
5998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000  echo "$as_me:$LINENO: checking for $ac_header" >&5
6001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6002if eval "test \"\${$as_ac_Header+set}\" = set"; then
6003  echo $ECHO_N "(cached) $ECHO_C" >&6
6004fi
6005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6007else
6008  # Is the header compilable?
6009echo "$as_me:$LINENO: checking $ac_header usability" >&5
6010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6011cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h.  */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h.  */
6017$ac_includes_default
6018#include <$ac_header>
6019_ACEOF
6020rm -f conftest.$ac_objext
6021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022  (eval $ac_compile) 2>conftest.er1
6023  ac_status=$?
6024  grep -v '^ *+' conftest.er1 >conftest.err
6025  rm -f conftest.er1
6026  cat conftest.err >&5
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); } &&
6029         { ac_try='test -z "$ac_c_werror_flag"
6030                         || test ! -s conftest.err'
6031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032  (eval $ac_try) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; } &&
6036         { ac_try='test -s conftest.$ac_objext'
6037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038  (eval $ac_try) 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; }; then
6042  ac_header_compiler=yes
6043else
6044  echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047ac_header_compiler=no
6048fi
6049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6051echo "${ECHO_T}$ac_header_compiler" >&6
6052
6053# Is the header present?
6054echo "$as_me:$LINENO: checking $ac_header presence" >&5
6055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6056cat >conftest.$ac_ext <<_ACEOF
6057/* confdefs.h.  */
6058_ACEOF
6059cat confdefs.h >>conftest.$ac_ext
6060cat >>conftest.$ac_ext <<_ACEOF
6061/* end confdefs.h.  */
6062#include <$ac_header>
6063_ACEOF
6064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6066  ac_status=$?
6067  grep -v '^ *+' conftest.er1 >conftest.err
6068  rm -f conftest.er1
6069  cat conftest.err >&5
6070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071  (exit $ac_status); } >/dev/null; then
6072  if test -s conftest.err; then
6073    ac_cpp_err=$ac_c_preproc_warn_flag
6074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6075  else
6076    ac_cpp_err=
6077  fi
6078else
6079  ac_cpp_err=yes
6080fi
6081if test -z "$ac_cpp_err"; then
6082  ac_header_preproc=yes
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087  ac_header_preproc=no
6088fi
6089rm -f conftest.err conftest.$ac_ext
6090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6091echo "${ECHO_T}$ac_header_preproc" >&6
6092
6093# So?  What about this header?
6094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6095  yes:no: )
6096    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6098    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6100    ac_header_preproc=yes
6101    ;;
6102  no:yes:* )
6103    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6105    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6106echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6107    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6109    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6110echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6113    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6115    (
6116      cat <<\_ASBOX
6117## ---------------------------------------------- ##
6118## Report this to orxonox-dev at mail.datacore.ch ##
6119## ---------------------------------------------- ##
6120_ASBOX
6121    ) |
6122      sed "s/^/$as_me: WARNING:     /" >&2
6123    ;;
6124esac
6125echo "$as_me:$LINENO: checking for $ac_header" >&5
6126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128  echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130  eval "$as_ac_Header=\$ac_header_preproc"
6131fi
6132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6134
6135fi
6136if test `eval echo '${'$as_ac_Header'}'` = yes; then
6137  cat >>confdefs.h <<_ACEOF
6138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6139_ACEOF
6140
6141else
6142  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6143echo "$as_me: error: cannot find opengl headers" >&2;}
6144   { (exit 1); exit 1; }; }
6145fi
6146
6147done
6148
6149
6150   LIBS="$LIBS -framework OpenGL"
6151
6152       SDL_CFLAGS=`sdl-config --cflags`
6153       SDL_LIBS=`sdl-config --libs`
6154       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6155       LIBS="$LIBS $SDL_LIBS"
6156
6157
6158# checking for SDL-headers
6159#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6160#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6161
6162## checking for SDL
6163#    SDL_VERSION=1.2.7
6164#    AM_PATH_SDL($SDL_VERSION,
6165#      :,
6166#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6167#      )
6168
6169
6170    ;;
6171
6172  *)
6173    ;;
6174esac
6175
6176
6177
6178###################################
6179## CHECKING FOR HEADERS AND LIBS ##
6180###################################
6181
6182#-----------#
6183# SDL_Image #
6184#-----------#
6185if test x$def_sdl_image = xyes; then
6186# checking for SDL_image-headers
6187
6188for ac_header in SDL/SDL_image.h
6189do
6190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6191if eval "test \"\${$as_ac_Header+set}\" = set"; then
6192  echo "$as_me:$LINENO: checking for $ac_header" >&5
6193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6194if eval "test \"\${$as_ac_Header+set}\" = set"; then
6195  echo $ECHO_N "(cached) $ECHO_C" >&6
6196fi
6197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6199else
6200  # Is the header compilable?
6201echo "$as_me:$LINENO: checking $ac_header usability" >&5
6202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6203cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h.  */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h.  */
6209$ac_includes_default
6210#include <$ac_header>
6211_ACEOF
6212rm -f conftest.$ac_objext
6213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214  (eval $ac_compile) 2>conftest.er1
6215  ac_status=$?
6216  grep -v '^ *+' conftest.er1 >conftest.err
6217  rm -f conftest.er1
6218  cat conftest.err >&5
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); } &&
6221         { ac_try='test -z "$ac_c_werror_flag"
6222                         || test ! -s conftest.err'
6223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224  (eval $ac_try) 2>&5
6225  ac_status=$?
6226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227  (exit $ac_status); }; } &&
6228         { ac_try='test -s conftest.$ac_objext'
6229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230  (eval $ac_try) 2>&5
6231  ac_status=$?
6232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233  (exit $ac_status); }; }; then
6234  ac_header_compiler=yes
6235else
6236  echo "$as_me: failed program was:" >&5
6237sed 's/^/| /' conftest.$ac_ext >&5
6238
6239ac_header_compiler=no
6240fi
6241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243echo "${ECHO_T}$ac_header_compiler" >&6
6244
6245# Is the header present?
6246echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6248cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h.  */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h.  */
6254#include <$ac_header>
6255_ACEOF
6256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258  ac_status=$?
6259  grep -v '^ *+' conftest.er1 >conftest.err
6260  rm -f conftest.er1
6261  cat conftest.err >&5
6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263  (exit $ac_status); } >/dev/null; then
6264  if test -s conftest.err; then
6265    ac_cpp_err=$ac_c_preproc_warn_flag
6266    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267  else
6268    ac_cpp_err=
6269  fi
6270else
6271  ac_cpp_err=yes
6272fi
6273if test -z "$ac_cpp_err"; then
6274  ac_header_preproc=yes
6275else
6276  echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279  ac_header_preproc=no
6280fi
6281rm -f conftest.err conftest.$ac_ext
6282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283echo "${ECHO_T}$ac_header_preproc" >&6
6284
6285# So?  What about this header?
6286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6287  yes:no: )
6288    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6292    ac_header_preproc=yes
6293    ;;
6294  no:yes:* )
6295    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6297    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6298echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6299    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6301    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6302echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6305    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6307    (
6308      cat <<\_ASBOX
6309## ---------------------------------------------- ##
6310## Report this to orxonox-dev at mail.datacore.ch ##
6311## ---------------------------------------------- ##
6312_ASBOX
6313    ) |
6314      sed "s/^/$as_me: WARNING:     /" >&2
6315    ;;
6316esac
6317echo "$as_me:$LINENO: checking for $ac_header" >&5
6318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6319if eval "test \"\${$as_ac_Header+set}\" = set"; then
6320  echo $ECHO_N "(cached) $ECHO_C" >&6
6321else
6322  eval "$as_ac_Header=\$ac_header_preproc"
6323fi
6324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6326
6327fi
6328if test `eval echo '${'$as_ac_Header'}'` = yes; then
6329  cat >>confdefs.h <<_ACEOF
6330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6331_ACEOF
6332
6333else
6334  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6335fi
6336
6337done
6338
6339fi
6340if test x$def_sdl_image = xyes; then
6341# checking for SDL_image-lib
6342  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6343echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6344if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6345  echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347  ac_check_lib_save_LIBS=$LIBS
6348LIBS="-lSDL_image  $LIBS"
6349cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355
6356
6357int
6358main ()
6359{
6360main ();
6361  ;
6362  return 0;
6363}
6364_ACEOF
6365rm -f conftest.$ac_objext conftest$ac_exeext
6366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367  (eval $ac_link) 2>conftest.er1
6368  ac_status=$?
6369  grep -v '^ *+' conftest.er1 >conftest.err
6370  rm -f conftest.er1
6371  cat conftest.err >&5
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); } &&
6374         { ac_try='test -z "$ac_c_werror_flag"
6375                         || test ! -s conftest.err'
6376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377  (eval $ac_try) 2>&5
6378  ac_status=$?
6379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380  (exit $ac_status); }; } &&
6381         { ac_try='test -s conftest$ac_exeext'
6382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383  (eval $ac_try) 2>&5
6384  ac_status=$?
6385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386  (exit $ac_status); }; }; then
6387  ac_cv_lib_SDL_image_main=yes
6388else
6389  echo "$as_me: failed program was:" >&5
6390sed 's/^/| /' conftest.$ac_ext >&5
6391
6392ac_cv_lib_SDL_image_main=no
6393fi
6394rm -f conftest.err conftest.$ac_objext \
6395      conftest$ac_exeext conftest.$ac_ext
6396LIBS=$ac_check_lib_save_LIBS
6397fi
6398echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6399echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6400if test $ac_cv_lib_SDL_image_main = yes; then
6401  FOUND_SDL_image=yes
6402fi
6403
6404     if test x$FOUND_SDL_image = xyes ; then
6405       LIBS="$LIBS -lSDL_image"
6406     else
6407        echo "------------------"
6408        echo "SDL_image library not found."
6409        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6410        echo "------------------"
6411        exit -1
6412     fi
6413fi
6414
6415## case no SDL-image:
6416if test x$def_sdl_image = xno; then
6417#---------#
6418# libjpeg #
6419#---------#
6420
6421for ac_header in jpeglib.h
6422do
6423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6424if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425  echo "$as_me:$LINENO: checking for $ac_header" >&5
6426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6427if eval "test \"\${$as_ac_Header+set}\" = set"; then
6428  echo $ECHO_N "(cached) $ECHO_C" >&6
6429fi
6430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6432else
6433  # Is the header compilable?
6434echo "$as_me:$LINENO: checking $ac_header usability" >&5
6435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6436cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442$ac_includes_default
6443#include <$ac_header>
6444_ACEOF
6445rm -f conftest.$ac_objext
6446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6447  (eval $ac_compile) 2>conftest.er1
6448  ac_status=$?
6449  grep -v '^ *+' conftest.er1 >conftest.err
6450  rm -f conftest.er1
6451  cat conftest.err >&5
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); } &&
6454         { ac_try='test -z "$ac_c_werror_flag"
6455                         || test ! -s conftest.err'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; } &&
6461         { ac_try='test -s conftest.$ac_objext'
6462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463  (eval $ac_try) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; }; then
6467  ac_header_compiler=yes
6468else
6469  echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472ac_header_compiler=no
6473fi
6474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6476echo "${ECHO_T}$ac_header_compiler" >&6
6477
6478# Is the header present?
6479echo "$as_me:$LINENO: checking $ac_header presence" >&5
6480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6481cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h.  */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h.  */
6487#include <$ac_header>
6488_ACEOF
6489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6490  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6491  ac_status=$?
6492  grep -v '^ *+' conftest.er1 >conftest.err
6493  rm -f conftest.er1
6494  cat conftest.err >&5
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); } >/dev/null; then
6497  if test -s conftest.err; then
6498    ac_cpp_err=$ac_c_preproc_warn_flag
6499    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6500  else
6501    ac_cpp_err=
6502  fi
6503else
6504  ac_cpp_err=yes
6505fi
6506if test -z "$ac_cpp_err"; then
6507  ac_header_preproc=yes
6508else
6509  echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512  ac_header_preproc=no
6513fi
6514rm -f conftest.err conftest.$ac_ext
6515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6516echo "${ECHO_T}$ac_header_preproc" >&6
6517
6518# So?  What about this header?
6519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6520  yes:no: )
6521    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6525    ac_header_preproc=yes
6526    ;;
6527  no:yes:* )
6528    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6530    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6531echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6532    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6534    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6535echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6536    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6538    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6540    (
6541      cat <<\_ASBOX
6542## ---------------------------------------------- ##
6543## Report this to orxonox-dev at mail.datacore.ch ##
6544## ---------------------------------------------- ##
6545_ASBOX
6546    ) |
6547      sed "s/^/$as_me: WARNING:     /" >&2
6548    ;;
6549esac
6550echo "$as_me:$LINENO: checking for $ac_header" >&5
6551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6552if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  eval "$as_ac_Header=\$ac_header_preproc"
6556fi
6557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6559
6560fi
6561if test `eval echo '${'$as_ac_Header'}'` = yes; then
6562  cat >>confdefs.h <<_ACEOF
6563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6564_ACEOF
6565 jpegHeader="yes"
6566else
6567  jpegHeader="no"
6568fi
6569
6570done
6571
6572 if test x$jpegHeader = xno; then
6573        echo " not including jpeg."
6574 else
6575  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6576echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6577if test "${ac_cv_lib_jpeg_main+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  ac_check_lib_save_LIBS=$LIBS
6581LIBS="-ljpeg  $LIBS"
6582cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h.  */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h.  */
6588
6589
6590int
6591main ()
6592{
6593main ();
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600  (eval $ac_link) 2>conftest.er1
6601  ac_status=$?
6602  grep -v '^ *+' conftest.er1 >conftest.err
6603  rm -f conftest.er1
6604  cat conftest.err >&5
6605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); } &&
6607         { ac_try='test -z "$ac_c_werror_flag"
6608                         || test ! -s conftest.err'
6609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610  (eval $ac_try) 2>&5
6611  ac_status=$?
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); }; } &&
6614         { ac_try='test -s conftest$ac_exeext'
6615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616  (eval $ac_try) 2>&5
6617  ac_status=$?
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); }; }; then
6620  ac_cv_lib_jpeg_main=yes
6621else
6622  echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625ac_cv_lib_jpeg_main=no
6626fi
6627rm -f conftest.err conftest.$ac_objext \
6628      conftest$ac_exeext conftest.$ac_ext
6629LIBS=$ac_check_lib_save_LIBS
6630fi
6631echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6632echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6633if test $ac_cv_lib_jpeg_main = yes; then
6634  FOUND_jpeg=yes
6635fi
6636
6637    if test x$FOUND_jpeg = xyes ; then
6638      LIBS="$LIBS -ljpeg"
6639    else
6640         echo "------------------"
6641         echo "jpeg library not found."
6642         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6643         echo "------------------"
6644         exit -1
6645    fi
6646 fi
6647
6648#--------#
6649# libpng #
6650#--------#
6651
6652for ac_header in png.h
6653do
6654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6655if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656  echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6658if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660fi
6661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6663else
6664  # Is the header compilable?
6665echo "$as_me:$LINENO: checking $ac_header usability" >&5
6666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6667cat >conftest.$ac_ext <<_ACEOF
6668/* confdefs.h.  */
6669_ACEOF
6670cat confdefs.h >>conftest.$ac_ext
6671cat >>conftest.$ac_ext <<_ACEOF
6672/* end confdefs.h.  */
6673$ac_includes_default
6674#include <$ac_header>
6675_ACEOF
6676rm -f conftest.$ac_objext
6677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678  (eval $ac_compile) 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } &&
6685         { ac_try='test -z "$ac_c_werror_flag"
6686                         || test ! -s conftest.err'
6687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688  (eval $ac_try) 2>&5
6689  ac_status=$?
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); }; } &&
6692         { ac_try='test -s conftest.$ac_objext'
6693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694  (eval $ac_try) 2>&5
6695  ac_status=$?
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); }; }; then
6698  ac_header_compiler=yes
6699else
6700  echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703ac_header_compiler=no
6704fi
6705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6707echo "${ECHO_T}$ac_header_compiler" >&6
6708
6709# Is the header present?
6710echo "$as_me:$LINENO: checking $ac_header presence" >&5
6711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6712cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718#include <$ac_header>
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null; then
6728  if test -s conftest.err; then
6729    ac_cpp_err=$ac_c_preproc_warn_flag
6730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6731  else
6732    ac_cpp_err=
6733  fi
6734else
6735  ac_cpp_err=yes
6736fi
6737if test -z "$ac_cpp_err"; then
6738  ac_header_preproc=yes
6739else
6740  echo "$as_me: failed program was:" >&5
6741sed 's/^/| /' conftest.$ac_ext >&5
6742
6743  ac_header_preproc=no
6744fi
6745rm -f conftest.err conftest.$ac_ext
6746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6747echo "${ECHO_T}$ac_header_preproc" >&6
6748
6749# So?  What about this header?
6750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6751  yes:no: )
6752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6756    ac_header_preproc=yes
6757    ;;
6758  no:yes:* )
6759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6761    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6762echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6766echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6769    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6771    (
6772      cat <<\_ASBOX
6773## ---------------------------------------------- ##
6774## Report this to orxonox-dev at mail.datacore.ch ##
6775## ---------------------------------------------- ##
6776_ASBOX
6777    ) |
6778      sed "s/^/$as_me: WARNING:     /" >&2
6779    ;;
6780esac
6781echo "$as_me:$LINENO: checking for $ac_header" >&5
6782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784  echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786  eval "$as_ac_Header=\$ac_header_preproc"
6787fi
6788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6790
6791fi
6792if test `eval echo '${'$as_ac_Header'}'` = yes; then
6793  cat >>confdefs.h <<_ACEOF
6794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6795_ACEOF
6796 pngHeader="yes"
6797else
6798  pngHeader="no"
6799fi
6800
6801done
6802
6803 if test x$pngHeader = xno; then
6804        echo " not including png."
6805 else
6806  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6807echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6808if test "${ac_cv_lib_png_main+set}" = set; then
6809  echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811  ac_check_lib_save_LIBS=$LIBS
6812LIBS="-lpng  $LIBS"
6813cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h.  */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h.  */
6819
6820
6821int
6822main ()
6823{
6824main ();
6825  ;
6826  return 0;
6827}
6828_ACEOF
6829rm -f conftest.$ac_objext conftest$ac_exeext
6830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831  (eval $ac_link) 2>conftest.er1
6832  ac_status=$?
6833  grep -v '^ *+' conftest.er1 >conftest.err
6834  rm -f conftest.er1
6835  cat conftest.err >&5
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); } &&
6838         { ac_try='test -z "$ac_c_werror_flag"
6839                         || test ! -s conftest.err'
6840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841  (eval $ac_try) 2>&5
6842  ac_status=$?
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); }; } &&
6845         { ac_try='test -s conftest$ac_exeext'
6846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847  (eval $ac_try) 2>&5
6848  ac_status=$?
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); }; }; then
6851  ac_cv_lib_png_main=yes
6852else
6853  echo "$as_me: failed program was:" >&5
6854sed 's/^/| /' conftest.$ac_ext >&5
6855
6856ac_cv_lib_png_main=no
6857fi
6858rm -f conftest.err conftest.$ac_objext \
6859      conftest$ac_exeext conftest.$ac_ext
6860LIBS=$ac_check_lib_save_LIBS
6861fi
6862echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6863echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6864if test $ac_cv_lib_png_main = yes; then
6865  FOUND_png=yes
6866fi
6867
6868    if test x$FOUND_png = xyes ; then
6869      LIBS="$LIBS -lpng"
6870    else
6871         echo "------------------"
6872         echo "png library not found."
6873         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6874         echo "------------------"
6875         exit -1
6876    fi
6877 fi
6878fi
6879
6880#-----#
6881# GTK #
6882#-----#
6883if test x$def_gtk = xyes; then
6884
6885        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6886        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6887echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6888        if `pkg-config --exists gtk+-2.0`; then
6889                echo "yes"
6890                have_gtk2=yes
6891                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6892                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6893
6894cat >>confdefs.h <<_ACEOF
6895#define HAVE_GTK2 1
6896_ACEOF
6897
6898        else
6899                echo "no"
6900        fi
6901
6902fi
6903
6904
6905
6906
6907if test x$have_gtk2 = xyes; then
6908  HAVE_GTK2_TRUE=
6909  HAVE_GTK2_FALSE='#'
6910else
6911  HAVE_GTK2_TRUE='#'
6912  HAVE_GTK2_FALSE=
6913fi
6914
6915
6916#---------#
6917# gThread #
6918#---------#
6919if test x$def_gthread = xyes; then
6920
6921        echo "$as_me:$LINENO: checking for gthread" >&5
6922echo $ECHO_N "checking for gthread... $ECHO_C" >&6
6923        if `pkg-config --exists gthread-2.0`; then
6924                echo "yes"
6925                have_gthread=yes
6926                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
6927                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
6928
6929cat >>confdefs.h <<_ACEOF
6930#define HAVE_GTHREAD 1
6931_ACEOF
6932
6933        else
6934                echo "no"
6935        fi
6936
6937fi
6938
6939
6940
6941
6942if test x$have_gthread = xyes; then
6943  HAVE_GTHREAD_TRUE=
6944  HAVE_GTHREAD_FALSE='#'
6945else
6946  HAVE_GTHREAD_TRUE='#'
6947  HAVE_GTHREAD_FALSE=
6948fi
6949
6950
6951#---------#
6952# libcURL #
6953#---------#
6954if test x$def_curl = xyes; then
6955
6956
6957for ac_header in curl/curl.h
6958do
6959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6960if eval "test \"\${$as_ac_Header+set}\" = set"; then
6961  echo "$as_me:$LINENO: checking for $ac_header" >&5
6962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6963if eval "test \"\${$as_ac_Header+set}\" = set"; then
6964  echo $ECHO_N "(cached) $ECHO_C" >&6
6965fi
6966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6968else
6969  # Is the header compilable?
6970echo "$as_me:$LINENO: checking $ac_header usability" >&5
6971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6972cat >conftest.$ac_ext <<_ACEOF
6973/* confdefs.h.  */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h.  */
6978$ac_includes_default
6979#include <$ac_header>
6980_ACEOF
6981rm -f conftest.$ac_objext
6982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983  (eval $ac_compile) 2>conftest.er1
6984  ac_status=$?
6985  grep -v '^ *+' conftest.er1 >conftest.err
6986  rm -f conftest.er1
6987  cat conftest.err >&5
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); } &&
6990         { ac_try='test -z "$ac_c_werror_flag"
6991                         || test ! -s conftest.err'
6992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993  (eval $ac_try) 2>&5
6994  ac_status=$?
6995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996  (exit $ac_status); }; } &&
6997         { ac_try='test -s conftest.$ac_objext'
6998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999  (eval $ac_try) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; }; then
7003  ac_header_compiler=yes
7004else
7005  echo "$as_me: failed program was:" >&5
7006sed 's/^/| /' conftest.$ac_ext >&5
7007
7008ac_header_compiler=no
7009fi
7010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7012echo "${ECHO_T}$ac_header_compiler" >&6
7013
7014# Is the header present?
7015echo "$as_me:$LINENO: checking $ac_header presence" >&5
7016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7017cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h.  */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h.  */
7023#include <$ac_header>
7024_ACEOF
7025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7027  ac_status=$?
7028  grep -v '^ *+' conftest.er1 >conftest.err
7029  rm -f conftest.er1
7030  cat conftest.err >&5
7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032  (exit $ac_status); } >/dev/null; then
7033  if test -s conftest.err; then
7034    ac_cpp_err=$ac_c_preproc_warn_flag
7035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7036  else
7037    ac_cpp_err=
7038  fi
7039else
7040  ac_cpp_err=yes
7041fi
7042if test -z "$ac_cpp_err"; then
7043  ac_header_preproc=yes
7044else
7045  echo "$as_me: failed program was:" >&5
7046sed 's/^/| /' conftest.$ac_ext >&5
7047
7048  ac_header_preproc=no
7049fi
7050rm -f conftest.err conftest.$ac_ext
7051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7052echo "${ECHO_T}$ac_header_preproc" >&6
7053
7054# So?  What about this header?
7055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7056  yes:no: )
7057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7061    ac_header_preproc=yes
7062    ;;
7063  no:yes:* )
7064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7076    (
7077      cat <<\_ASBOX
7078## ---------------------------------------------- ##
7079## Report this to orxonox-dev at mail.datacore.ch ##
7080## ---------------------------------------------- ##
7081_ASBOX
7082    ) |
7083      sed "s/^/$as_me: WARNING:     /" >&2
7084    ;;
7085esac
7086echo "$as_me:$LINENO: checking for $ac_header" >&5
7087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7088if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089  echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091  eval "$as_ac_Header=\$ac_header_preproc"
7092fi
7093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7095
7096fi
7097if test `eval echo '${'$as_ac_Header'}'` = yes; then
7098  cat >>confdefs.h <<_ACEOF
7099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100_ACEOF
7101 curlHeader="yes"
7102else
7103  curlHeader="no"
7104fi
7105
7106done
7107
7108 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
7109echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
7110if test "${ac_cv_lib_curl_main+set}" = set; then
7111  echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113  ac_check_lib_save_LIBS=$LIBS
7114LIBS="-lcurl  $LIBS"
7115cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121
7122
7123int
7124main ()
7125{
7126main ();
7127  ;
7128  return 0;
7129}
7130_ACEOF
7131rm -f conftest.$ac_objext conftest$ac_exeext
7132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133  (eval $ac_link) 2>conftest.er1
7134  ac_status=$?
7135  grep -v '^ *+' conftest.er1 >conftest.err
7136  rm -f conftest.er1
7137  cat conftest.err >&5
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); } &&
7140         { ac_try='test -z "$ac_c_werror_flag"
7141                         || test ! -s conftest.err'
7142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143  (eval $ac_try) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; } &&
7147         { ac_try='test -s conftest$ac_exeext'
7148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149  (eval $ac_try) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); }; }; then
7153  ac_cv_lib_curl_main=yes
7154else
7155  echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158ac_cv_lib_curl_main=no
7159fi
7160rm -f conftest.err conftest.$ac_objext \
7161      conftest$ac_exeext conftest.$ac_ext
7162LIBS=$ac_check_lib_save_LIBS
7163fi
7164echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7165echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7166if test $ac_cv_lib_curl_main = yes; then
7167  FOUND_curl=yes
7168fi
7169
7170 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7171  have_curl=yes
7172  CURL_LIBS=`curl-config --libs`
7173  CURLCFLAGS=`curl-config --cflags`
7174
7175cat >>confdefs.h <<_ACEOF
7176#define HAVE_CURL 1
7177_ACEOF
7178
7179 else
7180  have_curl=no
7181 fi
7182
7183fi
7184
7185
7186
7187
7188if test x$have_curl = xyes; then
7189  HAVE_CURL_TRUE=
7190  HAVE_CURL_FALSE='#'
7191else
7192  HAVE_CURL_TRUE='#'
7193  HAVE_CURL_FALSE=
7194fi
7195
7196
7197#---------#
7198# pthread #
7199#---------#
7200if test x$def_pthread = xyes ; then
7201 if test x$have_gthread = xyes ; then
7202
7203for ac_header in pthread.h
7204do
7205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7206if eval "test \"\${$as_ac_Header+set}\" = set"; then
7207  echo "$as_me:$LINENO: checking for $ac_header" >&5
7208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7209if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210  echo $ECHO_N "(cached) $ECHO_C" >&6
7211fi
7212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7214else
7215  # Is the header compilable?
7216echo "$as_me:$LINENO: checking $ac_header usability" >&5
7217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7218cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h.  */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h.  */
7224$ac_includes_default
7225#include <$ac_header>
7226_ACEOF
7227rm -f conftest.$ac_objext
7228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229  (eval $ac_compile) 2>conftest.er1
7230  ac_status=$?
7231  grep -v '^ *+' conftest.er1 >conftest.err
7232  rm -f conftest.er1
7233  cat conftest.err >&5
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); } &&
7236         { ac_try='test -z "$ac_c_werror_flag"
7237                         || test ! -s conftest.err'
7238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239  (eval $ac_try) 2>&5
7240  ac_status=$?
7241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242  (exit $ac_status); }; } &&
7243         { ac_try='test -s conftest.$ac_objext'
7244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245  (eval $ac_try) 2>&5
7246  ac_status=$?
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); }; }; then
7249  ac_header_compiler=yes
7250else
7251  echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
7254ac_header_compiler=no
7255fi
7256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7258echo "${ECHO_T}$ac_header_compiler" >&6
7259
7260# Is the header present?
7261echo "$as_me:$LINENO: checking $ac_header presence" >&5
7262echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7263cat >conftest.$ac_ext <<_ACEOF
7264/* confdefs.h.  */
7265_ACEOF
7266cat confdefs.h >>conftest.$ac_ext
7267cat >>conftest.$ac_ext <<_ACEOF
7268/* end confdefs.h.  */
7269#include <$ac_header>
7270_ACEOF
7271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7273  ac_status=$?
7274  grep -v '^ *+' conftest.er1 >conftest.err
7275  rm -f conftest.er1
7276  cat conftest.err >&5
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); } >/dev/null; then
7279  if test -s conftest.err; then
7280    ac_cpp_err=$ac_c_preproc_warn_flag
7281    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7282  else
7283    ac_cpp_err=
7284  fi
7285else
7286  ac_cpp_err=yes
7287fi
7288if test -z "$ac_cpp_err"; then
7289  ac_header_preproc=yes
7290else
7291  echo "$as_me: failed program was:" >&5
7292sed 's/^/| /' conftest.$ac_ext >&5
7293
7294  ac_header_preproc=no
7295fi
7296rm -f conftest.err conftest.$ac_ext
7297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7298echo "${ECHO_T}$ac_header_preproc" >&6
7299
7300# So?  What about this header?
7301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7302  yes:no: )
7303    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7305    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7307    ac_header_preproc=yes
7308    ;;
7309  no:yes:* )
7310    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7312    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7313echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7314    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7316    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7317echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7318    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7320    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7322    (
7323      cat <<\_ASBOX
7324## ---------------------------------------------- ##
7325## Report this to orxonox-dev at mail.datacore.ch ##
7326## ---------------------------------------------- ##
7327_ASBOX
7328    ) |
7329      sed "s/^/$as_me: WARNING:     /" >&2
7330    ;;
7331esac
7332echo "$as_me:$LINENO: checking for $ac_header" >&5
7333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7334if eval "test \"\${$as_ac_Header+set}\" = set"; then
7335  echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337  eval "$as_ac_Header=\$ac_header_preproc"
7338fi
7339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7341
7342fi
7343if test `eval echo '${'$as_ac_Header'}'` = yes; then
7344  cat >>confdefs.h <<_ACEOF
7345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7346_ACEOF
7347 pthreadHeader="yes"
7348else
7349  pthreadHeader="no"
7350fi
7351
7352done
7353
7354  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7355echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7356if test "${ac_cv_lib_pthread_main+set}" = set; then
7357  echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359  ac_check_lib_save_LIBS=$LIBS
7360LIBS="-lpthread  $LIBS"
7361cat >conftest.$ac_ext <<_ACEOF
7362/* confdefs.h.  */
7363_ACEOF
7364cat confdefs.h >>conftest.$ac_ext
7365cat >>conftest.$ac_ext <<_ACEOF
7366/* end confdefs.h.  */
7367
7368
7369int
7370main ()
7371{
7372main ();
7373  ;
7374  return 0;
7375}
7376_ACEOF
7377rm -f conftest.$ac_objext conftest$ac_exeext
7378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7379  (eval $ac_link) 2>conftest.er1
7380  ac_status=$?
7381  grep -v '^ *+' conftest.er1 >conftest.err
7382  rm -f conftest.er1
7383  cat conftest.err >&5
7384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385  (exit $ac_status); } &&
7386         { ac_try='test -z "$ac_c_werror_flag"
7387                         || test ! -s conftest.err'
7388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389  (eval $ac_try) 2>&5
7390  ac_status=$?
7391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392  (exit $ac_status); }; } &&
7393         { ac_try='test -s conftest$ac_exeext'
7394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395  (eval $ac_try) 2>&5
7396  ac_status=$?
7397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398  (exit $ac_status); }; }; then
7399  ac_cv_lib_pthread_main=yes
7400else
7401  echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404ac_cv_lib_pthread_main=no
7405fi
7406rm -f conftest.err conftest.$ac_objext \
7407      conftest$ac_exeext conftest.$ac_ext
7408LIBS=$ac_check_lib_save_LIBS
7409fi
7410echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7411echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7412if test $ac_cv_lib_pthread_main = yes; then
7413  FOUND_pthread=yes
7414fi
7415
7416   if test x$FOUND_pthread = xyes ; then
7417      LIBS="$LIBS -lpthread"
7418   fi
7419 fi
7420fi
7421
7422
7423# FIXME: Replace `main' with a function in `-lm':
7424
7425echo "$as_me:$LINENO: checking for main in -lm" >&5
7426echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7427if test "${ac_cv_lib_m_main+set}" = set; then
7428  echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430  ac_check_lib_save_LIBS=$LIBS
7431LIBS="-lm  $LIBS"
7432cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h.  */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h.  */
7438
7439
7440int
7441main ()
7442{
7443main ();
7444  ;
7445  return 0;
7446}
7447_ACEOF
7448rm -f conftest.$ac_objext conftest$ac_exeext
7449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450  (eval $ac_link) 2>conftest.er1
7451  ac_status=$?
7452  grep -v '^ *+' conftest.er1 >conftest.err
7453  rm -f conftest.er1
7454  cat conftest.err >&5
7455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456  (exit $ac_status); } &&
7457         { ac_try='test -z "$ac_c_werror_flag"
7458                         || test ! -s conftest.err'
7459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460  (eval $ac_try) 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); }; } &&
7464         { ac_try='test -s conftest$ac_exeext'
7465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466  (eval $ac_try) 2>&5
7467  ac_status=$?
7468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469  (exit $ac_status); }; }; then
7470  ac_cv_lib_m_main=yes
7471else
7472  echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
7475ac_cv_lib_m_main=no
7476fi
7477rm -f conftest.err conftest.$ac_objext \
7478      conftest$ac_exeext conftest.$ac_ext
7479LIBS=$ac_check_lib_save_LIBS
7480fi
7481echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7482echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7483if test $ac_cv_lib_m_main = yes; then
7484  cat >>confdefs.h <<_ACEOF
7485#define HAVE_LIBM 1
7486_ACEOF
7487
7488  LIBS="-lm $LIBS"
7489
7490fi
7491
7492
7493
7494# Checks for header files.
7495echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7496echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7497if test "${ac_cv_header_stdc+set}" = set; then
7498  echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500  cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h.  */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h.  */
7506#include <stdlib.h>
7507#include <stdarg.h>
7508#include <string.h>
7509#include <float.h>
7510
7511int
7512main ()
7513{
7514
7515  ;
7516  return 0;
7517}
7518_ACEOF
7519rm -f conftest.$ac_objext
7520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521  (eval $ac_compile) 2>conftest.er1
7522  ac_status=$?
7523  grep -v '^ *+' conftest.er1 >conftest.err
7524  rm -f conftest.er1
7525  cat conftest.err >&5
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } &&
7528         { ac_try='test -z "$ac_c_werror_flag"
7529                         || test ! -s conftest.err'
7530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531  (eval $ac_try) 2>&5
7532  ac_status=$?
7533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534  (exit $ac_status); }; } &&
7535         { ac_try='test -s conftest.$ac_objext'
7536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537  (eval $ac_try) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }; }; then
7541  ac_cv_header_stdc=yes
7542else
7543  echo "$as_me: failed program was:" >&5
7544sed 's/^/| /' conftest.$ac_ext >&5
7545
7546ac_cv_header_stdc=no
7547fi
7548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549
7550if test $ac_cv_header_stdc = yes; then
7551  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7552  cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h.  */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h.  */
7558#include <string.h>
7559
7560_ACEOF
7561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7562  $EGREP "memchr" >/dev/null 2>&1; then
7563  :
7564else
7565  ac_cv_header_stdc=no
7566fi
7567rm -f conftest*
7568
7569fi
7570
7571if test $ac_cv_header_stdc = yes; then
7572  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7573  cat >conftest.$ac_ext <<_ACEOF
7574/* confdefs.h.  */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h.  */
7579#include <stdlib.h>
7580
7581_ACEOF
7582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7583  $EGREP "free" >/dev/null 2>&1; then
7584  :
7585else
7586  ac_cv_header_stdc=no
7587fi
7588rm -f conftest*
7589
7590fi
7591
7592if test $ac_cv_header_stdc = yes; then
7593  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7594  if test "$cross_compiling" = yes; then
7595  :
7596else
7597  cat >conftest.$ac_ext <<_ACEOF
7598/* confdefs.h.  */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h.  */
7603#include <ctype.h>
7604#if ((' ' & 0x0FF) == 0x020)
7605# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7606# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7607#else
7608# define ISLOWER(c) \
7609                   (('a' <= (c) && (c) <= 'i') \
7610                     || ('j' <= (c) && (c) <= 'r') \
7611                     || ('s' <= (c) && (c) <= 'z'))
7612# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7613#endif
7614
7615#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7616int
7617main ()
7618{
7619  int i;
7620  for (i = 0; i < 256; i++)
7621    if (XOR (islower (i), ISLOWER (i))
7622        || toupper (i) != TOUPPER (i))
7623      exit(2);
7624  exit (0);
7625}
7626_ACEOF
7627rm -f conftest$ac_exeext
7628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629  (eval $ac_link) 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634  (eval $ac_try) 2>&5
7635  ac_status=$?
7636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); }; }; then
7638  :
7639else
7640  echo "$as_me: program exited with status $ac_status" >&5
7641echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644( exit $ac_status )
7645ac_cv_header_stdc=no
7646fi
7647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7648fi
7649fi
7650fi
7651echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7652echo "${ECHO_T}$ac_cv_header_stdc" >&6
7653if test $ac_cv_header_stdc = yes; then
7654
7655cat >>confdefs.h <<\_ACEOF
7656#define STDC_HEADERS 1
7657_ACEOF
7658
7659fi
7660
7661
7662
7663for ac_header in stdlib.h string.h
7664do
7665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7666if eval "test \"\${$as_ac_Header+set}\" = set"; then
7667  echo "$as_me:$LINENO: checking for $ac_header" >&5
7668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7669if eval "test \"\${$as_ac_Header+set}\" = set"; then
7670  echo $ECHO_N "(cached) $ECHO_C" >&6
7671fi
7672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7674else
7675  # Is the header compilable?
7676echo "$as_me:$LINENO: checking $ac_header usability" >&5
7677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7678cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h.  */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h.  */
7684$ac_includes_default
7685#include <$ac_header>
7686_ACEOF
7687rm -f conftest.$ac_objext
7688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689  (eval $ac_compile) 2>conftest.er1
7690  ac_status=$?
7691  grep -v '^ *+' conftest.er1 >conftest.err
7692  rm -f conftest.er1
7693  cat conftest.err >&5
7694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695  (exit $ac_status); } &&
7696         { ac_try='test -z "$ac_c_werror_flag"
7697                         || test ! -s conftest.err'
7698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699  (eval $ac_try) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); }; } &&
7703         { ac_try='test -s conftest.$ac_objext'
7704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705  (eval $ac_try) 2>&5
7706  ac_status=$?
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); }; }; then
7709  ac_header_compiler=yes
7710else
7711  echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714ac_header_compiler=no
7715fi
7716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7718echo "${ECHO_T}$ac_header_compiler" >&6
7719
7720# Is the header present?
7721echo "$as_me:$LINENO: checking $ac_header presence" >&5
7722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7723cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h.  */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h.  */
7729#include <$ac_header>
7730_ACEOF
7731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7732  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7733  ac_status=$?
7734  grep -v '^ *+' conftest.er1 >conftest.err
7735  rm -f conftest.er1
7736  cat conftest.err >&5
7737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738  (exit $ac_status); } >/dev/null; then
7739  if test -s conftest.err; then
7740    ac_cpp_err=$ac_c_preproc_warn_flag
7741    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7742  else
7743    ac_cpp_err=
7744  fi
7745else
7746  ac_cpp_err=yes
7747fi
7748if test -z "$ac_cpp_err"; then
7749  ac_header_preproc=yes
7750else
7751  echo "$as_me: failed program was:" >&5
7752sed 's/^/| /' conftest.$ac_ext >&5
7753
7754  ac_header_preproc=no
7755fi
7756rm -f conftest.err conftest.$ac_ext
7757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7758echo "${ECHO_T}$ac_header_preproc" >&6
7759
7760# So?  What about this header?
7761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7762  yes:no: )
7763    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7765    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7767    ac_header_preproc=yes
7768    ;;
7769  no:yes:* )
7770    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7772    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7773echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7774    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7776    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7777echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7780    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7782    (
7783      cat <<\_ASBOX
7784## ---------------------------------------------- ##
7785## Report this to orxonox-dev at mail.datacore.ch ##
7786## ---------------------------------------------- ##
7787_ASBOX
7788    ) |
7789      sed "s/^/$as_me: WARNING:     /" >&2
7790    ;;
7791esac
7792echo "$as_me:$LINENO: checking for $ac_header" >&5
7793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7794if eval "test \"\${$as_ac_Header+set}\" = set"; then
7795  echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797  eval "$as_ac_Header=\$ac_header_preproc"
7798fi
7799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7801
7802fi
7803if test `eval echo '${'$as_ac_Header'}'` = yes; then
7804  cat >>confdefs.h <<_ACEOF
7805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7806_ACEOF
7807
7808fi
7809
7810done
7811
7812
7813# Checks for typedefs, structures, and compiler characteristics.
7814echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7815echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7816if test "${ac_cv_header_stdbool_h+set}" = set; then
7817  echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819  cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h.  */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h.  */
7825
7826#include <stdbool.h>
7827#ifndef bool
7828# error bool is not defined
7829#endif
7830#ifndef false
7831# error false is not defined
7832#endif
7833#if false
7834# error false is not 0
7835#endif
7836#ifndef true
7837# error true is not defined
7838#endif
7839#if true != 1
7840# error true is not 1
7841#endif
7842#ifndef __bool_true_false_are_defined
7843# error __bool_true_false_are_defined is not defined
7844#endif
7845
7846        struct s { _Bool s: 1; _Bool t; } s;
7847
7848        char a[true == 1 ? 1 : -1];
7849        char b[false == 0 ? 1 : -1];
7850        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7851        char d[(bool) -0.5 == true ? 1 : -1];
7852        bool e = &s;
7853        char f[(_Bool) -0.0 == false ? 1 : -1];
7854        char g[true];
7855        char h[sizeof (_Bool)];
7856        char i[sizeof s.t];
7857
7858int
7859main ()
7860{
7861 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext
7867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7868  (eval $ac_compile) 2>conftest.er1
7869  ac_status=$?
7870  grep -v '^ *+' conftest.er1 >conftest.err
7871  rm -f conftest.er1
7872  cat conftest.err >&5
7873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874  (exit $ac_status); } &&
7875         { ac_try='test -z "$ac_c_werror_flag"
7876                         || test ! -s conftest.err'
7877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878  (eval $ac_try) 2>&5
7879  ac_status=$?
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); }; } &&
7882         { ac_try='test -s conftest.$ac_objext'
7883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884  (eval $ac_try) 2>&5
7885  ac_status=$?
7886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); }; }; then
7888  ac_cv_header_stdbool_h=yes
7889else
7890  echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
7893ac_cv_header_stdbool_h=no
7894fi
7895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7896fi
7897echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7898echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7899echo "$as_me:$LINENO: checking for _Bool" >&5
7900echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7901if test "${ac_cv_type__Bool+set}" = set; then
7902  echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904  cat >conftest.$ac_ext <<_ACEOF
7905/* confdefs.h.  */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
7909/* end confdefs.h.  */
7910$ac_includes_default
7911int
7912main ()
7913{
7914if ((_Bool *) 0)
7915  return 0;
7916if (sizeof (_Bool))
7917  return 0;
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922rm -f conftest.$ac_objext
7923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7924  (eval $ac_compile) 2>conftest.er1
7925  ac_status=$?
7926  grep -v '^ *+' conftest.er1 >conftest.err
7927  rm -f conftest.er1
7928  cat conftest.err >&5
7929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930  (exit $ac_status); } &&
7931         { ac_try='test -z "$ac_c_werror_flag"
7932                         || test ! -s conftest.err'
7933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934  (eval $ac_try) 2>&5
7935  ac_status=$?
7936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937  (exit $ac_status); }; } &&
7938         { ac_try='test -s conftest.$ac_objext'
7939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940  (eval $ac_try) 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; }; then
7944  ac_cv_type__Bool=yes
7945else
7946  echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949ac_cv_type__Bool=no
7950fi
7951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7952fi
7953echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7954echo "${ECHO_T}$ac_cv_type__Bool" >&6
7955if test $ac_cv_type__Bool = yes; then
7956
7957cat >>confdefs.h <<_ACEOF
7958#define HAVE__BOOL 1
7959_ACEOF
7960
7961
7962fi
7963
7964if test $ac_cv_header_stdbool_h = yes; then
7965
7966cat >>confdefs.h <<\_ACEOF
7967#define HAVE_STDBOOL_H 1
7968_ACEOF
7969
7970fi
7971
7972
7973# Checks for library functions.
7974
7975for ac_header in stdlib.h
7976do
7977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7978if eval "test \"\${$as_ac_Header+set}\" = set"; then
7979  echo "$as_me:$LINENO: checking for $ac_header" >&5
7980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7981if eval "test \"\${$as_ac_Header+set}\" = set"; then
7982  echo $ECHO_N "(cached) $ECHO_C" >&6
7983fi
7984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7986else
7987  # Is the header compilable?
7988echo "$as_me:$LINENO: checking $ac_header usability" >&5
7989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7990cat >conftest.$ac_ext <<_ACEOF
7991/* confdefs.h.  */
7992_ACEOF
7993cat confdefs.h >>conftest.$ac_ext
7994cat >>conftest.$ac_ext <<_ACEOF
7995/* end confdefs.h.  */
7996$ac_includes_default
7997#include <$ac_header>
7998_ACEOF
7999rm -f conftest.$ac_objext
8000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8001  (eval $ac_compile) 2>conftest.er1
8002  ac_status=$?
8003  grep -v '^ *+' conftest.er1 >conftest.err
8004  rm -f conftest.er1
8005  cat conftest.err >&5
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); } &&
8008         { ac_try='test -z "$ac_c_werror_flag"
8009                         || test ! -s conftest.err'
8010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011  (eval $ac_try) 2>&5
8012  ac_status=$?
8013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014  (exit $ac_status); }; } &&
8015         { ac_try='test -s conftest.$ac_objext'
8016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017  (eval $ac_try) 2>&5
8018  ac_status=$?
8019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020  (exit $ac_status); }; }; then
8021  ac_header_compiler=yes
8022else
8023  echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026ac_header_compiler=no
8027fi
8028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8030echo "${ECHO_T}$ac_header_compiler" >&6
8031
8032# Is the header present?
8033echo "$as_me:$LINENO: checking $ac_header presence" >&5
8034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8035cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h.  */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h.  */
8041#include <$ac_header>
8042_ACEOF
8043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8044  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8045  ac_status=$?
8046  grep -v '^ *+' conftest.er1 >conftest.err
8047  rm -f conftest.er1
8048  cat conftest.err >&5
8049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050  (exit $ac_status); } >/dev/null; then
8051  if test -s conftest.err; then
8052    ac_cpp_err=$ac_c_preproc_warn_flag
8053    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8054  else
8055    ac_cpp_err=
8056  fi
8057else
8058  ac_cpp_err=yes
8059fi
8060if test -z "$ac_cpp_err"; then
8061  ac_header_preproc=yes
8062else
8063  echo "$as_me: failed program was:" >&5
8064sed 's/^/| /' conftest.$ac_ext >&5
8065
8066  ac_header_preproc=no
8067fi
8068rm -f conftest.err conftest.$ac_ext
8069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8070echo "${ECHO_T}$ac_header_preproc" >&6
8071
8072# So?  What about this header?
8073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8074  yes:no: )
8075    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8077    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8079    ac_header_preproc=yes
8080    ;;
8081  no:yes:* )
8082    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8084    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8085echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8086    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8088    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8089echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8090    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8092    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8094    (
8095      cat <<\_ASBOX
8096## ---------------------------------------------- ##
8097## Report this to orxonox-dev at mail.datacore.ch ##
8098## ---------------------------------------------- ##
8099_ASBOX
8100    ) |
8101      sed "s/^/$as_me: WARNING:     /" >&2
8102    ;;
8103esac
8104echo "$as_me:$LINENO: checking for $ac_header" >&5
8105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107  echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109  eval "$as_ac_Header=\$ac_header_preproc"
8110fi
8111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8113
8114fi
8115if test `eval echo '${'$as_ac_Header'}'` = yes; then
8116  cat >>confdefs.h <<_ACEOF
8117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8118_ACEOF
8119
8120fi
8121
8122done
8123
8124echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8125echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8126if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8127  echo $ECHO_N "(cached) $ECHO_C" >&6
8128else
8129  if test "$cross_compiling" = yes; then
8130  ac_cv_func_malloc_0_nonnull=no
8131else
8132  cat >conftest.$ac_ext <<_ACEOF
8133/* confdefs.h.  */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h.  */
8138#if STDC_HEADERS || HAVE_STDLIB_H
8139# include <stdlib.h>
8140#else
8141char *malloc ();
8142#endif
8143
8144int
8145main ()
8146{
8147exit (malloc (0) ? 0 : 1);
8148  ;
8149  return 0;
8150}
8151_ACEOF
8152rm -f conftest$ac_exeext
8153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8154  (eval $ac_link) 2>&5
8155  ac_status=$?
8156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159  (eval $ac_try) 2>&5
8160  ac_status=$?
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); }; }; then
8163  ac_cv_func_malloc_0_nonnull=yes
8164else
8165  echo "$as_me: program exited with status $ac_status" >&5
8166echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169( exit $ac_status )
8170ac_cv_func_malloc_0_nonnull=no
8171fi
8172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8173fi
8174fi
8175echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8176echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8177if test $ac_cv_func_malloc_0_nonnull = yes; then
8178
8179cat >>confdefs.h <<\_ACEOF
8180#define HAVE_MALLOC 1
8181_ACEOF
8182
8183else
8184  cat >>confdefs.h <<\_ACEOF
8185#define HAVE_MALLOC 0
8186_ACEOF
8187
8188   case $LIBOBJS in
8189    "malloc.$ac_objext"   | \
8190  *" malloc.$ac_objext"   | \
8191    "malloc.$ac_objext "* | \
8192  *" malloc.$ac_objext "* ) ;;
8193  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8194esac
8195
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define malloc rpl_malloc
8199_ACEOF
8200
8201fi
8202
8203
8204
8205
8206
8207for ac_func in bzero sqrt
8208do
8209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8210echo "$as_me:$LINENO: checking for $ac_func" >&5
8211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8212if eval "test \"\${$as_ac_var+set}\" = set"; then
8213  echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215  cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h.  */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h.  */
8221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8222   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8223#define $ac_func innocuous_$ac_func
8224
8225/* System header to define __stub macros and hopefully few prototypes,
8226    which can conflict with char $ac_func (); below.
8227    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8228    <limits.h> exists even on freestanding compilers.  */
8229
8230#ifdef __STDC__
8231# include <limits.h>
8232#else
8233# include <assert.h>
8234#endif
8235
8236#undef $ac_func
8237
8238/* Override any gcc2 internal prototype to avoid an error.  */
8239#ifdef __cplusplus
8240extern "C"
8241{
8242#endif
8243/* We use char because int might match the return type of a gcc2
8244   builtin and then its argument prototype would still apply.  */
8245char $ac_func ();
8246/* The GNU C library defines this for functions which it implements
8247    to always fail with ENOSYS.  Some functions are actually named
8248    something starting with __ and the normal name is an alias.  */
8249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8250choke me
8251#else
8252char (*f) () = $ac_func;
8253#endif
8254#ifdef __cplusplus
8255}
8256#endif
8257
8258int
8259main ()
8260{
8261return f != $ac_func;
8262  ;
8263  return 0;
8264}
8265_ACEOF
8266rm -f conftest.$ac_objext conftest$ac_exeext
8267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268  (eval $ac_link) 2>conftest.er1
8269  ac_status=$?
8270  grep -v '^ *+' conftest.er1 >conftest.err
8271  rm -f conftest.er1
8272  cat conftest.err >&5
8273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274  (exit $ac_status); } &&
8275         { ac_try='test -z "$ac_c_werror_flag"
8276                         || test ! -s conftest.err'
8277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278  (eval $ac_try) 2>&5
8279  ac_status=$?
8280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281  (exit $ac_status); }; } &&
8282         { ac_try='test -s conftest$ac_exeext'
8283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284  (eval $ac_try) 2>&5
8285  ac_status=$?
8286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287  (exit $ac_status); }; }; then
8288  eval "$as_ac_var=yes"
8289else
8290  echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293eval "$as_ac_var=no"
8294fi
8295rm -f conftest.err conftest.$ac_objext \
8296      conftest$ac_exeext conftest.$ac_ext
8297fi
8298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8299echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8300if test `eval echo '${'$as_ac_var'}'` = yes; then
8301  cat >>confdefs.h <<_ACEOF
8302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8303_ACEOF
8304
8305fi
8306done
8307
8308
8309######################
8310## OUTPUT CONFIGURE ##
8311######################
8312                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile"
8313
8314
8315cat >confcache <<\_ACEOF
8316# This file is a shell script that caches the results of configure
8317# tests run on this system so they can be shared between configure
8318# scripts and configure runs, see configure's option --config-cache.
8319# It is not useful on other systems.  If it contains results you don't
8320# want to keep, you may remove or edit it.
8321#
8322# config.status only pays attention to the cache file if you give it
8323# the --recheck option to rerun configure.
8324#
8325# `ac_cv_env_foo' variables (set or unset) will be overridden when
8326# loading this file, other *unset* `ac_cv_foo' will be assigned the
8327# following values.
8328
8329_ACEOF
8330
8331# The following way of writing the cache mishandles newlines in values,
8332# but we know of no workaround that is simple, portable, and efficient.
8333# So, don't put newlines in cache variables' values.
8334# Ultrix sh set writes to stderr and can't be redirected directly,
8335# and sets the high bit in the cache file unless we assign to the vars.
8336{
8337  (set) 2>&1 |
8338    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8339    *ac_space=\ *)
8340      # `set' does not quote correctly, so add quotes (double-quote
8341      # substitution turns \\\\ into \\, and sed turns \\ into \).
8342      sed -n \
8343        "s/'/'\\\\''/g;
8344          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8345      ;;
8346    *)
8347      # `set' quotes correctly as required by POSIX, so do not add quotes.
8348      sed -n \
8349        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8350      ;;
8351    esac;
8352} |
8353  sed '
8354     t clear
8355     : clear
8356     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8357     t end
8358     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8359     : end' >>confcache
8360if diff $cache_file confcache >/dev/null 2>&1; then :; else
8361  if test -w $cache_file; then
8362    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8363    cat confcache >$cache_file
8364  else
8365    echo "not updating unwritable cache $cache_file"
8366  fi
8367fi
8368rm -f confcache
8369
8370test "x$prefix" = xNONE && prefix=$ac_default_prefix
8371# Let make expand exec_prefix.
8372test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8373
8374# VPATH may cause trouble with some makes, so we remove $(srcdir),
8375# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8376# trailing colons and then remove the whole line if VPATH becomes empty
8377# (actually we leave an empty line to preserve line numbers).
8378if test "x$srcdir" = x.; then
8379  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8380s/:*\$(srcdir):*/:/;
8381s/:*\${srcdir}:*/:/;
8382s/:*@srcdir@:*/:/;
8383s/^\([^=]*=[     ]*\):*/\1/;
8384s/:*$//;
8385s/^[^=]*=[       ]*$//;
8386}'
8387fi
8388
8389DEFS=-DHAVE_CONFIG_H
8390
8391ac_libobjs=
8392ac_ltlibobjs=
8393for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8394  # 1. Remove the extension, and $U if already installed.
8395  ac_i=`echo "$ac_i" |
8396         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8397  # 2. Add them.
8398  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8399  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8400done
8401LIBOBJS=$ac_libobjs
8402
8403LTLIBOBJS=$ac_ltlibobjs
8404
8405
8406if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8407  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8408Usually this means the macro was only invoked conditionally." >&5
8409echo "$as_me: error: conditional \"AMDEP\" was never defined.
8410Usually this means the macro was only invoked conditionally." >&2;}
8411   { (exit 1); exit 1; }; }
8412fi
8413if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8414  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8415Usually this means the macro was only invoked conditionally." >&5
8416echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8417Usually this means the macro was only invoked conditionally." >&2;}
8418   { (exit 1); exit 1; }; }
8419fi
8420if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8421  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8422Usually this means the macro was only invoked conditionally." >&5
8423echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8424Usually this means the macro was only invoked conditionally." >&2;}
8425   { (exit 1); exit 1; }; }
8426fi
8427if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8428  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8429Usually this means the macro was only invoked conditionally." >&5
8430echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8431Usually this means the macro was only invoked conditionally." >&2;}
8432   { (exit 1); exit 1; }; }
8433fi
8434if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8435  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8436Usually this means the macro was only invoked conditionally." >&5
8437echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8438Usually this means the macro was only invoked conditionally." >&2;}
8439   { (exit 1); exit 1; }; }
8440fi
8441if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
8442  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
8443Usually this means the macro was only invoked conditionally." >&5
8444echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
8445Usually this means the macro was only invoked conditionally." >&2;}
8446   { (exit 1); exit 1; }; }
8447fi
8448if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8449  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8450Usually this means the macro was only invoked conditionally." >&5
8451echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8452Usually this means the macro was only invoked conditionally." >&2;}
8453   { (exit 1); exit 1; }; }
8454fi
8455if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8456  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8457Usually this means the macro was only invoked conditionally." >&5
8458echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8459Usually this means the macro was only invoked conditionally." >&2;}
8460   { (exit 1); exit 1; }; }
8461fi
8462if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8463  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8464Usually this means the macro was only invoked conditionally." >&5
8465echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8466Usually this means the macro was only invoked conditionally." >&2;}
8467   { (exit 1); exit 1; }; }
8468fi
8469if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8470  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8471Usually this means the macro was only invoked conditionally." >&5
8472echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8473Usually this means the macro was only invoked conditionally." >&2;}
8474   { (exit 1); exit 1; }; }
8475fi
8476
8477: ${CONFIG_STATUS=./config.status}
8478ac_clean_files_save=$ac_clean_files
8479ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8480{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8481echo "$as_me: creating $CONFIG_STATUS" >&6;}
8482cat >$CONFIG_STATUS <<_ACEOF
8483#! $SHELL
8484# Generated by $as_me.
8485# Run this file to recreate the current configuration.
8486# Compiler output produced by configure, useful for debugging
8487# configure, is in config.log if it exists.
8488
8489debug=false
8490ac_cs_recheck=false
8491ac_cs_silent=false
8492SHELL=\${CONFIG_SHELL-$SHELL}
8493_ACEOF
8494
8495cat >>$CONFIG_STATUS <<\_ACEOF
8496## --------------------- ##
8497## M4sh Initialization.  ##
8498## --------------------- ##
8499
8500# Be Bourne compatible
8501if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8502  emulate sh
8503  NULLCMD=:
8504  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8505  # is contrary to our usage.  Disable this feature.
8506  alias -g '${1+"$@"}'='"$@"'
8507elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8508  set -o posix
8509fi
8510DUALCASE=1; export DUALCASE # for MKS sh
8511
8512# Support unset when possible.
8513if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8514  as_unset=unset
8515else
8516  as_unset=false
8517fi
8518
8519
8520# Work around bugs in pre-3.0 UWIN ksh.
8521$as_unset ENV MAIL MAILPATH
8522PS1='$ '
8523PS2='> '
8524PS4='+ '
8525
8526# NLS nuisances.
8527for as_var in \
8528  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8529  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8530  LC_TELEPHONE LC_TIME
8531do
8532  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8533    eval $as_var=C; export $as_var
8534  else
8535    $as_unset $as_var
8536  fi
8537done
8538
8539# Required to use basename.
8540if expr a : '\(a\)' >/dev/null 2>&1; then
8541  as_expr=expr
8542else
8543  as_expr=false
8544fi
8545
8546if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8547  as_basename=basename
8548else
8549  as_basename=false
8550fi
8551
8552
8553# Name of the executable.
8554as_me=`$as_basename "$0" ||
8555$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8556         X"$0" : 'X\(//\)$' \| \
8557         X"$0" : 'X\(/\)$' \| \
8558         .     : '\(.\)' 2>/dev/null ||
8559echo X/"$0" |
8560    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8561          /^X\/\(\/\/\)$/{ s//\1/; q; }
8562          /^X\/\(\/\).*/{ s//\1/; q; }
8563          s/.*/./; q'`
8564
8565
8566# PATH needs CR, and LINENO needs CR and PATH.
8567# Avoid depending upon Character Ranges.
8568as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8570as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8571as_cr_digits='0123456789'
8572as_cr_alnum=$as_cr_Letters$as_cr_digits
8573
8574# The user is always right.
8575if test "${PATH_SEPARATOR+set}" != set; then
8576  echo "#! /bin/sh" >conf$$.sh
8577  echo  "exit 0"   >>conf$$.sh
8578  chmod +x conf$$.sh
8579  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8580    PATH_SEPARATOR=';'
8581  else
8582    PATH_SEPARATOR=:
8583  fi
8584  rm -f conf$$.sh
8585fi
8586
8587
8588  as_lineno_1=$LINENO
8589  as_lineno_2=$LINENO
8590  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8591  test "x$as_lineno_1" != "x$as_lineno_2" &&
8592  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8593  # Find who we are.  Look in the path if we contain no path at all
8594  # relative or not.
8595  case $0 in
8596    *[\\/]* ) as_myself=$0 ;;
8597    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598for as_dir in $PATH
8599do
8600  IFS=$as_save_IFS
8601  test -z "$as_dir" && as_dir=.
8602  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8603done
8604
8605       ;;
8606  esac
8607  # We did not find ourselves, most probably we were run as `sh COMMAND'
8608  # in which case we are not to be found in the path.
8609  if test "x$as_myself" = x; then
8610    as_myself=$0
8611  fi
8612  if test ! -f "$as_myself"; then
8613    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8614echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8615   { (exit 1); exit 1; }; }
8616  fi
8617  case $CONFIG_SHELL in
8618  '')
8619    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8621do
8622  IFS=$as_save_IFS
8623  test -z "$as_dir" && as_dir=.
8624  for as_base in sh bash ksh sh5; do
8625         case $as_dir in
8626         /*)
8627           if ("$as_dir/$as_base" -c '
8628  as_lineno_1=$LINENO
8629  as_lineno_2=$LINENO
8630  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8631  test "x$as_lineno_1" != "x$as_lineno_2" &&
8632  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8633             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8634             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8635             CONFIG_SHELL=$as_dir/$as_base
8636             export CONFIG_SHELL
8637             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8638           fi;;
8639         esac
8640       done
8641done
8642;;
8643  esac
8644
8645  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8646  # uniformly replaced by the line number.  The first 'sed' inserts a
8647  # line-number line before each line; the second 'sed' does the real
8648  # work.  The second script uses 'N' to pair each line-number line
8649  # with the numbered line, and appends trailing '-' during
8650  # substitution so that $LINENO is not a special case at line end.
8651  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8652  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8653  sed '=' <$as_myself |
8654    sed '
8655      N
8656      s,$,-,
8657      : loop
8658      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8659      t loop
8660      s,-$,,
8661      s,^['$as_cr_digits']*\n,,
8662    ' >$as_me.lineno &&
8663  chmod +x $as_me.lineno ||
8664    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8665echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8666   { (exit 1); exit 1; }; }
8667
8668  # Don't try to exec as it changes $[0], causing all sort of problems
8669  # (the dirname of $[0] is not the place where we might find the
8670  # original and so on.  Autoconf is especially sensible to this).
8671  . ./$as_me.lineno
8672  # Exit status is that of the last command.
8673  exit
8674}
8675
8676
8677case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8678  *c*,-n*) ECHO_N= ECHO_C='
8679' ECHO_T='      ' ;;
8680  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8681  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8682esac
8683
8684if expr a : '\(a\)' >/dev/null 2>&1; then
8685  as_expr=expr
8686else
8687  as_expr=false
8688fi
8689
8690rm -f conf$$ conf$$.exe conf$$.file
8691echo >conf$$.file
8692if ln -s conf$$.file conf$$ 2>/dev/null; then
8693  # We could just check for DJGPP; but this test a) works b) is more generic
8694  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8695  if test -f conf$$.exe; then
8696    # Don't use ln at all; we don't have any links
8697    as_ln_s='cp -p'
8698  else
8699    as_ln_s='ln -s'
8700  fi
8701elif ln conf$$.file conf$$ 2>/dev/null; then
8702  as_ln_s=ln
8703else
8704  as_ln_s='cp -p'
8705fi
8706rm -f conf$$ conf$$.exe conf$$.file
8707
8708if mkdir -p . 2>/dev/null; then
8709  as_mkdir_p=:
8710else
8711  test -d ./-p && rmdir ./-p
8712  as_mkdir_p=false
8713fi
8714
8715as_executable_p="test -f"
8716
8717# Sed expression to map a string onto a valid CPP name.
8718as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8719
8720# Sed expression to map a string onto a valid variable name.
8721as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8722
8723
8724# IFS
8725# We need space, tab and new line, in precisely that order.
8726as_nl='
8727'
8728IFS="   $as_nl"
8729
8730# CDPATH.
8731$as_unset CDPATH
8732
8733exec 6>&1
8734
8735# Open the log real soon, to keep \$[0] and so on meaningful, and to
8736# report actual input values of CONFIG_FILES etc. instead of their
8737# values after options handling.  Logging --version etc. is OK.
8738exec 5>>config.log
8739{
8740  echo
8741  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8742## Running $as_me. ##
8743_ASBOX
8744} >&5
8745cat >&5 <<_CSEOF
8746
8747This file was extended by orxonox $as_me 0.2.2-pre-alpha, which was
8748generated by GNU Autoconf 2.59.  Invocation command line was
8749
8750  CONFIG_FILES    = $CONFIG_FILES
8751  CONFIG_HEADERS  = $CONFIG_HEADERS
8752  CONFIG_LINKS    = $CONFIG_LINKS
8753  CONFIG_COMMANDS = $CONFIG_COMMANDS
8754  $ $0 $@
8755
8756_CSEOF
8757echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8758echo >&5
8759_ACEOF
8760
8761# Files that config.status was made for.
8762if test -n "$ac_config_files"; then
8763  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8764fi
8765
8766if test -n "$ac_config_headers"; then
8767  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8768fi
8769
8770if test -n "$ac_config_links"; then
8771  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8772fi
8773
8774if test -n "$ac_config_commands"; then
8775  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8776fi
8777
8778cat >>$CONFIG_STATUS <<\_ACEOF
8779
8780ac_cs_usage="\
8781\`$as_me' instantiates files from templates according to the
8782current configuration.
8783
8784Usage: $0 [OPTIONS] [FILE]...
8785
8786  -h, --help       print this help, then exit
8787  -V, --version    print version number, then exit
8788  -q, --quiet      do not print progress messages
8789  -d, --debug      don't remove temporary files
8790      --recheck    update $as_me by reconfiguring in the same conditions
8791  --file=FILE[:TEMPLATE]
8792                   instantiate the configuration file FILE
8793  --header=FILE[:TEMPLATE]
8794                   instantiate the configuration header FILE
8795
8796Configuration files:
8797$config_files
8798
8799Configuration headers:
8800$config_headers
8801
8802Configuration commands:
8803$config_commands
8804
8805Report bugs to <bug-autoconf@gnu.org>."
8806_ACEOF
8807
8808cat >>$CONFIG_STATUS <<_ACEOF
8809ac_cs_version="\\
8810orxonox config.status 0.2.2-pre-alpha
8811configured by $0, generated by GNU Autoconf 2.59,
8812  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8813
8814Copyright (C) 2003 Free Software Foundation, Inc.
8815This config.status script is free software; the Free Software Foundation
8816gives unlimited permission to copy, distribute and modify it."
8817srcdir=$srcdir
8818INSTALL="$INSTALL"
8819_ACEOF
8820
8821cat >>$CONFIG_STATUS <<\_ACEOF
8822# If no file are specified by the user, then we need to provide default
8823# value.  By we need to know if files were specified by the user.
8824ac_need_defaults=:
8825while test $# != 0
8826do
8827  case $1 in
8828  --*=*)
8829    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8830    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8831    ac_shift=:
8832    ;;
8833  -*)
8834    ac_option=$1
8835    ac_optarg=$2
8836    ac_shift=shift
8837    ;;
8838  *) # This is not an option, so the user has probably given explicit
8839     # arguments.
8840     ac_option=$1
8841     ac_need_defaults=false;;
8842  esac
8843
8844  case $ac_option in
8845  # Handling of the options.
8846_ACEOF
8847cat >>$CONFIG_STATUS <<\_ACEOF
8848  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8849    ac_cs_recheck=: ;;
8850  --version | --vers* | -V )
8851    echo "$ac_cs_version"; exit 0 ;;
8852  --he | --h)
8853    # Conflict between --help and --header
8854    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8855Try \`$0 --help' for more information." >&5
8856echo "$as_me: error: ambiguous option: $1
8857Try \`$0 --help' for more information." >&2;}
8858   { (exit 1); exit 1; }; };;
8859  --help | --hel | -h )
8860    echo "$ac_cs_usage"; exit 0 ;;
8861  --debug | --d* | -d )
8862    debug=: ;;
8863  --file | --fil | --fi | --f )
8864    $ac_shift
8865    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8866    ac_need_defaults=false;;
8867  --header | --heade | --head | --hea )
8868    $ac_shift
8869    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8870    ac_need_defaults=false;;
8871  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8872  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8873    ac_cs_silent=: ;;
8874
8875  # This is an error.
8876  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8877Try \`$0 --help' for more information." >&5
8878echo "$as_me: error: unrecognized option: $1
8879Try \`$0 --help' for more information." >&2;}
8880   { (exit 1); exit 1; }; } ;;
8881
8882  *) ac_config_targets="$ac_config_targets $1" ;;
8883
8884  esac
8885  shift
8886done
8887
8888ac_configure_extra_args=
8889
8890if $ac_cs_silent; then
8891  exec 6>/dev/null
8892  ac_configure_extra_args="$ac_configure_extra_args --silent"
8893fi
8894
8895_ACEOF
8896cat >>$CONFIG_STATUS <<_ACEOF
8897if \$ac_cs_recheck; then
8898  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8899  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8900fi
8901
8902_ACEOF
8903
8904cat >>$CONFIG_STATUS <<_ACEOF
8905#
8906# INIT-COMMANDS section.
8907#
8908
8909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8910
8911_ACEOF
8912
8913
8914
8915cat >>$CONFIG_STATUS <<\_ACEOF
8916for ac_config_target in $ac_config_targets
8917do
8918  case "$ac_config_target" in
8919  # Handling of arguments.
8920  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8921  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8922  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
8923  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
8924  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
8925  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
8926  "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;;
8927  "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;;
8928  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
8929  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
8930  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8931  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8932  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8933echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8934   { (exit 1); exit 1; }; };;
8935  esac
8936done
8937
8938# If the user did not use the arguments to specify the items to instantiate,
8939# then the envvar interface is used.  Set only those that are not.
8940# We use the long form for the default assignment because of an extremely
8941# bizarre bug on SunOS 4.1.3.
8942if $ac_need_defaults; then
8943  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8944  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8945  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8946fi
8947
8948# Have a temporary directory for convenience.  Make it in the build tree
8949# simply because there is no reason to put it here, and in addition,
8950# creating and moving files from /tmp can sometimes cause problems.
8951# Create a temporary directory, and hook for its removal unless debugging.
8952$debug ||
8953{
8954  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8955  trap '{ (exit 1); exit 1; }' 1 2 13 15
8956}
8957
8958# Create a (secure) tmp directory for tmp files.
8959
8960{
8961  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8962  test -n "$tmp" && test -d "$tmp"
8963}  ||
8964{
8965  tmp=./confstat$$-$RANDOM
8966  (umask 077 && mkdir $tmp)
8967} ||
8968{
8969   echo "$me: cannot create a temporary directory in ." >&2
8970   { (exit 1); exit 1; }
8971}
8972
8973_ACEOF
8974
8975cat >>$CONFIG_STATUS <<_ACEOF
8976
8977#
8978# CONFIG_FILES section.
8979#
8980
8981# No need to generate the scripts if there are no CONFIG_FILES.
8982# This happens for instance when ./config.status config.h
8983if test -n "\$CONFIG_FILES"; then
8984  # Protect against being on the right side of a sed subst in config.status.
8985  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8986   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8987s,@SHELL@,$SHELL,;t t
8988s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8989s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8990s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8991s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8992s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8993s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8994s,@exec_prefix@,$exec_prefix,;t t
8995s,@prefix@,$prefix,;t t
8996s,@program_transform_name@,$program_transform_name,;t t
8997s,@bindir@,$bindir,;t t
8998s,@sbindir@,$sbindir,;t t
8999s,@libexecdir@,$libexecdir,;t t
9000s,@datadir@,$datadir,;t t
9001s,@sysconfdir@,$sysconfdir,;t t
9002s,@sharedstatedir@,$sharedstatedir,;t t
9003s,@localstatedir@,$localstatedir,;t t
9004s,@libdir@,$libdir,;t t
9005s,@includedir@,$includedir,;t t
9006s,@oldincludedir@,$oldincludedir,;t t
9007s,@infodir@,$infodir,;t t
9008s,@mandir@,$mandir,;t t
9009s,@build_alias@,$build_alias,;t t
9010s,@host_alias@,$host_alias,;t t
9011s,@target_alias@,$target_alias,;t t
9012s,@DEFS@,$DEFS,;t t
9013s,@ECHO_C@,$ECHO_C,;t t
9014s,@ECHO_N@,$ECHO_N,;t t
9015s,@ECHO_T@,$ECHO_T,;t t
9016s,@LIBS@,$LIBS,;t t
9017s,@build@,$build,;t t
9018s,@build_cpu@,$build_cpu,;t t
9019s,@build_vendor@,$build_vendor,;t t
9020s,@build_os@,$build_os,;t t
9021s,@host@,$host,;t t
9022s,@host_cpu@,$host_cpu,;t t
9023s,@host_vendor@,$host_vendor,;t t
9024s,@host_os@,$host_os,;t t
9025s,@target@,$target,;t t
9026s,@target_cpu@,$target_cpu,;t t
9027s,@target_vendor@,$target_vendor,;t t
9028s,@target_os@,$target_os,;t t
9029s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9030s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9031s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9032s,@CYGPATH_W@,$CYGPATH_W,;t t
9033s,@PACKAGE@,$PACKAGE,;t t
9034s,@VERSION@,$VERSION,;t t
9035s,@ACLOCAL@,$ACLOCAL,;t t
9036s,@AUTOCONF@,$AUTOCONF,;t t
9037s,@AUTOMAKE@,$AUTOMAKE,;t t
9038s,@AUTOHEADER@,$AUTOHEADER,;t t
9039s,@MAKEINFO@,$MAKEINFO,;t t
9040s,@AMTAR@,$AMTAR,;t t
9041s,@install_sh@,$install_sh,;t t
9042s,@STRIP@,$STRIP,;t t
9043s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9044s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9045s,@mkdir_p@,$mkdir_p,;t t
9046s,@AWK@,$AWK,;t t
9047s,@SET_MAKE@,$SET_MAKE,;t t
9048s,@am__leading_dot@,$am__leading_dot,;t t
9049s,@CXX@,$CXX,;t t
9050s,@CXXFLAGS@,$CXXFLAGS,;t t
9051s,@LDFLAGS@,$LDFLAGS,;t t
9052s,@CPPFLAGS@,$CPPFLAGS,;t t
9053s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9054s,@EXEEXT@,$EXEEXT,;t t
9055s,@OBJEXT@,$OBJEXT,;t t
9056s,@DEPDIR@,$DEPDIR,;t t
9057s,@am__include@,$am__include,;t t
9058s,@am__quote@,$am__quote,;t t
9059s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9060s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9061s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9062s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9063s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9064s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9065s,@CC@,$CC,;t t
9066s,@CFLAGS@,$CFLAGS,;t t
9067s,@ac_ct_CC@,$ac_ct_CC,;t t
9068s,@CCDEPMODE@,$CCDEPMODE,;t t
9069s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9070s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9071s,@CPP@,$CPP,;t t
9072s,@EGREP@,$EGREP,;t t
9073s,@DEBUG@,$DEBUG,;t t
9074s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
9075s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
9076s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
9077s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
9078s,@DOXYGEN@,$DOXYGEN,;t t
9079s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
9080s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
9081s,@GPROF@,$GPROF,;t t
9082s,@MSBITFIELDS@,$MSBITFIELDS,;t t
9083s,@GTK2_LIBS@,$GTK2_LIBS,;t t
9084s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
9085s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
9086s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
9087s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
9088s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
9089s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
9090s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
9091s,@CURL_LIBS@,$CURL_LIBS,;t t
9092s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
9093s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
9094s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
9095s,@LIBOBJS@,$LIBOBJS,;t t
9096s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9097CEOF
9098
9099_ACEOF
9100
9101  cat >>$CONFIG_STATUS <<\_ACEOF
9102  # Split the substitutions into bite-sized pieces for seds with
9103  # small command number limits, like on Digital OSF/1 and HP-UX.
9104  ac_max_sed_lines=48
9105  ac_sed_frag=1 # Number of current file.
9106  ac_beg=1 # First line for current file.
9107  ac_end=$ac_max_sed_lines # Line after last line for current file.
9108  ac_more_lines=:
9109  ac_sed_cmds=
9110  while $ac_more_lines; do
9111    if test $ac_beg -gt 1; then
9112      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9113    else
9114      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9115    fi
9116    if test ! -s $tmp/subs.frag; then
9117      ac_more_lines=false
9118    else
9119      # The purpose of the label and of the branching condition is to
9120      # speed up the sed processing (if there are no `@' at all, there
9121      # is no need to browse any of the substitutions).
9122      # These are the two extra sed commands mentioned above.
9123      (echo ':t
9124  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9125      if test -z "$ac_sed_cmds"; then
9126        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9127      else
9128        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9129      fi
9130      ac_sed_frag=`expr $ac_sed_frag + 1`
9131      ac_beg=$ac_end
9132      ac_end=`expr $ac_end + $ac_max_sed_lines`
9133    fi
9134  done
9135  if test -z "$ac_sed_cmds"; then
9136    ac_sed_cmds=cat
9137  fi
9138fi # test -n "$CONFIG_FILES"
9139
9140_ACEOF
9141cat >>$CONFIG_STATUS <<\_ACEOF
9142for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9143  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9144  case $ac_file in
9145  - | *:- | *:-:* ) # input from stdin
9146        cat >$tmp/stdin
9147        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9148        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9149  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9150        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9151  * )   ac_file_in=$ac_file.in ;;
9152  esac
9153
9154  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9155  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9156$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9157         X"$ac_file" : 'X\(//\)[^/]' \| \
9158         X"$ac_file" : 'X\(//\)$' \| \
9159         X"$ac_file" : 'X\(/\)' \| \
9160         .     : '\(.\)' 2>/dev/null ||
9161echo X"$ac_file" |
9162    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9163          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9164          /^X\(\/\/\)$/{ s//\1/; q; }
9165          /^X\(\/\).*/{ s//\1/; q; }
9166          s/.*/./; q'`
9167  { if $as_mkdir_p; then
9168    mkdir -p "$ac_dir"
9169  else
9170    as_dir="$ac_dir"
9171    as_dirs=
9172    while test ! -d "$as_dir"; do
9173      as_dirs="$as_dir $as_dirs"
9174      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9176         X"$as_dir" : 'X\(//\)[^/]' \| \
9177         X"$as_dir" : 'X\(//\)$' \| \
9178         X"$as_dir" : 'X\(/\)' \| \
9179         .     : '\(.\)' 2>/dev/null ||
9180echo X"$as_dir" |
9181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9182          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9183          /^X\(\/\/\)$/{ s//\1/; q; }
9184          /^X\(\/\).*/{ s//\1/; q; }
9185          s/.*/./; q'`
9186    done
9187    test ! -n "$as_dirs" || mkdir $as_dirs
9188  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9189echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9190   { (exit 1); exit 1; }; }; }
9191
9192  ac_builddir=.
9193
9194if test "$ac_dir" != .; then
9195  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9196  # A "../" for each directory in $ac_dir_suffix.
9197  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9198else
9199  ac_dir_suffix= ac_top_builddir=
9200fi
9201
9202case $srcdir in
9203  .)  # No --srcdir option.  We are building in place.
9204    ac_srcdir=.
9205    if test -z "$ac_top_builddir"; then
9206       ac_top_srcdir=.
9207    else
9208       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9209    fi ;;
9210  [\\/]* | ?:[\\/]* )  # Absolute path.
9211    ac_srcdir=$srcdir$ac_dir_suffix;
9212    ac_top_srcdir=$srcdir ;;
9213  *) # Relative path.
9214    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9215    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9216esac
9217
9218# Do not use `cd foo && pwd` to compute absolute paths, because
9219# the directories may not exist.
9220case `pwd` in
9221.) ac_abs_builddir="$ac_dir";;
9222*)
9223  case "$ac_dir" in
9224  .) ac_abs_builddir=`pwd`;;
9225  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9226  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9227  esac;;
9228esac
9229case $ac_abs_builddir in
9230.) ac_abs_top_builddir=${ac_top_builddir}.;;
9231*)
9232  case ${ac_top_builddir}. in
9233  .) ac_abs_top_builddir=$ac_abs_builddir;;
9234  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9235  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9236  esac;;
9237esac
9238case $ac_abs_builddir in
9239.) ac_abs_srcdir=$ac_srcdir;;
9240*)
9241  case $ac_srcdir in
9242  .) ac_abs_srcdir=$ac_abs_builddir;;
9243  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9244  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9245  esac;;
9246esac
9247case $ac_abs_builddir in
9248.) ac_abs_top_srcdir=$ac_top_srcdir;;
9249*)
9250  case $ac_top_srcdir in
9251  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9252  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9253  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9254  esac;;
9255esac
9256
9257
9258  case $INSTALL in
9259  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9260  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9261  esac
9262
9263  if test x"$ac_file" != x-; then
9264    { echo "$as_me:$LINENO: creating $ac_file" >&5
9265echo "$as_me: creating $ac_file" >&6;}
9266    rm -f "$ac_file"
9267  fi
9268  # Let's still pretend it is `configure' which instantiates (i.e., don't
9269  # use $as_me), people would be surprised to read:
9270  #    /* config.h.  Generated by config.status.  */
9271  if test x"$ac_file" = x-; then
9272    configure_input=
9273  else
9274    configure_input="$ac_file.  "
9275  fi
9276  configure_input=$configure_input"Generated from `echo $ac_file_in |
9277                                     sed 's,.*/,,'` by configure."
9278
9279  # First look for the input files in the build tree, otherwise in the
9280  # src tree.
9281  ac_file_inputs=`IFS=:
9282    for f in $ac_file_in; do
9283      case $f in
9284      -) echo $tmp/stdin ;;
9285      [\\/$]*)
9286         # Absolute (can't be DOS-style, as IFS=:)
9287         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9288echo "$as_me: error: cannot find input file: $f" >&2;}
9289   { (exit 1); exit 1; }; }
9290         echo "$f";;
9291      *) # Relative
9292         if test -f "$f"; then
9293           # Build tree
9294           echo "$f"
9295         elif test -f "$srcdir/$f"; then
9296           # Source tree
9297           echo "$srcdir/$f"
9298         else
9299           # /dev/null tree
9300           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9301echo "$as_me: error: cannot find input file: $f" >&2;}
9302   { (exit 1); exit 1; }; }
9303         fi;;
9304      esac
9305    done` || { (exit 1); exit 1; }
9306_ACEOF
9307cat >>$CONFIG_STATUS <<_ACEOF
9308  sed "$ac_vpsub
9309$extrasub
9310_ACEOF
9311cat >>$CONFIG_STATUS <<\_ACEOF
9312:t
9313/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9314s,@configure_input@,$configure_input,;t t
9315s,@srcdir@,$ac_srcdir,;t t
9316s,@abs_srcdir@,$ac_abs_srcdir,;t t
9317s,@top_srcdir@,$ac_top_srcdir,;t t
9318s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9319s,@builddir@,$ac_builddir,;t t
9320s,@abs_builddir@,$ac_abs_builddir,;t t
9321s,@top_builddir@,$ac_top_builddir,;t t
9322s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9323s,@INSTALL@,$ac_INSTALL,;t t
9324" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9325  rm -f $tmp/stdin
9326  if test x"$ac_file" != x-; then
9327    mv $tmp/out $ac_file
9328  else
9329    cat $tmp/out
9330    rm -f $tmp/out
9331  fi
9332
9333done
9334_ACEOF
9335cat >>$CONFIG_STATUS <<\_ACEOF
9336
9337#
9338# CONFIG_HEADER section.
9339#
9340
9341# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9342# NAME is the cpp macro being defined and VALUE is the value it is being given.
9343#
9344# ac_d sets the value in "#define NAME VALUE" lines.
9345ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9346ac_dB='[         ].*$,\1#\2'
9347ac_dC=' '
9348ac_dD=',;t'
9349# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9350ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9351ac_uB='$,\1#\2define\3'
9352ac_uC=' '
9353ac_uD=',;t'
9354
9355for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9356  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9357  case $ac_file in
9358  - | *:- | *:-:* ) # input from stdin
9359        cat >$tmp/stdin
9360        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9361        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9362  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9363        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9364  * )   ac_file_in=$ac_file.in ;;
9365  esac
9366
9367  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9368echo "$as_me: creating $ac_file" >&6;}
9369
9370  # First look for the input files in the build tree, otherwise in the
9371  # src tree.
9372  ac_file_inputs=`IFS=:
9373    for f in $ac_file_in; do
9374      case $f in
9375      -) echo $tmp/stdin ;;
9376      [\\/$]*)
9377         # Absolute (can't be DOS-style, as IFS=:)
9378         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9379echo "$as_me: error: cannot find input file: $f" >&2;}
9380   { (exit 1); exit 1; }; }
9381         # Do quote $f, to prevent DOS paths from being IFS'd.
9382         echo "$f";;
9383      *) # Relative
9384         if test -f "$f"; then
9385           # Build tree
9386           echo "$f"
9387         elif test -f "$srcdir/$f"; then
9388           # Source tree
9389           echo "$srcdir/$f"
9390         else
9391           # /dev/null tree
9392           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9393echo "$as_me: error: cannot find input file: $f" >&2;}
9394   { (exit 1); exit 1; }; }
9395         fi;;
9396      esac
9397    done` || { (exit 1); exit 1; }
9398  # Remove the trailing spaces.
9399  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9400
9401_ACEOF
9402
9403# Transform confdefs.h into two sed scripts, `conftest.defines' and
9404# `conftest.undefs', that substitutes the proper values into
9405# config.h.in to produce config.h.  The first handles `#define'
9406# templates, and the second `#undef' templates.
9407# And first: Protect against being on the right side of a sed subst in
9408# config.status.  Protect against being in an unquoted here document
9409# in config.status.
9410rm -f conftest.defines conftest.undefs
9411# Using a here document instead of a string reduces the quoting nightmare.
9412# Putting comments in sed scripts is not portable.
9413#
9414# `end' is used to avoid that the second main sed command (meant for
9415# 0-ary CPP macros) applies to n-ary macro definitions.
9416# See the Autoconf documentation for `clear'.
9417cat >confdef2sed.sed <<\_ACEOF
9418s/[\\&,]/\\&/g
9419s,[\\$`],\\&,g
9420t clear
9421: clear
9422s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9423t end
9424s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9425: end
9426_ACEOF
9427# If some macros were called several times there might be several times
9428# the same #defines, which is useless.  Nevertheless, we may not want to
9429# sort them, since we want the *last* AC-DEFINE to be honored.
9430uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9431sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9432rm -f confdef2sed.sed
9433
9434# This sed command replaces #undef with comments.  This is necessary, for
9435# example, in the case of _POSIX_SOURCE, which is predefined and required
9436# on some systems where configure will not decide to define it.
9437cat >>conftest.undefs <<\_ACEOF
9438s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9439_ACEOF
9440
9441# Break up conftest.defines because some shells have a limit on the size
9442# of here documents, and old seds have small limits too (100 cmds).
9443echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9444echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9445echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9446echo '  :' >>$CONFIG_STATUS
9447rm -f conftest.tail
9448while grep . conftest.defines >/dev/null
9449do
9450  # Write a limited-size here document to $tmp/defines.sed.
9451  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9452  # Speed up: don't consider the non `#define' lines.
9453  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9454  # Work around the forget-to-reset-the-flag bug.
9455  echo 't clr' >>$CONFIG_STATUS
9456  echo ': clr' >>$CONFIG_STATUS
9457  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9458  echo 'CEOF
9459  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9460  rm -f $tmp/in
9461  mv $tmp/out $tmp/in
9462' >>$CONFIG_STATUS
9463  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9464  rm -f conftest.defines
9465  mv conftest.tail conftest.defines
9466done
9467rm -f conftest.defines
9468echo '  fi # grep' >>$CONFIG_STATUS
9469echo >>$CONFIG_STATUS
9470
9471# Break up conftest.undefs because some shells have a limit on the size
9472# of here documents, and old seds have small limits too (100 cmds).
9473echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9474rm -f conftest.tail
9475while grep . conftest.undefs >/dev/null
9476do
9477  # Write a limited-size here document to $tmp/undefs.sed.
9478  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9479  # Speed up: don't consider the non `#undef'
9480  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9481  # Work around the forget-to-reset-the-flag bug.
9482  echo 't clr' >>$CONFIG_STATUS
9483  echo ': clr' >>$CONFIG_STATUS
9484  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9485  echo 'CEOF
9486  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9487  rm -f $tmp/in
9488  mv $tmp/out $tmp/in
9489' >>$CONFIG_STATUS
9490  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9491  rm -f conftest.undefs
9492  mv conftest.tail conftest.undefs
9493done
9494rm -f conftest.undefs
9495
9496cat >>$CONFIG_STATUS <<\_ACEOF
9497  # Let's still pretend it is `configure' which instantiates (i.e., don't
9498  # use $as_me), people would be surprised to read:
9499  #    /* config.h.  Generated by config.status.  */
9500  if test x"$ac_file" = x-; then
9501    echo "/* Generated by configure.  */" >$tmp/config.h
9502  else
9503    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9504  fi
9505  cat $tmp/in >>$tmp/config.h
9506  rm -f $tmp/in
9507  if test x"$ac_file" != x-; then
9508    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9509      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9510echo "$as_me: $ac_file is unchanged" >&6;}
9511    else
9512      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9513$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9514         X"$ac_file" : 'X\(//\)[^/]' \| \
9515         X"$ac_file" : 'X\(//\)$' \| \
9516         X"$ac_file" : 'X\(/\)' \| \
9517         .     : '\(.\)' 2>/dev/null ||
9518echo X"$ac_file" |
9519    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9520          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9521          /^X\(\/\/\)$/{ s//\1/; q; }
9522          /^X\(\/\).*/{ s//\1/; q; }
9523          s/.*/./; q'`
9524      { if $as_mkdir_p; then
9525    mkdir -p "$ac_dir"
9526  else
9527    as_dir="$ac_dir"
9528    as_dirs=
9529    while test ! -d "$as_dir"; do
9530      as_dirs="$as_dir $as_dirs"
9531      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9533         X"$as_dir" : 'X\(//\)[^/]' \| \
9534         X"$as_dir" : 'X\(//\)$' \| \
9535         X"$as_dir" : 'X\(/\)' \| \
9536         .     : '\(.\)' 2>/dev/null ||
9537echo X"$as_dir" |
9538    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9539          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9540          /^X\(\/\/\)$/{ s//\1/; q; }
9541          /^X\(\/\).*/{ s//\1/; q; }
9542          s/.*/./; q'`
9543    done
9544    test ! -n "$as_dirs" || mkdir $as_dirs
9545  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9546echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9547   { (exit 1); exit 1; }; }; }
9548
9549      rm -f $ac_file
9550      mv $tmp/config.h $ac_file
9551    fi
9552  else
9553    cat $tmp/config.h
9554    rm -f $tmp/config.h
9555  fi
9556# Compute $ac_file's index in $config_headers.
9557_am_stamp_count=1
9558for _am_header in $config_headers :; do
9559  case $_am_header in
9560    $ac_file | $ac_file:* )
9561      break ;;
9562    * )
9563      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9564  esac
9565done
9566echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9567$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9568         X$ac_file : 'X\(//\)[^/]' \| \
9569         X$ac_file : 'X\(//\)$' \| \
9570         X$ac_file : 'X\(/\)' \| \
9571         .     : '\(.\)' 2>/dev/null ||
9572echo X$ac_file |
9573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9574          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9575          /^X\(\/\/\)$/{ s//\1/; q; }
9576          /^X\(\/\).*/{ s//\1/; q; }
9577          s/.*/./; q'`/stamp-h$_am_stamp_count
9578done
9579_ACEOF
9580cat >>$CONFIG_STATUS <<\_ACEOF
9581
9582#
9583# CONFIG_COMMANDS section.
9584#
9585for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9586  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9587  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9588  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9589$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9590         X"$ac_dest" : 'X\(//\)[^/]' \| \
9591         X"$ac_dest" : 'X\(//\)$' \| \
9592         X"$ac_dest" : 'X\(/\)' \| \
9593         .     : '\(.\)' 2>/dev/null ||
9594echo X"$ac_dest" |
9595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9596          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9597          /^X\(\/\/\)$/{ s//\1/; q; }
9598          /^X\(\/\).*/{ s//\1/; q; }
9599          s/.*/./; q'`
9600  { if $as_mkdir_p; then
9601    mkdir -p "$ac_dir"
9602  else
9603    as_dir="$ac_dir"
9604    as_dirs=
9605    while test ! -d "$as_dir"; do
9606      as_dirs="$as_dir $as_dirs"
9607      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9609         X"$as_dir" : 'X\(//\)[^/]' \| \
9610         X"$as_dir" : 'X\(//\)$' \| \
9611         X"$as_dir" : 'X\(/\)' \| \
9612         .     : '\(.\)' 2>/dev/null ||
9613echo X"$as_dir" |
9614    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9615          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9616          /^X\(\/\/\)$/{ s//\1/; q; }
9617          /^X\(\/\).*/{ s//\1/; q; }
9618          s/.*/./; q'`
9619    done
9620    test ! -n "$as_dirs" || mkdir $as_dirs
9621  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9622echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9623   { (exit 1); exit 1; }; }; }
9624
9625  ac_builddir=.
9626
9627if test "$ac_dir" != .; then
9628  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9629  # A "../" for each directory in $ac_dir_suffix.
9630  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9631else
9632  ac_dir_suffix= ac_top_builddir=
9633fi
9634
9635case $srcdir in
9636  .)  # No --srcdir option.  We are building in place.
9637    ac_srcdir=.
9638    if test -z "$ac_top_builddir"; then
9639       ac_top_srcdir=.
9640    else
9641       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9642    fi ;;
9643  [\\/]* | ?:[\\/]* )  # Absolute path.
9644    ac_srcdir=$srcdir$ac_dir_suffix;
9645    ac_top_srcdir=$srcdir ;;
9646  *) # Relative path.
9647    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9648    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9649esac
9650
9651# Do not use `cd foo && pwd` to compute absolute paths, because
9652# the directories may not exist.
9653case `pwd` in
9654.) ac_abs_builddir="$ac_dir";;
9655*)
9656  case "$ac_dir" in
9657  .) ac_abs_builddir=`pwd`;;
9658  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9659  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9660  esac;;
9661esac
9662case $ac_abs_builddir in
9663.) ac_abs_top_builddir=${ac_top_builddir}.;;
9664*)
9665  case ${ac_top_builddir}. in
9666  .) ac_abs_top_builddir=$ac_abs_builddir;;
9667  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9668  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9669  esac;;
9670esac
9671case $ac_abs_builddir in
9672.) ac_abs_srcdir=$ac_srcdir;;
9673*)
9674  case $ac_srcdir in
9675  .) ac_abs_srcdir=$ac_abs_builddir;;
9676  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9677  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9678  esac;;
9679esac
9680case $ac_abs_builddir in
9681.) ac_abs_top_srcdir=$ac_top_srcdir;;
9682*)
9683  case $ac_top_srcdir in
9684  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9685  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9686  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9687  esac;;
9688esac
9689
9690
9691  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9692echo "$as_me: executing $ac_dest commands" >&6;}
9693  case $ac_dest in
9694    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9695  # Strip MF so we end up with the name of the file.
9696  mf=`echo "$mf" | sed -e 's/:.*$//'`
9697  # Check whether this is an Automake generated Makefile or not.
9698  # We used to match only the files named `Makefile.in', but
9699  # some people rename them; so instead we look at the file content.
9700  # Grep'ing the first line is not enough: some people post-process
9701  # each Makefile.in and add a new line on top of each file to say so.
9702  # So let's grep whole file.
9703  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9704    dirpart=`(dirname "$mf") 2>/dev/null ||
9705$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9706         X"$mf" : 'X\(//\)[^/]' \| \
9707         X"$mf" : 'X\(//\)$' \| \
9708         X"$mf" : 'X\(/\)' \| \
9709         .     : '\(.\)' 2>/dev/null ||
9710echo X"$mf" |
9711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9712          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9713          /^X\(\/\/\)$/{ s//\1/; q; }
9714          /^X\(\/\).*/{ s//\1/; q; }
9715          s/.*/./; q'`
9716  else
9717    continue
9718  fi
9719  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9720  # Extract the definition of DEP_FILES from the Makefile without
9721  # running `make'.
9722  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9723  test -z "$DEPDIR" && continue
9724  # When using ansi2knr, U may be empty or an underscore; expand it
9725  U=`sed -n 's/^U = //p' < "$mf"`
9726  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9727  # We invoke sed twice because it is the simplest approach to
9728  # changing $(DEPDIR) to its actual value in the expansion.
9729  for file in `sed -n '
9730    /^DEP_FILES = .*\\\\$/ {
9731      s/^DEP_FILES = //
9732      :loop
9733        s/\\\\$//
9734        p
9735        n
9736        /\\\\$/ b loop
9737      p
9738    }
9739    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9740       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9741    # Make sure the directory exists.
9742    test -f "$dirpart/$file" && continue
9743    fdir=`(dirname "$file") 2>/dev/null ||
9744$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9745         X"$file" : 'X\(//\)[^/]' \| \
9746         X"$file" : 'X\(//\)$' \| \
9747         X"$file" : 'X\(/\)' \| \
9748         .     : '\(.\)' 2>/dev/null ||
9749echo X"$file" |
9750    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9751          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9752          /^X\(\/\/\)$/{ s//\1/; q; }
9753          /^X\(\/\).*/{ s//\1/; q; }
9754          s/.*/./; q'`
9755    { if $as_mkdir_p; then
9756    mkdir -p $dirpart/$fdir
9757  else
9758    as_dir=$dirpart/$fdir
9759    as_dirs=
9760    while test ! -d "$as_dir"; do
9761      as_dirs="$as_dir $as_dirs"
9762      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9764         X"$as_dir" : 'X\(//\)[^/]' \| \
9765         X"$as_dir" : 'X\(//\)$' \| \
9766         X"$as_dir" : 'X\(/\)' \| \
9767         .     : '\(.\)' 2>/dev/null ||
9768echo X"$as_dir" |
9769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9770          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9771          /^X\(\/\/\)$/{ s//\1/; q; }
9772          /^X\(\/\).*/{ s//\1/; q; }
9773          s/.*/./; q'`
9774    done
9775    test ! -n "$as_dirs" || mkdir $as_dirs
9776  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9777echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9778   { (exit 1); exit 1; }; }; }
9779
9780    # echo "creating $dirpart/$file"
9781    echo '# dummy' > "$dirpart/$file"
9782  done
9783done
9784 ;;
9785  esac
9786done
9787_ACEOF
9788
9789cat >>$CONFIG_STATUS <<\_ACEOF
9790
9791{ (exit 0); exit 0; }
9792_ACEOF
9793chmod +x $CONFIG_STATUS
9794ac_clean_files=$ac_clean_files_save
9795
9796
9797# configure is writing to config.log, and then calls config.status.
9798# config.status does its own redirection, appending to config.log.
9799# Unfortunately, on DOS this fails, as config.log is still kept open
9800# by configure, so config.status won't be able to write to it; its
9801# output is simply discarded.  So we exec the FD to /dev/null,
9802# effectively closing config.log, so it can be properly (re)opened and
9803# appended to by config.status.  When coming back to configure, we
9804# need to make the FD available again.
9805if test "$no_create" != yes; then
9806  ac_cs_success=:
9807  ac_config_status_args=
9808  test "$silent" = yes &&
9809    ac_config_status_args="$ac_config_status_args --quiet"
9810  exec 5>/dev/null
9811  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9812  exec 5>>config.log
9813  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9814  # would make configure fail if this is the last instruction.
9815  $ac_cs_success || { (exit 1); exit 1; }
9816fi
9817
Note: See TracBrowser for help on using the repository browser.