Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3100 was 3100, checked in by bensch, 19 years ago

orxonox/trunk: ability to disable GTK with ./configure —disable-gtk

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