Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/updater/configure @ 3271

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

orxonox/branches/updater: threads are cool after all. trying again.

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