Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: now the posipility to #ifdef HAVE_GTK2 …. #endif exists. like this one can exclude GTK from a program

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