Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/guiMerge/configure @ 4052

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

orxonox/branches/guiMerge: merged the Gui into the orxonox-binary, but it does not finish nicely (yet)

  • Property svn:executable set to *
File size: 289.1 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.3-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.3-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.3-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 RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF 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.3-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.3-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-efence         builds orxonox with efence support
874  --enable-documentation  also builds the sDocumentation while make from
875                          srcdir
876
877Optional Packages:
878  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880  --without-gtk           Prevents GTK from being loaded
881  --without-gthread       Prevents gThread from being loaded
882  --without-pthread       Prevents pthread from being loaded
883  --without-curl          Prevents libcURL 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.3-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.3-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.3-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
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_RANLIB+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$RANLIB"; then
2602  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620RANLIB=$ac_cv_prog_RANLIB
2621if test -n "$RANLIB"; then
2622  echo "$as_me:$LINENO: result: $RANLIB" >&5
2623echo "${ECHO_T}$RANLIB" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_RANLIB"; then
2631  ac_ct_RANLIB=$RANLIB
2632  # Extract the first word of "ranlib", so it can be a program name with args.
2633set dummy ranlib; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_RANLIB"; then
2640  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_RANLIB="ranlib"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2657fi
2658fi
2659ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2660if test -n "$ac_ct_RANLIB"; then
2661  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2662echo "${ECHO_T}$ac_ct_RANLIB" >&6
2663else
2664  echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6
2666fi
2667
2668  RANLIB=$ac_ct_RANLIB
2669else
2670  RANLIB="$ac_cv_prog_RANLIB"
2671fi
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681echo "$as_me:$LINENO: checking for $ac_word" >&5
2682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702
2703fi
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707  echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
2709else
2710  echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
2712fi
2713
2714fi
2715if test -z "$ac_cv_prog_CC"; then
2716  ac_ct_CC=$CC
2717  # Extract the first word of "gcc", so it can be a program name with args.
2718set dummy gcc; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  if test -n "$ac_ct_CC"; then
2725  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732  for ac_exec_ext in '' $ac_executable_extensions; do
2733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_ac_ct_CC="gcc"
2735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739done
2740
2741fi
2742fi
2743ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744if test -n "$ac_ct_CC"; then
2745  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2746echo "${ECHO_T}$ac_ct_CC" >&6
2747else
2748  echo "$as_me:$LINENO: result: no" >&5
2749echo "${ECHO_T}no" >&6
2750fi
2751
2752  CC=$ac_ct_CC
2753else
2754  CC="$ac_cv_prog_CC"
2755fi
2756
2757if test -z "$CC"; then
2758  if test -n "$ac_tool_prefix"; then
2759  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2760set dummy ${ac_tool_prefix}cc; ac_word=$2
2761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_CC+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  if test -n "$CC"; then
2767  ac_cv_prog_CC="$CC" # Let the user override the test.
2768else
2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772  IFS=$as_save_IFS
2773  test -z "$as_dir" && as_dir=.
2774  for ac_exec_ext in '' $ac_executable_extensions; do
2775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776    ac_cv_prog_CC="${ac_tool_prefix}cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783fi
2784fi
2785CC=$ac_cv_prog_CC
2786if test -n "$CC"; then
2787  echo "$as_me:$LINENO: result: $CC" >&5
2788echo "${ECHO_T}$CC" >&6
2789else
2790  echo "$as_me:$LINENO: result: no" >&5
2791echo "${ECHO_T}no" >&6
2792fi
2793
2794fi
2795if test -z "$ac_cv_prog_CC"; then
2796  ac_ct_CC=$CC
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799echo "$as_me:$LINENO: checking for $ac_word" >&5
2800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802  echo $ECHO_N "(cached) $ECHO_C" >&6
2803else
2804  if test -n "$ac_ct_CC"; then
2805  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810  IFS=$as_save_IFS
2811  test -z "$as_dir" && as_dir=.
2812  for ac_exec_ext in '' $ac_executable_extensions; do
2813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814    ac_cv_prog_ac_ct_CC="cc"
2815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816    break 2
2817  fi
2818done
2819done
2820
2821fi
2822fi
2823ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824if test -n "$ac_ct_CC"; then
2825  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2826echo "${ECHO_T}$ac_ct_CC" >&6
2827else
2828  echo "$as_me:$LINENO: result: no" >&5
2829echo "${ECHO_T}no" >&6
2830fi
2831
2832  CC=$ac_ct_CC
2833else
2834  CC="$ac_cv_prog_CC"
2835fi
2836
2837fi
2838if test -z "$CC"; then
2839  # Extract the first word of "cc", so it can be a program name with args.
2840set dummy cc; ac_word=$2
2841echo "$as_me:$LINENO: checking for $ac_word" >&5
2842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843if test "${ac_cv_prog_CC+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  if test -n "$CC"; then
2847  ac_cv_prog_CC="$CC" # Let the user override the test.
2848else
2849  ac_prog_rejected=no
2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855  for ac_exec_ext in '' $ac_executable_extensions; do
2856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866done
2867
2868if test $ac_prog_rejected = yes; then
2869  # We found a bogon in the path, so make sure we never use it.
2870  set dummy $ac_cv_prog_CC
2871  shift
2872  if test $# != 0; then
2873    # We chose a different compiler from the bogus one.
2874    # However, it has the same basename, so the bogon will be chosen
2875    # first if we set CC to just the basename; use the full file name.
2876    shift
2877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2878  fi
2879fi
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
2884  echo "$as_me:$LINENO: result: $CC" >&5
2885echo "${ECHO_T}$CC" >&6
2886else
2887  echo "$as_me:$LINENO: result: no" >&5
2888echo "${ECHO_T}no" >&6
2889fi
2890
2891fi
2892if test -z "$CC"; then
2893  if test -n "$ac_tool_prefix"; then
2894  for ac_prog in cl
2895  do
2896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898echo "$as_me:$LINENO: checking for $ac_word" >&5
2899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900if test "${ac_cv_prog_CC+set}" = set; then
2901  echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903  if test -n "$CC"; then
2904  ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909  IFS=$as_save_IFS
2910  test -z "$as_dir" && as_dir=.
2911  for ac_exec_ext in '' $ac_executable_extensions; do
2912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918done
2919
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
2924  echo "$as_me:$LINENO: result: $CC" >&5
2925echo "${ECHO_T}$CC" >&6
2926else
2927  echo "$as_me:$LINENO: result: no" >&5
2928echo "${ECHO_T}no" >&6
2929fi
2930
2931    test -n "$CC" && break
2932  done
2933fi
2934if test -z "$CC"; then
2935  ac_ct_CC=$CC
2936  for ac_prog in cl
2937do
2938  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939set dummy $ac_prog; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  if test -n "$ac_ct_CC"; then
2946  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951  IFS=$as_save_IFS
2952  test -z "$as_dir" && as_dir=.
2953  for ac_exec_ext in '' $ac_executable_extensions; do
2954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955    ac_cv_prog_ac_ct_CC="$ac_prog"
2956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957    break 2
2958  fi
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969  echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973  test -n "$ac_ct_CC" && break
2974done
2975
2976  CC=$ac_ct_CC
2977fi
2978
2979fi
2980
2981
2982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: no acceptable C compiler found in \$PATH
2985See \`config.log' for more details." >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988# Provide some information about the compiler.
2989echo "$as_me:$LINENO:" \
2990     "checking for C compiler version" >&5
2991ac_compiler=`set X $ac_compile; echo $2`
2992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2993  (eval $ac_compiler --version </dev/null >&5) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }
2997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2998  (eval $ac_compiler -v </dev/null >&5) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }
3002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3003  (eval $ac_compiler -V </dev/null >&5) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }
3007
3008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011  echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest.$ac_objext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  ac_compiler_gnu=yes
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058ac_compiler_gnu=no
3059fi
3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069CFLAGS="-g"
3070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3072if test "${ac_cv_prog_cc_g+set}" = set; then
3073  echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075  cat >conftest.$ac_ext <<_ACEOF
3076/* confdefs.h.  */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092  (eval $ac_compile) 2>conftest.er1
3093  ac_status=$?
3094  grep -v '^ *+' conftest.er1 >conftest.err
3095  rm -f conftest.er1
3096  cat conftest.err >&5
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); } &&
3099         { ac_try='test -z "$ac_c_werror_flag"
3100                         || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106         { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  ac_cv_prog_cc_g=yes
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117ac_cv_prog_cc_g=no
3118fi
3119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3123if test "$ac_test_CFLAGS" = set; then
3124  CFLAGS=$ac_save_CFLAGS
3125elif test $ac_cv_prog_cc_g = yes; then
3126  if test "$GCC" = yes; then
3127    CFLAGS="-g -O2"
3128  else
3129    CFLAGS="-g"
3130  fi
3131else
3132  if test "$GCC" = yes; then
3133    CFLAGS="-O2"
3134  else
3135    CFLAGS=
3136  fi
3137fi
3138echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3139echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3140if test "${ac_cv_prog_cc_stdc+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_cv_prog_cc_stdc=no
3144ac_save_CC=$CC
3145cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h.  */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h.  */
3151#include <stdarg.h>
3152#include <stdio.h>
3153#include <sys/types.h>
3154#include <sys/stat.h>
3155/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3156struct buf { int x; };
3157FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158static char *e (p, i)
3159     char **p;
3160     int i;
3161{
3162  return p[i];
3163}
3164static char *f (char * (*g) (char **, int), char **p, ...)
3165{
3166  char *s;
3167  va_list v;
3168  va_start (v,p);
3169  s = g (p, va_arg (v,int));
3170  va_end (v);
3171  return s;
3172}
3173
3174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3175   function prototypes and stuff, but not '\xHH' hex character constants.
3176   These don't provoke an error unfortunately, instead are silently treated
3177   as 'x'.  The following induces an error, until -std1 is added to get
3178   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3179   array size at least.  It's necessary to write '\x00'==0 to get something
3180   that's true only with -std1.  */
3181int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182
3183int test (int i, double x);
3184struct s1 {int (*f) (int a);};
3185struct s2 {int (*f) (double a);};
3186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3187int argc;
3188char **argv;
3189int
3190main ()
3191{
3192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3193  ;
3194  return 0;
3195}
3196_ACEOF
3197# Don't try gcc -ansi; that turns off useful extensions and
3198# breaks some systems' header files.
3199# AIX                   -qlanglvl=ansi
3200# Ultrix and OSF/1      -std1
3201# HP-UX 10.20 and later -Ae
3202# HP-UX older versions  -Aa -D_HPUX_SOURCE
3203# SVR4                  -Xc -D__EXTENSIONS__
3204for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205do
3206  CC="$ac_save_CC $ac_arg"
3207  rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209  (eval $ac_compile) 2>conftest.er1
3210  ac_status=$?
3211  grep -v '^ *+' conftest.er1 >conftest.err
3212  rm -f conftest.er1
3213  cat conftest.err >&5
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); } &&
3216         { ac_try='test -z "$ac_c_werror_flag"
3217                         || test ! -s conftest.err'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; } &&
3223         { ac_try='test -s conftest.$ac_objext'
3224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225  (eval $ac_try) 2>&5
3226  ac_status=$?
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); }; }; then
3229  ac_cv_prog_cc_stdc=$ac_arg
3230break
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235fi
3236rm -f conftest.err conftest.$ac_objext
3237done
3238rm -f conftest.$ac_ext conftest.$ac_objext
3239CC=$ac_save_CC
3240
3241fi
3242
3243case "x$ac_cv_prog_cc_stdc" in
3244  x|xno)
3245    echo "$as_me:$LINENO: result: none needed" >&5
3246echo "${ECHO_T}none needed" >&6 ;;
3247  *)
3248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3250    CC="$CC $ac_cv_prog_cc_stdc" ;;
3251esac
3252
3253# Some people use a C++ compiler to compile C.  Since we use `exit',
3254# in C++ we need to declare it.  In case someone uses the same compiler
3255# for both compiling C and C++ we need to have the C++ compiler decide
3256# the declaration of exit, since it's the most demanding environment.
3257cat >conftest.$ac_ext <<_ACEOF
3258#ifndef __cplusplus
3259  choke me
3260#endif
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264  (eval $ac_compile) 2>conftest.er1
3265  ac_status=$?
3266  grep -v '^ *+' conftest.er1 >conftest.err
3267  rm -f conftest.er1
3268  cat conftest.err >&5
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); } &&
3271         { ac_try='test -z "$ac_c_werror_flag"
3272                         || test ! -s conftest.err'
3273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274  (eval $ac_try) 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; } &&
3278         { ac_try='test -s conftest.$ac_objext'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; }; then
3284  for ac_declaration in \
3285   '' \
3286   'extern "C" void std::exit (int) throw (); using std::exit;' \
3287   'extern "C" void std::exit (int); using std::exit;' \
3288   'extern "C" void exit (int) throw ();' \
3289   'extern "C" void exit (int);' \
3290   'void exit (int);'
3291do
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298$ac_declaration
3299#include <stdlib.h>
3300int
3301main ()
3302{
3303exit (42);
3304  ;
3305  return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext
3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3310  (eval $ac_compile) 2>conftest.er1
3311  ac_status=$?
3312  grep -v '^ *+' conftest.er1 >conftest.err
3313  rm -f conftest.er1
3314  cat conftest.err >&5
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); } &&
3317         { ac_try='test -z "$ac_c_werror_flag"
3318                         || test ! -s conftest.err'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; } &&
3324         { ac_try='test -s conftest.$ac_objext'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; }; then
3330  :
3331else
3332  echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335continue
3336fi
3337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344$ac_declaration
3345int
3346main ()
3347{
3348exit (42);
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355  (eval $ac_compile) 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } &&
3362         { ac_try='test -z "$ac_c_werror_flag"
3363                         || test ! -s conftest.err'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; } &&
3369         { ac_try='test -s conftest.$ac_objext'
3370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371  (eval $ac_try) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }; }; then
3375  break
3376else
3377  echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380fi
3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382done
3383rm -f conftest*
3384if test -n "$ac_declaration"; then
3385  echo '#ifdef __cplusplus' >>confdefs.h
3386  echo $ac_declaration      >>confdefs.h
3387  echo '#endif'             >>confdefs.h
3388fi
3389
3390else
3391  echo "$as_me: failed program was:" >&5
3392sed 's/^/| /' conftest.$ac_ext >&5
3393
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_ext=c
3397ac_cpp='$CPP $CPPFLAGS'
3398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402depcc="$CC"   am_compiler_list=
3403
3404echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3407  echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
3409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3410  # We make a subdir and do the tests there.  Otherwise we can end up
3411  # making bogus files that we don't know about and never remove.  For
3412  # instance it was reported that on HP-UX the gcc test will end up
3413  # making a dummy file named `D' -- because `-MD' means `put the output
3414  # in D'.
3415  mkdir conftest.dir
3416  # Copy depcomp to subdir because otherwise we won't find it if we're
3417  # using a relative directory.
3418  cp "$am_depcomp" conftest.dir
3419  cd conftest.dir
3420  # We will build objects and dependencies in a subdirectory because
3421  # it helps to detect inapplicable dependency modes.  For instance
3422  # both Tru64's cc and ICC support -MD to output dependencies as a
3423  # side effect of compilation, but ICC will put the dependencies in
3424  # the current directory while Tru64 will put them in the object
3425  # directory.
3426  mkdir sub
3427
3428  am_cv_CC_dependencies_compiler_type=none
3429  if test "$am_compiler_list" = ""; then
3430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3431  fi
3432  for depmode in $am_compiler_list; do
3433    # Setup a source with many dependencies, because some compilers
3434    # like to wrap large dependency lists on column 80 (with \), and
3435    # we should not choose a depcomp mode which is confused by this.
3436    #
3437    # We need to recreate these files for each test, as the compiler may
3438    # overwrite some of them when testing with obscure command lines.
3439    # This happens at least with the AIX C compiler.
3440    : > sub/conftest.c
3441    for i in 1 2 3 4 5 6; do
3442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3444      # Solaris 8's {/usr,}/bin/sh.
3445      touch sub/conftst$i.h
3446    done
3447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3448
3449    case $depmode in
3450    nosideeffect)
3451      # after this tag, mechanisms are not by side-effect, so they'll
3452      # only be used when explicitly requested
3453      if test "x$enable_dependency_tracking" = xyes; then
3454        continue
3455      else
3456        break
3457      fi
3458      ;;
3459    none) break ;;
3460    esac
3461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3462    # mode.  It turns out that the SunPro C++ compiler does not properly
3463    # handle `-M -o', and we need to detect this.
3464    if depmode=$depmode \
3465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3468         >/dev/null 2>conftest.err &&
3469       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3470       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3471       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3472      # icc doesn't choke on unknown options, it will just issue warnings
3473      # or remarks (even with -Werror).  So we grep stderr for any message
3474      # that says an option was ignored or not supported.
3475      # When given -MP, icc 7.0 and 7.1 complain thusly:
3476      #   icc: Command line warning: ignoring option '-M'; no argument required
3477      # The diagnosis changed in icc 8.0:
3478      #   icc: Command line remark: option '-MP' not supported
3479      if (grep 'ignoring option' conftest.err ||
3480          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3481        am_cv_CC_dependencies_compiler_type=$depmode
3482        break
3483      fi
3484    fi
3485  done
3486
3487  cd ..
3488  rm -rf conftest.dir
3489else
3490  am_cv_CC_dependencies_compiler_type=none
3491fi
3492
3493fi
3494echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3495echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3496CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3497
3498
3499
3500if
3501  test "x$enable_dependency_tracking" != xno \
3502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3503  am__fastdepCC_TRUE=
3504  am__fastdepCC_FALSE='#'
3505else
3506  am__fastdepCC_TRUE='#'
3507  am__fastdepCC_FALSE=
3508fi
3509
3510
3511
3512ac_ext=c
3513ac_cpp='$CPP $CPPFLAGS'
3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3518echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3519# On Suns, sometimes $CPP names a directory.
3520if test -n "$CPP" && test -d "$CPP"; then
3521  CPP=
3522fi
3523if test -z "$CPP"; then
3524  if test "${ac_cv_prog_CPP+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527      # Double quotes because CPP needs to be expanded
3528    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3529    do
3530      ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533  # Use a header file that comes with gcc, so configuring glibc
3534  # with a fresh cross-compiler works.
3535  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536  # <limits.h> exists even on freestanding compilers.
3537  # On the NeXT, cc -E runs the code through the compiler's parser,
3538  # not just through cpp. "Syntax error" is here to catch this case.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550                     Syntax error
3551_ACEOF
3552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } >/dev/null; then
3560  if test -s conftest.err; then
3561    ac_cpp_err=$ac_c_preproc_warn_flag
3562    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563  else
3564    ac_cpp_err=
3565  fi
3566else
3567  ac_cpp_err=yes
3568fi
3569if test -z "$ac_cpp_err"; then
3570  :
3571else
3572  echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575  # Broken: fails on valid input.
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_ext
3579
3580  # OK, works on sane cases.  Now check whether non-existent headers
3581  # can be detected and how.
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_c_preproc_warn_flag
3600    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3601  else
3602    ac_cpp_err=
3603  fi
3604else
3605  ac_cpp_err=yes
3606fi
3607if test -z "$ac_cpp_err"; then
3608  # Broken: success on invalid input.
3609continue
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614  # Passes both tests.
3615ac_preproc_ok=:
3616break
3617fi
3618rm -f conftest.err conftest.$ac_ext
3619
3620done
3621# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622rm -f conftest.err conftest.$ac_ext
3623if $ac_preproc_ok; then
3624  break
3625fi
3626
3627    done
3628    ac_cv_prog_CPP=$CPP
3629
3630fi
3631  CPP=$ac_cv_prog_CPP
3632else
3633  ac_cv_prog_CPP=$CPP
3634fi
3635echo "$as_me:$LINENO: result: $CPP" >&5
3636echo "${ECHO_T}$CPP" >&6
3637ac_preproc_ok=false
3638for ac_c_preproc_warn_flag in '' yes
3639do
3640  # Use a header file that comes with gcc, so configuring glibc
3641  # with a fresh cross-compiler works.
3642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643  # <limits.h> exists even on freestanding compilers.
3644  # On the NeXT, cc -E runs the code through the compiler's parser,
3645  # not just through cpp. "Syntax error" is here to catch this case.
3646  cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h.  */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h.  */
3652#ifdef __STDC__
3653# include <limits.h>
3654#else
3655# include <assert.h>
3656#endif
3657                     Syntax error
3658_ACEOF
3659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } >/dev/null; then
3667  if test -s conftest.err; then
3668    ac_cpp_err=$ac_c_preproc_warn_flag
3669    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670  else
3671    ac_cpp_err=
3672  fi
3673else
3674  ac_cpp_err=yes
3675fi
3676if test -z "$ac_cpp_err"; then
3677  :
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682  # Broken: fails on valid input.
3683continue
3684fi
3685rm -f conftest.err conftest.$ac_ext
3686
3687  # OK, works on sane cases.  Now check whether non-existent headers
3688  # can be detected and how.
3689  cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h.  */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h.  */
3695#include <ac_nonexistent.h>
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_c_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  # Broken: success on invalid input.
3716continue
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721  # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
3725rm -f conftest.err conftest.$ac_ext
3726
3727done
3728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3729rm -f conftest.err conftest.$ac_ext
3730if $ac_preproc_ok; then
3731  :
3732else
3733  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3734See \`config.log' for more details." >&5
3735echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3736See \`config.log' for more details." >&2;}
3737   { (exit 1); exit 1; }; }
3738fi
3739
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747echo "$as_me:$LINENO: checking for egrep" >&5
3748echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3749if test "${ac_cv_prog_egrep+set}" = set; then
3750  echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3753    then ac_cv_prog_egrep='grep -E'
3754    else ac_cv_prog_egrep='egrep'
3755    fi
3756fi
3757echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3758echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3759 EGREP=$ac_cv_prog_egrep
3760
3761
3762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3764if test "${ac_cv_header_stdc+set}" = set; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773#include <stdlib.h>
3774#include <stdarg.h>
3775#include <string.h>
3776#include <float.h>
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788  (eval $ac_compile) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_c_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest.$ac_objext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  ac_cv_header_stdc=yes
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813ac_cv_header_stdc=no
3814fi
3815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
3817if test $ac_cv_header_stdc = yes; then
3818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3819  cat >conftest.$ac_ext <<_ACEOF
3820/* confdefs.h.  */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h.  */
3825#include <string.h>
3826
3827_ACEOF
3828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829  $EGREP "memchr" >/dev/null 2>&1; then
3830  :
3831else
3832  ac_cv_header_stdc=no
3833fi
3834rm -f conftest*
3835
3836fi
3837
3838if test $ac_cv_header_stdc = yes; then
3839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <stdlib.h>
3847
3848_ACEOF
3849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850  $EGREP "free" >/dev/null 2>&1; then
3851  :
3852else
3853  ac_cv_header_stdc=no
3854fi
3855rm -f conftest*
3856
3857fi
3858
3859if test $ac_cv_header_stdc = yes; then
3860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3861  if test "$cross_compiling" = yes; then
3862  :
3863else
3864  cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h.  */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h.  */
3870#include <ctype.h>
3871#if ((' ' & 0x0FF) == 0x020)
3872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3874#else
3875# define ISLOWER(c) \
3876                   (('a' <= (c) && (c) <= 'i') \
3877                     || ('j' <= (c) && (c) <= 'r') \
3878                     || ('s' <= (c) && (c) <= 'z'))
3879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3880#endif
3881
3882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883int
3884main ()
3885{
3886  int i;
3887  for (i = 0; i < 256; i++)
3888    if (XOR (islower (i), ISLOWER (i))
3889        || toupper (i) != TOUPPER (i))
3890      exit(2);
3891  exit (0);
3892}
3893_ACEOF
3894rm -f conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>&5
3897  ac_status=$?
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: program exited with status $ac_status" >&5
3908echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911( exit $ac_status )
3912ac_cv_header_stdc=no
3913fi
3914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915fi
3916fi
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3919echo "${ECHO_T}$ac_cv_header_stdc" >&6
3920if test $ac_cv_header_stdc = yes; then
3921
3922cat >>confdefs.h <<\_ACEOF
3923#define STDC_HEADERS 1
3924_ACEOF
3925
3926fi
3927
3928
3929##################################
3930## CHECKING  OPTIONAL ARGUMENTS ##
3931##################################
3932
3933#-----------------#
3934# DEBUG-statement #
3935#-----------------#
3936DEBUG=no
3937echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3938echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3939# Check whether --enable-debug or --disable-debug was given.
3940if test "${enable_debug+set}" = set; then
3941  enableval="$enable_debug"
3942  DEBUG=$enableval
3943fi;
3944
3945if test x$DEBUG = xno; then
3946        echo "no"
3947        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3948        DEBUG=4
3949elif test x$DEBUG = xyes; then
3950        echo "yes"
3951        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3952        DEBUG=4
3953else
3954        echo "yes: setting debuglevel to to $DEBUG"
3955fi
3956
3957cat >>confdefs.h <<_ACEOF
3958#define DEBUG $DEBUG
3959_ACEOF
3960
3961
3962
3963
3964#---------------#
3965# Modular Debug #
3966#---------------#
3967MODULAR_DEBUG=yes
3968echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3969echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3970# Check whether --enable-modular-debug or --disable-modular-debug was given.
3971if test "${enable_modular_debug+set}" = set; then
3972  enableval="$enable_modular_debug"
3973  MODULAR_DEBUG=$enableval
3974fi;
3975
3976if test x$MODULAR_DEBUG = xno; then
3977        echo "no"
3978elif test x$MODULAR_DEBUG = xyes; then
3979        echo "yes"
3980
3981cat >>confdefs.h <<_ACEOF
3982#define MODULAR_DEBUG 1
3983_ACEOF
3984
3985fi
3986
3987#--------------#
3988# GTK-disabled #
3989#--------------#
3990echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3991echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3992
3993# Check whether --with-gtk or --without-gtk was given.
3994if test "${with_gtk+set}" = set; then
3995  withval="$with_gtk"
3996  def_gtk=no
3997else
3998  def_gtk=yes
3999fi;
4000if test x$def_gtk = xyes; then
4001  echo "yes"
4002fi
4003if test x$def_gtk = xno; then
4004  echo "no"
4005fi
4006
4007#------------------#
4008# gThread-disabled #
4009#------------------#
4010echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
4011echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
4012
4013# Check whether --with-gthread or --without-gthread was given.
4014if test "${with_gthread+set}" = set; then
4015  withval="$with_gthread"
4016  def_gthread=no
4017else
4018  def_gthread=yes
4019fi;
4020if test x$def_gthread = xyes; then
4021  echo "yes"
4022fi
4023if test x$def_gthread = xno; then
4024  echo "no"
4025fi
4026
4027#------------------#
4028# pthread-disabled #
4029#------------------#
4030echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
4031echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
4032
4033# Check whether --with-pthread or --without-pthread was given.
4034if test "${with_pthread+set}" = set; then
4035  withval="$with_pthread"
4036  def_pthread=no
4037else
4038  def_pthread=yes
4039fi;
4040if test x$def_pthread = xyes; then
4041  echo "yes"
4042fi
4043if test x$def_pthread = xno; then
4044  echo "no"
4045fi
4046
4047#------------------#
4048# libCurl-disabled #
4049#------------------#
4050echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
4051echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
4052
4053# Check whether --with-curl or --without-curl was given.
4054if test "${with_curl+set}" = set; then
4055  withval="$with_curl"
4056  def_curl=no
4057else
4058  def_curl=yes
4059fi;
4060if test x$def_curl = xyes; then
4061  echo "yes"
4062fi
4063if test x$def_curl = xno; then
4064  echo "no"
4065fi
4066
4067#-------------------#
4068# SubProject-enable #
4069#-------------------#
4070def_sub_projects=no
4071echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
4072echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
4073# Check whether --enable-sub-projects or --disable-sub-projects was given.
4074if test "${enable_sub_projects+set}" = set; then
4075  enableval="$enable_sub_projects"
4076  def_sub_projects=yes
4077fi;
4078if test x$def_sub_projects = xyes; then
4079  echo "yes"
4080fi
4081if test x$def_sub_projects = xno; then
4082  echo "no"
4083fi
4084
4085
4086if test x$def_sub_projects = xyes; then
4087  SUB_PROJECTS_TRUE=
4088  SUB_PROJECTS_FALSE='#'
4089else
4090  SUB_PROJECTS_TRUE='#'
4091  SUB_PROJECTS_FALSE=
4092fi
4093
4094
4095#-------------------#
4096# Profiling Enabled #
4097#-------------------#
4098def_profiling=no
4099echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4100echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4101# Check whether --enable-profile or --disable-profile was given.
4102if test "${enable_profile+set}" = set; then
4103  enableval="$enable_profile"
4104  def_profiling=yes
4105fi;
4106if test x$def_profiling = xyes; then
4107  echo "yes"
4108  CXXFLAGS="$CXXFLAGS -pg"
4109fi
4110if test x$def_profiling = xno; then
4111  echo "no"
4112fi
4113
4114#----------------#
4115# efence Enabled #
4116#----------------#
4117def_efence=no
4118echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4119echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4120# Check whether --enable-efence or --disable-efence was given.
4121if test "${enable_efence+set}" = set; then
4122  enableval="$enable_efence"
4123  def_efence=yes
4124fi;
4125if test x$def_efence = xyes; then
4126  echo "yes"
4127fi
4128if test x$def_efence = xno; then
4129  echo "no"
4130fi
4131
4132#----------------------#
4133# Documentation-enable #
4134#----------------------#
4135def_documentation=no
4136echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4137echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4138# Check whether --enable-documentation or --disable-documentation was given.
4139if test "${enable_documentation+set}" = set; then
4140  enableval="$enable_documentation"
4141  def_documentation=yes
4142fi;
4143if test x$def_documentation = xyes; then
4144  echo "yes"
4145fi
4146if test x$def_documentation = xno; then
4147  echo "no"
4148fi
4149
4150
4151if test x$def_documentation = xyes; then
4152  DOCUMENTATION_TRUE=
4153  DOCUMENTATION_FALSE='#'
4154else
4155  DOCUMENTATION_TRUE='#'
4156  DOCUMENTATION_FALSE=
4157fi
4158
4159#######################
4160## PROGRAMM CHECKING ##
4161## 3. party Programs ##
4162#######################
4163
4164#----------------------#
4165# checking for Doxygen #
4166#----------------------#
4167# Extract the first word of "doxygen", so it can be a program name with args.
4168set dummy doxygen; ac_word=$2
4169echo "$as_me:$LINENO: checking for $ac_word" >&5
4170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171if test "${ac_cv_path_DOXYGEN+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  case $DOXYGEN in
4175  [\\/]* | ?:[\\/]*)
4176  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4177  ;;
4178  *)
4179  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182  IFS=$as_save_IFS
4183  test -z "$as_dir" && as_dir=.
4184  for ac_exec_ext in '' $ac_executable_extensions; do
4185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188    break 2
4189  fi
4190done
4191done
4192
4193  ;;
4194esac
4195fi
4196DOXYGEN=$ac_cv_path_DOXYGEN
4197
4198if test -n "$DOXYGEN"; then
4199  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4200echo "${ECHO_T}$DOXYGEN" >&6
4201else
4202  echo "$as_me:$LINENO: result: no" >&5
4203echo "${ECHO_T}no" >&6
4204fi
4205
4206
4207
4208if test $DOXYGEN; then
4209  DOXYGEN_TRUE=
4210  DOXYGEN_FALSE='#'
4211else
4212  DOXYGEN_TRUE='#'
4213  DOXYGEN_FALSE=
4214fi
4215
4216
4217#--------------------#
4218# checking for gprof #
4219#--------------------#
4220# Extract the first word of "gprof", so it can be a program name with args.
4221set dummy gprof; ac_word=$2
4222echo "$as_me:$LINENO: checking for $ac_word" >&5
4223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224if test "${ac_cv_path_GPROF+set}" = set; then
4225  echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227  case $GPROF in
4228  [\\/]* | ?:[\\/]*)
4229  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4230  ;;
4231  *)
4232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235  IFS=$as_save_IFS
4236  test -z "$as_dir" && as_dir=.
4237  for ac_exec_ext in '' $ac_executable_extensions; do
4238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241    break 2
4242  fi
4243done
4244done
4245
4246  ;;
4247esac
4248fi
4249GPROF=$ac_cv_path_GPROF
4250
4251if test -n "$GPROF"; then
4252  echo "$as_me:$LINENO: result: $GPROF" >&5
4253echo "${ECHO_T}$GPROF" >&6
4254else
4255  echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
4257fi
4258
4259
4260#########################
4261## CHECKING FOR SYSTEM ##
4262#########################
4263## here the system is checked, and openGL is included
4264## also checking for SDL on differen Systems
4265
4266echo "$as_me:$LINENO: checking for System" >&5
4267echo $ECHO_N "checking for System... $ECHO_C" >&6
4268## checking for openGL-environment and other sys-specific parameters
4269case "$target" in
4270#---------#
4271# WINDOWS #
4272#---------#
4273  *-*-mingw32*)
4274echo "mingw-WINDOWS detected"
4275
4276CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL"
4277
4278    mingw="yes"
4279    MSBITFIELDS="-mms-bitfields"
4280    MWINDOWS="-mwindows"
4281
4282# checking gl header
4283        #done before loop
4284
4285# checking gl header
4286   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4297                  inttypes.h stdint.h unistd.h
4298do
4299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300echo "$as_me:$LINENO: checking for $ac_header" >&5
4301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303  echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305  cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311$ac_includes_default
4312
4313#include <$ac_header>
4314_ACEOF
4315rm -f conftest.$ac_objext
4316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317  (eval $ac_compile) 2>conftest.er1
4318  ac_status=$?
4319  grep -v '^ *+' conftest.er1 >conftest.err
4320  rm -f conftest.er1
4321  cat conftest.err >&5
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); } &&
4324         { ac_try='test -z "$ac_c_werror_flag"
4325                         || test ! -s conftest.err'
4326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327  (eval $ac_try) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); }; } &&
4331         { ac_try='test -s conftest.$ac_objext'
4332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333  (eval $ac_try) 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); }; }; then
4337  eval "$as_ac_Header=yes"
4338else
4339  echo "$as_me: failed program was:" >&5
4340sed 's/^/| /' conftest.$ac_ext >&5
4341
4342eval "$as_ac_Header=no"
4343fi
4344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345fi
4346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349  cat >>confdefs.h <<_ACEOF
4350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351_ACEOF
4352
4353fi
4354
4355done
4356
4357
4358
4359for ac_header in GL/gl.h
4360do
4361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363  echo "$as_me:$LINENO: checking for $ac_header" >&5
4364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366  echo $ECHO_N "(cached) $ECHO_C" >&6
4367fi
4368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370else
4371  # Is the header compilable?
4372echo "$as_me:$LINENO: checking $ac_header usability" >&5
4373echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h.  */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h.  */
4380$ac_includes_default
4381#include <$ac_header>
4382_ACEOF
4383rm -f conftest.$ac_objext
4384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385  (eval $ac_compile) 2>conftest.er1
4386  ac_status=$?
4387  grep -v '^ *+' conftest.er1 >conftest.err
4388  rm -f conftest.er1
4389  cat conftest.err >&5
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); } &&
4392         { ac_try='test -z "$ac_c_werror_flag"
4393                         || test ! -s conftest.err'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399         { ac_try='test -s conftest.$ac_objext'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; }; then
4405  ac_header_compiler=yes
4406else
4407  echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410ac_header_compiler=no
4411fi
4412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4414echo "${ECHO_T}$ac_header_compiler" >&6
4415
4416# Is the header present?
4417echo "$as_me:$LINENO: checking $ac_header presence" >&5
4418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4419cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425#include <$ac_header>
4426_ACEOF
4427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4428  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429  ac_status=$?
4430  grep -v '^ *+' conftest.er1 >conftest.err
4431  rm -f conftest.er1
4432  cat conftest.err >&5
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); } >/dev/null; then
4435  if test -s conftest.err; then
4436    ac_cpp_err=$ac_c_preproc_warn_flag
4437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438  else
4439    ac_cpp_err=
4440  fi
4441else
4442  ac_cpp_err=yes
4443fi
4444if test -z "$ac_cpp_err"; then
4445  ac_header_preproc=yes
4446else
4447  echo "$as_me: failed program was:" >&5
4448sed 's/^/| /' conftest.$ac_ext >&5
4449
4450  ac_header_preproc=no
4451fi
4452rm -f conftest.err conftest.$ac_ext
4453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4454echo "${ECHO_T}$ac_header_preproc" >&6
4455
4456# So?  What about this header?
4457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4458  yes:no: )
4459    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4461    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4463    ac_header_preproc=yes
4464    ;;
4465  no:yes:* )
4466    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4468    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4469echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4470    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4472    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4473echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4476    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4478    (
4479      cat <<\_ASBOX
4480## ---------------------------------------------- ##
4481## Report this to orxonox-dev at mail.datacore.ch ##
4482## ---------------------------------------------- ##
4483_ASBOX
4484    ) |
4485      sed "s/^/$as_me: WARNING:     /" >&2
4486    ;;
4487esac
4488echo "$as_me:$LINENO: checking for $ac_header" >&5
4489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491  echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493  eval "$as_ac_Header=\$ac_header_preproc"
4494fi
4495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497
4498fi
4499if test `eval echo '${'$as_ac_Header'}'` = yes; then
4500  cat >>confdefs.h <<_ACEOF
4501#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502_ACEOF
4503
4504else
4505  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4506echo "$as_me: error: cannot find opengl headers" >&2;}
4507   { (exit 1); exit 1; }; }
4508fi
4509
4510done
4511
4512#   checking for Windows openGl library
4513    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4514echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4515if test "${ac_cv_lib_opengl32_main+set}" = set; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  ac_check_lib_save_LIBS=$LIBS
4519LIBS="-lopengl32  $LIBS"
4520cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h.  */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h.  */
4526
4527
4528int
4529main ()
4530{
4531main ();
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext conftest$ac_exeext
4537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538  (eval $ac_link) 2>conftest.er1
4539  ac_status=$?
4540  grep -v '^ *+' conftest.er1 >conftest.err
4541  rm -f conftest.er1
4542  cat conftest.err >&5
4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544  (exit $ac_status); } &&
4545         { ac_try='test -z "$ac_c_werror_flag"
4546                         || test ! -s conftest.err'
4547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548  (eval $ac_try) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; } &&
4552         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4558  ac_cv_lib_opengl32_main=yes
4559else
4560  echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563ac_cv_lib_opengl32_main=no
4564fi
4565rm -f conftest.err conftest.$ac_objext \
4566      conftest$ac_exeext conftest.$ac_ext
4567LIBS=$ac_check_lib_save_LIBS
4568fi
4569echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4570echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4571if test $ac_cv_lib_opengl32_main = yes; then
4572  FOUND_opengl32=yes
4573else
4574  "gl/gl.h"
4575fi
4576
4577    if test x$FOUND_opengl32 = xyes ; then
4578        LIBS="$LIBS -lopengl32"
4579    else
4580         echo "------------------"
4581         echo "opengl not found."
4582         echo "please install the opengl package which can be found at http://www.opengl.org"
4583         echo "------------------"
4584         exit -1
4585    fi
4586
4587# cheking for GLU-header
4588
4589for ac_header in GL/glu.h
4590do
4591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592if eval "test \"\${$as_ac_Header+set}\" = set"; then
4593  echo "$as_me:$LINENO: checking for $ac_header" >&5
4594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4595if eval "test \"\${$as_ac_Header+set}\" = set"; then
4596  echo $ECHO_N "(cached) $ECHO_C" >&6
4597fi
4598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600else
4601  # Is the header compilable?
4602echo "$as_me:$LINENO: checking $ac_header usability" >&5
4603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4604cat >conftest.$ac_ext <<_ACEOF
4605/* confdefs.h.  */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h.  */
4610$ac_includes_default
4611#include <$ac_header>
4612_ACEOF
4613rm -f conftest.$ac_objext
4614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615  (eval $ac_compile) 2>conftest.er1
4616  ac_status=$?
4617  grep -v '^ *+' conftest.er1 >conftest.err
4618  rm -f conftest.er1
4619  cat conftest.err >&5
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); } &&
4622         { ac_try='test -z "$ac_c_werror_flag"
4623                         || test ! -s conftest.err'
4624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625  (eval $ac_try) 2>&5
4626  ac_status=$?
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); }; } &&
4629         { ac_try='test -s conftest.$ac_objext'
4630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631  (eval $ac_try) 2>&5
4632  ac_status=$?
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); }; }; then
4635  ac_header_compiler=yes
4636else
4637  echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640ac_header_compiler=no
4641fi
4642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4644echo "${ECHO_T}$ac_header_compiler" >&6
4645
4646# Is the header present?
4647echo "$as_me:$LINENO: checking $ac_header presence" >&5
4648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4649cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h.  */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h.  */
4655#include <$ac_header>
4656_ACEOF
4657if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4658  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4659  ac_status=$?
4660  grep -v '^ *+' conftest.er1 >conftest.err
4661  rm -f conftest.er1
4662  cat conftest.err >&5
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } >/dev/null; then
4665  if test -s conftest.err; then
4666    ac_cpp_err=$ac_c_preproc_warn_flag
4667    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4668  else
4669    ac_cpp_err=
4670  fi
4671else
4672  ac_cpp_err=yes
4673fi
4674if test -z "$ac_cpp_err"; then
4675  ac_header_preproc=yes
4676else
4677  echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680  ac_header_preproc=no
4681fi
4682rm -f conftest.err conftest.$ac_ext
4683echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4684echo "${ECHO_T}$ac_header_preproc" >&6
4685
4686# So?  What about this header?
4687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4688  yes:no: )
4689    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4691    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4693    ac_header_preproc=yes
4694    ;;
4695  no:yes:* )
4696    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4698    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4699echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4700    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4702    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4703echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4704    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4706    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4708    (
4709      cat <<\_ASBOX
4710## ---------------------------------------------- ##
4711## Report this to orxonox-dev at mail.datacore.ch ##
4712## ---------------------------------------------- ##
4713_ASBOX
4714    ) |
4715      sed "s/^/$as_me: WARNING:     /" >&2
4716    ;;
4717esac
4718echo "$as_me:$LINENO: checking for $ac_header" >&5
4719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721  echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723  eval "$as_ac_Header=\$ac_header_preproc"
4724fi
4725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4727
4728fi
4729if test `eval echo '${'$as_ac_Header'}'` = yes; then
4730  cat >>confdefs.h <<_ACEOF
4731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732_ACEOF
4733
4734else
4735  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4736echo "$as_me: error: cannot find opengl headers" >&2;}
4737   { (exit 1); exit 1; }; }
4738fi
4739
4740done
4741
4742
4743# checking for libGLU
4744    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4745echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4746if test "${ac_cv_lib_glu32_main+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  ac_check_lib_save_LIBS=$LIBS
4750LIBS="-lglu32  $LIBS"
4751cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h.  */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h.  */
4757
4758
4759int
4760main ()
4761{
4762main ();
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767rm -f conftest.$ac_objext conftest$ac_exeext
4768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4769  (eval $ac_link) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } &&
4776         { ac_try='test -z "$ac_c_werror_flag"
4777                         || test ! -s conftest.err'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; } &&
4783         { ac_try='test -s conftest$ac_exeext'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; }; then
4789  ac_cv_lib_glu32_main=yes
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794ac_cv_lib_glu32_main=no
4795fi
4796rm -f conftest.err conftest.$ac_objext \
4797      conftest$ac_exeext conftest.$ac_ext
4798LIBS=$ac_check_lib_save_LIBS
4799fi
4800echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4801echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4802if test $ac_cv_lib_glu32_main = yes; then
4803  FOUND_glu32=yes
4804fi
4805
4806    if test x$FOUND_glu32 = xyes ; then
4807        LIBS="$LIBS -lGLU32"
4808    else
4809         echo "------------------"
4810         echo "GLU library not found."
4811         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4812         echo "------------------"
4813         exit -1
4814    fi
4815
4816# checking for mingw32
4817    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4818echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4819if test "${ac_cv_lib_mingw32_main+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822  ac_check_lib_save_LIBS=$LIBS
4823LIBS="-lmingw32  $LIBS"
4824cat >conftest.$ac_ext <<_ACEOF
4825/* confdefs.h.  */
4826_ACEOF
4827cat confdefs.h >>conftest.$ac_ext
4828cat >>conftest.$ac_ext <<_ACEOF
4829/* end confdefs.h.  */
4830
4831
4832int
4833main ()
4834{
4835main ();
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext conftest$ac_exeext
4841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4842  (eval $ac_link) 2>conftest.er1
4843  ac_status=$?
4844  grep -v '^ *+' conftest.er1 >conftest.err
4845  rm -f conftest.er1
4846  cat conftest.err >&5
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); } &&
4849         { ac_try='test -z "$ac_c_werror_flag"
4850                         || test ! -s conftest.err'
4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852  (eval $ac_try) 2>&5
4853  ac_status=$?
4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855  (exit $ac_status); }; } &&
4856         { ac_try='test -s conftest$ac_exeext'
4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858  (eval $ac_try) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); }; }; then
4862  ac_cv_lib_mingw32_main=yes
4863else
4864  echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867ac_cv_lib_mingw32_main=no
4868fi
4869rm -f conftest.err conftest.$ac_objext \
4870      conftest$ac_exeext conftest.$ac_ext
4871LIBS=$ac_check_lib_save_LIBS
4872fi
4873echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4874echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4875if test $ac_cv_lib_mingw32_main = yes; then
4876  FOUND_mingw32=yes
4877fi
4878
4879    if test x$FOUND_mingw32 = xyes; then
4880        LIBS="$LIBS -lmingw32"
4881    fi
4882# checking for SDL-headers
4883
4884for ac_header in SDL.h
4885do
4886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888  echo "$as_me:$LINENO: checking for $ac_header" >&5
4889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891  echo $ECHO_N "(cached) $ECHO_C" >&6
4892fi
4893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4895else
4896  # Is the header compilable?
4897echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h.  */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h.  */
4905$ac_includes_default
4906#include <$ac_header>
4907_ACEOF
4908rm -f conftest.$ac_objext
4909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910  (eval $ac_compile) 2>conftest.er1
4911  ac_status=$?
4912  grep -v '^ *+' conftest.er1 >conftest.err
4913  rm -f conftest.er1
4914  cat conftest.err >&5
4915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916  (exit $ac_status); } &&
4917         { ac_try='test -z "$ac_c_werror_flag"
4918                         || test ! -s conftest.err'
4919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920  (eval $ac_try) 2>&5
4921  ac_status=$?
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); }; } &&
4924         { ac_try='test -s conftest.$ac_objext'
4925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926  (eval $ac_try) 2>&5
4927  ac_status=$?
4928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929  (exit $ac_status); }; }; then
4930  ac_header_compiler=yes
4931else
4932  echo "$as_me: failed program was:" >&5
4933sed 's/^/| /' conftest.$ac_ext >&5
4934
4935ac_header_compiler=no
4936fi
4937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4939echo "${ECHO_T}$ac_header_compiler" >&6
4940
4941# Is the header present?
4942echo "$as_me:$LINENO: checking $ac_header presence" >&5
4943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4944cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h.  */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h.  */
4950#include <$ac_header>
4951_ACEOF
4952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954  ac_status=$?
4955  grep -v '^ *+' conftest.er1 >conftest.err
4956  rm -f conftest.er1
4957  cat conftest.err >&5
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); } >/dev/null; then
4960  if test -s conftest.err; then
4961    ac_cpp_err=$ac_c_preproc_warn_flag
4962    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4963  else
4964    ac_cpp_err=
4965  fi
4966else
4967  ac_cpp_err=yes
4968fi
4969if test -z "$ac_cpp_err"; then
4970  ac_header_preproc=yes
4971else
4972  echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975  ac_header_preproc=no
4976fi
4977rm -f conftest.err conftest.$ac_ext
4978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4979echo "${ECHO_T}$ac_header_preproc" >&6
4980
4981# So?  What about this header?
4982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4983  yes:no: )
4984    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4988    ac_header_preproc=yes
4989    ;;
4990  no:yes:* )
4991    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4993    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4994echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4995    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4997    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4998echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4999    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5001    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5003    (
5004      cat <<\_ASBOX
5005## ---------------------------------------------- ##
5006## Report this to orxonox-dev at mail.datacore.ch ##
5007## ---------------------------------------------- ##
5008_ASBOX
5009    ) |
5010      sed "s/^/$as_me: WARNING:     /" >&2
5011    ;;
5012esac
5013echo "$as_me:$LINENO: checking for $ac_header" >&5
5014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5015if eval "test \"\${$as_ac_Header+set}\" = set"; then
5016  echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018  eval "$as_ac_Header=\$ac_header_preproc"
5019fi
5020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5022
5023fi
5024if test `eval echo '${'$as_ac_Header'}'` = yes; then
5025  cat >>confdefs.h <<_ACEOF
5026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5027_ACEOF
5028
5029else
5030  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5031echo "$as_me: error: cannot find SDL headers" >&2;}
5032   { (exit 1); exit 1; }; }
5033fi
5034
5035done
5036
5037
5038#checking for libSDL
5039    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5040echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5041if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  ac_check_lib_save_LIBS=$LIBS
5045LIBS="-lsdlmain  $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_sdlmain_main=yes
5085else
5086  echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089ac_cv_lib_sdlmain_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_sdlmain_main" >&5
5096echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5097if test $ac_cv_lib_sdlmain_main = yes; then
5098  FOUND_sdlmain=yes
5099fi
5100
5101    if test x$FOUND_sdlmain = xyes ; then
5102       LIBS="$LIBS -lsdlmain"
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    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5111echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5112if test "${ac_cv_lib_sdl_main+set}" = set; then
5113  echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115  ac_check_lib_save_LIBS=$LIBS
5116LIBS="-lsdl  $LIBS"
5117cat >conftest.$ac_ext <<_ACEOF
5118/* confdefs.h.  */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h.  */
5123
5124
5125int
5126main ()
5127{
5128main ();
5129  ;
5130  return 0;
5131}
5132_ACEOF
5133rm -f conftest.$ac_objext conftest$ac_exeext
5134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5135  (eval $ac_link) 2>conftest.er1
5136  ac_status=$?
5137  grep -v '^ *+' conftest.er1 >conftest.err
5138  rm -f conftest.er1
5139  cat conftest.err >&5
5140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141  (exit $ac_status); } &&
5142         { ac_try='test -z "$ac_c_werror_flag"
5143                         || test ! -s conftest.err'
5144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145  (eval $ac_try) 2>&5
5146  ac_status=$?
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); }; } &&
5149         { ac_try='test -s conftest$ac_exeext'
5150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151  (eval $ac_try) 2>&5
5152  ac_status=$?
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); }; }; then
5155  ac_cv_lib_sdl_main=yes
5156else
5157  echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160ac_cv_lib_sdl_main=no
5161fi
5162rm -f conftest.err conftest.$ac_objext \
5163      conftest$ac_exeext conftest.$ac_ext
5164LIBS=$ac_check_lib_save_LIBS
5165fi
5166echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5167echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5168if test $ac_cv_lib_sdl_main = yes; then
5169  FOUND_sdl=yes
5170fi
5171
5172    if test x$FOUND_sdl = xyes ; then
5173       LIBS="$LIBS -lsdl"
5174    else
5175        echo "------------------"
5176        echo "SDL library not found."
5177        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5178        echo "------------------"
5179        exit -1
5180    fi
5181
5182    ;;
5183#-------#
5184# LINUX #
5185#-------#
5186 *-*-linux*)
5187echo "Linux detected"
5188
5189 Linux="yes"
5190
5191CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL"
5192LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5193# checking gl header
5194
5195for ac_header in GL/gl.h
5196do
5197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5198if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199  echo "$as_me:$LINENO: checking for $ac_header" >&5
5200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5201if eval "test \"\${$as_ac_Header+set}\" = set"; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203fi
5204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5206else
5207  # Is the header compilable?
5208echo "$as_me:$LINENO: checking $ac_header usability" >&5
5209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5210cat >conftest.$ac_ext <<_ACEOF
5211/* confdefs.h.  */
5212_ACEOF
5213cat confdefs.h >>conftest.$ac_ext
5214cat >>conftest.$ac_ext <<_ACEOF
5215/* end confdefs.h.  */
5216$ac_includes_default
5217#include <$ac_header>
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221  (eval $ac_compile) 2>conftest.er1
5222  ac_status=$?
5223  grep -v '^ *+' conftest.er1 >conftest.err
5224  rm -f conftest.er1
5225  cat conftest.err >&5
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); } &&
5228         { ac_try='test -z "$ac_c_werror_flag"
5229                         || test ! -s conftest.err'
5230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231  (eval $ac_try) 2>&5
5232  ac_status=$?
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); }; } &&
5235         { ac_try='test -s conftest.$ac_objext'
5236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237  (eval $ac_try) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }; }; then
5241  ac_header_compiler=yes
5242else
5243  echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246ac_header_compiler=no
5247fi
5248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250echo "${ECHO_T}$ac_header_compiler" >&6
5251
5252# Is the header present?
5253echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h.  */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h.  */
5261#include <$ac_header>
5262_ACEOF
5263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } >/dev/null; then
5271  if test -s conftest.err; then
5272    ac_cpp_err=$ac_c_preproc_warn_flag
5273    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274  else
5275    ac_cpp_err=
5276  fi
5277else
5278  ac_cpp_err=yes
5279fi
5280if test -z "$ac_cpp_err"; then
5281  ac_header_preproc=yes
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286  ac_header_preproc=no
5287fi
5288rm -f conftest.err conftest.$ac_ext
5289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290echo "${ECHO_T}$ac_header_preproc" >&6
5291
5292# So?  What about this header?
5293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5294  yes:no: )
5295    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5299    ac_header_preproc=yes
5300    ;;
5301  no:yes:* )
5302    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5304    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5305echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5306    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5308    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5309echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5310    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5312    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5314    (
5315      cat <<\_ASBOX
5316## ---------------------------------------------- ##
5317## Report this to orxonox-dev at mail.datacore.ch ##
5318## ---------------------------------------------- ##
5319_ASBOX
5320    ) |
5321      sed "s/^/$as_me: WARNING:     /" >&2
5322    ;;
5323esac
5324echo "$as_me:$LINENO: checking for $ac_header" >&5
5325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5326if eval "test \"\${$as_ac_Header+set}\" = set"; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  eval "$as_ac_Header=\$ac_header_preproc"
5330fi
5331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333
5334fi
5335if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336  cat >>confdefs.h <<_ACEOF
5337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338_ACEOF
5339
5340else
5341  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5342echo "$as_me: error: cannot find opengl headers" >&2;}
5343   { (exit 1); exit 1; }; }
5344fi
5345
5346done
5347
5348
5349#  checking for Unix GL
5350   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5351echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5352if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5353  echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355  ac_check_lib_save_LIBS=$LIBS
5356LIBS="-lGL  $LIBS"
5357cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h.  */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
5362/* end confdefs.h.  */
5363
5364/* Override any gcc2 internal prototype to avoid an error.  */
5365#ifdef __cplusplus
5366extern "C"
5367#endif
5368/* We use char because int might match the return type of a gcc2
5369   builtin and then its argument prototype would still apply.  */
5370char glLoadIdentity ();
5371int
5372main ()
5373{
5374glLoadIdentity ();
5375  ;
5376  return 0;
5377}
5378_ACEOF
5379rm -f conftest.$ac_objext conftest$ac_exeext
5380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5381  (eval $ac_link) 2>conftest.er1
5382  ac_status=$?
5383  grep -v '^ *+' conftest.er1 >conftest.err
5384  rm -f conftest.er1
5385  cat conftest.err >&5
5386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387  (exit $ac_status); } &&
5388         { ac_try='test -z "$ac_c_werror_flag"
5389                         || test ! -s conftest.err'
5390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391  (eval $ac_try) 2>&5
5392  ac_status=$?
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); }; } &&
5395         { ac_try='test -s conftest$ac_exeext'
5396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397  (eval $ac_try) 2>&5
5398  ac_status=$?
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); }; }; then
5401  ac_cv_lib_GL_glLoadIdentity=yes
5402else
5403  echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406ac_cv_lib_GL_glLoadIdentity=no
5407fi
5408rm -f conftest.err conftest.$ac_objext \
5409      conftest$ac_exeext conftest.$ac_ext
5410LIBS=$ac_check_lib_save_LIBS
5411fi
5412echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5413echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5414if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5415  FOUND_GL=yes
5416fi
5417
5418   if test x$FOUND_GL = xyes ; then
5419     LIBS="$LIBS -lGL"
5420   else
5421         echo "------------------"
5422         echo "opengl not found."
5423         echo "please install the opengl package which can be found at http://www.opengl.org"
5424         echo "------------------"
5425         exit -1
5426   fi
5427
5428# cheking for GLU-header
5429
5430for ac_header in GL/glu.h
5431do
5432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5433if eval "test \"\${$as_ac_Header+set}\" = set"; then
5434  echo "$as_me:$LINENO: checking for $ac_header" >&5
5435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5436if eval "test \"\${$as_ac_Header+set}\" = set"; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438fi
5439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441else
5442  # Is the header compilable?
5443echo "$as_me:$LINENO: checking $ac_header usability" >&5
5444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5445cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h.  */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h.  */
5451$ac_includes_default
5452#include <$ac_header>
5453_ACEOF
5454rm -f conftest.$ac_objext
5455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456  (eval $ac_compile) 2>conftest.er1
5457  ac_status=$?
5458  grep -v '^ *+' conftest.er1 >conftest.err
5459  rm -f conftest.er1
5460  cat conftest.err >&5
5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462  (exit $ac_status); } &&
5463         { ac_try='test -z "$ac_c_werror_flag"
5464                         || test ! -s conftest.err'
5465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466  (eval $ac_try) 2>&5
5467  ac_status=$?
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }; } &&
5470         { ac_try='test -s conftest.$ac_objext'
5471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472  (eval $ac_try) 2>&5
5473  ac_status=$?
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); }; }; then
5476  ac_header_compiler=yes
5477else
5478  echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481ac_header_compiler=no
5482fi
5483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5485echo "${ECHO_T}$ac_header_compiler" >&6
5486
5487# Is the header present?
5488echo "$as_me:$LINENO: checking $ac_header presence" >&5
5489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5490cat >conftest.$ac_ext <<_ACEOF
5491/* confdefs.h.  */
5492_ACEOF
5493cat confdefs.h >>conftest.$ac_ext
5494cat >>conftest.$ac_ext <<_ACEOF
5495/* end confdefs.h.  */
5496#include <$ac_header>
5497_ACEOF
5498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5500  ac_status=$?
5501  grep -v '^ *+' conftest.er1 >conftest.err
5502  rm -f conftest.er1
5503  cat conftest.err >&5
5504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505  (exit $ac_status); } >/dev/null; then
5506  if test -s conftest.err; then
5507    ac_cpp_err=$ac_c_preproc_warn_flag
5508    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5509  else
5510    ac_cpp_err=
5511  fi
5512else
5513  ac_cpp_err=yes
5514fi
5515if test -z "$ac_cpp_err"; then
5516  ac_header_preproc=yes
5517else
5518  echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521  ac_header_preproc=no
5522fi
5523rm -f conftest.err conftest.$ac_ext
5524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5525echo "${ECHO_T}$ac_header_preproc" >&6
5526
5527# So?  What about this header?
5528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5529  yes:no: )
5530    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5534    ac_header_preproc=yes
5535    ;;
5536  no:yes:* )
5537    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5539    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5540echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5541    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5543    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5544echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5545    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5547    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5549    (
5550      cat <<\_ASBOX
5551## ---------------------------------------------- ##
5552## Report this to orxonox-dev at mail.datacore.ch ##
5553## ---------------------------------------------- ##
5554_ASBOX
5555    ) |
5556      sed "s/^/$as_me: WARNING:     /" >&2
5557    ;;
5558esac
5559echo "$as_me:$LINENO: checking for $ac_header" >&5
5560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5561if eval "test \"\${$as_ac_Header+set}\" = set"; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564  eval "$as_ac_Header=\$ac_header_preproc"
5565fi
5566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5568
5569fi
5570if test `eval echo '${'$as_ac_Header'}'` = yes; then
5571  cat >>confdefs.h <<_ACEOF
5572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5573_ACEOF
5574
5575else
5576  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5577echo "$as_me: error: cannot find opengl headers" >&2;}
5578   { (exit 1); exit 1; }; }
5579fi
5580
5581done
5582
5583
5584    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5585echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5586if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5587  echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589  ac_check_lib_save_LIBS=$LIBS
5590LIBS="-lGLU  $LIBS"
5591cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h.  */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h.  */
5597
5598/* Override any gcc2 internal prototype to avoid an error.  */
5599#ifdef __cplusplus
5600extern "C"
5601#endif
5602/* We use char because int might match the return type of a gcc2
5603   builtin and then its argument prototype would still apply.  */
5604char gluProject ();
5605int
5606main ()
5607{
5608gluProject ();
5609  ;
5610  return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext conftest$ac_exeext
5614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615  (eval $ac_link) 2>conftest.er1
5616  ac_status=$?
5617  grep -v '^ *+' conftest.er1 >conftest.err
5618  rm -f conftest.er1
5619  cat conftest.err >&5
5620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621  (exit $ac_status); } &&
5622         { ac_try='test -z "$ac_c_werror_flag"
5623                         || test ! -s conftest.err'
5624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625  (eval $ac_try) 2>&5
5626  ac_status=$?
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); }; } &&
5629         { ac_try='test -s conftest$ac_exeext'
5630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631  (eval $ac_try) 2>&5
5632  ac_status=$?
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); }; }; then
5635  ac_cv_lib_GLU_gluProject=yes
5636else
5637  echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640ac_cv_lib_GLU_gluProject=no
5641fi
5642rm -f conftest.err conftest.$ac_objext \
5643      conftest$ac_exeext conftest.$ac_ext
5644LIBS=$ac_check_lib_save_LIBS
5645fi
5646echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5647echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5648if test $ac_cv_lib_GLU_gluProject = yes; then
5649  FOUND_GLU=yes
5650fi
5651
5652    if test x$FOUND_GLU = xyes ; then
5653      LIBS="$LIBS -lGLU"
5654    else
5655         echo "------------------"
5656         echo "GLU library not found."
5657         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5658         echo "------------------"
5659         exit -1
5660    fi
5661
5662# checking for SDL-headers
5663
5664for ac_header in SDL.h
5665do
5666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5667if eval "test \"\${$as_ac_Header+set}\" = set"; then
5668  echo "$as_me:$LINENO: checking for $ac_header" >&5
5669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672fi
5673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5675else
5676  # Is the header compilable?
5677echo "$as_me:$LINENO: checking $ac_header usability" >&5
5678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685$ac_includes_default
5686#include <$ac_header>
5687_ACEOF
5688rm -f conftest.$ac_objext
5689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690  (eval $ac_compile) 2>conftest.er1
5691  ac_status=$?
5692  grep -v '^ *+' conftest.er1 >conftest.err
5693  rm -f conftest.er1
5694  cat conftest.err >&5
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); } &&
5697         { ac_try='test -z "$ac_c_werror_flag"
5698                         || test ! -s conftest.err'
5699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700  (eval $ac_try) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }; } &&
5704         { ac_try='test -s conftest.$ac_objext'
5705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706  (eval $ac_try) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }; }; then
5710  ac_header_compiler=yes
5711else
5712  echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715ac_header_compiler=no
5716fi
5717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5719echo "${ECHO_T}$ac_header_compiler" >&6
5720
5721# Is the header present?
5722echo "$as_me:$LINENO: checking $ac_header presence" >&5
5723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5724cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h.  */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h.  */
5730#include <$ac_header>
5731_ACEOF
5732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5733  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5734  ac_status=$?
5735  grep -v '^ *+' conftest.er1 >conftest.err
5736  rm -f conftest.er1
5737  cat conftest.err >&5
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); } >/dev/null; then
5740  if test -s conftest.err; then
5741    ac_cpp_err=$ac_c_preproc_warn_flag
5742    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5743  else
5744    ac_cpp_err=
5745  fi
5746else
5747  ac_cpp_err=yes
5748fi
5749if test -z "$ac_cpp_err"; then
5750  ac_header_preproc=yes
5751else
5752  echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755  ac_header_preproc=no
5756fi
5757rm -f conftest.err conftest.$ac_ext
5758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5759echo "${ECHO_T}$ac_header_preproc" >&6
5760
5761# So?  What about this header?
5762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5763  yes:no: )
5764    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5766    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5768    ac_header_preproc=yes
5769    ;;
5770  no:yes:* )
5771    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5773    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5774echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5777    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5778echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5779    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5781    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5783    (
5784      cat <<\_ASBOX
5785## ---------------------------------------------- ##
5786## Report this to orxonox-dev at mail.datacore.ch ##
5787## ---------------------------------------------- ##
5788_ASBOX
5789    ) |
5790      sed "s/^/$as_me: WARNING:     /" >&2
5791    ;;
5792esac
5793echo "$as_me:$LINENO: checking for $ac_header" >&5
5794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5795if eval "test \"\${$as_ac_Header+set}\" = set"; then
5796  echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798  eval "$as_ac_Header=\$ac_header_preproc"
5799fi
5800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5802
5803fi
5804if test `eval echo '${'$as_ac_Header'}'` = yes; then
5805  cat >>confdefs.h <<_ACEOF
5806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5807_ACEOF
5808
5809else
5810  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5811echo "$as_me: error: cannot find SDL headers" >&2;}
5812   { (exit 1); exit 1; }; }
5813fi
5814
5815done
5816
5817
5818# checking for SDL-lib
5819    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5820echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5821if test "${ac_cv_lib_SDL_main+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  ac_check_lib_save_LIBS=$LIBS
5825LIBS="-lSDL  $LIBS"
5826cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h.  */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h.  */
5832
5833
5834int
5835main ()
5836{
5837main ();
5838  ;
5839  return 0;
5840}
5841_ACEOF
5842rm -f conftest.$ac_objext conftest$ac_exeext
5843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5844  (eval $ac_link) 2>conftest.er1
5845  ac_status=$?
5846  grep -v '^ *+' conftest.er1 >conftest.err
5847  rm -f conftest.er1
5848  cat conftest.err >&5
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); } &&
5851         { ac_try='test -z "$ac_c_werror_flag"
5852                         || test ! -s conftest.err'
5853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854  (eval $ac_try) 2>&5
5855  ac_status=$?
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); }; } &&
5858         { ac_try='test -s conftest$ac_exeext'
5859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860  (eval $ac_try) 2>&5
5861  ac_status=$?
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); }; }; then
5864  ac_cv_lib_SDL_main=yes
5865else
5866  echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869ac_cv_lib_SDL_main=no
5870fi
5871rm -f conftest.err conftest.$ac_objext \
5872      conftest$ac_exeext conftest.$ac_ext
5873LIBS=$ac_check_lib_save_LIBS
5874fi
5875echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5876echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5877if test $ac_cv_lib_SDL_main = yes; then
5878  FOUND_SDL=yes
5879fi
5880
5881     if test x$FOUND_SDL = xyes ; then
5882       LIBS="$LIBS -lSDL"
5883     else
5884        echo "------------------"
5885        echo "SDL library not found."
5886        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5887        echo "------------------"
5888        exit -1
5889     fi
5890
5891
5892## checking for SDL
5893#    SDL_VERSION=1.2.7
5894#    AM_PATH_SDL($SDL_VERSION,
5895#      :,
5896#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5897#      )
5898#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5899#    LIBS="$LIBS $SDL_LIBS"
5900    ;;
5901#-----------#
5902# MAC -OS X #
5903#-----------#
5904 *darwin*)
5905 echo "OS X detected"
5906
5907 osX="yes"
5908
5909 CPPFLAGS="-I/sw/include -I/sw/include/SDL $CPPFLAGS"
5910# checking gl header
5911
5912for ac_header in OpenGL/gl.h
5913do
5914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5915if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916  echo "$as_me:$LINENO: checking for $ac_header" >&5
5917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5918if eval "test \"\${$as_ac_Header+set}\" = set"; then
5919  echo $ECHO_N "(cached) $ECHO_C" >&6
5920fi
5921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5923else
5924  # Is the header compilable?
5925echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5927cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h.  */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h.  */
5933$ac_includes_default
5934#include <$ac_header>
5935_ACEOF
5936rm -f conftest.$ac_objext
5937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938  (eval $ac_compile) 2>conftest.er1
5939  ac_status=$?
5940  grep -v '^ *+' conftest.er1 >conftest.err
5941  rm -f conftest.er1
5942  cat conftest.err >&5
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); } &&
5945         { ac_try='test -z "$ac_c_werror_flag"
5946                         || test ! -s conftest.err'
5947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948  (eval $ac_try) 2>&5
5949  ac_status=$?
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); }; } &&
5952         { ac_try='test -s conftest.$ac_objext'
5953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954  (eval $ac_try) 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); }; }; then
5958  ac_header_compiler=yes
5959else
5960  echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963ac_header_compiler=no
5964fi
5965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967echo "${ECHO_T}$ac_header_compiler" >&6
5968
5969# Is the header present?
5970echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972cat >conftest.$ac_ext <<_ACEOF
5973/* confdefs.h.  */
5974_ACEOF
5975cat confdefs.h >>conftest.$ac_ext
5976cat >>conftest.$ac_ext <<_ACEOF
5977/* end confdefs.h.  */
5978#include <$ac_header>
5979_ACEOF
5980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5982  ac_status=$?
5983  grep -v '^ *+' conftest.er1 >conftest.err
5984  rm -f conftest.er1
5985  cat conftest.err >&5
5986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987  (exit $ac_status); } >/dev/null; then
5988  if test -s conftest.err; then
5989    ac_cpp_err=$ac_c_preproc_warn_flag
5990    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5991  else
5992    ac_cpp_err=
5993  fi
5994else
5995  ac_cpp_err=yes
5996fi
5997if test -z "$ac_cpp_err"; then
5998  ac_header_preproc=yes
5999else
6000  echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003  ac_header_preproc=no
6004fi
6005rm -f conftest.err conftest.$ac_ext
6006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007echo "${ECHO_T}$ac_header_preproc" >&6
6008
6009# So?  What about this header?
6010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011  yes:no: )
6012    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016    ac_header_preproc=yes
6017    ;;
6018  no:yes:* )
6019    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6022echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6023    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6026echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6031    (
6032      cat <<\_ASBOX
6033## ---------------------------------------------- ##
6034## Report this to orxonox-dev at mail.datacore.ch ##
6035## ---------------------------------------------- ##
6036_ASBOX
6037    ) |
6038      sed "s/^/$as_me: WARNING:     /" >&2
6039    ;;
6040esac
6041echo "$as_me:$LINENO: checking for $ac_header" >&5
6042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  eval "$as_ac_Header=\$ac_header_preproc"
6047fi
6048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050
6051fi
6052if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053  cat >>confdefs.h <<_ACEOF
6054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055_ACEOF
6056
6057else
6058  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6059echo "$as_me: error: cannot find opengl headers" >&2;}
6060   { (exit 1); exit 1; }; }
6061fi
6062
6063done
6064
6065# cheking for GLU-header
6066
6067for ac_header in OpenGL/glu.h
6068do
6069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071  echo "$as_me:$LINENO: checking for $ac_header" >&5
6072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074  echo $ECHO_N "(cached) $ECHO_C" >&6
6075fi
6076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078else
6079  # Is the header compilable?
6080echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h.  */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h.  */
6088$ac_includes_default
6089#include <$ac_header>
6090_ACEOF
6091rm -f conftest.$ac_objext
6092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093  (eval $ac_compile) 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } &&
6100         { ac_try='test -z "$ac_c_werror_flag"
6101                         || test ! -s conftest.err'
6102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103  (eval $ac_try) 2>&5
6104  ac_status=$?
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); }; } &&
6107         { ac_try='test -s conftest.$ac_objext'
6108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109  (eval $ac_try) 2>&5
6110  ac_status=$?
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); }; }; then
6113  ac_header_compiler=yes
6114else
6115  echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118ac_header_compiler=no
6119fi
6120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6122echo "${ECHO_T}$ac_header_compiler" >&6
6123
6124# Is the header present?
6125echo "$as_me:$LINENO: checking $ac_header presence" >&5
6126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6127cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h.  */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h.  */
6133#include <$ac_header>
6134_ACEOF
6135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137  ac_status=$?
6138  grep -v '^ *+' conftest.er1 >conftest.err
6139  rm -f conftest.er1
6140  cat conftest.err >&5
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); } >/dev/null; then
6143  if test -s conftest.err; then
6144    ac_cpp_err=$ac_c_preproc_warn_flag
6145    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6146  else
6147    ac_cpp_err=
6148  fi
6149else
6150  ac_cpp_err=yes
6151fi
6152if test -z "$ac_cpp_err"; then
6153  ac_header_preproc=yes
6154else
6155  echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158  ac_header_preproc=no
6159fi
6160rm -f conftest.err conftest.$ac_ext
6161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6162echo "${ECHO_T}$ac_header_preproc" >&6
6163
6164# So?  What about this header?
6165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6166  yes:no: )
6167    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6169    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6171    ac_header_preproc=yes
6172    ;;
6173  no:yes:* )
6174    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6176    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6177echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6178    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6180    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6181echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6184    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6186    (
6187      cat <<\_ASBOX
6188## ---------------------------------------------- ##
6189## Report this to orxonox-dev at mail.datacore.ch ##
6190## ---------------------------------------------- ##
6191_ASBOX
6192    ) |
6193      sed "s/^/$as_me: WARNING:     /" >&2
6194    ;;
6195esac
6196echo "$as_me:$LINENO: checking for $ac_header" >&5
6197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199  echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201  eval "$as_ac_Header=\$ac_header_preproc"
6202fi
6203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6205
6206fi
6207if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208  cat >>confdefs.h <<_ACEOF
6209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6210_ACEOF
6211
6212else
6213  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6214echo "$as_me: error: cannot find opengl headers" >&2;}
6215   { (exit 1); exit 1; }; }
6216fi
6217
6218done
6219
6220
6221   LIBS="$LIBS -framework OpenGL"
6222
6223       SDL_CFLAGS=`sdl-config --cflags`
6224       SDL_LIBS=`sdl-config --libs`
6225       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6226       LIBS="$LIBS $SDL_LIBS"
6227
6228
6229# checking for SDL-headers
6230#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6231#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6232
6233## checking for SDL
6234#    SDL_VERSION=1.2.7
6235#    AM_PATH_SDL($SDL_VERSION,
6236#      :,
6237#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6238#      )
6239
6240
6241    ;;
6242
6243  *)
6244    ;;
6245esac
6246
6247
6248
6249###################################
6250## CHECKING FOR HEADERS AND LIBS ##
6251###################################
6252
6253#---------#
6254# SDL_ttf #
6255#---------#
6256# checking for SDL_ttf-headers
6257
6258for ac_header in SDL_ttf.h
6259do
6260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261if eval "test \"\${$as_ac_Header+set}\" = set"; then
6262  echo "$as_me:$LINENO: checking for $ac_header" >&5
6263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6264if eval "test \"\${$as_ac_Header+set}\" = set"; then
6265  echo $ECHO_N "(cached) $ECHO_C" >&6
6266fi
6267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6269else
6270  # Is the header compilable?
6271echo "$as_me:$LINENO: checking $ac_header usability" >&5
6272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6273cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h.  */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h.  */
6279$ac_includes_default
6280#include <$ac_header>
6281_ACEOF
6282rm -f conftest.$ac_objext
6283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284  (eval $ac_compile) 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } &&
6291         { ac_try='test -z "$ac_c_werror_flag"
6292                         || test ! -s conftest.err'
6293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294  (eval $ac_try) 2>&5
6295  ac_status=$?
6296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297  (exit $ac_status); }; } &&
6298         { ac_try='test -s conftest.$ac_objext'
6299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300  (eval $ac_try) 2>&5
6301  ac_status=$?
6302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); }; }; then
6304  ac_header_compiler=yes
6305else
6306  echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309ac_header_compiler=no
6310fi
6311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6313echo "${ECHO_T}$ac_header_compiler" >&6
6314
6315# Is the header present?
6316echo "$as_me:$LINENO: checking $ac_header presence" >&5
6317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6318cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h.  */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h.  */
6324#include <$ac_header>
6325_ACEOF
6326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328  ac_status=$?
6329  grep -v '^ *+' conftest.er1 >conftest.err
6330  rm -f conftest.er1
6331  cat conftest.err >&5
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); } >/dev/null; then
6334  if test -s conftest.err; then
6335    ac_cpp_err=$ac_c_preproc_warn_flag
6336    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6337  else
6338    ac_cpp_err=
6339  fi
6340else
6341  ac_cpp_err=yes
6342fi
6343if test -z "$ac_cpp_err"; then
6344  ac_header_preproc=yes
6345else
6346  echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349  ac_header_preproc=no
6350fi
6351rm -f conftest.err conftest.$ac_ext
6352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353echo "${ECHO_T}$ac_header_preproc" >&6
6354
6355# So?  What about this header?
6356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6357  yes:no: )
6358    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6362    ac_header_preproc=yes
6363    ;;
6364  no:yes:* )
6365    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6367    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6368echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6369    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6371    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6372echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6373    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6375    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6377    (
6378      cat <<\_ASBOX
6379## ---------------------------------------------- ##
6380## Report this to orxonox-dev at mail.datacore.ch ##
6381## ---------------------------------------------- ##
6382_ASBOX
6383    ) |
6384      sed "s/^/$as_me: WARNING:     /" >&2
6385    ;;
6386esac
6387echo "$as_me:$LINENO: checking for $ac_header" >&5
6388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6389if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390  echo $ECHO_N "(cached) $ECHO_C" >&6
6391else
6392  eval "$as_ac_Header=\$ac_header_preproc"
6393fi
6394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396
6397fi
6398if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399  cat >>confdefs.h <<_ACEOF
6400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401_ACEOF
6402
6403else
6404  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
6405echo "$as_me: error: cannot find SDL_ttf header." >&2;}
6406   { (exit 1); exit 1; }; }
6407fi
6408
6409done
6410
6411#fi
6412# checking for SDL_ttf-lib
6413  echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
6414echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6
6415if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
6416  echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418  ac_check_lib_save_LIBS=$LIBS
6419LIBS="-lSDL_ttf  $LIBS"
6420cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h.  */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h.  */
6426
6427
6428int
6429main ()
6430{
6431main ();
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436rm -f conftest.$ac_objext conftest$ac_exeext
6437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438  (eval $ac_link) 2>conftest.er1
6439  ac_status=$?
6440  grep -v '^ *+' conftest.er1 >conftest.err
6441  rm -f conftest.er1
6442  cat conftest.err >&5
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } &&
6445         { ac_try='test -z "$ac_c_werror_flag"
6446                         || test ! -s conftest.err'
6447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448  (eval $ac_try) 2>&5
6449  ac_status=$?
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); }; } &&
6452         { ac_try='test -s conftest$ac_exeext'
6453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454  (eval $ac_try) 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }; }; then
6458  ac_cv_lib_SDL_ttf_main=yes
6459else
6460  echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463ac_cv_lib_SDL_ttf_main=no
6464fi
6465rm -f conftest.err conftest.$ac_objext \
6466      conftest$ac_exeext conftest.$ac_ext
6467LIBS=$ac_check_lib_save_LIBS
6468fi
6469echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
6470echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6
6471if test $ac_cv_lib_SDL_ttf_main = yes; then
6472  FOUND_SDL_ttf=yes
6473fi
6474
6475     if test x$FOUND_SDL_ttf = xyes ; then
6476       LIBS="$LIBS -lSDL_ttf"
6477     else
6478        echo "------------------"
6479        echo "SDL_ttf library not found."
6480        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
6481        echo "------------------"
6482        exit -1
6483     fi
6484
6485#-----------#
6486# SDL_Image #
6487#-----------#
6488# checking for SDL_image-headers
6489
6490for ac_header in SDL_image.h
6491do
6492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494  echo "$as_me:$LINENO: checking for $ac_header" >&5
6495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498fi
6499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501else
6502  # Is the header compilable?
6503echo "$as_me:$LINENO: checking $ac_header usability" >&5
6504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6505cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h.  */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h.  */
6511$ac_includes_default
6512#include <$ac_header>
6513_ACEOF
6514rm -f conftest.$ac_objext
6515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516  (eval $ac_compile) 2>conftest.er1
6517  ac_status=$?
6518  grep -v '^ *+' conftest.er1 >conftest.err
6519  rm -f conftest.er1
6520  cat conftest.err >&5
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); } &&
6523         { ac_try='test -z "$ac_c_werror_flag"
6524                         || test ! -s conftest.err'
6525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526  (eval $ac_try) 2>&5
6527  ac_status=$?
6528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; } &&
6530         { ac_try='test -s conftest.$ac_objext'
6531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532  (eval $ac_try) 2>&5
6533  ac_status=$?
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); }; }; then
6536  ac_header_compiler=yes
6537else
6538  echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
6541ac_header_compiler=no
6542fi
6543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6545echo "${ECHO_T}$ac_header_compiler" >&6
6546
6547# Is the header present?
6548echo "$as_me:$LINENO: checking $ac_header presence" >&5
6549echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6550cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h.  */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h.  */
6556#include <$ac_header>
6557_ACEOF
6558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6559  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6560  ac_status=$?
6561  grep -v '^ *+' conftest.er1 >conftest.err
6562  rm -f conftest.er1
6563  cat conftest.err >&5
6564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); } >/dev/null; then
6566  if test -s conftest.err; then
6567    ac_cpp_err=$ac_c_preproc_warn_flag
6568    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6569  else
6570    ac_cpp_err=
6571  fi
6572else
6573  ac_cpp_err=yes
6574fi
6575if test -z "$ac_cpp_err"; then
6576  ac_header_preproc=yes
6577else
6578  echo "$as_me: failed program was:" >&5
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6581  ac_header_preproc=no
6582fi
6583rm -f conftest.err conftest.$ac_ext
6584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6585echo "${ECHO_T}$ac_header_preproc" >&6
6586
6587# So?  What about this header?
6588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6589  yes:no: )
6590    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6592    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6594    ac_header_preproc=yes
6595    ;;
6596  no:yes:* )
6597    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6599    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6600echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6601    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6603    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6604echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6605    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6607    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6609    (
6610      cat <<\_ASBOX
6611## ---------------------------------------------- ##
6612## Report this to orxonox-dev at mail.datacore.ch ##
6613## ---------------------------------------------- ##
6614_ASBOX
6615    ) |
6616      sed "s/^/$as_me: WARNING:     /" >&2
6617    ;;
6618esac
6619echo "$as_me:$LINENO: checking for $ac_header" >&5
6620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6621if eval "test \"\${$as_ac_Header+set}\" = set"; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624  eval "$as_ac_Header=\$ac_header_preproc"
6625fi
6626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6628
6629fi
6630if test `eval echo '${'$as_ac_Header'}'` = yes; then
6631  cat >>confdefs.h <<_ACEOF
6632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6633_ACEOF
6634
6635else
6636  echo "sdl_image header not found."; def_sdl_image=no; exit -1
6637fi
6638
6639done
6640
6641# checking for SDL_image-lib
6642echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6643echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6644if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6645  echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647  ac_check_lib_save_LIBS=$LIBS
6648LIBS="-lSDL_image  $LIBS"
6649cat >conftest.$ac_ext <<_ACEOF
6650/* confdefs.h.  */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h.  */
6655
6656
6657int
6658main ()
6659{
6660main ();
6661  ;
6662  return 0;
6663}
6664_ACEOF
6665rm -f conftest.$ac_objext conftest$ac_exeext
6666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667  (eval $ac_link) 2>conftest.er1
6668  ac_status=$?
6669  grep -v '^ *+' conftest.er1 >conftest.err
6670  rm -f conftest.er1
6671  cat conftest.err >&5
6672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673  (exit $ac_status); } &&
6674         { ac_try='test -z "$ac_c_werror_flag"
6675                         || test ! -s conftest.err'
6676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677  (eval $ac_try) 2>&5
6678  ac_status=$?
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); }; } &&
6681         { ac_try='test -s conftest$ac_exeext'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; }; then
6687  ac_cv_lib_SDL_image_main=yes
6688else
6689  echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692ac_cv_lib_SDL_image_main=no
6693fi
6694rm -f conftest.err conftest.$ac_objext \
6695      conftest$ac_exeext conftest.$ac_ext
6696LIBS=$ac_check_lib_save_LIBS
6697fi
6698echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6699echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6700if test $ac_cv_lib_SDL_image_main = yes; then
6701  FOUND_SDL_image=yes
6702fi
6703
6704   if test x$FOUND_SDL_image = xyes ; then
6705     LIBS="$LIBS -lSDL_image"
6706   else
6707      echo "------------------"
6708      echo "SDL_image library not found."
6709      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6710      echo "------------------"
6711      exit -1
6712   fi
6713
6714#-----#
6715# GTK #
6716#-----#
6717if test x$def_gtk = xyes; then
6718
6719        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6720        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6721echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6722        if `pkg-config --exists gtk+-2.0`; then
6723                echo "yes"
6724                have_gtk2=yes
6725                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6726                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6727
6728cat >>confdefs.h <<_ACEOF
6729#define HAVE_GTK2 1
6730_ACEOF
6731
6732        else
6733                echo "no"
6734        fi
6735
6736fi
6737
6738
6739
6740
6741if test x$have_gtk2 = xyes; then
6742  HAVE_GTK2_TRUE=
6743  HAVE_GTK2_FALSE='#'
6744else
6745  HAVE_GTK2_TRUE='#'
6746  HAVE_GTK2_FALSE=
6747fi
6748
6749
6750#---------#
6751# gThread #
6752#---------#
6753if test x$def_gthread = xyes; then
6754
6755        echo "$as_me:$LINENO: checking for gthread" >&5
6756echo $ECHO_N "checking for gthread... $ECHO_C" >&6
6757        if `pkg-config --exists gthread-2.0`; then
6758                echo "yes"
6759                have_gthread=yes
6760                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
6761                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
6762
6763cat >>confdefs.h <<_ACEOF
6764#define HAVE_GTHREAD 1
6765_ACEOF
6766
6767        else
6768                echo "no"
6769        fi
6770
6771fi
6772
6773
6774
6775
6776if test x$have_gthread = xyes; then
6777  HAVE_GTHREAD_TRUE=
6778  HAVE_GTHREAD_FALSE='#'
6779else
6780  HAVE_GTHREAD_TRUE='#'
6781  HAVE_GTHREAD_FALSE=
6782fi
6783
6784
6785#---------#
6786# libcURL #
6787#---------#
6788if test x$def_curl = xyes; then
6789
6790
6791for ac_header in curl/curl.h
6792do
6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795  echo "$as_me:$LINENO: checking for $ac_header" >&5
6796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798  echo $ECHO_N "(cached) $ECHO_C" >&6
6799fi
6800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6802else
6803  # Is the header compilable?
6804echo "$as_me:$LINENO: checking $ac_header usability" >&5
6805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6806cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h.  */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h.  */
6812$ac_includes_default
6813#include <$ac_header>
6814_ACEOF
6815rm -f conftest.$ac_objext
6816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817  (eval $ac_compile) 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } &&
6824         { ac_try='test -z "$ac_c_werror_flag"
6825                         || test ! -s conftest.err'
6826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827  (eval $ac_try) 2>&5
6828  ac_status=$?
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); }; } &&
6831         { ac_try='test -s conftest.$ac_objext'
6832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833  (eval $ac_try) 2>&5
6834  ac_status=$?
6835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836  (exit $ac_status); }; }; then
6837  ac_header_compiler=yes
6838else
6839  echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
6842ac_header_compiler=no
6843fi
6844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6846echo "${ECHO_T}$ac_header_compiler" >&6
6847
6848# Is the header present?
6849echo "$as_me:$LINENO: checking $ac_header presence" >&5
6850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6851cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h.  */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h.  */
6857#include <$ac_header>
6858_ACEOF
6859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6860  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6861  ac_status=$?
6862  grep -v '^ *+' conftest.er1 >conftest.err
6863  rm -f conftest.er1
6864  cat conftest.err >&5
6865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); } >/dev/null; then
6867  if test -s conftest.err; then
6868    ac_cpp_err=$ac_c_preproc_warn_flag
6869    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6870  else
6871    ac_cpp_err=
6872  fi
6873else
6874  ac_cpp_err=yes
6875fi
6876if test -z "$ac_cpp_err"; then
6877  ac_header_preproc=yes
6878else
6879  echo "$as_me: failed program was:" >&5
6880sed 's/^/| /' conftest.$ac_ext >&5
6881
6882  ac_header_preproc=no
6883fi
6884rm -f conftest.err conftest.$ac_ext
6885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6886echo "${ECHO_T}$ac_header_preproc" >&6
6887
6888# So?  What about this header?
6889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6890  yes:no: )
6891    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6893    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6895    ac_header_preproc=yes
6896    ;;
6897  no:yes:* )
6898    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6900    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6901echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6902    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6904    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6905echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6906    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6908    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6910    (
6911      cat <<\_ASBOX
6912## ---------------------------------------------- ##
6913## Report this to orxonox-dev at mail.datacore.ch ##
6914## ---------------------------------------------- ##
6915_ASBOX
6916    ) |
6917      sed "s/^/$as_me: WARNING:     /" >&2
6918    ;;
6919esac
6920echo "$as_me:$LINENO: checking for $ac_header" >&5
6921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922if eval "test \"\${$as_ac_Header+set}\" = set"; then
6923  echo $ECHO_N "(cached) $ECHO_C" >&6
6924else
6925  eval "$as_ac_Header=\$ac_header_preproc"
6926fi
6927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929
6930fi
6931if test `eval echo '${'$as_ac_Header'}'` = yes; then
6932  cat >>confdefs.h <<_ACEOF
6933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934_ACEOF
6935 curlHeader="yes"
6936else
6937  curlHeader="no"
6938fi
6939
6940done
6941
6942 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
6943echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
6944if test "${ac_cv_lib_curl_main+set}" = set; then
6945  echo $ECHO_N "(cached) $ECHO_C" >&6
6946else
6947  ac_check_lib_save_LIBS=$LIBS
6948LIBS="-lcurl  $LIBS"
6949cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h.  */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h.  */
6955
6956
6957int
6958main ()
6959{
6960main ();
6961  ;
6962  return 0;
6963}
6964_ACEOF
6965rm -f conftest.$ac_objext conftest$ac_exeext
6966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6967  (eval $ac_link) 2>conftest.er1
6968  ac_status=$?
6969  grep -v '^ *+' conftest.er1 >conftest.err
6970  rm -f conftest.er1
6971  cat conftest.err >&5
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } &&
6974         { ac_try='test -z "$ac_c_werror_flag"
6975                         || test ! -s conftest.err'
6976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977  (eval $ac_try) 2>&5
6978  ac_status=$?
6979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); }; } &&
6981         { ac_try='test -s conftest$ac_exeext'
6982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983  (eval $ac_try) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); }; }; then
6987  ac_cv_lib_curl_main=yes
6988else
6989  echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992ac_cv_lib_curl_main=no
6993fi
6994rm -f conftest.err conftest.$ac_objext \
6995      conftest$ac_exeext conftest.$ac_ext
6996LIBS=$ac_check_lib_save_LIBS
6997fi
6998echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
6999echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7000if test $ac_cv_lib_curl_main = yes; then
7001  FOUND_curl=yes
7002fi
7003
7004 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7005  have_curl=yes
7006  CURL_LIBS=`curl-config --libs`
7007  CURLCFLAGS=`curl-config --cflags`
7008
7009cat >>confdefs.h <<_ACEOF
7010#define HAVE_CURL 1
7011_ACEOF
7012
7013 else
7014  have_curl=no
7015 fi
7016
7017fi
7018
7019
7020
7021
7022if test x$have_curl = xyes; then
7023  HAVE_CURL_TRUE=
7024  HAVE_CURL_FALSE='#'
7025else
7026  HAVE_CURL_TRUE='#'
7027  HAVE_CURL_FALSE=
7028fi
7029
7030
7031#---------#
7032# pthread #
7033#---------#
7034if test x$def_pthread = xyes ; then
7035 if test x$have_gthread = xyes ; then
7036
7037for ac_header in pthread.h
7038do
7039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040if eval "test \"\${$as_ac_Header+set}\" = set"; then
7041  echo "$as_me:$LINENO: checking for $ac_header" >&5
7042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044  echo $ECHO_N "(cached) $ECHO_C" >&6
7045fi
7046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7047echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7048else
7049  # Is the header compilable?
7050echo "$as_me:$LINENO: checking $ac_header usability" >&5
7051echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7052cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058$ac_includes_default
7059#include <$ac_header>
7060_ACEOF
7061rm -f conftest.$ac_objext
7062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7063  (eval $ac_compile) 2>conftest.er1
7064  ac_status=$?
7065  grep -v '^ *+' conftest.er1 >conftest.err
7066  rm -f conftest.er1
7067  cat conftest.err >&5
7068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069  (exit $ac_status); } &&
7070         { ac_try='test -z "$ac_c_werror_flag"
7071                         || test ! -s conftest.err'
7072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073  (eval $ac_try) 2>&5
7074  ac_status=$?
7075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076  (exit $ac_status); }; } &&
7077         { ac_try='test -s conftest.$ac_objext'
7078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079  (eval $ac_try) 2>&5
7080  ac_status=$?
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); }; }; then
7083  ac_header_compiler=yes
7084else
7085  echo "$as_me: failed program was:" >&5
7086sed 's/^/| /' conftest.$ac_ext >&5
7087
7088ac_header_compiler=no
7089fi
7090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092echo "${ECHO_T}$ac_header_compiler" >&6
7093
7094# Is the header present?
7095echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7097cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h.  */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h.  */
7103#include <$ac_header>
7104_ACEOF
7105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7106  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7107  ac_status=$?
7108  grep -v '^ *+' conftest.er1 >conftest.err
7109  rm -f conftest.er1
7110  cat conftest.err >&5
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); } >/dev/null; then
7113  if test -s conftest.err; then
7114    ac_cpp_err=$ac_c_preproc_warn_flag
7115    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7116  else
7117    ac_cpp_err=
7118  fi
7119else
7120  ac_cpp_err=yes
7121fi
7122if test -z "$ac_cpp_err"; then
7123  ac_header_preproc=yes
7124else
7125  echo "$as_me: failed program was:" >&5
7126sed 's/^/| /' conftest.$ac_ext >&5
7127
7128  ac_header_preproc=no
7129fi
7130rm -f conftest.err conftest.$ac_ext
7131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7132echo "${ECHO_T}$ac_header_preproc" >&6
7133
7134# So?  What about this header?
7135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7136  yes:no: )
7137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7141    ac_header_preproc=yes
7142    ;;
7143  no:yes:* )
7144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7156    (
7157      cat <<\_ASBOX
7158## ---------------------------------------------- ##
7159## Report this to orxonox-dev at mail.datacore.ch ##
7160## ---------------------------------------------- ##
7161_ASBOX
7162    ) |
7163      sed "s/^/$as_me: WARNING:     /" >&2
7164    ;;
7165esac
7166echo "$as_me:$LINENO: checking for $ac_header" >&5
7167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7168if eval "test \"\${$as_ac_Header+set}\" = set"; then
7169  echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171  eval "$as_ac_Header=\$ac_header_preproc"
7172fi
7173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7175
7176fi
7177if test `eval echo '${'$as_ac_Header'}'` = yes; then
7178  cat >>confdefs.h <<_ACEOF
7179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7180_ACEOF
7181 pthreadHeader="yes"
7182else
7183  pthreadHeader="no"
7184fi
7185
7186done
7187
7188  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7189echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7190if test "${ac_cv_lib_pthread_main+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193  ac_check_lib_save_LIBS=$LIBS
7194LIBS="-lpthread  $LIBS"
7195cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h.  */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h.  */
7201
7202
7203int
7204main ()
7205{
7206main ();
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext conftest$ac_exeext
7212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213  (eval $ac_link) 2>conftest.er1
7214  ac_status=$?
7215  grep -v '^ *+' conftest.er1 >conftest.err
7216  rm -f conftest.er1
7217  cat conftest.err >&5
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); } &&
7220         { ac_try='test -z "$ac_c_werror_flag"
7221                         || test ! -s conftest.err'
7222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223  (eval $ac_try) 2>&5
7224  ac_status=$?
7225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226  (exit $ac_status); }; } &&
7227         { ac_try='test -s conftest$ac_exeext'
7228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229  (eval $ac_try) 2>&5
7230  ac_status=$?
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); }; }; then
7233  ac_cv_lib_pthread_main=yes
7234else
7235  echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238ac_cv_lib_pthread_main=no
7239fi
7240rm -f conftest.err conftest.$ac_objext \
7241      conftest$ac_exeext conftest.$ac_ext
7242LIBS=$ac_check_lib_save_LIBS
7243fi
7244echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7245echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7246if test $ac_cv_lib_pthread_main = yes; then
7247  FOUND_pthread=yes
7248fi
7249
7250   if test x$FOUND_pthread = xyes ; then
7251      LIBS="$LIBS -lpthread"
7252   fi
7253 fi
7254fi
7255
7256
7257#--------#
7258# efence #
7259#--------#
7260if test x$def_efence = xyes ; then
7261  echo "$as_me:$LINENO: checking for main in -lefence" >&5
7262echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
7263if test "${ac_cv_lib_efence_main+set}" = set; then
7264  echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266  ac_check_lib_save_LIBS=$LIBS
7267LIBS="-lefence  $LIBS"
7268cat >conftest.$ac_ext <<_ACEOF
7269/* confdefs.h.  */
7270_ACEOF
7271cat confdefs.h >>conftest.$ac_ext
7272cat >>conftest.$ac_ext <<_ACEOF
7273/* end confdefs.h.  */
7274
7275
7276int
7277main ()
7278{
7279main ();
7280  ;
7281  return 0;
7282}
7283_ACEOF
7284rm -f conftest.$ac_objext conftest$ac_exeext
7285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7286  (eval $ac_link) 2>conftest.er1
7287  ac_status=$?
7288  grep -v '^ *+' conftest.er1 >conftest.err
7289  rm -f conftest.er1
7290  cat conftest.err >&5
7291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292  (exit $ac_status); } &&
7293         { ac_try='test -z "$ac_c_werror_flag"
7294                         || test ! -s conftest.err'
7295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296  (eval $ac_try) 2>&5
7297  ac_status=$?
7298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299  (exit $ac_status); }; } &&
7300         { ac_try='test -s conftest$ac_exeext'
7301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302  (eval $ac_try) 2>&5
7303  ac_status=$?
7304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305  (exit $ac_status); }; }; then
7306  ac_cv_lib_efence_main=yes
7307else
7308  echo "$as_me: failed program was:" >&5
7309sed 's/^/| /' conftest.$ac_ext >&5
7310
7311ac_cv_lib_efence_main=no
7312fi
7313rm -f conftest.err conftest.$ac_objext \
7314      conftest$ac_exeext conftest.$ac_ext
7315LIBS=$ac_check_lib_save_LIBS
7316fi
7317echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
7318echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
7319if test $ac_cv_lib_efence_main = yes; then
7320  FOUND_efence=yes
7321fi
7322
7323   if test x$FOUND_efence = xyes ; then
7324      LIBS="$LIBS -lefence"
7325   fi
7326
7327fi
7328
7329# FIXME: Replace `main' with a function in `-lm':
7330
7331echo "$as_me:$LINENO: checking for main in -lm" >&5
7332echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7333if test "${ac_cv_lib_m_main+set}" = set; then
7334  echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336  ac_check_lib_save_LIBS=$LIBS
7337LIBS="-lm  $LIBS"
7338cat >conftest.$ac_ext <<_ACEOF
7339/* confdefs.h.  */
7340_ACEOF
7341cat confdefs.h >>conftest.$ac_ext
7342cat >>conftest.$ac_ext <<_ACEOF
7343/* end confdefs.h.  */
7344
7345
7346int
7347main ()
7348{
7349main ();
7350  ;
7351  return 0;
7352}
7353_ACEOF
7354rm -f conftest.$ac_objext conftest$ac_exeext
7355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7356  (eval $ac_link) 2>conftest.er1
7357  ac_status=$?
7358  grep -v '^ *+' conftest.er1 >conftest.err
7359  rm -f conftest.er1
7360  cat conftest.err >&5
7361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); } &&
7363         { ac_try='test -z "$ac_c_werror_flag"
7364                         || test ! -s conftest.err'
7365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366  (eval $ac_try) 2>&5
7367  ac_status=$?
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); }; } &&
7370         { ac_try='test -s conftest$ac_exeext'
7371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372  (eval $ac_try) 2>&5
7373  ac_status=$?
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); }; }; then
7376  ac_cv_lib_m_main=yes
7377else
7378  echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381ac_cv_lib_m_main=no
7382fi
7383rm -f conftest.err conftest.$ac_objext \
7384      conftest$ac_exeext conftest.$ac_ext
7385LIBS=$ac_check_lib_save_LIBS
7386fi
7387echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7388echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7389if test $ac_cv_lib_m_main = yes; then
7390  cat >>confdefs.h <<_ACEOF
7391#define HAVE_LIBM 1
7392_ACEOF
7393
7394  LIBS="-lm $LIBS"
7395
7396fi
7397
7398
7399
7400# Checks for header files.
7401echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7402echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7403if test "${ac_cv_header_stdc+set}" = set; then
7404  echo $ECHO_N "(cached) $ECHO_C" >&6
7405else
7406  cat >conftest.$ac_ext <<_ACEOF
7407/* confdefs.h.  */
7408_ACEOF
7409cat confdefs.h >>conftest.$ac_ext
7410cat >>conftest.$ac_ext <<_ACEOF
7411/* end confdefs.h.  */
7412#include <stdlib.h>
7413#include <stdarg.h>
7414#include <string.h>
7415#include <float.h>
7416
7417int
7418main ()
7419{
7420
7421  ;
7422  return 0;
7423}
7424_ACEOF
7425rm -f conftest.$ac_objext
7426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427  (eval $ac_compile) 2>conftest.er1
7428  ac_status=$?
7429  grep -v '^ *+' conftest.er1 >conftest.err
7430  rm -f conftest.er1
7431  cat conftest.err >&5
7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433  (exit $ac_status); } &&
7434         { ac_try='test -z "$ac_c_werror_flag"
7435                         || test ! -s conftest.err'
7436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437  (eval $ac_try) 2>&5
7438  ac_status=$?
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); }; } &&
7441         { ac_try='test -s conftest.$ac_objext'
7442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443  (eval $ac_try) 2>&5
7444  ac_status=$?
7445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446  (exit $ac_status); }; }; then
7447  ac_cv_header_stdc=yes
7448else
7449  echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452ac_cv_header_stdc=no
7453fi
7454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455
7456if test $ac_cv_header_stdc = yes; then
7457  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7458  cat >conftest.$ac_ext <<_ACEOF
7459/* confdefs.h.  */
7460_ACEOF
7461cat confdefs.h >>conftest.$ac_ext
7462cat >>conftest.$ac_ext <<_ACEOF
7463/* end confdefs.h.  */
7464#include <string.h>
7465
7466_ACEOF
7467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7468  $EGREP "memchr" >/dev/null 2>&1; then
7469  :
7470else
7471  ac_cv_header_stdc=no
7472fi
7473rm -f conftest*
7474
7475fi
7476
7477if test $ac_cv_header_stdc = yes; then
7478  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7479  cat >conftest.$ac_ext <<_ACEOF
7480/* confdefs.h.  */
7481_ACEOF
7482cat confdefs.h >>conftest.$ac_ext
7483cat >>conftest.$ac_ext <<_ACEOF
7484/* end confdefs.h.  */
7485#include <stdlib.h>
7486
7487_ACEOF
7488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489  $EGREP "free" >/dev/null 2>&1; then
7490  :
7491else
7492  ac_cv_header_stdc=no
7493fi
7494rm -f conftest*
7495
7496fi
7497
7498if test $ac_cv_header_stdc = yes; then
7499  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7500  if test "$cross_compiling" = yes; then
7501  :
7502else
7503  cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h.  */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h.  */
7509#include <ctype.h>
7510#if ((' ' & 0x0FF) == 0x020)
7511# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7512# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7513#else
7514# define ISLOWER(c) \
7515                   (('a' <= (c) && (c) <= 'i') \
7516                     || ('j' <= (c) && (c) <= 'r') \
7517                     || ('s' <= (c) && (c) <= 'z'))
7518# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7519#endif
7520
7521#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7522int
7523main ()
7524{
7525  int i;
7526  for (i = 0; i < 256; i++)
7527    if (XOR (islower (i), ISLOWER (i))
7528        || toupper (i) != TOUPPER (i))
7529      exit(2);
7530  exit (0);
7531}
7532_ACEOF
7533rm -f conftest$ac_exeext
7534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535  (eval $ac_link) 2>&5
7536  ac_status=$?
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540  (eval $ac_try) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); }; }; then
7544  :
7545else
7546  echo "$as_me: program exited with status $ac_status" >&5
7547echo "$as_me: failed program was:" >&5
7548sed 's/^/| /' conftest.$ac_ext >&5
7549
7550( exit $ac_status )
7551ac_cv_header_stdc=no
7552fi
7553rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7554fi
7555fi
7556fi
7557echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7558echo "${ECHO_T}$ac_cv_header_stdc" >&6
7559if test $ac_cv_header_stdc = yes; then
7560
7561cat >>confdefs.h <<\_ACEOF
7562#define STDC_HEADERS 1
7563_ACEOF
7564
7565fi
7566
7567
7568
7569for ac_header in stdlib.h string.h
7570do
7571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573  echo "$as_me:$LINENO: checking for $ac_header" >&5
7574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7575if eval "test \"\${$as_ac_Header+set}\" = set"; then
7576  echo $ECHO_N "(cached) $ECHO_C" >&6
7577fi
7578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580else
7581  # Is the header compilable?
7582echo "$as_me:$LINENO: checking $ac_header usability" >&5
7583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7584cat >conftest.$ac_ext <<_ACEOF
7585/* confdefs.h.  */
7586_ACEOF
7587cat confdefs.h >>conftest.$ac_ext
7588cat >>conftest.$ac_ext <<_ACEOF
7589/* end confdefs.h.  */
7590$ac_includes_default
7591#include <$ac_header>
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595  (eval $ac_compile) 2>conftest.er1
7596  ac_status=$?
7597  grep -v '^ *+' conftest.er1 >conftest.err
7598  rm -f conftest.er1
7599  cat conftest.err >&5
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); } &&
7602         { ac_try='test -z "$ac_c_werror_flag"
7603                         || test ! -s conftest.err'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; } &&
7609         { ac_try='test -s conftest.$ac_objext'
7610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611  (eval $ac_try) 2>&5
7612  ac_status=$?
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); }; }; then
7615  ac_header_compiler=yes
7616else
7617  echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620ac_header_compiler=no
7621fi
7622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624echo "${ECHO_T}$ac_header_compiler" >&6
7625
7626# Is the header present?
7627echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7629cat >conftest.$ac_ext <<_ACEOF
7630/* confdefs.h.  */
7631_ACEOF
7632cat confdefs.h >>conftest.$ac_ext
7633cat >>conftest.$ac_ext <<_ACEOF
7634/* end confdefs.h.  */
7635#include <$ac_header>
7636_ACEOF
7637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7639  ac_status=$?
7640  grep -v '^ *+' conftest.er1 >conftest.err
7641  rm -f conftest.er1
7642  cat conftest.err >&5
7643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644  (exit $ac_status); } >/dev/null; then
7645  if test -s conftest.err; then
7646    ac_cpp_err=$ac_c_preproc_warn_flag
7647    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7648  else
7649    ac_cpp_err=
7650  fi
7651else
7652  ac_cpp_err=yes
7653fi
7654if test -z "$ac_cpp_err"; then
7655  ac_header_preproc=yes
7656else
7657  echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660  ac_header_preproc=no
7661fi
7662rm -f conftest.err conftest.$ac_ext
7663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664echo "${ECHO_T}$ac_header_preproc" >&6
7665
7666# So?  What about this header?
7667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7668  yes:no: )
7669    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673    ac_header_preproc=yes
7674    ;;
7675  no:yes:* )
7676    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7679echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7680    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7683echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7684    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7688    (
7689      cat <<\_ASBOX
7690## ---------------------------------------------- ##
7691## Report this to orxonox-dev at mail.datacore.ch ##
7692## ---------------------------------------------- ##
7693_ASBOX
7694    ) |
7695      sed "s/^/$as_me: WARNING:     /" >&2
7696    ;;
7697esac
7698echo "$as_me:$LINENO: checking for $ac_header" >&5
7699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701  echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703  eval "$as_ac_Header=\$ac_header_preproc"
7704fi
7705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707
7708fi
7709if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710  cat >>confdefs.h <<_ACEOF
7711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718
7719# Checks for typedefs, structures, and compiler characteristics.
7720echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7721echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7722if test "${ac_cv_header_stdbool_h+set}" = set; then
7723  echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725  cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h.  */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h.  */
7731
7732#include <stdbool.h>
7733#ifndef bool
7734# error bool is not defined
7735#endif
7736#ifndef false
7737# error false is not defined
7738#endif
7739#if false
7740# error false is not 0
7741#endif
7742#ifndef true
7743# error true is not defined
7744#endif
7745#if true != 1
7746# error true is not 1
7747#endif
7748#ifndef __bool_true_false_are_defined
7749# error __bool_true_false_are_defined is not defined
7750#endif
7751
7752        struct s { _Bool s: 1; _Bool t; } s;
7753
7754        char a[true == 1 ? 1 : -1];
7755        char b[false == 0 ? 1 : -1];
7756        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7757        char d[(bool) -0.5 == true ? 1 : -1];
7758        bool e = &s;
7759        char f[(_Bool) -0.0 == false ? 1 : -1];
7760        char g[true];
7761        char h[sizeof (_Bool)];
7762        char i[sizeof s.t];
7763
7764int
7765main ()
7766{
7767 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7768  ;
7769  return 0;
7770}
7771_ACEOF
7772rm -f conftest.$ac_objext
7773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774  (eval $ac_compile) 2>conftest.er1
7775  ac_status=$?
7776  grep -v '^ *+' conftest.er1 >conftest.err
7777  rm -f conftest.er1
7778  cat conftest.err >&5
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); } &&
7781         { ac_try='test -z "$ac_c_werror_flag"
7782                         || test ! -s conftest.err'
7783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784  (eval $ac_try) 2>&5
7785  ac_status=$?
7786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787  (exit $ac_status); }; } &&
7788         { ac_try='test -s conftest.$ac_objext'
7789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790  (eval $ac_try) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }; }; then
7794  ac_cv_header_stdbool_h=yes
7795else
7796  echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
7798
7799ac_cv_header_stdbool_h=no
7800fi
7801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802fi
7803echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7804echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7805echo "$as_me:$LINENO: checking for _Bool" >&5
7806echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7807if test "${ac_cv_type__Bool+set}" = set; then
7808  echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810  cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h.  */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h.  */
7816$ac_includes_default
7817int
7818main ()
7819{
7820if ((_Bool *) 0)
7821  return 0;
7822if (sizeof (_Bool))
7823  return 0;
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828rm -f conftest.$ac_objext
7829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7830  (eval $ac_compile) 2>conftest.er1
7831  ac_status=$?
7832  grep -v '^ *+' conftest.er1 >conftest.err
7833  rm -f conftest.er1
7834  cat conftest.err >&5
7835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836  (exit $ac_status); } &&
7837         { ac_try='test -z "$ac_c_werror_flag"
7838                         || test ! -s conftest.err'
7839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840  (eval $ac_try) 2>&5
7841  ac_status=$?
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); }; } &&
7844         { ac_try='test -s conftest.$ac_objext'
7845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846  (eval $ac_try) 2>&5
7847  ac_status=$?
7848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849  (exit $ac_status); }; }; then
7850  ac_cv_type__Bool=yes
7851else
7852  echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855ac_cv_type__Bool=no
7856fi
7857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7858fi
7859echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7860echo "${ECHO_T}$ac_cv_type__Bool" >&6
7861if test $ac_cv_type__Bool = yes; then
7862
7863cat >>confdefs.h <<_ACEOF
7864#define HAVE__BOOL 1
7865_ACEOF
7866
7867
7868fi
7869
7870if test $ac_cv_header_stdbool_h = yes; then
7871
7872cat >>confdefs.h <<\_ACEOF
7873#define HAVE_STDBOOL_H 1
7874_ACEOF
7875
7876fi
7877
7878
7879# Checks for library functions.
7880
7881for ac_header in stdlib.h
7882do
7883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885  echo "$as_me:$LINENO: checking for $ac_header" >&5
7886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7887if eval "test \"\${$as_ac_Header+set}\" = set"; then
7888  echo $ECHO_N "(cached) $ECHO_C" >&6
7889fi
7890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7892else
7893  # Is the header compilable?
7894echo "$as_me:$LINENO: checking $ac_header usability" >&5
7895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7896cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h.  */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h.  */
7902$ac_includes_default
7903#include <$ac_header>
7904_ACEOF
7905rm -f conftest.$ac_objext
7906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907  (eval $ac_compile) 2>conftest.er1
7908  ac_status=$?
7909  grep -v '^ *+' conftest.er1 >conftest.err
7910  rm -f conftest.er1
7911  cat conftest.err >&5
7912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913  (exit $ac_status); } &&
7914         { ac_try='test -z "$ac_c_werror_flag"
7915                         || test ! -s conftest.err'
7916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917  (eval $ac_try) 2>&5
7918  ac_status=$?
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); }; } &&
7921         { ac_try='test -s conftest.$ac_objext'
7922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923  (eval $ac_try) 2>&5
7924  ac_status=$?
7925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926  (exit $ac_status); }; }; then
7927  ac_header_compiler=yes
7928else
7929  echo "$as_me: failed program was:" >&5
7930sed 's/^/| /' conftest.$ac_ext >&5
7931
7932ac_header_compiler=no
7933fi
7934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7935echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7936echo "${ECHO_T}$ac_header_compiler" >&6
7937
7938# Is the header present?
7939echo "$as_me:$LINENO: checking $ac_header presence" >&5
7940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7941cat >conftest.$ac_ext <<_ACEOF
7942/* confdefs.h.  */
7943_ACEOF
7944cat confdefs.h >>conftest.$ac_ext
7945cat >>conftest.$ac_ext <<_ACEOF
7946/* end confdefs.h.  */
7947#include <$ac_header>
7948_ACEOF
7949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7950  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7951  ac_status=$?
7952  grep -v '^ *+' conftest.er1 >conftest.err
7953  rm -f conftest.er1
7954  cat conftest.err >&5
7955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956  (exit $ac_status); } >/dev/null; then
7957  if test -s conftest.err; then
7958    ac_cpp_err=$ac_c_preproc_warn_flag
7959    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7960  else
7961    ac_cpp_err=
7962  fi
7963else
7964  ac_cpp_err=yes
7965fi
7966if test -z "$ac_cpp_err"; then
7967  ac_header_preproc=yes
7968else
7969  echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972  ac_header_preproc=no
7973fi
7974rm -f conftest.err conftest.$ac_ext
7975echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976echo "${ECHO_T}$ac_header_preproc" >&6
7977
7978# So?  What about this header?
7979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7980  yes:no: )
7981    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7985    ac_header_preproc=yes
7986    ;;
7987  no:yes:* )
7988    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7990    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7991echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7992    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7994    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7995echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7996    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7998    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8000    (
8001      cat <<\_ASBOX
8002## ---------------------------------------------- ##
8003## Report this to orxonox-dev at mail.datacore.ch ##
8004## ---------------------------------------------- ##
8005_ASBOX
8006    ) |
8007      sed "s/^/$as_me: WARNING:     /" >&2
8008    ;;
8009esac
8010echo "$as_me:$LINENO: checking for $ac_header" >&5
8011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8012if eval "test \"\${$as_ac_Header+set}\" = set"; then
8013  echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015  eval "$as_ac_Header=\$ac_header_preproc"
8016fi
8017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8019
8020fi
8021if test `eval echo '${'$as_ac_Header'}'` = yes; then
8022  cat >>confdefs.h <<_ACEOF
8023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024_ACEOF
8025
8026fi
8027
8028done
8029
8030echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8031echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8032if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035  if test "$cross_compiling" = yes; then
8036  ac_cv_func_malloc_0_nonnull=no
8037else
8038  cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h.  */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h.  */
8044#if STDC_HEADERS || HAVE_STDLIB_H
8045# include <stdlib.h>
8046#else
8047char *malloc ();
8048#endif
8049
8050int
8051main ()
8052{
8053exit (malloc (0) ? 0 : 1);
8054  ;
8055  return 0;
8056}
8057_ACEOF
8058rm -f conftest$ac_exeext
8059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060  (eval $ac_link) 2>&5
8061  ac_status=$?
8062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065  (eval $ac_try) 2>&5
8066  ac_status=$?
8067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); }; }; then
8069  ac_cv_func_malloc_0_nonnull=yes
8070else
8071  echo "$as_me: program exited with status $ac_status" >&5
8072echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075( exit $ac_status )
8076ac_cv_func_malloc_0_nonnull=no
8077fi
8078rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8079fi
8080fi
8081echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8082echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8083if test $ac_cv_func_malloc_0_nonnull = yes; then
8084
8085cat >>confdefs.h <<\_ACEOF
8086#define HAVE_MALLOC 1
8087_ACEOF
8088
8089else
8090  cat >>confdefs.h <<\_ACEOF
8091#define HAVE_MALLOC 0
8092_ACEOF
8093
8094   case $LIBOBJS in
8095    "malloc.$ac_objext"   | \
8096  *" malloc.$ac_objext"   | \
8097    "malloc.$ac_objext "* | \
8098  *" malloc.$ac_objext "* ) ;;
8099  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8100esac
8101
8102
8103cat >>confdefs.h <<\_ACEOF
8104#define malloc rpl_malloc
8105_ACEOF
8106
8107fi
8108
8109
8110
8111
8112
8113for ac_func in bzero sqrt
8114do
8115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8116echo "$as_me:$LINENO: checking for $ac_func" >&5
8117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8118if eval "test \"\${$as_ac_var+set}\" = set"; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121  cat >conftest.$ac_ext <<_ACEOF
8122/* confdefs.h.  */
8123_ACEOF
8124cat confdefs.h >>conftest.$ac_ext
8125cat >>conftest.$ac_ext <<_ACEOF
8126/* end confdefs.h.  */
8127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8129#define $ac_func innocuous_$ac_func
8130
8131/* System header to define __stub macros and hopefully few prototypes,
8132    which can conflict with char $ac_func (); below.
8133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8134    <limits.h> exists even on freestanding compilers.  */
8135
8136#ifdef __STDC__
8137# include <limits.h>
8138#else
8139# include <assert.h>
8140#endif
8141
8142#undef $ac_func
8143
8144/* Override any gcc2 internal prototype to avoid an error.  */
8145#ifdef __cplusplus
8146extern "C"
8147{
8148#endif
8149/* We use char because int might match the return type of a gcc2
8150   builtin and then its argument prototype would still apply.  */
8151char $ac_func ();
8152/* The GNU C library defines this for functions which it implements
8153    to always fail with ENOSYS.  Some functions are actually named
8154    something starting with __ and the normal name is an alias.  */
8155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8156choke me
8157#else
8158char (*f) () = $ac_func;
8159#endif
8160#ifdef __cplusplus
8161}
8162#endif
8163
8164int
8165main ()
8166{
8167return f != $ac_func;
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext conftest$ac_exeext
8173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174  (eval $ac_link) 2>conftest.er1
8175  ac_status=$?
8176  grep -v '^ *+' conftest.er1 >conftest.err
8177  rm -f conftest.er1
8178  cat conftest.err >&5
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); } &&
8181         { ac_try='test -z "$ac_c_werror_flag"
8182                         || test ! -s conftest.err'
8183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184  (eval $ac_try) 2>&5
8185  ac_status=$?
8186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187  (exit $ac_status); }; } &&
8188         { ac_try='test -s conftest$ac_exeext'
8189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190  (eval $ac_try) 2>&5
8191  ac_status=$?
8192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193  (exit $ac_status); }; }; then
8194  eval "$as_ac_var=yes"
8195else
8196  echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199eval "$as_ac_var=no"
8200fi
8201rm -f conftest.err conftest.$ac_objext \
8202      conftest$ac_exeext conftest.$ac_ext
8203fi
8204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8206if test `eval echo '${'$as_ac_var'}'` = yes; then
8207  cat >>confdefs.h <<_ACEOF
8208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209_ACEOF
8210
8211fi
8212done
8213
8214
8215######################
8216## OUTPUT CONFIGURE ##
8217######################
8218                                                                                                    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"
8219
8220
8221cat >confcache <<\_ACEOF
8222# This file is a shell script that caches the results of configure
8223# tests run on this system so they can be shared between configure
8224# scripts and configure runs, see configure's option --config-cache.
8225# It is not useful on other systems.  If it contains results you don't
8226# want to keep, you may remove or edit it.
8227#
8228# config.status only pays attention to the cache file if you give it
8229# the --recheck option to rerun configure.
8230#
8231# `ac_cv_env_foo' variables (set or unset) will be overridden when
8232# loading this file, other *unset* `ac_cv_foo' will be assigned the
8233# following values.
8234
8235_ACEOF
8236
8237# The following way of writing the cache mishandles newlines in values,
8238# but we know of no workaround that is simple, portable, and efficient.
8239# So, don't put newlines in cache variables' values.
8240# Ultrix sh set writes to stderr and can't be redirected directly,
8241# and sets the high bit in the cache file unless we assign to the vars.
8242{
8243  (set) 2>&1 |
8244    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8245    *ac_space=\ *)
8246      # `set' does not quote correctly, so add quotes (double-quote
8247      # substitution turns \\\\ into \\, and sed turns \\ into \).
8248      sed -n \
8249        "s/'/'\\\\''/g;
8250          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8251      ;;
8252    *)
8253      # `set' quotes correctly as required by POSIX, so do not add quotes.
8254      sed -n \
8255        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8256      ;;
8257    esac;
8258} |
8259  sed '
8260     t clear
8261     : clear
8262     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8263     t end
8264     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8265     : end' >>confcache
8266if diff $cache_file confcache >/dev/null 2>&1; then :; else
8267  if test -w $cache_file; then
8268    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8269    cat confcache >$cache_file
8270  else
8271    echo "not updating unwritable cache $cache_file"
8272  fi
8273fi
8274rm -f confcache
8275
8276test "x$prefix" = xNONE && prefix=$ac_default_prefix
8277# Let make expand exec_prefix.
8278test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8279
8280# VPATH may cause trouble with some makes, so we remove $(srcdir),
8281# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8282# trailing colons and then remove the whole line if VPATH becomes empty
8283# (actually we leave an empty line to preserve line numbers).
8284if test "x$srcdir" = x.; then
8285  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8286s/:*\$(srcdir):*/:/;
8287s/:*\${srcdir}:*/:/;
8288s/:*@srcdir@:*/:/;
8289s/^\([^=]*=[     ]*\):*/\1/;
8290s/:*$//;
8291s/^[^=]*=[       ]*$//;
8292}'
8293fi
8294
8295DEFS=-DHAVE_CONFIG_H
8296
8297ac_libobjs=
8298ac_ltlibobjs=
8299for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8300  # 1. Remove the extension, and $U if already installed.
8301  ac_i=`echo "$ac_i" |
8302         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8303  # 2. Add them.
8304  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8305  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8306done
8307LIBOBJS=$ac_libobjs
8308
8309LTLIBOBJS=$ac_ltlibobjs
8310
8311
8312if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8313  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8314Usually this means the macro was only invoked conditionally." >&5
8315echo "$as_me: error: conditional \"AMDEP\" was never defined.
8316Usually this means the macro was only invoked conditionally." >&2;}
8317   { (exit 1); exit 1; }; }
8318fi
8319if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8320  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8321Usually this means the macro was only invoked conditionally." >&5
8322echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8323Usually this means the macro was only invoked conditionally." >&2;}
8324   { (exit 1); exit 1; }; }
8325fi
8326if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8327  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8328Usually this means the macro was only invoked conditionally." >&5
8329echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8330Usually this means the macro was only invoked conditionally." >&2;}
8331   { (exit 1); exit 1; }; }
8332fi
8333if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8334  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8335Usually this means the macro was only invoked conditionally." >&5
8336echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8337Usually this means the macro was only invoked conditionally." >&2;}
8338   { (exit 1); exit 1; }; }
8339fi
8340if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
8341  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
8342Usually this means the macro was only invoked conditionally." >&5
8343echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined.
8344Usually this means the macro was only invoked conditionally." >&2;}
8345   { (exit 1); exit 1; }; }
8346fi
8347if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8348  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8349Usually this means the macro was only invoked conditionally." >&5
8350echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8351Usually this means the macro was only invoked conditionally." >&2;}
8352   { (exit 1); exit 1; }; }
8353fi
8354if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8355  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8356Usually this means the macro was only invoked conditionally." >&5
8357echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8358Usually this means the macro was only invoked conditionally." >&2;}
8359   { (exit 1); exit 1; }; }
8360fi
8361if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8362  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8363Usually this means the macro was only invoked conditionally." >&5
8364echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8365Usually this means the macro was only invoked conditionally." >&2;}
8366   { (exit 1); exit 1; }; }
8367fi
8368if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8369  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8370Usually this means the macro was only invoked conditionally." >&5
8371echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8372Usually this means the macro was only invoked conditionally." >&2;}
8373   { (exit 1); exit 1; }; }
8374fi
8375
8376: ${CONFIG_STATUS=./config.status}
8377ac_clean_files_save=$ac_clean_files
8378ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8379{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8380echo "$as_me: creating $CONFIG_STATUS" >&6;}
8381cat >$CONFIG_STATUS <<_ACEOF
8382#! $SHELL
8383# Generated by $as_me.
8384# Run this file to recreate the current configuration.
8385# Compiler output produced by configure, useful for debugging
8386# configure, is in config.log if it exists.
8387
8388debug=false
8389ac_cs_recheck=false
8390ac_cs_silent=false
8391SHELL=\${CONFIG_SHELL-$SHELL}
8392_ACEOF
8393
8394cat >>$CONFIG_STATUS <<\_ACEOF
8395## --------------------- ##
8396## M4sh Initialization.  ##
8397## --------------------- ##
8398
8399# Be Bourne compatible
8400if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8401  emulate sh
8402  NULLCMD=:
8403  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8404  # is contrary to our usage.  Disable this feature.
8405  alias -g '${1+"$@"}'='"$@"'
8406elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8407  set -o posix
8408fi
8409DUALCASE=1; export DUALCASE # for MKS sh
8410
8411# Support unset when possible.
8412if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8413  as_unset=unset
8414else
8415  as_unset=false
8416fi
8417
8418
8419# Work around bugs in pre-3.0 UWIN ksh.
8420$as_unset ENV MAIL MAILPATH
8421PS1='$ '
8422PS2='> '
8423PS4='+ '
8424
8425# NLS nuisances.
8426for as_var in \
8427  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8428  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8429  LC_TELEPHONE LC_TIME
8430do
8431  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8432    eval $as_var=C; export $as_var
8433  else
8434    $as_unset $as_var
8435  fi
8436done
8437
8438# Required to use basename.
8439if expr a : '\(a\)' >/dev/null 2>&1; then
8440  as_expr=expr
8441else
8442  as_expr=false
8443fi
8444
8445if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8446  as_basename=basename
8447else
8448  as_basename=false
8449fi
8450
8451
8452# Name of the executable.
8453as_me=`$as_basename "$0" ||
8454$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8455         X"$0" : 'X\(//\)$' \| \
8456         X"$0" : 'X\(/\)$' \| \
8457         .     : '\(.\)' 2>/dev/null ||
8458echo X/"$0" |
8459    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8460          /^X\/\(\/\/\)$/{ s//\1/; q; }
8461          /^X\/\(\/\).*/{ s//\1/; q; }
8462          s/.*/./; q'`
8463
8464
8465# PATH needs CR, and LINENO needs CR and PATH.
8466# Avoid depending upon Character Ranges.
8467as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8469as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8470as_cr_digits='0123456789'
8471as_cr_alnum=$as_cr_Letters$as_cr_digits
8472
8473# The user is always right.
8474if test "${PATH_SEPARATOR+set}" != set; then
8475  echo "#! /bin/sh" >conf$$.sh
8476  echo  "exit 0"   >>conf$$.sh
8477  chmod +x conf$$.sh
8478  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8479    PATH_SEPARATOR=';'
8480  else
8481    PATH_SEPARATOR=:
8482  fi
8483  rm -f conf$$.sh
8484fi
8485
8486
8487  as_lineno_1=$LINENO
8488  as_lineno_2=$LINENO
8489  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8490  test "x$as_lineno_1" != "x$as_lineno_2" &&
8491  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8492  # Find who we are.  Look in the path if we contain no path at all
8493  # relative or not.
8494  case $0 in
8495    *[\\/]* ) as_myself=$0 ;;
8496    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499  IFS=$as_save_IFS
8500  test -z "$as_dir" && as_dir=.
8501  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8502done
8503
8504       ;;
8505  esac
8506  # We did not find ourselves, most probably we were run as `sh COMMAND'
8507  # in which case we are not to be found in the path.
8508  if test "x$as_myself" = x; then
8509    as_myself=$0
8510  fi
8511  if test ! -f "$as_myself"; then
8512    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8513echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8514   { (exit 1); exit 1; }; }
8515  fi
8516  case $CONFIG_SHELL in
8517  '')
8518    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8520do
8521  IFS=$as_save_IFS
8522  test -z "$as_dir" && as_dir=.
8523  for as_base in sh bash ksh sh5; do
8524         case $as_dir in
8525         /*)
8526           if ("$as_dir/$as_base" -c '
8527  as_lineno_1=$LINENO
8528  as_lineno_2=$LINENO
8529  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8530  test "x$as_lineno_1" != "x$as_lineno_2" &&
8531  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8532             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8533             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8534             CONFIG_SHELL=$as_dir/$as_base
8535             export CONFIG_SHELL
8536             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8537           fi;;
8538         esac
8539       done
8540done
8541;;
8542  esac
8543
8544  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8545  # uniformly replaced by the line number.  The first 'sed' inserts a
8546  # line-number line before each line; the second 'sed' does the real
8547  # work.  The second script uses 'N' to pair each line-number line
8548  # with the numbered line, and appends trailing '-' during
8549  # substitution so that $LINENO is not a special case at line end.
8550  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8551  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8552  sed '=' <$as_myself |
8553    sed '
8554      N
8555      s,$,-,
8556      : loop
8557      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8558      t loop
8559      s,-$,,
8560      s,^['$as_cr_digits']*\n,,
8561    ' >$as_me.lineno &&
8562  chmod +x $as_me.lineno ||
8563    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8564echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8565   { (exit 1); exit 1; }; }
8566
8567  # Don't try to exec as it changes $[0], causing all sort of problems
8568  # (the dirname of $[0] is not the place where we might find the
8569  # original and so on.  Autoconf is especially sensible to this).
8570  . ./$as_me.lineno
8571  # Exit status is that of the last command.
8572  exit
8573}
8574
8575
8576case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8577  *c*,-n*) ECHO_N= ECHO_C='
8578' ECHO_T='      ' ;;
8579  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8580  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8581esac
8582
8583if expr a : '\(a\)' >/dev/null 2>&1; then
8584  as_expr=expr
8585else
8586  as_expr=false
8587fi
8588
8589rm -f conf$$ conf$$.exe conf$$.file
8590echo >conf$$.file
8591if ln -s conf$$.file conf$$ 2>/dev/null; then
8592  # We could just check for DJGPP; but this test a) works b) is more generic
8593  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8594  if test -f conf$$.exe; then
8595    # Don't use ln at all; we don't have any links
8596    as_ln_s='cp -p'
8597  else
8598    as_ln_s='ln -s'
8599  fi
8600elif ln conf$$.file conf$$ 2>/dev/null; then
8601  as_ln_s=ln
8602else
8603  as_ln_s='cp -p'
8604fi
8605rm -f conf$$ conf$$.exe conf$$.file
8606
8607if mkdir -p . 2>/dev/null; then
8608  as_mkdir_p=:
8609else
8610  test -d ./-p && rmdir ./-p
8611  as_mkdir_p=false
8612fi
8613
8614as_executable_p="test -f"
8615
8616# Sed expression to map a string onto a valid CPP name.
8617as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8618
8619# Sed expression to map a string onto a valid variable name.
8620as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8621
8622
8623# IFS
8624# We need space, tab and new line, in precisely that order.
8625as_nl='
8626'
8627IFS="   $as_nl"
8628
8629# CDPATH.
8630$as_unset CDPATH
8631
8632exec 6>&1
8633
8634# Open the log real soon, to keep \$[0] and so on meaningful, and to
8635# report actual input values of CONFIG_FILES etc. instead of their
8636# values after options handling.  Logging --version etc. is OK.
8637exec 5>>config.log
8638{
8639  echo
8640  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8641## Running $as_me. ##
8642_ASBOX
8643} >&5
8644cat >&5 <<_CSEOF
8645
8646This file was extended by orxonox $as_me 0.2.3-pre-alpha, which was
8647generated by GNU Autoconf 2.59.  Invocation command line was
8648
8649  CONFIG_FILES    = $CONFIG_FILES
8650  CONFIG_HEADERS  = $CONFIG_HEADERS
8651  CONFIG_LINKS    = $CONFIG_LINKS
8652  CONFIG_COMMANDS = $CONFIG_COMMANDS
8653  $ $0 $@
8654
8655_CSEOF
8656echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8657echo >&5
8658_ACEOF
8659
8660# Files that config.status was made for.
8661if test -n "$ac_config_files"; then
8662  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8663fi
8664
8665if test -n "$ac_config_headers"; then
8666  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8667fi
8668
8669if test -n "$ac_config_links"; then
8670  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8671fi
8672
8673if test -n "$ac_config_commands"; then
8674  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8675fi
8676
8677cat >>$CONFIG_STATUS <<\_ACEOF
8678
8679ac_cs_usage="\
8680\`$as_me' instantiates files from templates according to the
8681current configuration.
8682
8683Usage: $0 [OPTIONS] [FILE]...
8684
8685  -h, --help       print this help, then exit
8686  -V, --version    print version number, then exit
8687  -q, --quiet      do not print progress messages
8688  -d, --debug      don't remove temporary files
8689      --recheck    update $as_me by reconfiguring in the same conditions
8690  --file=FILE[:TEMPLATE]
8691                   instantiate the configuration file FILE
8692  --header=FILE[:TEMPLATE]
8693                   instantiate the configuration header FILE
8694
8695Configuration files:
8696$config_files
8697
8698Configuration headers:
8699$config_headers
8700
8701Configuration commands:
8702$config_commands
8703
8704Report bugs to <bug-autoconf@gnu.org>."
8705_ACEOF
8706
8707cat >>$CONFIG_STATUS <<_ACEOF
8708ac_cs_version="\\
8709orxonox config.status 0.2.3-pre-alpha
8710configured by $0, generated by GNU Autoconf 2.59,
8711  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8712
8713Copyright (C) 2003 Free Software Foundation, Inc.
8714This config.status script is free software; the Free Software Foundation
8715gives unlimited permission to copy, distribute and modify it."
8716srcdir=$srcdir
8717INSTALL="$INSTALL"
8718_ACEOF
8719
8720cat >>$CONFIG_STATUS <<\_ACEOF
8721# If no file are specified by the user, then we need to provide default
8722# value.  By we need to know if files were specified by the user.
8723ac_need_defaults=:
8724while test $# != 0
8725do
8726  case $1 in
8727  --*=*)
8728    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8729    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8730    ac_shift=:
8731    ;;
8732  -*)
8733    ac_option=$1
8734    ac_optarg=$2
8735    ac_shift=shift
8736    ;;
8737  *) # This is not an option, so the user has probably given explicit
8738     # arguments.
8739     ac_option=$1
8740     ac_need_defaults=false;;
8741  esac
8742
8743  case $ac_option in
8744  # Handling of the options.
8745_ACEOF
8746cat >>$CONFIG_STATUS <<\_ACEOF
8747  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8748    ac_cs_recheck=: ;;
8749  --version | --vers* | -V )
8750    echo "$ac_cs_version"; exit 0 ;;
8751  --he | --h)
8752    # Conflict between --help and --header
8753    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8754Try \`$0 --help' for more information." >&5
8755echo "$as_me: error: ambiguous option: $1
8756Try \`$0 --help' for more information." >&2;}
8757   { (exit 1); exit 1; }; };;
8758  --help | --hel | -h )
8759    echo "$ac_cs_usage"; exit 0 ;;
8760  --debug | --d* | -d )
8761    debug=: ;;
8762  --file | --fil | --fi | --f )
8763    $ac_shift
8764    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8765    ac_need_defaults=false;;
8766  --header | --heade | --head | --hea )
8767    $ac_shift
8768    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8769    ac_need_defaults=false;;
8770  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8771  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8772    ac_cs_silent=: ;;
8773
8774  # This is an error.
8775  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8776Try \`$0 --help' for more information." >&5
8777echo "$as_me: error: unrecognized option: $1
8778Try \`$0 --help' for more information." >&2;}
8779   { (exit 1); exit 1; }; } ;;
8780
8781  *) ac_config_targets="$ac_config_targets $1" ;;
8782
8783  esac
8784  shift
8785done
8786
8787ac_configure_extra_args=
8788
8789if $ac_cs_silent; then
8790  exec 6>/dev/null
8791  ac_configure_extra_args="$ac_configure_extra_args --silent"
8792fi
8793
8794_ACEOF
8795cat >>$CONFIG_STATUS <<_ACEOF
8796if \$ac_cs_recheck; then
8797  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8798  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8799fi
8800
8801_ACEOF
8802
8803cat >>$CONFIG_STATUS <<_ACEOF
8804#
8805# INIT-COMMANDS section.
8806#
8807
8808AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8809
8810_ACEOF
8811
8812
8813
8814cat >>$CONFIG_STATUS <<\_ACEOF
8815for ac_config_target in $ac_config_targets
8816do
8817  case "$ac_config_target" in
8818  # Handling of arguments.
8819  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8820  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8821  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
8822  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
8823  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
8824  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
8825  "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;;
8826  "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;;
8827  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
8828  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
8829  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8830  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8831  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8832echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8833   { (exit 1); exit 1; }; };;
8834  esac
8835done
8836
8837# If the user did not use the arguments to specify the items to instantiate,
8838# then the envvar interface is used.  Set only those that are not.
8839# We use the long form for the default assignment because of an extremely
8840# bizarre bug on SunOS 4.1.3.
8841if $ac_need_defaults; then
8842  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8843  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8844  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8845fi
8846
8847# Have a temporary directory for convenience.  Make it in the build tree
8848# simply because there is no reason to put it here, and in addition,
8849# creating and moving files from /tmp can sometimes cause problems.
8850# Create a temporary directory, and hook for its removal unless debugging.
8851$debug ||
8852{
8853  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8854  trap '{ (exit 1); exit 1; }' 1 2 13 15
8855}
8856
8857# Create a (secure) tmp directory for tmp files.
8858
8859{
8860  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8861  test -n "$tmp" && test -d "$tmp"
8862}  ||
8863{
8864  tmp=./confstat$$-$RANDOM
8865  (umask 077 && mkdir $tmp)
8866} ||
8867{
8868   echo "$me: cannot create a temporary directory in ." >&2
8869   { (exit 1); exit 1; }
8870}
8871
8872_ACEOF
8873
8874cat >>$CONFIG_STATUS <<_ACEOF
8875
8876#
8877# CONFIG_FILES section.
8878#
8879
8880# No need to generate the scripts if there are no CONFIG_FILES.
8881# This happens for instance when ./config.status config.h
8882if test -n "\$CONFIG_FILES"; then
8883  # Protect against being on the right side of a sed subst in config.status.
8884  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8885   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8886s,@SHELL@,$SHELL,;t t
8887s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8888s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8889s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8890s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8891s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8892s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8893s,@exec_prefix@,$exec_prefix,;t t
8894s,@prefix@,$prefix,;t t
8895s,@program_transform_name@,$program_transform_name,;t t
8896s,@bindir@,$bindir,;t t
8897s,@sbindir@,$sbindir,;t t
8898s,@libexecdir@,$libexecdir,;t t
8899s,@datadir@,$datadir,;t t
8900s,@sysconfdir@,$sysconfdir,;t t
8901s,@sharedstatedir@,$sharedstatedir,;t t
8902s,@localstatedir@,$localstatedir,;t t
8903s,@libdir@,$libdir,;t t
8904s,@includedir@,$includedir,;t t
8905s,@oldincludedir@,$oldincludedir,;t t
8906s,@infodir@,$infodir,;t t
8907s,@mandir@,$mandir,;t t
8908s,@build_alias@,$build_alias,;t t
8909s,@host_alias@,$host_alias,;t t
8910s,@target_alias@,$target_alias,;t t
8911s,@DEFS@,$DEFS,;t t
8912s,@ECHO_C@,$ECHO_C,;t t
8913s,@ECHO_N@,$ECHO_N,;t t
8914s,@ECHO_T@,$ECHO_T,;t t
8915s,@LIBS@,$LIBS,;t t
8916s,@build@,$build,;t t
8917s,@build_cpu@,$build_cpu,;t t
8918s,@build_vendor@,$build_vendor,;t t
8919s,@build_os@,$build_os,;t t
8920s,@host@,$host,;t t
8921s,@host_cpu@,$host_cpu,;t t
8922s,@host_vendor@,$host_vendor,;t t
8923s,@host_os@,$host_os,;t t
8924s,@target@,$target,;t t
8925s,@target_cpu@,$target_cpu,;t t
8926s,@target_vendor@,$target_vendor,;t t
8927s,@target_os@,$target_os,;t t
8928s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8929s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8930s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8931s,@CYGPATH_W@,$CYGPATH_W,;t t
8932s,@PACKAGE@,$PACKAGE,;t t
8933s,@VERSION@,$VERSION,;t t
8934s,@ACLOCAL@,$ACLOCAL,;t t
8935s,@AUTOCONF@,$AUTOCONF,;t t
8936s,@AUTOMAKE@,$AUTOMAKE,;t t
8937s,@AUTOHEADER@,$AUTOHEADER,;t t
8938s,@MAKEINFO@,$MAKEINFO,;t t
8939s,@AMTAR@,$AMTAR,;t t
8940s,@install_sh@,$install_sh,;t t
8941s,@STRIP@,$STRIP,;t t
8942s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8943s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8944s,@mkdir_p@,$mkdir_p,;t t
8945s,@AWK@,$AWK,;t t
8946s,@SET_MAKE@,$SET_MAKE,;t t
8947s,@am__leading_dot@,$am__leading_dot,;t t
8948s,@CXX@,$CXX,;t t
8949s,@CXXFLAGS@,$CXXFLAGS,;t t
8950s,@LDFLAGS@,$LDFLAGS,;t t
8951s,@CPPFLAGS@,$CPPFLAGS,;t t
8952s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8953s,@EXEEXT@,$EXEEXT,;t t
8954s,@OBJEXT@,$OBJEXT,;t t
8955s,@DEPDIR@,$DEPDIR,;t t
8956s,@am__include@,$am__include,;t t
8957s,@am__quote@,$am__quote,;t t
8958s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8959s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8960s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8961s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8962s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8963s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8964s,@RANLIB@,$RANLIB,;t t
8965s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8966s,@CC@,$CC,;t t
8967s,@CFLAGS@,$CFLAGS,;t t
8968s,@ac_ct_CC@,$ac_ct_CC,;t t
8969s,@CCDEPMODE@,$CCDEPMODE,;t t
8970s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8971s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8972s,@CPP@,$CPP,;t t
8973s,@EGREP@,$EGREP,;t t
8974s,@DEBUG@,$DEBUG,;t t
8975s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
8976s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
8977s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
8978s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
8979s,@DOXYGEN@,$DOXYGEN,;t t
8980s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8981s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8982s,@GPROF@,$GPROF,;t t
8983s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8984s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8985s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8986s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8987s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8988s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
8989s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
8990s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
8991s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
8992s,@CURL_LIBS@,$CURL_LIBS,;t t
8993s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
8994s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
8995s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
8996s,@LIBOBJS@,$LIBOBJS,;t t
8997s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8998CEOF
8999
9000_ACEOF
9001
9002  cat >>$CONFIG_STATUS <<\_ACEOF
9003  # Split the substitutions into bite-sized pieces for seds with
9004  # small command number limits, like on Digital OSF/1 and HP-UX.
9005  ac_max_sed_lines=48
9006  ac_sed_frag=1 # Number of current file.
9007  ac_beg=1 # First line for current file.
9008  ac_end=$ac_max_sed_lines # Line after last line for current file.
9009  ac_more_lines=:
9010  ac_sed_cmds=
9011  while $ac_more_lines; do
9012    if test $ac_beg -gt 1; then
9013      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9014    else
9015      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9016    fi
9017    if test ! -s $tmp/subs.frag; then
9018      ac_more_lines=false
9019    else
9020      # The purpose of the label and of the branching condition is to
9021      # speed up the sed processing (if there are no `@' at all, there
9022      # is no need to browse any of the substitutions).
9023      # These are the two extra sed commands mentioned above.
9024      (echo ':t
9025  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9026      if test -z "$ac_sed_cmds"; then
9027        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9028      else
9029        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9030      fi
9031      ac_sed_frag=`expr $ac_sed_frag + 1`
9032      ac_beg=$ac_end
9033      ac_end=`expr $ac_end + $ac_max_sed_lines`
9034    fi
9035  done
9036  if test -z "$ac_sed_cmds"; then
9037    ac_sed_cmds=cat
9038  fi
9039fi # test -n "$CONFIG_FILES"
9040
9041_ACEOF
9042cat >>$CONFIG_STATUS <<\_ACEOF
9043for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9044  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9045  case $ac_file in
9046  - | *:- | *:-:* ) # input from stdin
9047        cat >$tmp/stdin
9048        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9049        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9050  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9051        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9052  * )   ac_file_in=$ac_file.in ;;
9053  esac
9054
9055  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9056  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9057$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9058         X"$ac_file" : 'X\(//\)[^/]' \| \
9059         X"$ac_file" : 'X\(//\)$' \| \
9060         X"$ac_file" : 'X\(/\)' \| \
9061         .     : '\(.\)' 2>/dev/null ||
9062echo X"$ac_file" |
9063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9064          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9065          /^X\(\/\/\)$/{ s//\1/; q; }
9066          /^X\(\/\).*/{ s//\1/; q; }
9067          s/.*/./; q'`
9068  { if $as_mkdir_p; then
9069    mkdir -p "$ac_dir"
9070  else
9071    as_dir="$ac_dir"
9072    as_dirs=
9073    while test ! -d "$as_dir"; do
9074      as_dirs="$as_dir $as_dirs"
9075      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9076$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9077         X"$as_dir" : 'X\(//\)[^/]' \| \
9078         X"$as_dir" : 'X\(//\)$' \| \
9079         X"$as_dir" : 'X\(/\)' \| \
9080         .     : '\(.\)' 2>/dev/null ||
9081echo X"$as_dir" |
9082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9083          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9084          /^X\(\/\/\)$/{ s//\1/; q; }
9085          /^X\(\/\).*/{ s//\1/; q; }
9086          s/.*/./; q'`
9087    done
9088    test ! -n "$as_dirs" || mkdir $as_dirs
9089  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9090echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9091   { (exit 1); exit 1; }; }; }
9092
9093  ac_builddir=.
9094
9095if test "$ac_dir" != .; then
9096  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9097  # A "../" for each directory in $ac_dir_suffix.
9098  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9099else
9100  ac_dir_suffix= ac_top_builddir=
9101fi
9102
9103case $srcdir in
9104  .)  # No --srcdir option.  We are building in place.
9105    ac_srcdir=.
9106    if test -z "$ac_top_builddir"; then
9107       ac_top_srcdir=.
9108    else
9109       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9110    fi ;;
9111  [\\/]* | ?:[\\/]* )  # Absolute path.
9112    ac_srcdir=$srcdir$ac_dir_suffix;
9113    ac_top_srcdir=$srcdir ;;
9114  *) # Relative path.
9115    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9116    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9117esac
9118
9119# Do not use `cd foo && pwd` to compute absolute paths, because
9120# the directories may not exist.
9121case `pwd` in
9122.) ac_abs_builddir="$ac_dir";;
9123*)
9124  case "$ac_dir" in
9125  .) ac_abs_builddir=`pwd`;;
9126  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9127  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9128  esac;;
9129esac
9130case $ac_abs_builddir in
9131.) ac_abs_top_builddir=${ac_top_builddir}.;;
9132*)
9133  case ${ac_top_builddir}. in
9134  .) ac_abs_top_builddir=$ac_abs_builddir;;
9135  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9136  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9137  esac;;
9138esac
9139case $ac_abs_builddir in
9140.) ac_abs_srcdir=$ac_srcdir;;
9141*)
9142  case $ac_srcdir in
9143  .) ac_abs_srcdir=$ac_abs_builddir;;
9144  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9145  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9146  esac;;
9147esac
9148case $ac_abs_builddir in
9149.) ac_abs_top_srcdir=$ac_top_srcdir;;
9150*)
9151  case $ac_top_srcdir in
9152  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9153  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9154  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9155  esac;;
9156esac
9157
9158
9159  case $INSTALL in
9160  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9161  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9162  esac
9163
9164  if test x"$ac_file" != x-; then
9165    { echo "$as_me:$LINENO: creating $ac_file" >&5
9166echo "$as_me: creating $ac_file" >&6;}
9167    rm -f "$ac_file"
9168  fi
9169  # Let's still pretend it is `configure' which instantiates (i.e., don't
9170  # use $as_me), people would be surprised to read:
9171  #    /* config.h.  Generated by config.status.  */
9172  if test x"$ac_file" = x-; then
9173    configure_input=
9174  else
9175    configure_input="$ac_file.  "
9176  fi
9177  configure_input=$configure_input"Generated from `echo $ac_file_in |
9178                                     sed 's,.*/,,'` by configure."
9179
9180  # First look for the input files in the build tree, otherwise in the
9181  # src tree.
9182  ac_file_inputs=`IFS=:
9183    for f in $ac_file_in; do
9184      case $f in
9185      -) echo $tmp/stdin ;;
9186      [\\/$]*)
9187         # Absolute (can't be DOS-style, as IFS=:)
9188         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9189echo "$as_me: error: cannot find input file: $f" >&2;}
9190   { (exit 1); exit 1; }; }
9191         echo "$f";;
9192      *) # Relative
9193         if test -f "$f"; then
9194           # Build tree
9195           echo "$f"
9196         elif test -f "$srcdir/$f"; then
9197           # Source tree
9198           echo "$srcdir/$f"
9199         else
9200           # /dev/null tree
9201           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9202echo "$as_me: error: cannot find input file: $f" >&2;}
9203   { (exit 1); exit 1; }; }
9204         fi;;
9205      esac
9206    done` || { (exit 1); exit 1; }
9207_ACEOF
9208cat >>$CONFIG_STATUS <<_ACEOF
9209  sed "$ac_vpsub
9210$extrasub
9211_ACEOF
9212cat >>$CONFIG_STATUS <<\_ACEOF
9213:t
9214/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9215s,@configure_input@,$configure_input,;t t
9216s,@srcdir@,$ac_srcdir,;t t
9217s,@abs_srcdir@,$ac_abs_srcdir,;t t
9218s,@top_srcdir@,$ac_top_srcdir,;t t
9219s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9220s,@builddir@,$ac_builddir,;t t
9221s,@abs_builddir@,$ac_abs_builddir,;t t
9222s,@top_builddir@,$ac_top_builddir,;t t
9223s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9224s,@INSTALL@,$ac_INSTALL,;t t
9225" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9226  rm -f $tmp/stdin
9227  if test x"$ac_file" != x-; then
9228    mv $tmp/out $ac_file
9229  else
9230    cat $tmp/out
9231    rm -f $tmp/out
9232  fi
9233
9234done
9235_ACEOF
9236cat >>$CONFIG_STATUS <<\_ACEOF
9237
9238#
9239# CONFIG_HEADER section.
9240#
9241
9242# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9243# NAME is the cpp macro being defined and VALUE is the value it is being given.
9244#
9245# ac_d sets the value in "#define NAME VALUE" lines.
9246ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9247ac_dB='[         ].*$,\1#\2'
9248ac_dC=' '
9249ac_dD=',;t'
9250# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9251ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9252ac_uB='$,\1#\2define\3'
9253ac_uC=' '
9254ac_uD=',;t'
9255
9256for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9257  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9258  case $ac_file in
9259  - | *:- | *:-:* ) # input from stdin
9260        cat >$tmp/stdin
9261        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9262        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9263  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9264        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9265  * )   ac_file_in=$ac_file.in ;;
9266  esac
9267
9268  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9269echo "$as_me: creating $ac_file" >&6;}
9270
9271  # First look for the input files in the build tree, otherwise in the
9272  # src tree.
9273  ac_file_inputs=`IFS=:
9274    for f in $ac_file_in; do
9275      case $f in
9276      -) echo $tmp/stdin ;;
9277      [\\/$]*)
9278         # Absolute (can't be DOS-style, as IFS=:)
9279         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9280echo "$as_me: error: cannot find input file: $f" >&2;}
9281   { (exit 1); exit 1; }; }
9282         # Do quote $f, to prevent DOS paths from being IFS'd.
9283         echo "$f";;
9284      *) # Relative
9285         if test -f "$f"; then
9286           # Build tree
9287           echo "$f"
9288         elif test -f "$srcdir/$f"; then
9289           # Source tree
9290           echo "$srcdir/$f"
9291         else
9292           # /dev/null tree
9293           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9294echo "$as_me: error: cannot find input file: $f" >&2;}
9295   { (exit 1); exit 1; }; }
9296         fi;;
9297      esac
9298    done` || { (exit 1); exit 1; }
9299  # Remove the trailing spaces.
9300  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9301
9302_ACEOF
9303
9304# Transform confdefs.h into two sed scripts, `conftest.defines' and
9305# `conftest.undefs', that substitutes the proper values into
9306# config.h.in to produce config.h.  The first handles `#define'
9307# templates, and the second `#undef' templates.
9308# And first: Protect against being on the right side of a sed subst in
9309# config.status.  Protect against being in an unquoted here document
9310# in config.status.
9311rm -f conftest.defines conftest.undefs
9312# Using a here document instead of a string reduces the quoting nightmare.
9313# Putting comments in sed scripts is not portable.
9314#
9315# `end' is used to avoid that the second main sed command (meant for
9316# 0-ary CPP macros) applies to n-ary macro definitions.
9317# See the Autoconf documentation for `clear'.
9318cat >confdef2sed.sed <<\_ACEOF
9319s/[\\&,]/\\&/g
9320s,[\\$`],\\&,g
9321t clear
9322: clear
9323s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9324t end
9325s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9326: end
9327_ACEOF
9328# If some macros were called several times there might be several times
9329# the same #defines, which is useless.  Nevertheless, we may not want to
9330# sort them, since we want the *last* AC-DEFINE to be honored.
9331uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9332sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9333rm -f confdef2sed.sed
9334
9335# This sed command replaces #undef with comments.  This is necessary, for
9336# example, in the case of _POSIX_SOURCE, which is predefined and required
9337# on some systems where configure will not decide to define it.
9338cat >>conftest.undefs <<\_ACEOF
9339s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9340_ACEOF
9341
9342# Break up conftest.defines because some shells have a limit on the size
9343# of here documents, and old seds have small limits too (100 cmds).
9344echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9345echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9346echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9347echo '  :' >>$CONFIG_STATUS
9348rm -f conftest.tail
9349while grep . conftest.defines >/dev/null
9350do
9351  # Write a limited-size here document to $tmp/defines.sed.
9352  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9353  # Speed up: don't consider the non `#define' lines.
9354  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9355  # Work around the forget-to-reset-the-flag bug.
9356  echo 't clr' >>$CONFIG_STATUS
9357  echo ': clr' >>$CONFIG_STATUS
9358  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9359  echo 'CEOF
9360  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9361  rm -f $tmp/in
9362  mv $tmp/out $tmp/in
9363' >>$CONFIG_STATUS
9364  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9365  rm -f conftest.defines
9366  mv conftest.tail conftest.defines
9367done
9368rm -f conftest.defines
9369echo '  fi # grep' >>$CONFIG_STATUS
9370echo >>$CONFIG_STATUS
9371
9372# Break up conftest.undefs because some shells have a limit on the size
9373# of here documents, and old seds have small limits too (100 cmds).
9374echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9375rm -f conftest.tail
9376while grep . conftest.undefs >/dev/null
9377do
9378  # Write a limited-size here document to $tmp/undefs.sed.
9379  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9380  # Speed up: don't consider the non `#undef'
9381  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9382  # Work around the forget-to-reset-the-flag bug.
9383  echo 't clr' >>$CONFIG_STATUS
9384  echo ': clr' >>$CONFIG_STATUS
9385  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9386  echo 'CEOF
9387  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9388  rm -f $tmp/in
9389  mv $tmp/out $tmp/in
9390' >>$CONFIG_STATUS
9391  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9392  rm -f conftest.undefs
9393  mv conftest.tail conftest.undefs
9394done
9395rm -f conftest.undefs
9396
9397cat >>$CONFIG_STATUS <<\_ACEOF
9398  # Let's still pretend it is `configure' which instantiates (i.e., don't
9399  # use $as_me), people would be surprised to read:
9400  #    /* config.h.  Generated by config.status.  */
9401  if test x"$ac_file" = x-; then
9402    echo "/* Generated by configure.  */" >$tmp/config.h
9403  else
9404    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9405  fi
9406  cat $tmp/in >>$tmp/config.h
9407  rm -f $tmp/in
9408  if test x"$ac_file" != x-; then
9409    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9410      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9411echo "$as_me: $ac_file is unchanged" >&6;}
9412    else
9413      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9414$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9415         X"$ac_file" : 'X\(//\)[^/]' \| \
9416         X"$ac_file" : 'X\(//\)$' \| \
9417         X"$ac_file" : 'X\(/\)' \| \
9418         .     : '\(.\)' 2>/dev/null ||
9419echo X"$ac_file" |
9420    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9421          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9422          /^X\(\/\/\)$/{ s//\1/; q; }
9423          /^X\(\/\).*/{ s//\1/; q; }
9424          s/.*/./; q'`
9425      { if $as_mkdir_p; then
9426    mkdir -p "$ac_dir"
9427  else
9428    as_dir="$ac_dir"
9429    as_dirs=
9430    while test ! -d "$as_dir"; do
9431      as_dirs="$as_dir $as_dirs"
9432      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9433$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9434         X"$as_dir" : 'X\(//\)[^/]' \| \
9435         X"$as_dir" : 'X\(//\)$' \| \
9436         X"$as_dir" : 'X\(/\)' \| \
9437         .     : '\(.\)' 2>/dev/null ||
9438echo X"$as_dir" |
9439    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9440          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9441          /^X\(\/\/\)$/{ s//\1/; q; }
9442          /^X\(\/\).*/{ s//\1/; q; }
9443          s/.*/./; q'`
9444    done
9445    test ! -n "$as_dirs" || mkdir $as_dirs
9446  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9447echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9448   { (exit 1); exit 1; }; }; }
9449
9450      rm -f $ac_file
9451      mv $tmp/config.h $ac_file
9452    fi
9453  else
9454    cat $tmp/config.h
9455    rm -f $tmp/config.h
9456  fi
9457# Compute $ac_file's index in $config_headers.
9458_am_stamp_count=1
9459for _am_header in $config_headers :; do
9460  case $_am_header in
9461    $ac_file | $ac_file:* )
9462      break ;;
9463    * )
9464      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9465  esac
9466done
9467echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9468$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9469         X$ac_file : 'X\(//\)[^/]' \| \
9470         X$ac_file : 'X\(//\)$' \| \
9471         X$ac_file : 'X\(/\)' \| \
9472         .     : '\(.\)' 2>/dev/null ||
9473echo X$ac_file |
9474    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9475          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9476          /^X\(\/\/\)$/{ s//\1/; q; }
9477          /^X\(\/\).*/{ s//\1/; q; }
9478          s/.*/./; q'`/stamp-h$_am_stamp_count
9479done
9480_ACEOF
9481cat >>$CONFIG_STATUS <<\_ACEOF
9482
9483#
9484# CONFIG_COMMANDS section.
9485#
9486for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9487  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9488  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9489  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9490$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9491         X"$ac_dest" : 'X\(//\)[^/]' \| \
9492         X"$ac_dest" : 'X\(//\)$' \| \
9493         X"$ac_dest" : 'X\(/\)' \| \
9494         .     : '\(.\)' 2>/dev/null ||
9495echo X"$ac_dest" |
9496    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9497          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9498          /^X\(\/\/\)$/{ s//\1/; q; }
9499          /^X\(\/\).*/{ s//\1/; q; }
9500          s/.*/./; q'`
9501  { if $as_mkdir_p; then
9502    mkdir -p "$ac_dir"
9503  else
9504    as_dir="$ac_dir"
9505    as_dirs=
9506    while test ! -d "$as_dir"; do
9507      as_dirs="$as_dir $as_dirs"
9508      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9510         X"$as_dir" : 'X\(//\)[^/]' \| \
9511         X"$as_dir" : 'X\(//\)$' \| \
9512         X"$as_dir" : 'X\(/\)' \| \
9513         .     : '\(.\)' 2>/dev/null ||
9514echo X"$as_dir" |
9515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9516          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9517          /^X\(\/\/\)$/{ s//\1/; q; }
9518          /^X\(\/\).*/{ s//\1/; q; }
9519          s/.*/./; q'`
9520    done
9521    test ! -n "$as_dirs" || mkdir $as_dirs
9522  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9523echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9524   { (exit 1); exit 1; }; }; }
9525
9526  ac_builddir=.
9527
9528if test "$ac_dir" != .; then
9529  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9530  # A "../" for each directory in $ac_dir_suffix.
9531  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9532else
9533  ac_dir_suffix= ac_top_builddir=
9534fi
9535
9536case $srcdir in
9537  .)  # No --srcdir option.  We are building in place.
9538    ac_srcdir=.
9539    if test -z "$ac_top_builddir"; then
9540       ac_top_srcdir=.
9541    else
9542       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9543    fi ;;
9544  [\\/]* | ?:[\\/]* )  # Absolute path.
9545    ac_srcdir=$srcdir$ac_dir_suffix;
9546    ac_top_srcdir=$srcdir ;;
9547  *) # Relative path.
9548    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9549    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9550esac
9551
9552# Do not use `cd foo && pwd` to compute absolute paths, because
9553# the directories may not exist.
9554case `pwd` in
9555.) ac_abs_builddir="$ac_dir";;
9556*)
9557  case "$ac_dir" in
9558  .) ac_abs_builddir=`pwd`;;
9559  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9560  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9561  esac;;
9562esac
9563case $ac_abs_builddir in
9564.) ac_abs_top_builddir=${ac_top_builddir}.;;
9565*)
9566  case ${ac_top_builddir}. in
9567  .) ac_abs_top_builddir=$ac_abs_builddir;;
9568  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9569  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9570  esac;;
9571esac
9572case $ac_abs_builddir in
9573.) ac_abs_srcdir=$ac_srcdir;;
9574*)
9575  case $ac_srcdir in
9576  .) ac_abs_srcdir=$ac_abs_builddir;;
9577  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9578  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9579  esac;;
9580esac
9581case $ac_abs_builddir in
9582.) ac_abs_top_srcdir=$ac_top_srcdir;;
9583*)
9584  case $ac_top_srcdir in
9585  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9586  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9587  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9588  esac;;
9589esac
9590
9591
9592  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9593echo "$as_me: executing $ac_dest commands" >&6;}
9594  case $ac_dest in
9595    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9596  # Strip MF so we end up with the name of the file.
9597  mf=`echo "$mf" | sed -e 's/:.*$//'`
9598  # Check whether this is an Automake generated Makefile or not.
9599  # We used to match only the files named `Makefile.in', but
9600  # some people rename them; so instead we look at the file content.
9601  # Grep'ing the first line is not enough: some people post-process
9602  # each Makefile.in and add a new line on top of each file to say so.
9603  # So let's grep whole file.
9604  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9605    dirpart=`(dirname "$mf") 2>/dev/null ||
9606$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9607         X"$mf" : 'X\(//\)[^/]' \| \
9608         X"$mf" : 'X\(//\)$' \| \
9609         X"$mf" : 'X\(/\)' \| \
9610         .     : '\(.\)' 2>/dev/null ||
9611echo X"$mf" |
9612    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9613          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9614          /^X\(\/\/\)$/{ s//\1/; q; }
9615          /^X\(\/\).*/{ s//\1/; q; }
9616          s/.*/./; q'`
9617  else
9618    continue
9619  fi
9620  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9621  # Extract the definition of DEP_FILES from the Makefile without
9622  # running `make'.
9623  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9624  test -z "$DEPDIR" && continue
9625  # When using ansi2knr, U may be empty or an underscore; expand it
9626  U=`sed -n 's/^U = //p' < "$mf"`
9627  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9628  # We invoke sed twice because it is the simplest approach to
9629  # changing $(DEPDIR) to its actual value in the expansion.
9630  for file in `sed -n '
9631    /^DEP_FILES = .*\\\\$/ {
9632      s/^DEP_FILES = //
9633      :loop
9634        s/\\\\$//
9635        p
9636        n
9637        /\\\\$/ b loop
9638      p
9639    }
9640    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9641       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9642    # Make sure the directory exists.
9643    test -f "$dirpart/$file" && continue
9644    fdir=`(dirname "$file") 2>/dev/null ||
9645$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9646         X"$file" : 'X\(//\)[^/]' \| \
9647         X"$file" : 'X\(//\)$' \| \
9648         X"$file" : 'X\(/\)' \| \
9649         .     : '\(.\)' 2>/dev/null ||
9650echo X"$file" |
9651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9652          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9653          /^X\(\/\/\)$/{ s//\1/; q; }
9654          /^X\(\/\).*/{ s//\1/; q; }
9655          s/.*/./; q'`
9656    { if $as_mkdir_p; then
9657    mkdir -p $dirpart/$fdir
9658  else
9659    as_dir=$dirpart/$fdir
9660    as_dirs=
9661    while test ! -d "$as_dir"; do
9662      as_dirs="$as_dir $as_dirs"
9663      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9665         X"$as_dir" : 'X\(//\)[^/]' \| \
9666         X"$as_dir" : 'X\(//\)$' \| \
9667         X"$as_dir" : 'X\(/\)' \| \
9668         .     : '\(.\)' 2>/dev/null ||
9669echo X"$as_dir" |
9670    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9671          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9672          /^X\(\/\/\)$/{ s//\1/; q; }
9673          /^X\(\/\).*/{ s//\1/; q; }
9674          s/.*/./; q'`
9675    done
9676    test ! -n "$as_dirs" || mkdir $as_dirs
9677  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9678echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9679   { (exit 1); exit 1; }; }; }
9680
9681    # echo "creating $dirpart/$file"
9682    echo '# dummy' > "$dirpart/$file"
9683  done
9684done
9685 ;;
9686  esac
9687done
9688_ACEOF
9689
9690cat >>$CONFIG_STATUS <<\_ACEOF
9691
9692{ (exit 0); exit 0; }
9693_ACEOF
9694chmod +x $CONFIG_STATUS
9695ac_clean_files=$ac_clean_files_save
9696
9697
9698# configure is writing to config.log, and then calls config.status.
9699# config.status does its own redirection, appending to config.log.
9700# Unfortunately, on DOS this fails, as config.log is still kept open
9701# by configure, so config.status won't be able to write to it; its
9702# output is simply discarded.  So we exec the FD to /dev/null,
9703# effectively closing config.log, so it can be properly (re)opened and
9704# appended to by config.status.  When coming back to configure, we
9705# need to make the FD available again.
9706if test "$no_create" != yes; then
9707  ac_cs_success=:
9708  ac_config_status_args=
9709  test "$silent" = yes &&
9710    ac_config_status_args="$ac_config_status_args --quiet"
9711  exec 5>/dev/null
9712  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9713  exec 5>>config.log
9714  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9715  # would make configure fail if this is the last instruction.
9716  $ac_cs_success || { (exit 1); exit 1; }
9717fi
9718
Note: See TracBrowser for help on using the repository browser.