Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/john/configure @ 2624

Last change on this file since 2624 was 2018, checked in by bensch, 21 years ago

orxonox/trunk: merged guicc and the new Configure.ac to the Trunk. Now I have to Check if everything compiles on windows.

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