Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: fix for configure.ac checks one header before checking system headers. Now works better.

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