Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: changed to automake-1.8 and made it windows-compatible again. I sure hope, taht it works now, or else…

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