Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: made adjustments to configure.ac, that should make the trik with windows

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