Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3159 was 3140, checked in by bensch, 20 years ago

orxonox/trunk: merged branches/images back into the trunk.
merged with command: svn merge bensches/images/ trunk/ -r 3084:HEAD

Conflicts in configure/.ac

resolved in favor of branches/images (newer)

Mayor differences:

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