Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: DEBUG implemented in the configure-files

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