Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: new Version number set.
V0.2.2-pre-alpha

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