Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/osX/configure @ 2984

Last change on this file since 2984 was 2984, checked in by nico, 20 years ago

orxonox/branches/osX: refitted to osX

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