Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/sound/configure @ 2775

Last change on this file since 2775 was 2627, checked in by bensch, 20 years ago

orxonox/trunk: deleted obsolete glut includings

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