1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for alienarena 7.66.
4#
5# Report bugs to <alienrace@comcast.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: alienrace@comcast.net about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='alienarena'
582PACKAGE_TARNAME='alienarena'
583PACKAGE_VERSION='7.66'
584PACKAGE_STRING='alienarena 7.66'
585PACKAGE_BUGREPORT='alienrace@comcast.net'
586PACKAGE_URL=''
587
588ac_unique_file="source/ref_gl/r_image.h"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_header_list=
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629ALLOCA
630LIBOBJS
631EGREP
632GREP
633USE_SYSTEM_LIBODE_FALSE
634USE_SYSTEM_LIBODE_TRUE
635WIN32_LIBS
636DEPS_LIBS
637DEPS_CFLAGS
638ODE_LIBS
639ODE_CFLAGS
640XXF86DGA_LIBS
641XXF86DGA_CFLAGS
642XXF86VM_LIBS
643XXF86VM_CFLAGS
644X11_LIBS
645X11_CFLAGS
646ZLIB_LIBS
647ZLIB_CFLAGS
648PTHREAD_CFLAGS
649PTHREAD_LIBS
650PTHREAD_CC
651ax_pthread_config
652ALIENARENA_HOMEDIR
653icondir
654INSTALL_DOCS_FALSE
655INSTALL_DOCS_TRUE
656ALTERNATE_INSTALL_FALSE
657ALTERNATE_INSTALL_TRUE
658BUILD_CLIENT_FALSE
659BUILD_CLIENT_TRUE
660GL_LIBDIR
661XMKMF
662BUILD_UNIX_FALSE
663BUILD_UNIX_TRUE
664BUILD_WIN32_FALSE
665BUILD_WIN32_TRUE
666PKG_CONFIG_LIBDIR
667PKG_CONFIG_PATH
668PKG_CONFIG
669RANLIB
670LN_S
671CPP
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675ac_ct_CC
676CFLAGS
677CC
678am__fastdepCXX_FALSE
679am__fastdepCXX_TRUE
680CXXDEPMODE
681am__nodep
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__quote
686am__include
687DEPDIR
688OBJEXT
689EXEEXT
690ac_ct_CXX
691CPPFLAGS
692LDFLAGS
693CXXFLAGS
694CXX
695host_os
696host_vendor
697host_cpu
698host
699build_os
700build_vendor
701build_cpu
702build
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774enable_silent_rules
775enable_maintainer_mode
776enable_dependency_tracking
777with_x
778enable_client
779enable_alternate_install
780enable_ansi_color
781with_system_libode
782enable_documents
783with_icondir
784with_zlib
785with_xf86vm
786with_xf86dga
787enable_build_status
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CXX
793CXXFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CCC
798CC
799CFLAGS
800CPP
801PKG_CONFIG
802PKG_CONFIG_PATH
803PKG_CONFIG_LIBDIR
804XMKMF
805GL_LIBDIR
806ALIENARENA_HOMEDIR
807ZLIB_CFLAGS
808ZLIB_LIBS
809X11_CFLAGS
810X11_LIBS
811XXF86VM_CFLAGS
812XXF86VM_LIBS
813XXF86DGA_CFLAGS
814XXF86DGA_LIBS
815ODE_CFLAGS
816ODE_LIBS
817DEPS_CFLAGS
818DEPS_LIBS'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures alienarena 7.66 to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/alienarena]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421X features:
1422  --x-includes=DIR    X include files are in DIR
1423  --x-libraries=DIR   X library files are in DIR
1424
1425System types:
1426  --build=BUILD     configure for building on BUILD [guessed]
1427  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432  case $ac_init_help in
1433     short | recursive ) echo "Configuration of alienarena 7.66:";;
1434   esac
1435  cat <<\_ACEOF
1436
1437Optional Features:
1438  --disable-option-checking  ignore unrecognized --enable/--with options
1439  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1440  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1441  --enable-silent-rules   less verbose build output (undo: "make V=1")
1442  --disable-silent-rules  verbose build output (undo: "make V=0")
1443  --enable-maintainer-mode
1444                          enable make rules and dependencies not useful (and
1445                          sometimes confusing) to the casual installer
1446  --enable-dependency-tracking
1447                          do not reject slow dependency extractors
1448  --disable-dependency-tracking
1449                          speeds up one-time build
1450  --disable-client        build dedicated server only, not the client
1451                          (default:no)
1452  --enable-alternate-install
1453                          traditional single directory, in-place installation
1454                          (default:no)
1455  --enable-ansi-color     ANSI terminal color (default: no)
1456  --disable-documents     Disable document installation (default: no)
1457  --disable-build-status  hide the status message at the end of the
1458                          configuration script (default:no)
1459
1460Optional Packages:
1461  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1462  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1463  --with-x                use the X Window System
1464  --with(out)-system-libode
1465                          use system-supplied libode (default:without)
1466  --with-icondir=DIR      icon install directory (default:DATADIR/icons)
1467  --with(out)-zlib        include Zlib compression support (default: check)
1468  --with(out)-xf86vm      include XF86 VidMode support (default: check)
1469  --with(out)-xf86dga     include XF86 DGA support (default: without)
1470
1471Some influential environment variables:
1472  CXX         C++ compiler command
1473  CXXFLAGS    C++ compiler flags
1474  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1475              nonstandard directory <lib dir>
1476  LIBS        libraries to pass to the linker, e.g. -l<library>
1477  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478              you have headers in a nonstandard directory <include dir>
1479  CC          C compiler command
1480  CFLAGS      C compiler flags
1481  CPP         C preprocessor
1482  PKG_CONFIG  path to pkg-config utility
1483  PKG_CONFIG_PATH
1484              directories to add to pkg-config's search path
1485  PKG_CONFIG_LIBDIR
1486              path overriding pkg-config's built-in search path
1487  XMKMF       Path to xmkmf, Makefile generator for X Window System
1488  GL_LIBDIR   directory containing libGL.dylib
1489  ALIENARENA_HOMEDIR
1490              User data and cfg subdirectory in $HOME
1491  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1492  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1493  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1494  X11_LIBS    linker flags for X11, overriding pkg-config
1495  XXF86VM_CFLAGS
1496              C compiler flags for XXF86VM, overriding pkg-config
1497  XXF86VM_LIBS
1498              linker flags for XXF86VM, overriding pkg-config
1499  XXF86DGA_CFLAGS
1500              C compiler flags for XXF86DGA, overriding pkg-config
1501  XXF86DGA_LIBS
1502              linker flags for XXF86DGA, overriding pkg-config
1503  ODE_CFLAGS  C compiler flags for ODE, overriding pkg-config
1504  ODE_LIBS    linker flags for ODE, overriding pkg-config
1505  DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
1506  DEPS_LIBS   linker flags for DEPS, overriding pkg-config
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to <alienrace@comcast.net>.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517  # If there are subdirs, report their specific --help.
1518  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519    test -d "$ac_dir" ||
1520      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521      continue
1522    ac_builddir=.
1523
1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
1527  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528  # A ".." for each directory in $ac_dir_suffix.
1529  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530  case $ac_top_builddir_sub in
1531  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533  esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
1539
1540case $srcdir in
1541  .)  # We are building in place.
1542    ac_srcdir=.
1543    ac_top_srcdir=$ac_top_builddir_sub
1544    ac_abs_top_srcdir=$ac_pwd ;;
1545  [\\/]* | ?:[\\/]* )  # Absolute name.
1546    ac_srcdir=$srcdir$ac_dir_suffix;
1547    ac_top_srcdir=$srcdir
1548    ac_abs_top_srcdir=$srcdir ;;
1549  *) # Relative name.
1550    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551    ac_top_srcdir=$ac_top_build_prefix$srcdir
1552    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553esac
1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556    cd "$ac_dir" || { ac_status=$?; continue; }
1557    # Check for guested configure.
1558    if test -f "$ac_srcdir/configure.gnu"; then
1559      echo &&
1560      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561    elif test -f "$ac_srcdir/configure"; then
1562      echo &&
1563      $SHELL "$ac_srcdir/configure" --help=recursive
1564    else
1565      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566    fi || ac_status=$?
1567    cd "$ac_pwd" || { ac_status=$?; break; }
1568  done
1569fi
1570
1571test -n "$ac_init_help" && exit $ac_status
1572if $ac_init_version; then
1573  cat <<\_ACEOF
1574alienarena configure 7.66
1575generated by GNU Autoconf 2.69
1576
1577Copyright (C) 2012 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581  exit
1582fi
1583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588# ac_fn_cxx_try_compile LINENO
1589# ----------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_cxx_try_compile ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  rm -f conftest.$ac_objext
1595  if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598  *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602  (eval "$ac_compile") 2>conftest.err
1603  ac_status=$?
1604  if test -s conftest.err; then
1605    grep -v '^ *+' conftest.err >conftest.er1
1606    cat conftest.er1 >&5
1607    mv -f conftest.er1 conftest.err
1608  fi
1609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610  test $ac_status = 0; } && {
1611	 test -z "$ac_cxx_werror_flag" ||
1612	 test ! -s conftest.err
1613       } && test -s conftest.$ac_objext; then :
1614  ac_retval=0
1615else
1616  $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619	ac_retval=1
1620fi
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622  as_fn_set_status $ac_retval
1623
1624} # ac_fn_cxx_try_compile
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  rm -f conftest.$ac_objext
1633  if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_compile") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && {
1649	 test -z "$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       } && test -s conftest.$ac_objext; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657	ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_compile
1663
1664# ac_fn_c_try_cpp LINENO
1665# ----------------------
1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_cpp ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  if { { ac_try="$ac_cpp conftest.$ac_ext"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } > conftest.i && {
1686	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       }; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694    ac_retval=1
1695fi
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_cpp
1700
1701# ac_fn_c_try_link LINENO
1702# -----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_link ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  rm -f conftest.$ac_objext conftest$ac_exeext
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } && {
1724	 test -z "$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       } && test -s conftest$ac_exeext && {
1727	 test "$cross_compiling" = yes ||
1728	 test -x conftest$ac_exeext
1729       }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735	ac_retval=1
1736fi
1737  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739  # interfere with the next link command; also delete a directory that is
1740  # left behind by Apple's compiler.  We do this before executing the actions.
1741  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743  as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_link
1746
1747# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists and can be compiled using the include files in
1750# INCLUDES, setting the cache variable VAR accordingly.
1751ac_fn_c_check_header_compile ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if eval \${$3+:} false; then :
1757  $as_echo_n "(cached) " >&6
1758else
1759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h.  */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765  eval "$3=yes"
1766else
1767  eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_c_check_header_compile
1777
1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781# the include files in INCLUDES and setting the cache variable VAR
1782# accordingly.
1783ac_fn_c_check_header_mongrel ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  if eval \${$3+:} false; then :
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790  $as_echo_n "(cached) " >&6
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795else
1796  # Is the header compilable?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798$as_echo_n "checking $2 usability... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805  ac_header_compiler=yes
1806else
1807  ac_header_compiler=no
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811$as_echo "$ac_header_compiler" >&6; }
1812
1813# Is the header present?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815$as_echo_n "checking $2 presence... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_cpp "$LINENO"; then :
1821  ac_header_preproc=yes
1822else
1823  ac_header_preproc=no
1824fi
1825rm -f conftest.err conftest.i conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827$as_echo "$ac_header_preproc" >&6; }
1828
1829# So?  What about this header?
1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831  yes:no: )
1832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836    ;;
1837  no:yes:* )
1838    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1841$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1845$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848( $as_echo "## ------------------------------------ ##
1849## Report this to alienrace@comcast.net ##
1850## ------------------------------------ ##"
1851     ) | sed "s/^/$as_me: WARNING:     /" >&2
1852    ;;
1853esac
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  eval "$3=\$ac_header_compiler"
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864fi
1865  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866
1867} # ac_fn_c_check_header_mongrel
1868
1869# ac_fn_c_try_run LINENO
1870# ----------------------
1871# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872# that executables *can* be run.
1873ac_fn_c_try_run ()
1874{
1875  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876  if { { ac_try="$ac_link"
1877case "(($ac_try" in
1878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879  *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883  (eval "$ac_link") 2>&5
1884  ac_status=$?
1885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887  { { case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_try") 2>&5
1894  ac_status=$?
1895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896  test $ac_status = 0; }; }; then :
1897  ac_retval=0
1898else
1899  $as_echo "$as_me: program exited with status $ac_status" >&5
1900       $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903       ac_retval=$ac_status
1904fi
1905  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907  as_fn_set_status $ac_retval
1908
1909} # ac_fn_c_try_run
1910
1911# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1912# -------------------------------------------
1913# Tests whether TYPE exists after having included INCLUDES, setting cache
1914# variable VAR accordingly.
1915ac_fn_c_check_type ()
1916{
1917  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  eval "$3=no"
1924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h.  */
1926$4
1927int
1928main ()
1929{
1930if (sizeof ($2))
1931	 return 0;
1932  ;
1933  return 0;
1934}
1935_ACEOF
1936if ac_fn_c_try_compile "$LINENO"; then :
1937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940int
1941main ()
1942{
1943if (sizeof (($2)))
1944	    return 0;
1945  ;
1946  return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950
1951else
1952  eval "$3=yes"
1953fi
1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957fi
1958eval ac_res=\$$3
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963} # ac_fn_c_check_type
1964
1965# ac_fn_c_find_intX_t LINENO BITS VAR
1966# -----------------------------------
1967# Finds a signed integer type with width BITS, setting cache variable VAR
1968# accordingly.
1969ac_fn_c_find_intX_t ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1973$as_echo_n "checking for int$2_t... " >&6; }
1974if eval \${$3+:} false; then :
1975  $as_echo_n "(cached) " >&6
1976else
1977  eval "$3=no"
1978     # Order is important - never check a type that is potentially smaller
1979     # than half of the expected target width.
1980     for ac_type in int$2_t 'int' 'long int' \
1981	 'long long int' 'short int' 'signed char'; do
1982       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h.  */
1984$ac_includes_default
1985	     enum { N = $2 / 2 - 1 };
1986int
1987main ()
1988{
1989static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1990test_array [0] = 0;
1991return test_array [0];
1992
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$ac_includes_default
2001	        enum { N = $2 / 2 - 1 };
2002int
2003main ()
2004{
2005static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2006		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2007test_array [0] = 0;
2008return test_array [0];
2009
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015
2016else
2017  case $ac_type in #(
2018  int$2_t) :
2019    eval "$3=yes" ;; #(
2020  *) :
2021    eval "$3=\$ac_type" ;;
2022esac
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025fi
2026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027       if eval test \"x\$"$3"\" = x"no"; then :
2028
2029else
2030  break
2031fi
2032     done
2033fi
2034eval ac_res=\$$3
2035	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036$as_echo "$ac_res" >&6; }
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_c_find_intX_t
2040
2041# ac_fn_c_find_uintX_t LINENO BITS VAR
2042# ------------------------------------
2043# Finds an unsigned integer type with width BITS, setting cache variable VAR
2044# accordingly.
2045ac_fn_c_find_uintX_t ()
2046{
2047  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2049$as_echo_n "checking for uint$2_t... " >&6; }
2050if eval \${$3+:} false; then :
2051  $as_echo_n "(cached) " >&6
2052else
2053  eval "$3=no"
2054     # Order is important - never check a type that is potentially smaller
2055     # than half of the expected target width.
2056     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2057	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2058       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h.  */
2060$ac_includes_default
2061int
2062main ()
2063{
2064static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2065test_array [0] = 0;
2066return test_array [0];
2067
2068  ;
2069  return 0;
2070}
2071_ACEOF
2072if ac_fn_c_try_compile "$LINENO"; then :
2073  case $ac_type in #(
2074  uint$2_t) :
2075    eval "$3=yes" ;; #(
2076  *) :
2077    eval "$3=\$ac_type" ;;
2078esac
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081       if eval test \"x\$"$3"\" = x"no"; then :
2082
2083else
2084  break
2085fi
2086     done
2087fi
2088eval ac_res=\$$3
2089	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090$as_echo "$ac_res" >&6; }
2091  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092
2093} # ac_fn_c_find_uintX_t
2094
2095# ac_fn_c_check_func LINENO FUNC VAR
2096# ----------------------------------
2097# Tests whether FUNC exists, setting the cache variable VAR accordingly
2098ac_fn_c_check_func ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if eval \${$3+:} false; then :
2104  $as_echo_n "(cached) " >&6
2105else
2106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h.  */
2108/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2110#define $2 innocuous_$2
2111
2112/* System header to define __stub macros and hopefully few prototypes,
2113    which can conflict with char $2 (); below.
2114    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115    <limits.h> exists even on freestanding compilers.  */
2116
2117#ifdef __STDC__
2118# include <limits.h>
2119#else
2120# include <assert.h>
2121#endif
2122
2123#undef $2
2124
2125/* Override any GCC internal prototype to avoid an error.
2126   Use char because int might match the return type of a GCC
2127   builtin and then its argument prototype would still apply.  */
2128#ifdef __cplusplus
2129extern "C"
2130#endif
2131char $2 ();
2132/* The GNU C library defines this for functions which it implements
2133    to always fail with ENOSYS.  Some functions are actually named
2134    something starting with __ and the normal name is an alias.  */
2135#if defined __stub_$2 || defined __stub___$2
2136choke me
2137#endif
2138
2139int
2140main ()
2141{
2142return $2 ();
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_link "$LINENO"; then :
2148  eval "$3=yes"
2149else
2150  eval "$3=no"
2151fi
2152rm -f core conftest.err conftest.$ac_objext \
2153    conftest$ac_exeext conftest.$ac_ext
2154fi
2155eval ac_res=\$$3
2156	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157$as_echo "$ac_res" >&6; }
2158  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159
2160} # ac_fn_c_check_func
2161cat >config.log <<_ACEOF
2162This file contains any messages produced by compilers while
2163running configure, to aid debugging if configure makes a mistake.
2164
2165It was created by alienarena $as_me 7.66, which was
2166generated by GNU Autoconf 2.69.  Invocation command line was
2167
2168  $ $0 $@
2169
2170_ACEOF
2171exec 5>>config.log
2172{
2173cat <<_ASUNAME
2174## --------- ##
2175## Platform. ##
2176## --------- ##
2177
2178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2179uname -m = `(uname -m) 2>/dev/null || echo unknown`
2180uname -r = `(uname -r) 2>/dev/null || echo unknown`
2181uname -s = `(uname -s) 2>/dev/null || echo unknown`
2182uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183
2184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2185/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2186
2187/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2188/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2190/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2191/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2192/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2193/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2194
2195_ASUNAME
2196
2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH
2199do
2200  IFS=$as_save_IFS
2201  test -z "$as_dir" && as_dir=.
2202    $as_echo "PATH: $as_dir"
2203  done
2204IFS=$as_save_IFS
2205
2206} >&5
2207
2208cat >&5 <<_ACEOF
2209
2210
2211## ----------- ##
2212## Core tests. ##
2213## ----------- ##
2214
2215_ACEOF
2216
2217
2218# Keep a trace of the command line.
2219# Strip out --no-create and --no-recursion so they do not pile up.
2220# Strip out --silent because we don't want to record it for future runs.
2221# Also quote any args containing shell meta-characters.
2222# Make two passes to allow for proper duplicate-argument suppression.
2223ac_configure_args=
2224ac_configure_args0=
2225ac_configure_args1=
2226ac_must_keep_next=false
2227for ac_pass in 1 2
2228do
2229  for ac_arg
2230  do
2231    case $ac_arg in
2232    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2233    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2234    | -silent | --silent | --silen | --sile | --sil)
2235      continue ;;
2236    *\'*)
2237      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238    esac
2239    case $ac_pass in
2240    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241    2)
2242      as_fn_append ac_configure_args1 " '$ac_arg'"
2243      if test $ac_must_keep_next = true; then
2244	ac_must_keep_next=false # Got value, back to normal.
2245      else
2246	case $ac_arg in
2247	  *=* | --config-cache | -C | -disable-* | --disable-* \
2248	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2249	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2250	  | -with-* | --with-* | -without-* | --without-* | --x)
2251	    case "$ac_configure_args0 " in
2252	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253	    esac
2254	    ;;
2255	  -* ) ac_must_keep_next=true ;;
2256	esac
2257      fi
2258      as_fn_append ac_configure_args " '$ac_arg'"
2259      ;;
2260    esac
2261  done
2262done
2263{ ac_configure_args0=; unset ac_configure_args0;}
2264{ ac_configure_args1=; unset ac_configure_args1;}
2265
2266# When interrupted or exit'd, cleanup temporary files, and complete
2267# config.log.  We remove comments because anyway the quotes in there
2268# would cause problems or look ugly.
2269# WARNING: Use '\'' to represent an apostrophe within the trap.
2270# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2271trap 'exit_status=$?
2272  # Save into config.log some information that might help in debugging.
2273  {
2274    echo
2275
2276    $as_echo "## ---------------- ##
2277## Cache variables. ##
2278## ---------------- ##"
2279    echo
2280    # The following way of writing the cache mishandles newlines in values,
2281(
2282  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283    eval ac_val=\$$ac_var
2284    case $ac_val in #(
2285    *${as_nl}*)
2286      case $ac_var in #(
2287      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289      esac
2290      case $ac_var in #(
2291      _ | IFS | as_nl) ;; #(
2292      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293      *) { eval $ac_var=; unset $ac_var;} ;;
2294      esac ;;
2295    esac
2296  done
2297  (set) 2>&1 |
2298    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299    *${as_nl}ac_space=\ *)
2300      sed -n \
2301	"s/'\''/'\''\\\\'\'''\''/g;
2302	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303      ;; #(
2304    *)
2305      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306      ;;
2307    esac |
2308    sort
2309)
2310    echo
2311
2312    $as_echo "## ----------------- ##
2313## Output variables. ##
2314## ----------------- ##"
2315    echo
2316    for ac_var in $ac_subst_vars
2317    do
2318      eval ac_val=\$$ac_var
2319      case $ac_val in
2320      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321      esac
2322      $as_echo "$ac_var='\''$ac_val'\''"
2323    done | sort
2324    echo
2325
2326    if test -n "$ac_subst_files"; then
2327      $as_echo "## ------------------- ##
2328## File substitutions. ##
2329## ------------------- ##"
2330      echo
2331      for ac_var in $ac_subst_files
2332      do
2333	eval ac_val=\$$ac_var
2334	case $ac_val in
2335	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336	esac
2337	$as_echo "$ac_var='\''$ac_val'\''"
2338      done | sort
2339      echo
2340    fi
2341
2342    if test -s confdefs.h; then
2343      $as_echo "## ----------- ##
2344## confdefs.h. ##
2345## ----------- ##"
2346      echo
2347      cat confdefs.h
2348      echo
2349    fi
2350    test "$ac_signal" != 0 &&
2351      $as_echo "$as_me: caught signal $ac_signal"
2352    $as_echo "$as_me: exit $exit_status"
2353  } >&5
2354  rm -f core *.core core.conftest.* &&
2355    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356    exit $exit_status
2357' 0
2358for ac_signal in 1 2 13 15; do
2359  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360done
2361ac_signal=0
2362
2363# confdefs.h avoids OS command line length limits that DEFS can exceed.
2364rm -f -r conftest* confdefs.h
2365
2366$as_echo "/* confdefs.h */" > confdefs.h
2367
2368# Predefined preprocessor variables.
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_NAME "$PACKAGE_NAME"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_VERSION "$PACKAGE_VERSION"
2380_ACEOF
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_STRING "$PACKAGE_STRING"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_URL "$PACKAGE_URL"
2392_ACEOF
2393
2394
2395# Let the site file select an alternate cache file if it wants to.
2396# Prefer an explicitly selected file to automatically selected ones.
2397ac_site_file1=NONE
2398ac_site_file2=NONE
2399if test -n "$CONFIG_SITE"; then
2400  # We do not want a PATH search for config.site.
2401  case $CONFIG_SITE in #((
2402    -*)  ac_site_file1=./$CONFIG_SITE;;
2403    */*) ac_site_file1=$CONFIG_SITE;;
2404    *)   ac_site_file1=./$CONFIG_SITE;;
2405  esac
2406elif test "x$prefix" != xNONE; then
2407  ac_site_file1=$prefix/share/config.site
2408  ac_site_file2=$prefix/etc/config.site
2409else
2410  ac_site_file1=$ac_default_prefix/share/config.site
2411  ac_site_file2=$ac_default_prefix/etc/config.site
2412fi
2413for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414do
2415  test "x$ac_site_file" = xNONE && continue
2416  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2417    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419    sed 's/^/| /' "$ac_site_file" >&5
2420    . "$ac_site_file" \
2421      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423as_fn_error $? "failed to load site script $ac_site_file
2424See \`config.log' for more details" "$LINENO" 5; }
2425  fi
2426done
2427
2428if test -r "$cache_file"; then
2429  # Some versions of bash will fail to source /dev/null (special files
2430  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2431  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2432    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433$as_echo "$as_me: loading cache $cache_file" >&6;}
2434    case $cache_file in
2435      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2436      *)                      . "./$cache_file";;
2437    esac
2438  fi
2439else
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2441$as_echo "$as_me: creating cache $cache_file" >&6;}
2442  >$cache_file
2443fi
2444
2445as_fn_append ac_header_list " stdlib.h"
2446as_fn_append ac_header_list " unistd.h"
2447as_fn_append ac_header_list " sys/param.h"
2448# Check that the precious variables saved in the cache have kept the same
2449# value.
2450ac_cache_corrupted=false
2451for ac_var in $ac_precious_vars; do
2452  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2453  eval ac_new_set=\$ac_env_${ac_var}_set
2454  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2455  eval ac_new_val=\$ac_env_${ac_var}_value
2456  case $ac_old_set,$ac_new_set in
2457    set,)
2458      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2459$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2460      ac_cache_corrupted=: ;;
2461    ,set)
2462      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2463$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2464      ac_cache_corrupted=: ;;
2465    ,);;
2466    *)
2467      if test "x$ac_old_val" != "x$ac_new_val"; then
2468	# differences in whitespace do not lead to failure.
2469	ac_old_val_w=`echo x $ac_old_val`
2470	ac_new_val_w=`echo x $ac_new_val`
2471	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2474	  ac_cache_corrupted=:
2475	else
2476	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2477$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2478	  eval $ac_var=\$ac_old_val
2479	fi
2480	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2481$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2482	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2483$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2484      fi;;
2485  esac
2486  # Pass precious variables to config.status.
2487  if test "$ac_new_set" = set; then
2488    case $ac_new_val in
2489    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2490    *) ac_arg=$ac_var=$ac_new_val ;;
2491    esac
2492    case " $ac_configure_args " in
2493      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2494      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2495    esac
2496  fi
2497done
2498if $ac_cache_corrupted; then
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2504fi
2505## -------------------- ##
2506## Main body of script. ##
2507## -------------------- ##
2508
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516
2517
2518
2519ac_aux_dir=
2520for ac_dir in config "$srcdir"/config; do
2521  if test -f "$ac_dir/install-sh"; then
2522    ac_aux_dir=$ac_dir
2523    ac_install_sh="$ac_aux_dir/install-sh -c"
2524    break
2525  elif test -f "$ac_dir/install.sh"; then
2526    ac_aux_dir=$ac_dir
2527    ac_install_sh="$ac_aux_dir/install.sh -c"
2528    break
2529  elif test -f "$ac_dir/shtool"; then
2530    ac_aux_dir=$ac_dir
2531    ac_install_sh="$ac_aux_dir/shtool install -c"
2532    break
2533  fi
2534done
2535if test -z "$ac_aux_dir"; then
2536  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2537fi
2538
2539# These three variables are undocumented and unsupported,
2540# and are intended to be withdrawn in a future Autoconf release.
2541# They can cause serious problems if a builder's source tree is in a directory
2542# whose full name contains unusual characters.
2543ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2544ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2545ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2546
2547
2548ac_config_headers="$ac_config_headers config/config.h"
2549
2550
2551  # The prefix default can be set in configure.ac (otherwise it is /usr/local)
2552  test "x$prefix" = xNONE && prefix=$ac_default_prefix
2553  # Let make expand exec_prefix. Allows to override the makevar 'prefix' later
2554  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2555
2556
2557am__api_version='1.14'
2558
2559# Find a good install program.  We prefer a C program (faster),
2560# so one script is as good as another.  But avoid the broken or
2561# incompatible versions:
2562# SysV /etc/install, /usr/sbin/install
2563# SunOS /usr/etc/install
2564# IRIX /sbin/install
2565# AIX /bin/install
2566# AmigaOS /C/install, which installs bootblocks on floppy discs
2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570# OS/2's system install, which has a completely different semantic
2571# ./install, which can be erroneously created by make from ./install.sh.
2572# Reject install programs that cannot install multiple files.
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574$as_echo_n "checking for a BSD-compatible install... " >&6; }
2575if test -z "$INSTALL"; then
2576if ${ac_cv_path_install+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    # Account for people who put trailing slashes in PATH elements.
2585case $as_dir/ in #((
2586  ./ | .// | /[cC]/* | \
2587  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589  /usr/ucb/* ) ;;
2590  *)
2591    # OSF1 and SCO ODT 3.0 have their own names for install.
2592    # Don't use installbsd from OSF since it installs stuff as root
2593    # by default.
2594    for ac_prog in ginstall scoinst install; do
2595      for ac_exec_ext in '' $ac_executable_extensions; do
2596	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597	  if test $ac_prog = install &&
2598	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599	    # AIX install.  It has an incompatible calling convention.
2600	    :
2601	  elif test $ac_prog = install &&
2602	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603	    # program-specific install script used by HP pwplus--don't use.
2604	    :
2605	  else
2606	    rm -rf conftest.one conftest.two conftest.dir
2607	    echo one > conftest.one
2608	    echo two > conftest.two
2609	    mkdir conftest.dir
2610	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611	      test -s conftest.one && test -s conftest.two &&
2612	      test -s conftest.dir/conftest.one &&
2613	      test -s conftest.dir/conftest.two
2614	    then
2615	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616	      break 3
2617	    fi
2618	  fi
2619	fi
2620      done
2621    done
2622    ;;
2623esac
2624
2625  done
2626IFS=$as_save_IFS
2627
2628rm -rf conftest.one conftest.two conftest.dir
2629
2630fi
2631  if test "${ac_cv_path_install+set}" = set; then
2632    INSTALL=$ac_cv_path_install
2633  else
2634    # As a last resort, use the slow shell script.  Don't cache a
2635    # value for INSTALL within a source directory, because that will
2636    # break other packages using the cache if that directory is
2637    # removed, or if the value is a relative name.
2638    INSTALL=$ac_install_sh
2639  fi
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642$as_echo "$INSTALL" >&6; }
2643
2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645# It thinks the first close brace ends the variable substitution.
2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649
2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653$as_echo_n "checking whether build environment is sane... " >&6; }
2654# Reject unsafe characters in $srcdir or the absolute working directory
2655# name.  Accept space and tab only in the latter.
2656am_lf='
2657'
2658case `pwd` in
2659  *[\\\"\#\$\&\'\`$am_lf]*)
2660    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661esac
2662case $srcdir in
2663  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2664    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665esac
2666
2667# Do 'set' in a subshell so we don't clobber the current shell's
2668# arguments.  Must try -L first in case configure is actually a
2669# symlink; some systems play weird games with the mod time of symlinks
2670# (eg FreeBSD returns the mod time of the symlink's containing
2671# directory).
2672if (
2673   am_has_slept=no
2674   for am_try in 1 2; do
2675     echo "timestamp, slept: $am_has_slept" > conftest.file
2676     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677     if test "$*" = "X"; then
2678	# -L didn't work.
2679	set X `ls -t "$srcdir/configure" conftest.file`
2680     fi
2681     if test "$*" != "X $srcdir/configure conftest.file" \
2682	&& test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684	# If neither matched, then we have a broken ls.  This can happen
2685	# if, for instance, CONFIG_SHELL is bash and it inherits a
2686	# broken ls alias from the environment.  This has actually
2687	# happened.  Such a system could not be considered "sane".
2688	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2689  alias in your environment" "$LINENO" 5
2690     fi
2691     if test "$2" = conftest.file || test $am_try -eq 2; then
2692       break
2693     fi
2694     # Just in case.
2695     sleep 1
2696     am_has_slept=yes
2697   done
2698   test "$2" = conftest.file
2699   )
2700then
2701   # Ok.
2702   :
2703else
2704   as_fn_error $? "newly created file is older than distributed files!
2705Check your system clock" "$LINENO" 5
2706fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
2709# If we didn't sleep, we still need to ensure time stamps of config.status and
2710# generated files are strictly newer.
2711am_sleep_pid=
2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713  ( sleep 1 ) &
2714  am_sleep_pid=$!
2715fi
2716
2717rm -f conftest.file
2718
2719test "$program_prefix" != NONE &&
2720  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724# Double any \ or $.
2725# By default was `s,x,x', remove it if useless.
2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729# expand $ac_aux_dir to an absolute path
2730am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732if test x"${MISSING+set}" != xset; then
2733  case $am_aux_dir in
2734  *\ * | *\	*)
2735    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736  *)
2737    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738  esac
2739fi
2740# Use eval to expand $SHELL
2741if eval "$MISSING --is-lightweight"; then
2742  am_missing_run="$MISSING "
2743else
2744  am_missing_run=
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2747fi
2748
2749if test x"${install_sh}" != xset; then
2750  case $am_aux_dir in
2751  *\ * | *\	*)
2752    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753  *)
2754    install_sh="\${SHELL} $am_aux_dir/install-sh"
2755  esac
2756fi
2757
2758# Installed binaries are usually stripped using 'strip' when the user
2759# run "make install-strip".  However 'strip' might not be the right
2760# tool to use in cross-compilation environments, therefore Automake
2761# will honor the 'STRIP' environment variable to overrule this program.
2762if test "$cross_compiling" != no; then
2763  if test -n "$ac_tool_prefix"; then
2764  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}strip; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if ${ac_cv_prog_STRIP+:} false; then :
2769  $as_echo_n "(cached) " >&6
2770else
2771  if test -n "$STRIP"; then
2772  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777  IFS=$as_save_IFS
2778  test -z "$as_dir" && as_dir=.
2779    for ac_exec_ext in '' $ac_executable_extensions; do
2780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783    break 2
2784  fi
2785done
2786  done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791STRIP=$ac_cv_prog_STRIP
2792if test -n "$STRIP"; then
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794$as_echo "$STRIP" >&6; }
2795else
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801fi
2802if test -z "$ac_cv_prog_STRIP"; then
2803  ac_ct_STRIP=$STRIP
2804  # Extract the first word of "strip", so it can be a program name with args.
2805set dummy strip; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  if test -n "$ac_ct_STRIP"; then
2812  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817  IFS=$as_save_IFS
2818  test -z "$as_dir" && as_dir=.
2819    for ac_exec_ext in '' $ac_executable_extensions; do
2820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821    ac_cv_prog_ac_ct_STRIP="strip"
2822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823    break 2
2824  fi
2825done
2826  done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832if test -n "$ac_ct_STRIP"; then
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834$as_echo "$ac_ct_STRIP" >&6; }
2835else
2836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840  if test "x$ac_ct_STRIP" = x; then
2841    STRIP=":"
2842  else
2843    case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
2848esac
2849    STRIP=$ac_ct_STRIP
2850  fi
2851else
2852  STRIP="$ac_cv_prog_STRIP"
2853fi
2854
2855fi
2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860if test -z "$MKDIR_P"; then
2861  if ${ac_cv_path_mkdir+:} false; then :
2862  $as_echo_n "(cached) " >&6
2863else
2864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866do
2867  IFS=$as_save_IFS
2868  test -z "$as_dir" && as_dir=.
2869    for ac_prog in mkdir gmkdir; do
2870	 for ac_exec_ext in '' $ac_executable_extensions; do
2871	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873	     'mkdir (GNU coreutils) '* | \
2874	     'mkdir (coreutils) '* | \
2875	     'mkdir (fileutils) '4.1*)
2876	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877	       break 3;;
2878	   esac
2879	 done
2880       done
2881  done
2882IFS=$as_save_IFS
2883
2884fi
2885
2886  test -d ./--version && rmdir ./--version
2887  if test "${ac_cv_path_mkdir+set}" = set; then
2888    MKDIR_P="$ac_cv_path_mkdir -p"
2889  else
2890    # As a last resort, use the slow shell script.  Don't cache a
2891    # value for MKDIR_P within a source directory, because that will
2892    # break other packages using the cache if that directory is
2893    # removed, or if the value is a relative name.
2894    MKDIR_P="$ac_install_sh -d"
2895  fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898$as_echo "$MKDIR_P" >&6; }
2899
2900for ac_prog in gawk mawk nawk awk
2901do
2902  # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
2906if ${ac_cv_prog_AWK+:} false; then :
2907  $as_echo_n "(cached) " >&6
2908else
2909  if test -n "$AWK"; then
2910  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  test -z "$as_dir" && as_dir=.
2917    for ac_exec_ext in '' $ac_executable_extensions; do
2918  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919    ac_cv_prog_AWK="$ac_prog"
2920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924  done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929AWK=$ac_cv_prog_AWK
2930if test -n "$AWK"; then
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932$as_echo "$AWK" >&6; }
2933else
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939  test -n "$AWK" && break
2940done
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944set x ${MAKE-make}
2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947  $as_echo_n "(cached) " >&6
2948else
2949  cat >conftest.make <<\_ACEOF
2950SHELL = /bin/sh
2951all:
2952	@echo '@@@%%%=$(MAKE)=@@@%%%'
2953_ACEOF
2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956  *@@@%%%=?*=@@@%%%*)
2957    eval ac_cv_prog_make_${ac_make}_set=yes;;
2958  *)
2959    eval ac_cv_prog_make_${ac_make}_set=no;;
2960esac
2961rm -f conftest.make
2962fi
2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965$as_echo "yes" >&6; }
2966  SET_MAKE=
2967else
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970  SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976  am__leading_dot=.
2977else
2978  am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
2982# Check whether --enable-silent-rules was given.
2983if test "${enable_silent_rules+set}" = set; then :
2984  enableval=$enable_silent_rules;
2985fi
2986
2987case $enable_silent_rules in # (((
2988  yes) AM_DEFAULT_VERBOSITY=0;;
2989   no) AM_DEFAULT_VERBOSITY=1;;
2990    *) AM_DEFAULT_VERBOSITY=1;;
2991esac
2992am_make=${MAKE-make}
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995if ${am_cv_make_support_nested_variables+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if $as_echo 'TRUE=$(BAR$(V))
2999BAR0=false
3000BAR1=true
3001V=1
3002am__doit:
3003	@$(TRUE)
3004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005  am_cv_make_support_nested_variables=yes
3006else
3007  am_cv_make_support_nested_variables=no
3008fi
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011$as_echo "$am_cv_make_support_nested_variables" >&6; }
3012if test $am_cv_make_support_nested_variables = yes; then
3013    AM_V='$(V)'
3014  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015else
3016  AM_V=$AM_DEFAULT_VERBOSITY
3017  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018fi
3019AM_BACKSLASH='\'
3020
3021if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023  # is not polluted with repeated "-I."
3024  am__isrc=' -I$(srcdir)'
3025  # test to see if srcdir already configured
3026  if test -f $srcdir/config.status; then
3027    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028  fi
3029fi
3030
3031# test whether we have cygpath
3032if test -z "$CYGPATH_W"; then
3033  if (cygpath --version) >/dev/null 2>/dev/null; then
3034    CYGPATH_W='cygpath -w'
3035  else
3036    CYGPATH_W=echo
3037  fi
3038fi
3039
3040
3041# Define the identity of the package.
3042 PACKAGE='alienarena'
3043 VERSION='7.66'
3044
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE "$PACKAGE"
3048_ACEOF
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define VERSION "$VERSION"
3053_ACEOF
3054
3055# Some tools Automake needs.
3056
3057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
3071# For better backward compatibility.  To be removed once Automake 1.9.x
3072# dies out for good.  For more background, see:
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075mkdir_p='$(MKDIR_P)'
3076
3077# We need awk for the "check" target.  The system "awk" is bad on
3078# some platforms.
3079# Always define AMTAR for backward compatibility.  Yes, it's still used
3080# in the wild :-(  We should find a proper way to deprecate it ...
3081AMTAR='$${TAR-tar}'
3082
3083
3084# We'll loop over all known methods to create a tar archive until one works.
3085_am_tools='gnutar  pax cpio none'
3086
3087am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088
3089
3090
3091
3092
3093
3094# POSIX will say in a future version that running "rm -f" with no argument
3095# is OK; and we want to be able to make that assumption in our Makefile
3096# recipes.  So use an aggressive probe to check that the usage we want is
3097# actually supported "in the wild" to an acceptable degree.
3098# See automake bug#10828.
3099# To make any issue more visible, cause the running configure to be aborted
3100# by default if the 'rm' program in use doesn't match our expectations; the
3101# user can still override this though.
3102if rm -f && rm -fr && rm -rf; then : OK; else
3103  cat >&2 <<'END'
3104Oops!
3105
3106Your 'rm' program seems unable to run without file operands specified
3107on the command line, even when the '-f' option is present.  This is contrary
3108to the behaviour of most rm programs out there, and not conforming with
3109the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3110
3111Please tell bug-automake@gnu.org about your system, including the value
3112of your $PATH and any error possibly output before this message.  This
3113can help us improve future automake versions.
3114
3115END
3116  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117    echo 'Configuration will proceed anyway, since you have set the' >&2
3118    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119    echo >&2
3120  else
3121    cat >&2 <<'END'
3122Aborting the configuration process, to ensure you take notice of the issue.
3123
3124You can download and install GNU coreutils to get an 'rm' implementation
3125that behaves properly: <http://www.gnu.org/software/coreutils/>.
3126
3127If you want to complete the configuration process using your problematic
3128'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129to "yes", and re-run configure.
3130
3131END
3132    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3133  fi
3134fi
3135# Check whether --enable-silent-rules was given.
3136if test "${enable_silent_rules+set}" = set; then :
3137  enableval=$enable_silent_rules;
3138fi
3139
3140case $enable_silent_rules in # (((
3141  yes) AM_DEFAULT_VERBOSITY=0;;
3142   no) AM_DEFAULT_VERBOSITY=1;;
3143    *) AM_DEFAULT_VERBOSITY=0;;
3144esac
3145am_make=${MAKE-make}
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3147$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3148if ${am_cv_make_support_nested_variables+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  if $as_echo 'TRUE=$(BAR$(V))
3152BAR0=false
3153BAR1=true
3154V=1
3155am__doit:
3156	@$(TRUE)
3157.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158  am_cv_make_support_nested_variables=yes
3159else
3160  am_cv_make_support_nested_variables=no
3161fi
3162fi
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164$as_echo "$am_cv_make_support_nested_variables" >&6; }
3165if test $am_cv_make_support_nested_variables = yes; then
3166    AM_V='$(V)'
3167  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3168else
3169  AM_V=$AM_DEFAULT_VERBOSITY
3170  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3171fi
3172AM_BACKSLASH='\'
3173
3174
3175
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3177$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3178    # Check whether --enable-maintainer-mode was given.
3179if test "${enable_maintainer_mode+set}" = set; then :
3180  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3181else
3182  USE_MAINTAINER_MODE=no
3183fi
3184
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3186$as_echo "$USE_MAINTAINER_MODE" >&6; }
3187   if test $USE_MAINTAINER_MODE = yes; then
3188  MAINTAINER_MODE_TRUE=
3189  MAINTAINER_MODE_FALSE='#'
3190else
3191  MAINTAINER_MODE_TRUE='#'
3192  MAINTAINER_MODE_FALSE=
3193fi
3194
3195  MAINT=$MAINTAINER_MODE_TRUE
3196
3197
3198
3199# Make sure we can run config.sub.
3200$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3201  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3202
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3204$as_echo_n "checking build system type... " >&6; }
3205if ${ac_cv_build+:} false; then :
3206  $as_echo_n "(cached) " >&6
3207else
3208  ac_build_alias=$build_alias
3209test "x$ac_build_alias" = x &&
3210  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3211test "x$ac_build_alias" = x &&
3212  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3213ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3214  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3215
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3218$as_echo "$ac_cv_build" >&6; }
3219case $ac_cv_build in
3220*-*-*) ;;
3221*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3222esac
3223build=$ac_cv_build
3224ac_save_IFS=$IFS; IFS='-'
3225set x $ac_cv_build
3226shift
3227build_cpu=$1
3228build_vendor=$2
3229shift; shift
3230# Remember, the first character of IFS is used to create $*,
3231# except with old shells:
3232build_os=$*
3233IFS=$ac_save_IFS
3234case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3235
3236
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3238$as_echo_n "checking host system type... " >&6; }
3239if ${ac_cv_host+:} false; then :
3240  $as_echo_n "(cached) " >&6
3241else
3242  if test "x$host_alias" = x; then
3243  ac_cv_host=$ac_cv_build
3244else
3245  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3246    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3247fi
3248
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3251$as_echo "$ac_cv_host" >&6; }
3252case $ac_cv_host in
3253*-*-*) ;;
3254*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3255esac
3256host=$ac_cv_host
3257ac_save_IFS=$IFS; IFS='-'
3258set x $ac_cv_host
3259shift
3260host_cpu=$1
3261host_vendor=$2
3262shift; shift
3263# Remember, the first character of IFS is used to create $*,
3264# except with old shells:
3265host_os=$*
3266IFS=$ac_save_IFS
3267case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3268
3269
3270
3271#
3272# Checks for programs.
3273#
3274ac_ext=cpp
3275ac_cpp='$CXXCPP $CPPFLAGS'
3276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3279if test -z "$CXX"; then
3280  if test -n "$CCC"; then
3281    CXX=$CCC
3282  else
3283    if test -n "$ac_tool_prefix"; then
3284  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3285  do
3286    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289$as_echo_n "checking for $ac_word... " >&6; }
3290if ${ac_cv_prog_CXX+:} false; then :
3291  $as_echo_n "(cached) " >&6
3292else
3293  if test -n "$CXX"; then
3294  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3295else
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307done
3308  done
3309IFS=$as_save_IFS
3310
3311fi
3312fi
3313CXX=$ac_cv_prog_CXX
3314if test -n "$CXX"; then
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3316$as_echo "$CXX" >&6; }
3317else
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320fi
3321
3322
3323    test -n "$CXX" && break
3324  done
3325fi
3326if test -z "$CXX"; then
3327  ac_ct_CXX=$CXX
3328  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3329do
3330  # Extract the first word of "$ac_prog", so it can be a program name with args.
3331set dummy $ac_prog; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  if test -n "$ac_ct_CXX"; then
3338  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_ac_ct_CXX="$ac_prog"
3348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3358if test -n "$ac_ct_CXX"; then
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3360$as_echo "$ac_ct_CXX" >&6; }
3361else
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367  test -n "$ac_ct_CXX" && break
3368done
3369
3370  if test "x$ac_ct_CXX" = x; then
3371    CXX="g++"
3372  else
3373    case $cross_compiling:$ac_tool_warned in
3374yes:)
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3377ac_tool_warned=yes ;;
3378esac
3379    CXX=$ac_ct_CXX
3380  fi
3381fi
3382
3383  fi
3384fi
3385# Provide some information about the compiler.
3386$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3387set X $ac_compile
3388ac_compiler=$2
3389for ac_option in --version -v -V -qversion; do
3390  { { ac_try="$ac_compiler $ac_option >&5"
3391case "(($ac_try" in
3392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393  *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3398  ac_status=$?
3399  if test -s conftest.err; then
3400    sed '10a\
3401... rest of stderr output deleted ...
3402         10q' conftest.err >conftest.er1
3403    cat conftest.er1 >&5
3404  fi
3405  rm -f conftest.er1 conftest.err
3406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407  test $ac_status = 0; }
3408done
3409
3410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h.  */
3412
3413int
3414main ()
3415{
3416
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421ac_clean_files_save=$ac_clean_files
3422ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3423# Try to create an executable without -o first, disregard a.out.
3424# It will help us diagnose broken compilers, and finding out an intuition
3425# of exeext.
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3427$as_echo_n "checking whether the C++ compiler works... " >&6; }
3428ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3429
3430# The possible output files:
3431ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3432
3433ac_rmfiles=
3434for ac_file in $ac_files
3435do
3436  case $ac_file in
3437    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3438    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3439  esac
3440done
3441rm -f $ac_rmfiles
3442
3443if { { ac_try="$ac_link_default"
3444case "(($ac_try" in
3445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446  *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450  (eval "$ac_link_default") 2>&5
3451  ac_status=$?
3452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453  test $ac_status = 0; }; then :
3454  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3455# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3456# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3457# so that the user can short-circuit this test for compilers unknown to
3458# Autoconf.
3459for ac_file in $ac_files ''
3460do
3461  test -f "$ac_file" || continue
3462  case $ac_file in
3463    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3464	;;
3465    [ab].out )
3466	# We found the default executable, but exeext='' is most
3467	# certainly right.
3468	break;;
3469    *.* )
3470	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3471	then :; else
3472	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473	fi
3474	# We set ac_cv_exeext here because the later test for it is not
3475	# safe: cross compilers may not add the suffix if given an `-o'
3476	# argument, so we may need to know it at that point already.
3477	# Even if this section looks crufty: it has the advantage of
3478	# actually working.
3479	break;;
3480    * )
3481	break;;
3482  esac
3483done
3484test "$ac_cv_exeext" = no && ac_cv_exeext=
3485
3486else
3487  ac_file=''
3488fi
3489if test -z "$ac_file"; then :
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492$as_echo "$as_me: failed program was:" >&5
3493sed 's/^/| /' conftest.$ac_ext >&5
3494
3495{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497as_fn_error 77 "C++ compiler cannot create executables
3498See \`config.log' for more details" "$LINENO" 5; }
3499else
3500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501$as_echo "yes" >&6; }
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3504$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3506$as_echo "$ac_file" >&6; }
3507ac_exeext=$ac_cv_exeext
3508
3509rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510ac_clean_files=$ac_clean_files_save
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3512$as_echo_n "checking for suffix of executables... " >&6; }
3513if { { ac_try="$ac_link"
3514case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520  (eval "$ac_link") 2>&5
3521  ac_status=$?
3522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523  test $ac_status = 0; }; then :
3524  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3526# work properly (i.e., refer to `conftest.exe'), while it won't with
3527# `rm'.
3528for ac_file in conftest.exe conftest conftest.*; do
3529  test -f "$ac_file" || continue
3530  case $ac_file in
3531    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533	  break;;
3534    * ) break;;
3535  esac
3536done
3537else
3538  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3541See \`config.log' for more details" "$LINENO" 5; }
3542fi
3543rm -f conftest conftest$ac_cv_exeext
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3545$as_echo "$ac_cv_exeext" >&6; }
3546
3547rm -f conftest.$ac_ext
3548EXEEXT=$ac_cv_exeext
3549ac_exeext=$EXEEXT
3550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552#include <stdio.h>
3553int
3554main ()
3555{
3556FILE *f = fopen ("conftest.out", "w");
3557 return ferror (f) || fclose (f) != 0;
3558
3559  ;
3560  return 0;
3561}
3562_ACEOF
3563ac_clean_files="$ac_clean_files conftest.out"
3564# Check that the compiler produces executables we can run.  If not, either
3565# the compiler is broken, or we cross compile.
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3567$as_echo_n "checking whether we are cross compiling... " >&6; }
3568if test "$cross_compiling" != yes; then
3569  { { ac_try="$ac_link"
3570case "(($ac_try" in
3571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572  *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576  (eval "$ac_link") 2>&5
3577  ac_status=$?
3578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579  test $ac_status = 0; }
3580  if { ac_try='./conftest$ac_cv_exeext'
3581  { { case "(($ac_try" in
3582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583  *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586$as_echo "$ac_try_echo"; } >&5
3587  (eval "$ac_try") 2>&5
3588  ac_status=$?
3589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590  test $ac_status = 0; }; }; then
3591    cross_compiling=no
3592  else
3593    if test "$cross_compiling" = maybe; then
3594	cross_compiling=yes
3595    else
3596	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598as_fn_error $? "cannot run C++ compiled programs.
3599If you meant to cross compile, use \`--host'.
3600See \`config.log' for more details" "$LINENO" 5; }
3601    fi
3602  fi
3603fi
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605$as_echo "$cross_compiling" >&6; }
3606
3607rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3608ac_clean_files=$ac_clean_files_save
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3610$as_echo_n "checking for suffix of object files... " >&6; }
3611if ${ac_cv_objext+:} false; then :
3612  $as_echo_n "(cached) " >&6
3613else
3614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615/* end confdefs.h.  */
3616
3617int
3618main ()
3619{
3620
3621  ;
3622  return 0;
3623}
3624_ACEOF
3625rm -f conftest.o conftest.obj
3626if { { ac_try="$ac_compile"
3627case "(($ac_try" in
3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629  *) ac_try_echo=$ac_try;;
3630esac
3631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632$as_echo "$ac_try_echo"; } >&5
3633  (eval "$ac_compile") 2>&5
3634  ac_status=$?
3635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636  test $ac_status = 0; }; then :
3637  for ac_file in conftest.o conftest.obj conftest.*; do
3638  test -f "$ac_file" || continue;
3639  case $ac_file in
3640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3641    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3642       break;;
3643  esac
3644done
3645else
3646  $as_echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651as_fn_error $? "cannot compute suffix of object files: cannot compile
3652See \`config.log' for more details" "$LINENO" 5; }
3653fi
3654rm -f conftest.$ac_cv_objext conftest.$ac_ext
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3657$as_echo "$ac_cv_objext" >&6; }
3658OBJEXT=$ac_cv_objext
3659ac_objext=$OBJEXT
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3661$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3662if ${ac_cv_cxx_compiler_gnu+:} false; then :
3663  $as_echo_n "(cached) " >&6
3664else
3665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667
3668int
3669main ()
3670{
3671#ifndef __GNUC__
3672       choke me
3673#endif
3674
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679if ac_fn_cxx_try_compile "$LINENO"; then :
3680  ac_compiler_gnu=yes
3681else
3682  ac_compiler_gnu=no
3683fi
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3686
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3689$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3690if test $ac_compiler_gnu = yes; then
3691  GXX=yes
3692else
3693  GXX=
3694fi
3695ac_test_CXXFLAGS=${CXXFLAGS+set}
3696ac_save_CXXFLAGS=$CXXFLAGS
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3698$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3699if ${ac_cv_prog_cxx_g+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3703   ac_cxx_werror_flag=yes
3704   ac_cv_prog_cxx_g=no
3705   CXXFLAGS="-g"
3706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708
3709int
3710main ()
3711{
3712
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717if ac_fn_cxx_try_compile "$LINENO"; then :
3718  ac_cv_prog_cxx_g=yes
3719else
3720  CXXFLAGS=""
3721      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732if ac_fn_cxx_try_compile "$LINENO"; then :
3733
3734else
3735  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3736	 CXXFLAGS="-g"
3737	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h.  */
3739
3740int
3741main ()
3742{
3743
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748if ac_fn_cxx_try_compile "$LINENO"; then :
3749  ac_cv_prog_cxx_g=yes
3750fi
3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752fi
3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754fi
3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3759$as_echo "$ac_cv_prog_cxx_g" >&6; }
3760if test "$ac_test_CXXFLAGS" = set; then
3761  CXXFLAGS=$ac_save_CXXFLAGS
3762elif test $ac_cv_prog_cxx_g = yes; then
3763  if test "$GXX" = yes; then
3764    CXXFLAGS="-g -O2"
3765  else
3766    CXXFLAGS="-g"
3767  fi
3768else
3769  if test "$GXX" = yes; then
3770    CXXFLAGS="-O2"
3771  else
3772    CXXFLAGS=
3773  fi
3774fi
3775ac_ext=c
3776ac_cpp='$CPP $CPPFLAGS'
3777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780DEPDIR="${am__leading_dot}deps"
3781
3782ac_config_commands="$ac_config_commands depfiles"
3783
3784
3785am_make=${MAKE-make}
3786cat > confinc << 'END'
3787am__doit:
3788	@echo this is the am__doit target
3789.PHONY: am__doit
3790END
3791# If we don't find an include directive, just comment out the code.
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3793$as_echo_n "checking for style of include used by $am_make... " >&6; }
3794am__include="#"
3795am__quote=
3796_am_result=none
3797# First try GNU make style include.
3798echo "include confinc" > confmf
3799# Ignore all kinds of additional output from 'make'.
3800case `$am_make -s -f confmf 2> /dev/null` in #(
3801*the\ am__doit\ target*)
3802  am__include=include
3803  am__quote=
3804  _am_result=GNU
3805  ;;
3806esac
3807# Now try BSD make style include.
3808if test "$am__include" = "#"; then
3809   echo '.include "confinc"' > confmf
3810   case `$am_make -s -f confmf 2> /dev/null` in #(
3811   *the\ am__doit\ target*)
3812     am__include=.include
3813     am__quote="\""
3814     _am_result=BSD
3815     ;;
3816   esac
3817fi
3818
3819
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3821$as_echo "$_am_result" >&6; }
3822rm -f confinc confmf
3823
3824# Check whether --enable-dependency-tracking was given.
3825if test "${enable_dependency_tracking+set}" = set; then :
3826  enableval=$enable_dependency_tracking;
3827fi
3828
3829if test "x$enable_dependency_tracking" != xno; then
3830  am_depcomp="$ac_aux_dir/depcomp"
3831  AMDEPBACKSLASH='\'
3832  am__nodep='_no'
3833fi
3834 if test "x$enable_dependency_tracking" != xno; then
3835  AMDEP_TRUE=
3836  AMDEP_FALSE='#'
3837else
3838  AMDEP_TRUE='#'
3839  AMDEP_FALSE=
3840fi
3841
3842
3843
3844depcc="$CXX"  am_compiler_list=
3845
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3847$as_echo_n "checking dependency style of $depcc... " >&6; }
3848if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3852  # We make a subdir and do the tests there.  Otherwise we can end up
3853  # making bogus files that we don't know about and never remove.  For
3854  # instance it was reported that on HP-UX the gcc test will end up
3855  # making a dummy file named 'D' -- because '-MD' means "put the output
3856  # in D".
3857  rm -rf conftest.dir
3858  mkdir conftest.dir
3859  # Copy depcomp to subdir because otherwise we won't find it if we're
3860  # using a relative directory.
3861  cp "$am_depcomp" conftest.dir
3862  cd conftest.dir
3863  # We will build objects and dependencies in a subdirectory because
3864  # it helps to detect inapplicable dependency modes.  For instance
3865  # both Tru64's cc and ICC support -MD to output dependencies as a
3866  # side effect of compilation, but ICC will put the dependencies in
3867  # the current directory while Tru64 will put them in the object
3868  # directory.
3869  mkdir sub
3870
3871  am_cv_CXX_dependencies_compiler_type=none
3872  if test "$am_compiler_list" = ""; then
3873     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3874  fi
3875  am__universal=false
3876  case " $depcc " in #(
3877     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3878     esac
3879
3880  for depmode in $am_compiler_list; do
3881    # Setup a source with many dependencies, because some compilers
3882    # like to wrap large dependency lists on column 80 (with \), and
3883    # we should not choose a depcomp mode which is confused by this.
3884    #
3885    # We need to recreate these files for each test, as the compiler may
3886    # overwrite some of them when testing with obscure command lines.
3887    # This happens at least with the AIX C compiler.
3888    : > sub/conftest.c
3889    for i in 1 2 3 4 5 6; do
3890      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3891      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3892      # Solaris 10 /bin/sh.
3893      echo '/* dummy */' > sub/conftst$i.h
3894    done
3895    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3896
3897    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3898    # mode.  It turns out that the SunPro C++ compiler does not properly
3899    # handle '-M -o', and we need to detect this.  Also, some Intel
3900    # versions had trouble with output in subdirs.
3901    am__obj=sub/conftest.${OBJEXT-o}
3902    am__minus_obj="-o $am__obj"
3903    case $depmode in
3904    gcc)
3905      # This depmode causes a compiler race in universal mode.
3906      test "$am__universal" = false || continue
3907      ;;
3908    nosideeffect)
3909      # After this tag, mechanisms are not by side-effect, so they'll
3910      # only be used when explicitly requested.
3911      if test "x$enable_dependency_tracking" = xyes; then
3912	continue
3913      else
3914	break
3915      fi
3916      ;;
3917    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3918      # This compiler won't grok '-c -o', but also, the minuso test has
3919      # not run yet.  These depmodes are late enough in the game, and
3920      # so weak that their functioning should not be impacted.
3921      am__obj=conftest.${OBJEXT-o}
3922      am__minus_obj=
3923      ;;
3924    none) break ;;
3925    esac
3926    if depmode=$depmode \
3927       source=sub/conftest.c object=$am__obj \
3928       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3929       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3930         >/dev/null 2>conftest.err &&
3931       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3932       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3933       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3934       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3935      # icc doesn't choke on unknown options, it will just issue warnings
3936      # or remarks (even with -Werror).  So we grep stderr for any message
3937      # that says an option was ignored or not supported.
3938      # When given -MP, icc 7.0 and 7.1 complain thusly:
3939      #   icc: Command line warning: ignoring option '-M'; no argument required
3940      # The diagnosis changed in icc 8.0:
3941      #   icc: Command line remark: option '-MP' not supported
3942      if (grep 'ignoring option' conftest.err ||
3943          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3944        am_cv_CXX_dependencies_compiler_type=$depmode
3945        break
3946      fi
3947    fi
3948  done
3949
3950  cd ..
3951  rm -rf conftest.dir
3952else
3953  am_cv_CXX_dependencies_compiler_type=none
3954fi
3955
3956fi
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3958$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3959CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3960
3961 if
3962  test "x$enable_dependency_tracking" != xno \
3963  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3964  am__fastdepCXX_TRUE=
3965  am__fastdepCXX_FALSE='#'
3966else
3967  am__fastdepCXX_TRUE='#'
3968  am__fastdepCXX_FALSE=
3969fi
3970
3971
3972for ac_prog in gawk mawk nawk awk
3973do
3974  # Extract the first word of "$ac_prog", so it can be a program name with args.
3975set dummy $ac_prog; ac_word=$2
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if ${ac_cv_prog_AWK+:} false; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  if test -n "$AWK"; then
3982  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987  IFS=$as_save_IFS
3988  test -z "$as_dir" && as_dir=.
3989    for ac_exec_ext in '' $ac_executable_extensions; do
3990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991    ac_cv_prog_AWK="$ac_prog"
3992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993    break 2
3994  fi
3995done
3996  done
3997IFS=$as_save_IFS
3998
3999fi
4000fi
4001AWK=$ac_cv_prog_AWK
4002if test -n "$AWK"; then
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4004$as_echo "$AWK" >&6; }
4005else
4006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
4008fi
4009
4010
4011  test -n "$AWK" && break
4012done
4013
4014ac_ext=c
4015ac_cpp='$CPP $CPPFLAGS'
4016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019if test -n "$ac_tool_prefix"; then
4020  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4021set dummy ${ac_tool_prefix}gcc; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_CC+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$CC"; then
4028  ac_cv_prog_CC="$CC" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047CC=$ac_cv_prog_CC
4048if test -n "$CC"; then
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050$as_echo "$CC" >&6; }
4051else
4052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056
4057fi
4058if test -z "$ac_cv_prog_CC"; then
4059  ac_ct_CC=$CC
4060  # Extract the first word of "gcc", so it can be a program name with args.
4061set dummy gcc; ac_word=$2
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063$as_echo_n "checking for $ac_word... " >&6; }
4064if ${ac_cv_prog_ac_ct_CC+:} false; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  if test -n "$ac_ct_CC"; then
4068  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077    ac_cv_prog_ac_ct_CC="gcc"
4078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082  done
4083IFS=$as_save_IFS
4084
4085fi
4086fi
4087ac_ct_CC=$ac_cv_prog_ac_ct_CC
4088if test -n "$ac_ct_CC"; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4090$as_echo "$ac_ct_CC" >&6; }
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096  if test "x$ac_ct_CC" = x; then
4097    CC=""
4098  else
4099    case $cross_compiling:$ac_tool_warned in
4100yes:)
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4103ac_tool_warned=yes ;;
4104esac
4105    CC=$ac_ct_CC
4106  fi
4107else
4108  CC="$ac_cv_prog_CC"
4109fi
4110
4111if test -z "$CC"; then
4112          if test -n "$ac_tool_prefix"; then
4113    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4114set dummy ${ac_tool_prefix}cc; ac_word=$2
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116$as_echo_n "checking for $ac_word... " >&6; }
4117if ${ac_cv_prog_CC+:} false; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  if test -n "$CC"; then
4121  ac_cv_prog_CC="$CC" # Let the user override the test.
4122else
4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128    for ac_exec_ext in '' $ac_executable_extensions; do
4129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130    ac_cv_prog_CC="${ac_tool_prefix}cc"
4131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132    break 2
4133  fi
4134done
4135  done
4136IFS=$as_save_IFS
4137
4138fi
4139fi
4140CC=$ac_cv_prog_CC
4141if test -n "$CC"; then
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143$as_echo "$CC" >&6; }
4144else
4145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146$as_echo "no" >&6; }
4147fi
4148
4149
4150  fi
4151fi
4152if test -z "$CC"; then
4153  # Extract the first word of "cc", so it can be a program name with args.
4154set dummy cc; ac_word=$2
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156$as_echo_n "checking for $ac_word... " >&6; }
4157if ${ac_cv_prog_CC+:} false; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  if test -n "$CC"; then
4161  ac_cv_prog_CC="$CC" # Let the user override the test.
4162else
4163  ac_prog_rejected=no
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169    for ac_exec_ext in '' $ac_executable_extensions; do
4170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4172       ac_prog_rejected=yes
4173       continue
4174     fi
4175    ac_cv_prog_CC="cc"
4176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177    break 2
4178  fi
4179done
4180  done
4181IFS=$as_save_IFS
4182
4183if test $ac_prog_rejected = yes; then
4184  # We found a bogon in the path, so make sure we never use it.
4185  set dummy $ac_cv_prog_CC
4186  shift
4187  if test $# != 0; then
4188    # We chose a different compiler from the bogus one.
4189    # However, it has the same basename, so the bogon will be chosen
4190    # first if we set CC to just the basename; use the full file name.
4191    shift
4192    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4193  fi
4194fi
4195fi
4196fi
4197CC=$ac_cv_prog_CC
4198if test -n "$CC"; then
4199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4200$as_echo "$CC" >&6; }
4201else
4202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203$as_echo "no" >&6; }
4204fi
4205
4206
4207fi
4208if test -z "$CC"; then
4209  if test -n "$ac_tool_prefix"; then
4210  for ac_prog in cl.exe
4211  do
4212    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4213set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if ${ac_cv_prog_CC+:} false; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  if test -n "$CC"; then
4220  ac_cv_prog_CC="$CC" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231    break 2
4232  fi
4233done
4234  done
4235IFS=$as_save_IFS
4236
4237fi
4238fi
4239CC=$ac_cv_prog_CC
4240if test -n "$CC"; then
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4242$as_echo "$CC" >&6; }
4243else
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248
4249    test -n "$CC" && break
4250  done
4251fi
4252if test -z "$CC"; then
4253  ac_ct_CC=$CC
4254  for ac_prog in cl.exe
4255do
4256  # Extract the first word of "$ac_prog", so it can be a program name with args.
4257set dummy $ac_prog; ac_word=$2
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259$as_echo_n "checking for $ac_word... " >&6; }
4260if ${ac_cv_prog_ac_ct_CC+:} false; then :
4261  $as_echo_n "(cached) " >&6
4262else
4263  if test -n "$ac_ct_CC"; then
4264  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269  IFS=$as_save_IFS
4270  test -z "$as_dir" && as_dir=.
4271    for ac_exec_ext in '' $ac_executable_extensions; do
4272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273    ac_cv_prog_ac_ct_CC="$ac_prog"
4274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275    break 2
4276  fi
4277done
4278  done
4279IFS=$as_save_IFS
4280
4281fi
4282fi
4283ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284if test -n "$ac_ct_CC"; then
4285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4286$as_echo "$ac_ct_CC" >&6; }
4287else
4288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
4290fi
4291
4292
4293  test -n "$ac_ct_CC" && break
4294done
4295
4296  if test "x$ac_ct_CC" = x; then
4297    CC=""
4298  else
4299    case $cross_compiling:$ac_tool_warned in
4300yes:)
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4303ac_tool_warned=yes ;;
4304esac
4305    CC=$ac_ct_CC
4306  fi
4307fi
4308
4309fi
4310
4311
4312test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4314as_fn_error $? "no acceptable C compiler found in \$PATH
4315See \`config.log' for more details" "$LINENO" 5; }
4316
4317# Provide some information about the compiler.
4318$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4319set X $ac_compile
4320ac_compiler=$2
4321for ac_option in --version -v -V -qversion; do
4322  { { ac_try="$ac_compiler $ac_option >&5"
4323case "(($ac_try" in
4324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325  *) ac_try_echo=$ac_try;;
4326esac
4327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328$as_echo "$ac_try_echo"; } >&5
4329  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4330  ac_status=$?
4331  if test -s conftest.err; then
4332    sed '10a\
4333... rest of stderr output deleted ...
4334         10q' conftest.err >conftest.er1
4335    cat conftest.er1 >&5
4336  fi
4337  rm -f conftest.er1 conftest.err
4338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339  test $ac_status = 0; }
4340done
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4343$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4344if ${ac_cv_c_compiler_gnu+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349
4350int
4351main ()
4352{
4353#ifndef __GNUC__
4354       choke me
4355#endif
4356
4357  ;
4358  return 0;
4359}
4360_ACEOF
4361if ac_fn_c_try_compile "$LINENO"; then :
4362  ac_compiler_gnu=yes
4363else
4364  ac_compiler_gnu=no
4365fi
4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367ac_cv_c_compiler_gnu=$ac_compiler_gnu
4368
4369fi
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4371$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4372if test $ac_compiler_gnu = yes; then
4373  GCC=yes
4374else
4375  GCC=
4376fi
4377ac_test_CFLAGS=${CFLAGS+set}
4378ac_save_CFLAGS=$CFLAGS
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4380$as_echo_n "checking whether $CC accepts -g... " >&6; }
4381if ${ac_cv_prog_cc_g+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  ac_save_c_werror_flag=$ac_c_werror_flag
4385   ac_c_werror_flag=yes
4386   ac_cv_prog_cc_g=no
4387   CFLAGS="-g"
4388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h.  */
4390
4391int
4392main ()
4393{
4394
4395  ;
4396  return 0;
4397}
4398_ACEOF
4399if ac_fn_c_try_compile "$LINENO"; then :
4400  ac_cv_prog_cc_g=yes
4401else
4402  CFLAGS=""
4403      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405
4406int
4407main ()
4408{
4409
4410  ;
4411  return 0;
4412}
4413_ACEOF
4414if ac_fn_c_try_compile "$LINENO"; then :
4415
4416else
4417  ac_c_werror_flag=$ac_save_c_werror_flag
4418	 CFLAGS="-g"
4419	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h.  */
4421
4422int
4423main ()
4424{
4425
4426  ;
4427  return 0;
4428}
4429_ACEOF
4430if ac_fn_c_try_compile "$LINENO"; then :
4431  ac_cv_prog_cc_g=yes
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438   ac_c_werror_flag=$ac_save_c_werror_flag
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4441$as_echo "$ac_cv_prog_cc_g" >&6; }
4442if test "$ac_test_CFLAGS" = set; then
4443  CFLAGS=$ac_save_CFLAGS
4444elif test $ac_cv_prog_cc_g = yes; then
4445  if test "$GCC" = yes; then
4446    CFLAGS="-g -O2"
4447  else
4448    CFLAGS="-g"
4449  fi
4450else
4451  if test "$GCC" = yes; then
4452    CFLAGS="-O2"
4453  else
4454    CFLAGS=
4455  fi
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4458$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4459if ${ac_cv_prog_cc_c89+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  ac_cv_prog_cc_c89=no
4463ac_save_CC=$CC
4464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465/* end confdefs.h.  */
4466#include <stdarg.h>
4467#include <stdio.h>
4468struct stat;
4469/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4470struct buf { int x; };
4471FILE * (*rcsopen) (struct buf *, struct stat *, int);
4472static char *e (p, i)
4473     char **p;
4474     int i;
4475{
4476  return p[i];
4477}
4478static char *f (char * (*g) (char **, int), char **p, ...)
4479{
4480  char *s;
4481  va_list v;
4482  va_start (v,p);
4483  s = g (p, va_arg (v,int));
4484  va_end (v);
4485  return s;
4486}
4487
4488/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4489   function prototypes and stuff, but not '\xHH' hex character constants.
4490   These don't provoke an error unfortunately, instead are silently treated
4491   as 'x'.  The following induces an error, until -std is added to get
4492   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4493   array size at least.  It's necessary to write '\x00'==0 to get something
4494   that's true only with -std.  */
4495int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4496
4497/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4498   inside strings and character constants.  */
4499#define FOO(x) 'x'
4500int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4501
4502int test (int i, double x);
4503struct s1 {int (*f) (int a);};
4504struct s2 {int (*f) (double a);};
4505int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4506int argc;
4507char **argv;
4508int
4509main ()
4510{
4511return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4512  ;
4513  return 0;
4514}
4515_ACEOF
4516for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4517	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4518do
4519  CC="$ac_save_CC $ac_arg"
4520  if ac_fn_c_try_compile "$LINENO"; then :
4521  ac_cv_prog_cc_c89=$ac_arg
4522fi
4523rm -f core conftest.err conftest.$ac_objext
4524  test "x$ac_cv_prog_cc_c89" != "xno" && break
4525done
4526rm -f conftest.$ac_ext
4527CC=$ac_save_CC
4528
4529fi
4530# AC_CACHE_VAL
4531case "x$ac_cv_prog_cc_c89" in
4532  x)
4533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4534$as_echo "none needed" >&6; } ;;
4535  xno)
4536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4537$as_echo "unsupported" >&6; } ;;
4538  *)
4539    CC="$CC $ac_cv_prog_cc_c89"
4540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4541$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4542esac
4543if test "x$ac_cv_prog_cc_c89" != xno; then :
4544
4545fi
4546
4547ac_ext=c
4548ac_cpp='$CPP $CPPFLAGS'
4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552
4553ac_ext=c
4554ac_cpp='$CPP $CPPFLAGS'
4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4559$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4560if ${am_cv_prog_cc_c_o+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h.  */
4565
4566int
4567main ()
4568{
4569
4570  ;
4571  return 0;
4572}
4573_ACEOF
4574  # Make sure it works both with $CC and with simple cc.
4575  # Following AC_PROG_CC_C_O, we do the test twice because some
4576  # compilers refuse to overwrite an existing .o file with -o,
4577  # though they will create one.
4578  am_cv_prog_cc_c_o=yes
4579  for am_i in 1 2; do
4580    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4581   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); } \
4585         && test -f conftest2.$ac_objext; then
4586      : OK
4587    else
4588      am_cv_prog_cc_c_o=no
4589      break
4590    fi
4591  done
4592  rm -f core conftest*
4593  unset am_i
4594fi
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4596$as_echo "$am_cv_prog_cc_c_o" >&6; }
4597if test "$am_cv_prog_cc_c_o" != yes; then
4598   # Losing compiler, so override with the script.
4599   # FIXME: It is wrong to rewrite CC.
4600   # But if we don't then we get into trouble of one sort or another.
4601   # A longer-term fix would be to have automake use am__CC in this case,
4602   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4603   CC="$am_aux_dir/compile $CC"
4604fi
4605ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611
4612depcc="$CC"   am_compiler_list=
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4615$as_echo_n "checking dependency style of $depcc... " >&6; }
4616if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4620  # We make a subdir and do the tests there.  Otherwise we can end up
4621  # making bogus files that we don't know about and never remove.  For
4622  # instance it was reported that on HP-UX the gcc test will end up
4623  # making a dummy file named 'D' -- because '-MD' means "put the output
4624  # in D".
4625  rm -rf conftest.dir
4626  mkdir conftest.dir
4627  # Copy depcomp to subdir because otherwise we won't find it if we're
4628  # using a relative directory.
4629  cp "$am_depcomp" conftest.dir
4630  cd conftest.dir
4631  # We will build objects and dependencies in a subdirectory because
4632  # it helps to detect inapplicable dependency modes.  For instance
4633  # both Tru64's cc and ICC support -MD to output dependencies as a
4634  # side effect of compilation, but ICC will put the dependencies in
4635  # the current directory while Tru64 will put them in the object
4636  # directory.
4637  mkdir sub
4638
4639  am_cv_CC_dependencies_compiler_type=none
4640  if test "$am_compiler_list" = ""; then
4641     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4642  fi
4643  am__universal=false
4644  case " $depcc " in #(
4645     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4646     esac
4647
4648  for depmode in $am_compiler_list; do
4649    # Setup a source with many dependencies, because some compilers
4650    # like to wrap large dependency lists on column 80 (with \), and
4651    # we should not choose a depcomp mode which is confused by this.
4652    #
4653    # We need to recreate these files for each test, as the compiler may
4654    # overwrite some of them when testing with obscure command lines.
4655    # This happens at least with the AIX C compiler.
4656    : > sub/conftest.c
4657    for i in 1 2 3 4 5 6; do
4658      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4659      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4660      # Solaris 10 /bin/sh.
4661      echo '/* dummy */' > sub/conftst$i.h
4662    done
4663    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4664
4665    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4666    # mode.  It turns out that the SunPro C++ compiler does not properly
4667    # handle '-M -o', and we need to detect this.  Also, some Intel
4668    # versions had trouble with output in subdirs.
4669    am__obj=sub/conftest.${OBJEXT-o}
4670    am__minus_obj="-o $am__obj"
4671    case $depmode in
4672    gcc)
4673      # This depmode causes a compiler race in universal mode.
4674      test "$am__universal" = false || continue
4675      ;;
4676    nosideeffect)
4677      # After this tag, mechanisms are not by side-effect, so they'll
4678      # only be used when explicitly requested.
4679      if test "x$enable_dependency_tracking" = xyes; then
4680	continue
4681      else
4682	break
4683      fi
4684      ;;
4685    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4686      # This compiler won't grok '-c -o', but also, the minuso test has
4687      # not run yet.  These depmodes are late enough in the game, and
4688      # so weak that their functioning should not be impacted.
4689      am__obj=conftest.${OBJEXT-o}
4690      am__minus_obj=
4691      ;;
4692    none) break ;;
4693    esac
4694    if depmode=$depmode \
4695       source=sub/conftest.c object=$am__obj \
4696       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4697       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4698         >/dev/null 2>conftest.err &&
4699       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4700       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4701       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4702       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4703      # icc doesn't choke on unknown options, it will just issue warnings
4704      # or remarks (even with -Werror).  So we grep stderr for any message
4705      # that says an option was ignored or not supported.
4706      # When given -MP, icc 7.0 and 7.1 complain thusly:
4707      #   icc: Command line warning: ignoring option '-M'; no argument required
4708      # The diagnosis changed in icc 8.0:
4709      #   icc: Command line remark: option '-MP' not supported
4710      if (grep 'ignoring option' conftest.err ||
4711          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4712        am_cv_CC_dependencies_compiler_type=$depmode
4713        break
4714      fi
4715    fi
4716  done
4717
4718  cd ..
4719  rm -rf conftest.dir
4720else
4721  am_cv_CC_dependencies_compiler_type=none
4722fi
4723
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4726$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4727CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4728
4729 if
4730  test "x$enable_dependency_tracking" != xno \
4731  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4732  am__fastdepCC_TRUE=
4733  am__fastdepCC_FALSE='#'
4734else
4735  am__fastdepCC_TRUE='#'
4736  am__fastdepCC_FALSE=
4737fi
4738
4739
4740ac_ext=c
4741ac_cpp='$CPP $CPPFLAGS'
4742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4746$as_echo_n "checking how to run the C preprocessor... " >&6; }
4747# On Suns, sometimes $CPP names a directory.
4748if test -n "$CPP" && test -d "$CPP"; then
4749  CPP=
4750fi
4751if test -z "$CPP"; then
4752  if ${ac_cv_prog_CPP+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755      # Double quotes because CPP needs to be expanded
4756    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4757    do
4758      ac_preproc_ok=false
4759for ac_c_preproc_warn_flag in '' yes
4760do
4761  # Use a header file that comes with gcc, so configuring glibc
4762  # with a fresh cross-compiler works.
4763  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4764  # <limits.h> exists even on freestanding compilers.
4765  # On the NeXT, cc -E runs the code through the compiler's parser,
4766  # not just through cpp. "Syntax error" is here to catch this case.
4767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h.  */
4769#ifdef __STDC__
4770# include <limits.h>
4771#else
4772# include <assert.h>
4773#endif
4774		     Syntax error
4775_ACEOF
4776if ac_fn_c_try_cpp "$LINENO"; then :
4777
4778else
4779  # Broken: fails on valid input.
4780continue
4781fi
4782rm -f conftest.err conftest.i conftest.$ac_ext
4783
4784  # OK, works on sane cases.  Now check whether nonexistent headers
4785  # can be detected and how.
4786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h.  */
4788#include <ac_nonexistent.h>
4789_ACEOF
4790if ac_fn_c_try_cpp "$LINENO"; then :
4791  # Broken: success on invalid input.
4792continue
4793else
4794  # Passes both tests.
4795ac_preproc_ok=:
4796break
4797fi
4798rm -f conftest.err conftest.i conftest.$ac_ext
4799
4800done
4801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802rm -f conftest.i conftest.err conftest.$ac_ext
4803if $ac_preproc_ok; then :
4804  break
4805fi
4806
4807    done
4808    ac_cv_prog_CPP=$CPP
4809
4810fi
4811  CPP=$ac_cv_prog_CPP
4812else
4813  ac_cv_prog_CPP=$CPP
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4816$as_echo "$CPP" >&6; }
4817ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820  # Use a header file that comes with gcc, so configuring glibc
4821  # with a fresh cross-compiler works.
4822  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823  # <limits.h> exists even on freestanding compilers.
4824  # On the NeXT, cc -E runs the code through the compiler's parser,
4825  # not just through cpp. "Syntax error" is here to catch this case.
4826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827/* end confdefs.h.  */
4828#ifdef __STDC__
4829# include <limits.h>
4830#else
4831# include <assert.h>
4832#endif
4833		     Syntax error
4834_ACEOF
4835if ac_fn_c_try_cpp "$LINENO"; then :
4836
4837else
4838  # Broken: fails on valid input.
4839continue
4840fi
4841rm -f conftest.err conftest.i conftest.$ac_ext
4842
4843  # OK, works on sane cases.  Now check whether nonexistent headers
4844  # can be detected and how.
4845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h.  */
4847#include <ac_nonexistent.h>
4848_ACEOF
4849if ac_fn_c_try_cpp "$LINENO"; then :
4850  # Broken: success on invalid input.
4851continue
4852else
4853  # Passes both tests.
4854ac_preproc_ok=:
4855break
4856fi
4857rm -f conftest.err conftest.i conftest.$ac_ext
4858
4859done
4860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861rm -f conftest.i conftest.err conftest.$ac_ext
4862if $ac_preproc_ok; then :
4863
4864else
4865  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4867as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4868See \`config.log' for more details" "$LINENO" 5; }
4869fi
4870
4871ac_ext=c
4872ac_cpp='$CPP $CPPFLAGS'
4873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4879$as_echo_n "checking whether ln -s works... " >&6; }
4880LN_S=$as_ln_s
4881if test "$LN_S" = "ln -s"; then
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4883$as_echo "yes" >&6; }
4884else
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4886$as_echo "no, using $LN_S" >&6; }
4887fi
4888
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4890$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4891set x ${MAKE-make}
4892ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4893if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  cat >conftest.make <<\_ACEOF
4897SHELL = /bin/sh
4898all:
4899	@echo '@@@%%%=$(MAKE)=@@@%%%'
4900_ACEOF
4901# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4902case `${MAKE-make} -f conftest.make 2>/dev/null` in
4903  *@@@%%%=?*=@@@%%%*)
4904    eval ac_cv_prog_make_${ac_make}_set=yes;;
4905  *)
4906    eval ac_cv_prog_make_${ac_make}_set=no;;
4907esac
4908rm -f conftest.make
4909fi
4910if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4912$as_echo "yes" >&6; }
4913  SET_MAKE=
4914else
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
4917  SET_MAKE="MAKE=${MAKE-make}"
4918fi
4919
4920if test -n "$ac_tool_prefix"; then
4921  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4922set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
4925if ${ac_cv_prog_RANLIB+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  if test -n "$RANLIB"; then
4929  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4930else
4931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932for as_dir in $PATH
4933do
4934  IFS=$as_save_IFS
4935  test -z "$as_dir" && as_dir=.
4936    for ac_exec_ext in '' $ac_executable_extensions; do
4937  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940    break 2
4941  fi
4942done
4943  done
4944IFS=$as_save_IFS
4945
4946fi
4947fi
4948RANLIB=$ac_cv_prog_RANLIB
4949if test -n "$RANLIB"; then
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4951$as_echo "$RANLIB" >&6; }
4952else
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954$as_echo "no" >&6; }
4955fi
4956
4957
4958fi
4959if test -z "$ac_cv_prog_RANLIB"; then
4960  ac_ct_RANLIB=$RANLIB
4961  # Extract the first word of "ranlib", so it can be a program name with args.
4962set dummy ranlib; ac_word=$2
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964$as_echo_n "checking for $ac_word... " >&6; }
4965if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4966  $as_echo_n "(cached) " >&6
4967else
4968  if test -n "$ac_ct_RANLIB"; then
4969  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4970else
4971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974  IFS=$as_save_IFS
4975  test -z "$as_dir" && as_dir=.
4976    for ac_exec_ext in '' $ac_executable_extensions; do
4977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978    ac_cv_prog_ac_ct_RANLIB="ranlib"
4979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980    break 2
4981  fi
4982done
4983  done
4984IFS=$as_save_IFS
4985
4986fi
4987fi
4988ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4989if test -n "$ac_ct_RANLIB"; then
4990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4991$as_echo "$ac_ct_RANLIB" >&6; }
4992else
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994$as_echo "no" >&6; }
4995fi
4996
4997  if test "x$ac_ct_RANLIB" = x; then
4998    RANLIB=":"
4999  else
5000    case $cross_compiling:$ac_tool_warned in
5001yes:)
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5004ac_tool_warned=yes ;;
5005esac
5006    RANLIB=$ac_ct_RANLIB
5007  fi
5008else
5009  RANLIB="$ac_cv_prog_RANLIB"
5010fi
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5022	if test -n "$ac_tool_prefix"; then
5023  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5024set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_path_PKG_CONFIG+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  case $PKG_CONFIG in
5031  [\\/]* | ?:[\\/]*)
5032  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5033  ;;
5034  *)
5035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038  IFS=$as_save_IFS
5039  test -z "$as_dir" && as_dir=.
5040    for ac_exec_ext in '' $ac_executable_extensions; do
5041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044    break 2
5045  fi
5046done
5047  done
5048IFS=$as_save_IFS
5049
5050  ;;
5051esac
5052fi
5053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5054if test -n "$PKG_CONFIG"; then
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5056$as_echo "$PKG_CONFIG" >&6; }
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059$as_echo "no" >&6; }
5060fi
5061
5062
5063fi
5064if test -z "$ac_cv_path_PKG_CONFIG"; then
5065  ac_pt_PKG_CONFIG=$PKG_CONFIG
5066  # Extract the first word of "pkg-config", so it can be a program name with args.
5067set dummy pkg-config; ac_word=$2
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
5070if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  case $ac_pt_PKG_CONFIG in
5074  [\\/]* | ?:[\\/]*)
5075  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5076  ;;
5077  *)
5078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  test -z "$as_dir" && as_dir=.
5083    for ac_exec_ext in '' $ac_executable_extensions; do
5084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087    break 2
5088  fi
5089done
5090  done
5091IFS=$as_save_IFS
5092
5093  ;;
5094esac
5095fi
5096ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5097if test -n "$ac_pt_PKG_CONFIG"; then
5098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5099$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5100else
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103fi
5104
5105  if test "x$ac_pt_PKG_CONFIG" = x; then
5106    PKG_CONFIG=""
5107  else
5108    case $cross_compiling:$ac_tool_warned in
5109yes:)
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5112ac_tool_warned=yes ;;
5113esac
5114    PKG_CONFIG=$ac_pt_PKG_CONFIG
5115  fi
5116else
5117  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5118fi
5119
5120fi
5121if test -n "$PKG_CONFIG"; then
5122	_pkg_min_version=0.9.0
5123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5124$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5125	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127$as_echo "yes" >&6; }
5128	else
5129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131		PKG_CONFIG=""
5132	fi
5133fi
5134
5135
5136#
5137# check host environment
5138#
5139cond_build_win32=no
5140cond_build_unix=no
5141unix_host=generic
5142case  ${host}  in #(
5143   *-*-mingw* ) :
5144     cond_build_win32=yes  ;; #(
5145   *-*-darwin*) :
5146
5147		cond_build_unix=yes
5148		unix_host=darwin
5149		 ;; #(
5150   *-*-linux* ) :
5151
5152		cond_build_unix=yes
5153		unix_host=linux
5154		 ;; #(
5155  *) :
5156     cond_build_unix=yes  ;;
5157esac
5158
5159 if  test "x${cond_build_win32}" = xyes ; then
5160  BUILD_WIN32_TRUE=
5161  BUILD_WIN32_FALSE='#'
5162else
5163  BUILD_WIN32_TRUE='#'
5164  BUILD_WIN32_FALSE=
5165fi
5166
5167 if  test "x${cond_build_unix}" = xyes ; then
5168  BUILD_UNIX_TRUE=
5169  BUILD_UNIX_FALSE='#'
5170else
5171  BUILD_UNIX_TRUE='#'
5172  BUILD_UNIX_FALSE=
5173fi
5174
5175
5176#
5177# Environment variable for specifying libGL.dylib path for Darwin when it
5178# is not in the dlopen() search path. see dlopen (3) for Mac OS X.
5179# Either export or in command line: GL_LIBDIR=/usr/Xll/lib, for example.
5180# If this GL_LIBDIR is not given, use the shell variable x_libraries from
5181# the AC_PATH_X macro (which may be empty)
5182#
5183gl_dlopen_path=default
5184
5185
5186if  test x"${unix_host}" = xdarwin ; then :
5187
5188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5189$as_echo_n "checking for X... " >&6; }
5190
5191
5192# Check whether --with-x was given.
5193if test "${with_x+set}" = set; then :
5194  withval=$with_x;
5195fi
5196
5197# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5198if test "x$with_x" = xno; then
5199  # The user explicitly disabled X.
5200  have_x=disabled
5201else
5202  case $x_includes,$x_libraries in #(
5203    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5204    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5205  $as_echo_n "(cached) " >&6
5206else
5207  # One or both of the vars are not set, and there is no cached value.
5208ac_x_includes=no ac_x_libraries=no
5209rm -f -r conftest.dir
5210if mkdir conftest.dir; then
5211  cd conftest.dir
5212  cat >Imakefile <<'_ACEOF'
5213incroot:
5214	@echo incroot='${INCROOT}'
5215usrlibdir:
5216	@echo usrlibdir='${USRLIBDIR}'
5217libdir:
5218	@echo libdir='${LIBDIR}'
5219_ACEOF
5220  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5221    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5222    for ac_var in incroot usrlibdir libdir; do
5223      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5224    done
5225    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5226    for ac_extension in a so sl dylib la dll; do
5227      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5228	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5229	ac_im_usrlibdir=$ac_im_libdir; break
5230      fi
5231    done
5232    # Screen out bogus values from the imake configuration.  They are
5233    # bogus both because they are the default anyway, and because
5234    # using them would break gcc on systems where it needs fixed includes.
5235    case $ac_im_incroot in
5236	/usr/include) ac_x_includes= ;;
5237	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5238    esac
5239    case $ac_im_usrlibdir in
5240	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
5241	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5242    esac
5243  fi
5244  cd ..
5245  rm -f -r conftest.dir
5246fi
5247
5248# Standard set of common directories for X headers.
5249# Check X11 before X11Rn because it is often a symlink to the current release.
5250ac_x_header_dirs='
5251/usr/X11/include
5252/usr/X11R7/include
5253/usr/X11R6/include
5254/usr/X11R5/include
5255/usr/X11R4/include
5256
5257/usr/include/X11
5258/usr/include/X11R7
5259/usr/include/X11R6
5260/usr/include/X11R5
5261/usr/include/X11R4
5262
5263/usr/local/X11/include
5264/usr/local/X11R7/include
5265/usr/local/X11R6/include
5266/usr/local/X11R5/include
5267/usr/local/X11R4/include
5268
5269/usr/local/include/X11
5270/usr/local/include/X11R7
5271/usr/local/include/X11R6
5272/usr/local/include/X11R5
5273/usr/local/include/X11R4
5274
5275/usr/X386/include
5276/usr/x386/include
5277/usr/XFree86/include/X11
5278
5279/usr/include
5280/usr/local/include
5281/usr/unsupported/include
5282/usr/athena/include
5283/usr/local/x11r5/include
5284/usr/lpp/Xamples/include
5285
5286/usr/openwin/include
5287/usr/openwin/share/include'
5288
5289if test "$ac_x_includes" = no; then
5290  # Guess where to find include files, by looking for Xlib.h.
5291  # First, try using that file with no special directory specified.
5292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294#include <X11/Xlib.h>
5295_ACEOF
5296if ac_fn_c_try_cpp "$LINENO"; then :
5297  # We can compile using X headers with no special include directory.
5298ac_x_includes=
5299else
5300  for ac_dir in $ac_x_header_dirs; do
5301  if test -r "$ac_dir/X11/Xlib.h"; then
5302    ac_x_includes=$ac_dir
5303    break
5304  fi
5305done
5306fi
5307rm -f conftest.err conftest.i conftest.$ac_ext
5308fi # $ac_x_includes = no
5309
5310if test "$ac_x_libraries" = no; then
5311  # Check for the libraries.
5312  # See if we find them without any special options.
5313  # Don't add to $LIBS permanently.
5314  ac_save_LIBS=$LIBS
5315  LIBS="-lX11 $LIBS"
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318#include <X11/Xlib.h>
5319int
5320main ()
5321{
5322XrmInitialize ()
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_link "$LINENO"; then :
5328  LIBS=$ac_save_LIBS
5329# We can link X programs with no special library path.
5330ac_x_libraries=
5331else
5332  LIBS=$ac_save_LIBS
5333for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5334do
5335  # Don't even attempt the hair of trying to link an X program!
5336  for ac_extension in a so sl dylib la dll; do
5337    if test -r "$ac_dir/libX11.$ac_extension"; then
5338      ac_x_libraries=$ac_dir
5339      break 2
5340    fi
5341  done
5342done
5343fi
5344rm -f core conftest.err conftest.$ac_objext \
5345    conftest$ac_exeext conftest.$ac_ext
5346fi # $ac_x_libraries = no
5347
5348case $ac_x_includes,$ac_x_libraries in #(
5349  no,* | *,no | *\'*)
5350    # Didn't find X, or a directory has "'" in its name.
5351    ac_cv_have_x="have_x=no";; #(
5352  *)
5353    # Record where we found X for the cache.
5354    ac_cv_have_x="have_x=yes\
5355	ac_x_includes='$ac_x_includes'\
5356	ac_x_libraries='$ac_x_libraries'"
5357esac
5358fi
5359;; #(
5360    *) have_x=yes;;
5361  esac
5362  eval "$ac_cv_have_x"
5363fi # $with_x != no
5364
5365if test "$have_x" != yes; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5367$as_echo "$have_x" >&6; }
5368  no_x=yes
5369else
5370  # If each of the values was on the command line, it overrides each guess.
5371  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5372  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5373  # Update the cache value to reflect the command line values.
5374  ac_cv_have_x="have_x=yes\
5375	ac_x_includes='$x_includes'\
5376	ac_x_libraries='$x_libraries'"
5377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5378$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5379fi
5380
5381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL_LIBDIR (location of libGL.dylib)" >&5
5382$as_echo_n "checking for GL_LIBDIR (location of libGL.dylib)... " >&6; }
5383
5384	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GL_LIBDIR}" >&5
5385$as_echo "${GL_LIBDIR}" >&6; }
5386	if  test x"${GL_LIBDIR}" = x ; then :
5387  gl_dlopen_path=${x_libraries}
5388else
5389  gl_dlopen_path=${GL_LIBDIR}
5390fi
5391
5392fi
5393
5394#
5395# Unix/Linux/Darwin dedicated server only build option
5396#
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the client" >&5
5398$as_echo_n "checking whether to build the client... " >&6; }
5399if test -z "$BUILD_UNIX_TRUE"; then :
5400
5401	# Check whether --enable-client was given.
5402if test "${enable_client+set}" = set; then :
5403  enableval=$enable_client; build_client=${enableval}
5404else
5405  build_client=yes
5406fi
5407
5408
5409else
5410  build_client=yes
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_client}" >&5
5413$as_echo "${build_client}" >&6; }
5414 if  test "x${build_client}" = xyes ; then
5415  BUILD_CLIENT_TRUE=
5416  BUILD_CLIENT_FALSE='#'
5417else
5418  BUILD_CLIENT_TRUE='#'
5419  BUILD_CLIENT_FALSE=
5420fi
5421
5422
5423#
5424# Alternate Install. Install in the traditional single directory way.
5425# Might be required for map making tools to work. Also, good when updating
5426# from SVN regularly. Affects how Makefile sets DATADIR and does make-install.
5427# for now, win32/mingw is always alternate install
5428#
5429if test -z "$BUILD_WIN32_TRUE"; then :
5430  alternate_install=yes
5431else
5432
5433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for traditional single directory, in place installation" >&5
5434$as_echo_n "checking for traditional single directory, in place installation... " >&6; }
5435	# Check whether --enable-alternate_install was given.
5436if test "${enable_alternate_install+set}" = set; then :
5437  enableval=$enable_alternate_install; alternate_install=${enableval}
5438else
5439  alternate_install=no
5440fi
5441
5442	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${alternate_install}" >&5
5443$as_echo "${alternate_install}" >&6; }
5444
5445fi
5446
5447 if  test "x${alternate_install}" = xyes ; then
5448  ALTERNATE_INSTALL_TRUE=
5449  ALTERNATE_INSTALL_FALSE='#'
5450else
5451  ALTERNATE_INSTALL_TRUE='#'
5452  ALTERNATE_INSTALL_FALSE=
5453fi
5454
5455
5456if test -z "$BUILD_UNIX_TRUE"; then :
5457
5458
5459$as_echo "#define UNIX_VARIANT 1" >>confdefs.h
5460
5461
5462	case  ${unix_host}  in #(
5463   darwin ) :
5464
5465
5466$as_echo "#define DARWIN_SPECIAL_CASE 1" >>confdefs.h
5467
5468
5469$as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
5470
5471			 ;; #(
5472   linux ) :
5473
5474$as_echo "#define LINUX_SPECIAL_CASE 1" >>confdefs.h
5475 ;; #(
5476  *) :
5477     generic
5478
5479$as_echo "#define GENERIC_UNIX 1" >>confdefs.h
5480 ;;
5481esac
5482
5483	# Check whether --enable-ansi-color was given.
5484if test "${enable_ansi_color+set}" = set; then :
5485  enableval=$enable_ansi_color; ansi_color=${enableval}
5486else
5487  ansi_color=no
5488fi
5489
5490	if  test "x$ansi_color" = "xyes" ; then :
5491
5492
5493$as_echo "#define ANSI_COLOR 1" >>confdefs.h
5494
5495
5496fi
5497
5498fi
5499
5500if test -z "$BUILD_WIN32_TRUE"; then :
5501
5502$as_echo "#define WIN32_VARIANT 1" >>confdefs.h
5503
5504fi
5505
5506
5507cat >>confdefs.h <<_ACEOF
5508#define CPUSTRING "${host_cpu}"
5509_ACEOF
5510
5511
5512cat >>confdefs.h <<_ACEOF
5513#define BUILDSTRING "${host_os}"
5514_ACEOF
5515
5516
5517#
5518# ODE (Open Dynamic Engine) Library
5519#
5520# if no option or "--without-system-libode" is specified, use the recommended
5521#  integrated ODE.
5522# if "--with-system-libode" is specified, check. look under BUILD_CLIENT
5523#  for details.
5524#
5525
5526# Check whether --with-system-libode was given.
5527if test "${with_system_libode+set}" = set; then :
5528  withval=$with_system_libode; system_ode=${withval}
5529else
5530  system_ode=no
5531fi
5532
5533
5534#
5535# Option for disabling installation of documents to allow for custom
5536# documentation installation. Normally only useful for distro packagers.
5537# Do not put in status message, because  documents probably are being
5538# installed in a custom way.
5539#
5540# Check whether --enable-documents was given.
5541if test "${enable_documents+set}" = set; then :
5542  enableval=$enable_documents; no_docs=${documents}
5543else
5544  no_docs=no
5545fi
5546
5547 if  test "x${no_docs}" = "xno" ; then
5548  INSTALL_DOCS_TRUE=
5549  INSTALL_DOCS_FALSE='#'
5550else
5551  INSTALL_DOCS_TRUE='#'
5552  INSTALL_DOCS_FALSE=
5553fi
5554
5555
5556#
5557# Option for specifying where icon is installed.
5558#
5559
5560# Check whether --with-icondir was given.
5561if test "${with_icondir+set}" = set; then :
5562  withval=$with_icondir;  with_icondir=${withval}
5563else
5564   with_icondir=${datadir}/icons
5565fi
5566
5567icondir=${with_icondir}
5568
5569
5570#
5571# User writable data and configuration subdirectory in $HOME
5572#  normally this is a hidden subdirectory
5573#  default is .codered. but distros modify this
5574#  can be overridden by environment variable, COR_GAME
5575#
5576# (These also are #defined in qcommon.h, but changing them is not a good idea
5577# BASE_GAMEDATA  "data1", GAME_GAMEDATA  "arena", BOT_GAMEDATA   "botinfo")
5578#
5579# AC_ARG_VAR creates ALIENARENA_HOMEDIR entry for ./configure --help
5580# AC_DEFINE_UNQUOTED adds the setting to config.h,
5581#  overriding the define in qcommon.h
5582#   and
5583#  using the default, if not specified in the commandline
5584#  (Note: could also be specified in enviroment. That is not recommended
5585#   but is the reason for the package specific variable name.)
5586#
5587alienarena_homedir=".codered"
5588
5589if  test "x${ALIENARENA_HOMEDIR}" = "x" ; then :
5590  ALIENARENA_HOMEDIR=${alienarena_homedir}
5591else
5592  alienarena_homedir=${ALIENARENA_HOMEDIR}
5593fi
5594
5595cat >>confdefs.h <<_ACEOF
5596#define USER_GAMEDATA "${alienarena_homedir}"
5597_ACEOF
5598
5599
5600#
5601# Checks for libraries.
5602#
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acos" >&5
5604$as_echo_n "checking for library containing acos... " >&6; }
5605if ${ac_cv_search_acos+:} false; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  ac_func_search_save_LIBS=$LIBS
5609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h.  */
5611
5612/* Override any GCC internal prototype to avoid an error.
5613   Use char because int might match the return type of a GCC
5614   builtin and then its argument prototype would still apply.  */
5615#ifdef __cplusplus
5616extern "C"
5617#endif
5618char acos ();
5619int
5620main ()
5621{
5622return acos ();
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627for ac_lib in '' m; do
5628  if test -z "$ac_lib"; then
5629    ac_res="none required"
5630  else
5631    ac_res=-l$ac_lib
5632    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5633  fi
5634  if ac_fn_c_try_link "$LINENO"; then :
5635  ac_cv_search_acos=$ac_res
5636fi
5637rm -f core conftest.err conftest.$ac_objext \
5638    conftest$ac_exeext
5639  if ${ac_cv_search_acos+:} false; then :
5640  break
5641fi
5642done
5643if ${ac_cv_search_acos+:} false; then :
5644
5645else
5646  ac_cv_search_acos=no
5647fi
5648rm conftest.$ac_ext
5649LIBS=$ac_func_search_save_LIBS
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acos" >&5
5652$as_echo "$ac_cv_search_acos" >&6; }
5653ac_res=$ac_cv_search_acos
5654if test "$ac_res" != no; then :
5655  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5656
5657fi
5658
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5660$as_echo_n "checking for library containing dlopen... " >&6; }
5661if ${ac_cv_search_dlopen+:} false; then :
5662  $as_echo_n "(cached) " >&6
5663else
5664  ac_func_search_save_LIBS=$LIBS
5665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h.  */
5667
5668/* Override any GCC internal prototype to avoid an error.
5669   Use char because int might match the return type of a GCC
5670   builtin and then its argument prototype would still apply.  */
5671#ifdef __cplusplus
5672extern "C"
5673#endif
5674char dlopen ();
5675int
5676main ()
5677{
5678return dlopen ();
5679  ;
5680  return 0;
5681}
5682_ACEOF
5683for ac_lib in '' dl; do
5684  if test -z "$ac_lib"; then
5685    ac_res="none required"
5686  else
5687    ac_res=-l$ac_lib
5688    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5689  fi
5690  if ac_fn_c_try_link "$LINENO"; then :
5691  ac_cv_search_dlopen=$ac_res
5692fi
5693rm -f core conftest.err conftest.$ac_objext \
5694    conftest$ac_exeext
5695  if ${ac_cv_search_dlopen+:} false; then :
5696  break
5697fi
5698done
5699if ${ac_cv_search_dlopen+:} false; then :
5700
5701else
5702  ac_cv_search_dlopen=no
5703fi
5704rm conftest.$ac_ext
5705LIBS=$ac_func_search_save_LIBS
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5708$as_echo "$ac_cv_search_dlopen" >&6; }
5709ac_res=$ac_cv_search_dlopen
5710if test "$ac_res" != no; then :
5711  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5712
5713fi
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5716$as_echo_n "checking for library containing clock_gettime... " >&6; }
5717if ${ac_cv_search_clock_gettime+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  ac_func_search_save_LIBS=$LIBS
5721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723
5724/* Override any GCC internal prototype to avoid an error.
5725   Use char because int might match the return type of a GCC
5726   builtin and then its argument prototype would still apply.  */
5727#ifdef __cplusplus
5728extern "C"
5729#endif
5730char clock_gettime ();
5731int
5732main ()
5733{
5734return clock_gettime ();
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739for ac_lib in '' rt; do
5740  if test -z "$ac_lib"; then
5741    ac_res="none required"
5742  else
5743    ac_res=-l$ac_lib
5744    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5745  fi
5746  if ac_fn_c_try_link "$LINENO"; then :
5747  ac_cv_search_clock_gettime=$ac_res
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750    conftest$ac_exeext
5751  if ${ac_cv_search_clock_gettime+:} false; then :
5752  break
5753fi
5754done
5755if ${ac_cv_search_clock_gettime+:} false; then :
5756
5757else
5758  ac_cv_search_clock_gettime=no
5759fi
5760rm conftest.$ac_ext
5761LIBS=$ac_func_search_save_LIBS
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5764$as_echo "$ac_cv_search_clock_gettime" >&6; }
5765ac_res=$ac_cv_search_clock_gettime
5766if test "$ac_res" != no; then :
5767  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5768
5769fi
5770
5771
5772if test -z "$BUILD_CLIENT_TRUE"; then :
5773
5774
5775
5776
5777ac_ext=c
5778ac_cpp='$CPP $CPPFLAGS'
5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782
5783ax_pthread_ok=no
5784
5785# We used to check for pthread.h first, but this fails if pthread.h
5786# requires special compiler flags (e.g. on True64 or Sequent).
5787# It gets checked for in the link test anyway.
5788
5789# First of all, check if the user has set any of the PTHREAD_LIBS,
5790# etcetera environment variables, and if threads linking works using
5791# them:
5792if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5793        save_CFLAGS="$CFLAGS"
5794        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5795        save_LIBS="$LIBS"
5796        LIBS="$PTHREAD_LIBS $LIBS"
5797        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5798$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5799        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801
5802/* Override any GCC internal prototype to avoid an error.
5803   Use char because int might match the return type of a GCC
5804   builtin and then its argument prototype would still apply.  */
5805#ifdef __cplusplus
5806extern "C"
5807#endif
5808char pthread_join ();
5809int
5810main ()
5811{
5812return pthread_join ();
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817if ac_fn_c_try_link "$LINENO"; then :
5818  ax_pthread_ok=yes
5819fi
5820rm -f core conftest.err conftest.$ac_objext \
5821    conftest$ac_exeext conftest.$ac_ext
5822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5823$as_echo "$ax_pthread_ok" >&6; }
5824        if test x"$ax_pthread_ok" = xno; then
5825                PTHREAD_LIBS=""
5826                PTHREAD_CFLAGS=""
5827        fi
5828        LIBS="$save_LIBS"
5829        CFLAGS="$save_CFLAGS"
5830fi
5831
5832# We must check for the threads library under a number of different
5833# names; the ordering is very important because some systems
5834# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5835# libraries is broken (non-POSIX).
5836
5837# Create a list of thread flags to try.  Items starting with a "-" are
5838# C compiler flags, and other items are library names, except for "none"
5839# which indicates that we try without any flags at all, and "pthread-config"
5840# which is a program returning the flags for the Pth emulation library.
5841
5842ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5843
5844# The ordering *is* (sometimes) important.  Some notes on the
5845# individual items follow:
5846
5847# pthreads: AIX (must check this before -lpthread)
5848# none: in case threads are in libc; should be tried before -Kthread and
5849#       other compiler flags to prevent continual compiler warnings
5850# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5851# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5852# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5853# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5854# -pthreads: Solaris/gcc
5855# -mthreads: Mingw32/gcc, Lynx/gcc
5856# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5857#      doesn't hurt to check since this sometimes defines pthreads too;
5858#      also defines -D_REENTRANT)
5859#      ... -mt is also the pthreads flag for HP/aCC
5860# pthread: Linux, etcetera
5861# --thread-safe: KAI C++
5862# pthread-config: use pthread-config program (for GNU Pth library)
5863
5864case ${host_os} in
5865        solaris*)
5866
5867        # On Solaris (at least, for some versions), libc contains stubbed
5868        # (non-functional) versions of the pthreads routines, so link-based
5869        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
5870        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
5871        # a function called by this macro, so we could check for that, but
5872        # who knows whether they'll stub that too in a future libc.)  So,
5873        # we'll just look for -pthreads and -lpthread first:
5874
5875        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
5876        ;;
5877
5878        darwin*)
5879        ax_pthread_flags="-pthread $ax_pthread_flags"
5880        ;;
5881esac
5882
5883if test x"$ax_pthread_ok" = xno; then
5884for flag in $ax_pthread_flags; do
5885
5886        case $flag in
5887                none)
5888                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5889$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5890                ;;
5891
5892                -*)
5893                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5894$as_echo_n "checking whether pthreads work with $flag... " >&6; }
5895                PTHREAD_CFLAGS="$flag"
5896                ;;
5897
5898                pthread-config)
5899                # Extract the first word of "pthread-config", so it can be a program name with args.
5900set dummy pthread-config; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_ax_pthread_config+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  if test -n "$ax_pthread_config"; then
5907  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_exec_ext in '' $ac_executable_extensions; do
5915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916    ac_cv_prog_ax_pthread_config="yes"
5917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921  done
5922IFS=$as_save_IFS
5923
5924  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
5925fi
5926fi
5927ax_pthread_config=$ac_cv_prog_ax_pthread_config
5928if test -n "$ax_pthread_config"; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
5930$as_echo "$ax_pthread_config" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936
5937                if test x"$ax_pthread_config" = xno; then continue; fi
5938                PTHREAD_CFLAGS="`pthread-config --cflags`"
5939                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
5940                ;;
5941
5942                *)
5943                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
5944$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
5945                PTHREAD_LIBS="-l$flag"
5946                ;;
5947        esac
5948
5949        save_LIBS="$LIBS"
5950        save_CFLAGS="$CFLAGS"
5951        LIBS="$PTHREAD_LIBS $LIBS"
5952        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5953
5954        # Check for various functions.  We must include pthread.h,
5955        # since some functions may be macros.  (On the Sequent, we
5956        # need a special flag -Kthread to make this header compile.)
5957        # We check for pthread_join because it is in -lpthread on IRIX
5958        # while pthread_create is in libc.  We check for pthread_attr_init
5959        # due to DEC craziness with -lpthreads.  We check for
5960        # pthread_cleanup_push because it is one of the few pthread
5961        # functions on Solaris that doesn't have a non-functional libc stub.
5962        # We try pthread_create on general principles.
5963        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964/* end confdefs.h.  */
5965#include <pthread.h>
5966                        static void routine(void *a) { a = 0; }
5967                        static void *start_routine(void *a) { return a; }
5968int
5969main ()
5970{
5971pthread_t th; pthread_attr_t attr;
5972                        pthread_create(&th, 0, start_routine, 0);
5973                        pthread_join(th, 0);
5974                        pthread_attr_init(&attr);
5975                        pthread_cleanup_push(routine, 0);
5976                        pthread_cleanup_pop(0) /* ; */
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_link "$LINENO"; then :
5982  ax_pthread_ok=yes
5983fi
5984rm -f core conftest.err conftest.$ac_objext \
5985    conftest$ac_exeext conftest.$ac_ext
5986
5987        LIBS="$save_LIBS"
5988        CFLAGS="$save_CFLAGS"
5989
5990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
5991$as_echo "$ax_pthread_ok" >&6; }
5992        if test "x$ax_pthread_ok" = xyes; then
5993                break;
5994        fi
5995
5996        PTHREAD_LIBS=""
5997        PTHREAD_CFLAGS=""
5998done
5999fi
6000
6001# Various other checks:
6002if test "x$ax_pthread_ok" = xyes; then
6003        save_LIBS="$LIBS"
6004        LIBS="$PTHREAD_LIBS $LIBS"
6005        save_CFLAGS="$CFLAGS"
6006        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6007
6008        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6009        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6010$as_echo_n "checking for joinable pthread attribute... " >&6; }
6011        attr_name=unknown
6012        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6013            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015#include <pthread.h>
6016int
6017main ()
6018{
6019int attr = $attr; return attr /* ; */
6020  ;
6021  return 0;
6022}
6023_ACEOF
6024if ac_fn_c_try_link "$LINENO"; then :
6025  attr_name=$attr; break
6026fi
6027rm -f core conftest.err conftest.$ac_objext \
6028    conftest$ac_exeext conftest.$ac_ext
6029        done
6030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
6031$as_echo "$attr_name" >&6; }
6032        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6033
6034cat >>confdefs.h <<_ACEOF
6035#define PTHREAD_CREATE_JOINABLE $attr_name
6036_ACEOF
6037
6038        fi
6039
6040        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
6041$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
6042        flag=no
6043        case ${host_os} in
6044            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
6045            osf* | hpux*) flag="-D_REENTRANT";;
6046            solaris*)
6047            if test "$GCC" = "yes"; then
6048                flag="-D_REENTRANT"
6049            else
6050                flag="-mt -D_REENTRANT"
6051            fi
6052            ;;
6053        esac
6054        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
6055$as_echo "${flag}" >&6; }
6056        if test "x$flag" != xno; then
6057            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6058        fi
6059
6060        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6061$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6062if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065
6066                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068
6069                    #include <pthread.h>
6070int
6071main ()
6072{
6073int i = PTHREAD_PRIO_INHERIT;
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078if ac_fn_c_try_link "$LINENO"; then :
6079  ax_cv_PTHREAD_PRIO_INHERIT=yes
6080else
6081  ax_cv_PTHREAD_PRIO_INHERIT=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext \
6084    conftest$ac_exeext conftest.$ac_ext
6085
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6088$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6089        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
6090
6091$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6092
6093fi
6094
6095        LIBS="$save_LIBS"
6096        CFLAGS="$save_CFLAGS"
6097
6098        # More AIX lossage: must compile with xlc_r or cc_r
6099        if test x"$GCC" != xyes; then
6100          for ac_prog in xlc_r cc_r
6101do
6102  # Extract the first word of "$ac_prog", so it can be a program name with args.
6103set dummy $ac_prog; ac_word=$2
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$PTHREAD_CC"; then
6110  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117    for ac_exec_ext in '' $ac_executable_extensions; do
6118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119    ac_cv_prog_PTHREAD_CC="$ac_prog"
6120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124  done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6130if test -n "$PTHREAD_CC"; then
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6132$as_echo "$PTHREAD_CC" >&6; }
6133else
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139  test -n "$PTHREAD_CC" && break
6140done
6141test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
6142
6143        else
6144          PTHREAD_CC=$CC
6145        fi
6146else
6147        PTHREAD_CC="$CC"
6148fi
6149
6150
6151
6152
6153
6154# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6155if test x"$ax_pthread_ok" = xyes; then
6156
6157$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6158
6159        :
6160else
6161        ax_pthread_ok=no
6162        as_fn_error $? "\"Required pthreads support not found.\"" "$LINENO" 5
6163fi
6164ac_ext=c
6165ac_cpp='$CPP $CPPFLAGS'
6166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170
6171#
6172# This might be a workaround for DSO missing pthread library error
6173#
6174	if  test "x$PTHREAD_LIBS" = "x" ; then :
6175  PTHREAD_LIBS="-pthread"
6176fi
6177
6178
6179# Check whether --with-zlib was given.
6180if test "${with_zlib+set}" = set; then :
6181  withval=$with_zlib;
6182else
6183  with_zlib=check
6184fi
6185
6186	have_zlib=no
6187	if  test "x$with_zlib" != "xno" ; then :
6188
6189
6190pkg_failed=no
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
6192$as_echo_n "checking for ZLIB... " >&6; }
6193
6194if test -n "$ZLIB_CFLAGS"; then
6195    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
6196 elif test -n "$PKG_CONFIG"; then
6197    if test -n "$PKG_CONFIG" && \
6198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
6199  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
6200  ac_status=$?
6201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202  test $ac_status = 0; }; then
6203  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
6204		      test "x$?" != "x0" && pkg_failed=yes
6205else
6206  pkg_failed=yes
6207fi
6208 else
6209    pkg_failed=untried
6210fi
6211if test -n "$ZLIB_LIBS"; then
6212    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
6213 elif test -n "$PKG_CONFIG"; then
6214    if test -n "$PKG_CONFIG" && \
6215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
6216  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
6217  ac_status=$?
6218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219  test $ac_status = 0; }; then
6220  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
6221		      test "x$?" != "x0" && pkg_failed=yes
6222else
6223  pkg_failed=yes
6224fi
6225 else
6226    pkg_failed=untried
6227fi
6228
6229
6230
6231if test $pkg_failed = yes; then
6232   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233$as_echo "no" >&6; }
6234
6235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6236        _pkg_short_errors_supported=yes
6237else
6238        _pkg_short_errors_supported=no
6239fi
6240        if test $_pkg_short_errors_supported = yes; then
6241	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
6242        else
6243	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
6244        fi
6245	# Put the nasty error message in config.log where it belongs
6246	echo "$ZLIB_PKG_ERRORS" >&5
6247
6248
6249			have_zlib=no
6250			if  test "x$with_zlib" = "xyes" ; then :
6251
6252				{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6254as_fn_error $? "--with-zlib specified, but the library or headers could not be found
6255See \`config.log' for more details" "$LINENO" 5; }
6256
6257fi
6258
6259elif test $pkg_failed = untried; then
6260     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262
6263			have_zlib=no
6264			if  test "x$with_zlib" = "xyes" ; then :
6265
6266				{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6268as_fn_error $? "--with-zlib specified, but the library or headers could not be found
6269See \`config.log' for more details" "$LINENO" 5; }
6270
6271fi
6272
6273else
6274	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
6275	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
6276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6277$as_echo "yes" >&6; }
6278
6279			have_zlib=yes
6280
6281$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
6282
6283
6284fi
6285
6286fi
6287
6288
6289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing jpeg_read_header" >&5
6290$as_echo_n "checking for library containing jpeg_read_header... " >&6; }
6291if ${ac_cv_search_jpeg_read_header+:} false; then :
6292  $as_echo_n "(cached) " >&6
6293else
6294  ac_func_search_save_LIBS=$LIBS
6295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h.  */
6297
6298/* Override any GCC internal prototype to avoid an error.
6299   Use char because int might match the return type of a GCC
6300   builtin and then its argument prototype would still apply.  */
6301#ifdef __cplusplus
6302extern "C"
6303#endif
6304char jpeg_read_header ();
6305int
6306main ()
6307{
6308return jpeg_read_header ();
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313for ac_lib in '' jpeg; do
6314  if test -z "$ac_lib"; then
6315    ac_res="none required"
6316  else
6317    ac_res=-l$ac_lib
6318    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6319  fi
6320  if ac_fn_c_try_link "$LINENO"; then :
6321  ac_cv_search_jpeg_read_header=$ac_res
6322fi
6323rm -f core conftest.err conftest.$ac_objext \
6324    conftest$ac_exeext
6325  if ${ac_cv_search_jpeg_read_header+:} false; then :
6326  break
6327fi
6328done
6329if ${ac_cv_search_jpeg_read_header+:} false; then :
6330
6331else
6332  ac_cv_search_jpeg_read_header=no
6333fi
6334rm conftest.$ac_ext
6335LIBS=$ac_func_search_save_LIBS
6336fi
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_jpeg_read_header" >&5
6338$as_echo "$ac_cv_search_jpeg_read_header" >&6; }
6339ac_res=$ac_cv_search_jpeg_read_header
6340if test "$ac_res" != no; then :
6341  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6342
6343else
6344  as_fn_error $? "\"Required jpeg library not found.\"" "$LINENO" 5
6345fi
6346
6347
6348
6349	if test -z "$BUILD_UNIX_TRUE"; then :
6350
6351
6352pkg_failed=no
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
6354$as_echo_n "checking for X11... " >&6; }
6355
6356if test -n "$X11_CFLAGS"; then
6357    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
6358 elif test -n "$PKG_CONFIG"; then
6359    if test -n "$PKG_CONFIG" && \
6360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6361  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6362  ac_status=$?
6363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364  test $ac_status = 0; }; then
6365  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6366		      test "x$?" != "x0" && pkg_failed=yes
6367else
6368  pkg_failed=yes
6369fi
6370 else
6371    pkg_failed=untried
6372fi
6373if test -n "$X11_LIBS"; then
6374    pkg_cv_X11_LIBS="$X11_LIBS"
6375 elif test -n "$PKG_CONFIG"; then
6376    if test -n "$PKG_CONFIG" && \
6377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6378  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
6379  ac_status=$?
6380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381  test $ac_status = 0; }; then
6382  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6383		      test "x$?" != "x0" && pkg_failed=yes
6384else
6385  pkg_failed=yes
6386fi
6387 else
6388    pkg_failed=untried
6389fi
6390
6391
6392
6393if test $pkg_failed = yes; then
6394   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395$as_echo "no" >&6; }
6396
6397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6398        _pkg_short_errors_supported=yes
6399else
6400        _pkg_short_errors_supported=no
6401fi
6402        if test $_pkg_short_errors_supported = yes; then
6403	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6404        else
6405	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6406        fi
6407	# Put the nasty error message in config.log where it belongs
6408	echo "$X11_PKG_ERRORS" >&5
6409
6410	as_fn_error $? "Package requirements (x11) were not met:
6411
6412$X11_PKG_ERRORS
6413
6414Consider adjusting the PKG_CONFIG_PATH environment variable if you
6415installed software in a non-standard prefix.
6416
6417Alternatively, you may set the environment variables X11_CFLAGS
6418and X11_LIBS to avoid the need to call pkg-config.
6419See the pkg-config man page for more details." "$LINENO" 5
6420elif test $pkg_failed = untried; then
6421     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6425as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6426is in your PATH or set the PKG_CONFIG environment variable to the full
6427path to pkg-config.
6428
6429Alternatively, you may set the environment variables X11_CFLAGS
6430and X11_LIBS to avoid the need to call pkg-config.
6431See the pkg-config man page for more details.
6432
6433To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6434See \`config.log' for more details" "$LINENO" 5; }
6435else
6436	X11_CFLAGS=$pkg_cv_X11_CFLAGS
6437	X11_LIBS=$pkg_cv_X11_LIBS
6438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6439$as_echo "yes" >&6; }
6440
6441fi
6442
6443
6444# Check whether --with-xf86vm was given.
6445if test "${with_xf86vm+set}" = set; then :
6446  withval=$with_xf86vm;
6447else
6448  with_xf86vm=check
6449fi
6450
6451		have_Xxf86vm=no
6452		if  test "x$with_xf86vm" != "xno" ; then :
6453
6454
6455pkg_failed=no
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86VM" >&5
6457$as_echo_n "checking for XXF86VM... " >&6; }
6458
6459if test -n "$XXF86VM_CFLAGS"; then
6460    pkg_cv_XXF86VM_CFLAGS="$XXF86VM_CFLAGS"
6461 elif test -n "$PKG_CONFIG"; then
6462    if test -n "$PKG_CONFIG" && \
6463    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
6464  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
6465  ac_status=$?
6466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467  test $ac_status = 0; }; then
6468  pkg_cv_XXF86VM_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
6469		      test "x$?" != "x0" && pkg_failed=yes
6470else
6471  pkg_failed=yes
6472fi
6473 else
6474    pkg_failed=untried
6475fi
6476if test -n "$XXF86VM_LIBS"; then
6477    pkg_cv_XXF86VM_LIBS="$XXF86VM_LIBS"
6478 elif test -n "$PKG_CONFIG"; then
6479    if test -n "$PKG_CONFIG" && \
6480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
6481  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
6482  ac_status=$?
6483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484  test $ac_status = 0; }; then
6485  pkg_cv_XXF86VM_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
6486		      test "x$?" != "x0" && pkg_failed=yes
6487else
6488  pkg_failed=yes
6489fi
6490 else
6491    pkg_failed=untried
6492fi
6493
6494
6495
6496if test $pkg_failed = yes; then
6497   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499
6500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6501        _pkg_short_errors_supported=yes
6502else
6503        _pkg_short_errors_supported=no
6504fi
6505        if test $_pkg_short_errors_supported = yes; then
6506	        XXF86VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
6507        else
6508	        XXF86VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
6509        fi
6510	# Put the nasty error message in config.log where it belongs
6511	echo "$XXF86VM_PKG_ERRORS" >&5
6512
6513
6514				have_Xxf86vm=no
6515				if  test "x$with_xf86vm" = "xyes" ; then :
6516
6517					{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6519as_fn_error $? "--with-xf86vm specified, but the library or headers could not be found
6520See \`config.log' for more details" "$LINENO" 5; }
6521
6522fi
6523
6524elif test $pkg_failed = untried; then
6525     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
6527
6528				have_Xxf86vm=no
6529				if  test "x$with_xf86vm" = "xyes" ; then :
6530
6531					{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6533as_fn_error $? "--with-xf86vm specified, but the library or headers could not be found
6534See \`config.log' for more details" "$LINENO" 5; }
6535
6536fi
6537
6538else
6539	XXF86VM_CFLAGS=$pkg_cv_XXF86VM_CFLAGS
6540	XXF86VM_LIBS=$pkg_cv_XXF86VM_LIBS
6541        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542$as_echo "yes" >&6; }
6543
6544				have_Xxf86vm=yes
6545
6546$as_echo "#define HAVE_XXF86VM 1" >>confdefs.h
6547
6548
6549fi
6550
6551fi
6552
6553
6554# Check whether --with-xf86dga was given.
6555if test "${with_xf86dga+set}" = set; then :
6556  withval=$with_xf86dga;
6557else
6558  with_xf86dga=no
6559fi
6560
6561		have_Xxf86dga=no
6562		if  test "x$with_xf86dga" != "xno" ; then :
6563
6564
6565pkg_failed=no
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86DGA" >&5
6567$as_echo_n "checking for XXF86DGA... " >&6; }
6568
6569if test -n "$XXF86DGA_CFLAGS"; then
6570    pkg_cv_XXF86DGA_CFLAGS="$XXF86DGA_CFLAGS"
6571 elif test -n "$PKG_CONFIG"; then
6572    if test -n "$PKG_CONFIG" && \
6573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
6574  ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
6575  ac_status=$?
6576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6577  test $ac_status = 0; }; then
6578  pkg_cv_XXF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null`
6579		      test "x$?" != "x0" && pkg_failed=yes
6580else
6581  pkg_failed=yes
6582fi
6583 else
6584    pkg_failed=untried
6585fi
6586if test -n "$XXF86DGA_LIBS"; then
6587    pkg_cv_XXF86DGA_LIBS="$XXF86DGA_LIBS"
6588 elif test -n "$PKG_CONFIG"; then
6589    if test -n "$PKG_CONFIG" && \
6590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5
6591  ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5
6592  ac_status=$?
6593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594  test $ac_status = 0; }; then
6595  pkg_cv_XXF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null`
6596		      test "x$?" != "x0" && pkg_failed=yes
6597else
6598  pkg_failed=yes
6599fi
6600 else
6601    pkg_failed=untried
6602fi
6603
6604
6605
6606if test $pkg_failed = yes; then
6607   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609
6610if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6611        _pkg_short_errors_supported=yes
6612else
6613        _pkg_short_errors_supported=no
6614fi
6615        if test $_pkg_short_errors_supported = yes; then
6616	        XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86dga" 2>&1`
6617        else
6618	        XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86dga" 2>&1`
6619        fi
6620	# Put the nasty error message in config.log where it belongs
6621	echo "$XXF86DGA_PKG_ERRORS" >&5
6622
6623
6624				have_Xxf86dga=no
6625				if  test "x$with_xf86dga" = "xyes" ; then :
6626
6627					{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6629as_fn_error $? "--with-xf86dga specified, but the library or headers could not be found
6630See \`config.log' for more details" "$LINENO" 5; }
6631
6632fi
6633
6634elif test $pkg_failed = untried; then
6635     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637
6638				have_Xxf86dga=no
6639				if  test "x$with_xf86dga" = "xyes" ; then :
6640
6641					{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6643as_fn_error $? "--with-xf86dga specified, but the library or headers could not be found
6644See \`config.log' for more details" "$LINENO" 5; }
6645
6646fi
6647
6648else
6649	XXF86DGA_CFLAGS=$pkg_cv_XXF86DGA_CFLAGS
6650	XXF86DGA_LIBS=$pkg_cv_XXF86DGA_LIBS
6651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652$as_echo "yes" >&6; }
6653
6654				have_Xxf86dga=yes
6655
6656$as_echo "#define HAVE_XXF86DGA 1" >>confdefs.h
6657
6658				for ac_header in X11/extensions/Xxf86dga.h
6659do :
6660  ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xxf86dga.h" "ac_cv_header_X11_extensions_Xxf86dga_h" "
6661#include <X11/Xlib.h>
6662#include <X11/Xatom.h>
6663
6664"
6665if test "x$ac_cv_header_X11_extensions_Xxf86dga_h" = xyes; then :
6666  cat >>confdefs.h <<_ACEOF
6667#define HAVE_X11_EXTENSIONS_XXF86DGA_H 1
6668_ACEOF
6669
6670fi
6671
6672done
6673
6674
6675fi
6676
6677fi
6678
6679fi
6680
6681#
6682# if option to use system libode, rather than integrated ODE, is selected
6683#  use pkg-config to get cflags and libs. do not default to
6684#  integrated ODE on failure, as that is probably not what is wanted.
6685#
6686# for recommended integrated ODE build, setup client dependencies,
6687#  and configuration. Double precision math is "hardwired" here and
6688#  is not considered to be a user-specifiable option.
6689#
6690	if  test "x$system_ode" = "xyes" ; then :
6691
6692
6693pkg_failed=no
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODE" >&5
6695$as_echo_n "checking for ODE... " >&6; }
6696
6697if test -n "$ODE_CFLAGS"; then
6698    pkg_cv_ODE_CFLAGS="$ODE_CFLAGS"
6699 elif test -n "$PKG_CONFIG"; then
6700    if test -n "$PKG_CONFIG" && \
6701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ode\""; } >&5
6702  ($PKG_CONFIG --exists --print-errors "ode") 2>&5
6703  ac_status=$?
6704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705  test $ac_status = 0; }; then
6706  pkg_cv_ODE_CFLAGS=`$PKG_CONFIG --cflags "ode" 2>/dev/null`
6707		      test "x$?" != "x0" && pkg_failed=yes
6708else
6709  pkg_failed=yes
6710fi
6711 else
6712    pkg_failed=untried
6713fi
6714if test -n "$ODE_LIBS"; then
6715    pkg_cv_ODE_LIBS="$ODE_LIBS"
6716 elif test -n "$PKG_CONFIG"; then
6717    if test -n "$PKG_CONFIG" && \
6718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ode\""; } >&5
6719  ($PKG_CONFIG --exists --print-errors "ode") 2>&5
6720  ac_status=$?
6721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722  test $ac_status = 0; }; then
6723  pkg_cv_ODE_LIBS=`$PKG_CONFIG --libs "ode" 2>/dev/null`
6724		      test "x$?" != "x0" && pkg_failed=yes
6725else
6726  pkg_failed=yes
6727fi
6728 else
6729    pkg_failed=untried
6730fi
6731
6732
6733
6734if test $pkg_failed = yes; then
6735   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737
6738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6739        _pkg_short_errors_supported=yes
6740else
6741        _pkg_short_errors_supported=no
6742fi
6743        if test $_pkg_short_errors_supported = yes; then
6744	        ODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ode" 2>&1`
6745        else
6746	        ODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ode" 2>&1`
6747        fi
6748	# Put the nasty error message in config.log where it belongs
6749	echo "$ODE_PKG_ERRORS" >&5
6750
6751
6752			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6754as_fn_error $? "--with-system-libode specified, but the library or headers could not be found
6755See \`config.log' for more details" "$LINENO" 5; }
6756
6757elif test $pkg_failed = untried; then
6758     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759$as_echo "no" >&6; }
6760
6761			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6763as_fn_error $? "--with-system-libode specified, but the library or headers could not be found
6764See \`config.log' for more details" "$LINENO" 5; }
6765
6766else
6767	ODE_CFLAGS=$pkg_cv_ODE_CFLAGS
6768	ODE_LIBS=$pkg_cv_ODE_LIBS
6769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6770$as_echo "yes" >&6; }
6771
6772fi
6773
6774else
6775
6776		ODE_CFLAGS=-DdDOUBLE
6777
6778
6779$as_echo "#define dEpsilon DBL_EPSILON" >>confdefs.h
6780
6781
6782fi
6783
6784
6785pkg_failed=no
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5
6787$as_echo_n "checking for DEPS... " >&6; }
6788
6789if test -n "$DEPS_CFLAGS"; then
6790    pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
6791 elif test -n "$PKG_CONFIG"; then
6792    if test -n "$PKG_CONFIG" && \
6793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl ogg vorbis vorbisfile freetype2\""; } >&5
6794  ($PKG_CONFIG --exists --print-errors "libcurl ogg vorbis vorbisfile freetype2") 2>&5
6795  ac_status=$?
6796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797  test $ac_status = 0; }; then
6798  pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "libcurl ogg vorbis vorbisfile freetype2" 2>/dev/null`
6799		      test "x$?" != "x0" && pkg_failed=yes
6800else
6801  pkg_failed=yes
6802fi
6803 else
6804    pkg_failed=untried
6805fi
6806if test -n "$DEPS_LIBS"; then
6807    pkg_cv_DEPS_LIBS="$DEPS_LIBS"
6808 elif test -n "$PKG_CONFIG"; then
6809    if test -n "$PKG_CONFIG" && \
6810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl ogg vorbis vorbisfile freetype2\""; } >&5
6811  ($PKG_CONFIG --exists --print-errors "libcurl ogg vorbis vorbisfile freetype2") 2>&5
6812  ac_status=$?
6813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814  test $ac_status = 0; }; then
6815  pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "libcurl ogg vorbis vorbisfile freetype2" 2>/dev/null`
6816		      test "x$?" != "x0" && pkg_failed=yes
6817else
6818  pkg_failed=yes
6819fi
6820 else
6821    pkg_failed=untried
6822fi
6823
6824
6825
6826if test $pkg_failed = yes; then
6827   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829
6830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6831        _pkg_short_errors_supported=yes
6832else
6833        _pkg_short_errors_supported=no
6834fi
6835        if test $_pkg_short_errors_supported = yes; then
6836	        DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl ogg vorbis vorbisfile freetype2" 2>&1`
6837        else
6838	        DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl ogg vorbis vorbisfile freetype2" 2>&1`
6839        fi
6840	# Put the nasty error message in config.log where it belongs
6841	echo "$DEPS_PKG_ERRORS" >&5
6842
6843	as_fn_error $? "Package requirements (libcurl ogg vorbis vorbisfile freetype2) were not met:
6844
6845$DEPS_PKG_ERRORS
6846
6847Consider adjusting the PKG_CONFIG_PATH environment variable if you
6848installed software in a non-standard prefix.
6849
6850Alternatively, you may set the environment variables DEPS_CFLAGS
6851and DEPS_LIBS to avoid the need to call pkg-config.
6852See the pkg-config man page for more details." "$LINENO" 5
6853elif test $pkg_failed = untried; then
6854     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6858as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
6859is in your PATH or set the PKG_CONFIG environment variable to the full
6860path to pkg-config.
6861
6862Alternatively, you may set the environment variables DEPS_CFLAGS
6863and DEPS_LIBS to avoid the need to call pkg-config.
6864See the pkg-config man page for more details.
6865
6866To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6867See \`config.log' for more details" "$LINENO" 5; }
6868else
6869	DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
6870	DEPS_LIBS=$pkg_cv_DEPS_LIBS
6871        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6872$as_echo "yes" >&6; }
6873
6874fi
6875
6876			win32_syslibs=""
6877	if test -z "$BUILD_WIN32_TRUE"; then :
6878   win32_syslibs="-lmingw32 -lwinmm -lwsock32 -lws2_32 -lgdi32 -luser32"
6879fi
6880	WIN32_LIBS=$win32_syslibs
6881
6882
6883
6884
6885fi
6886
6887 if  test "x$system_ode" = "xyes" ; then
6888  USE_SYSTEM_LIBODE_TRUE=
6889  USE_SYSTEM_LIBODE_FALSE='#'
6890else
6891  USE_SYSTEM_LIBODE_TRUE='#'
6892  USE_SYSTEM_LIBODE_FALSE=
6893fi
6894
6895
6896
6897#
6898# Checks for header files
6899#
6900
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6902$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6903if ${ac_cv_path_GREP+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  if test -z "$GREP"; then
6907  ac_path_GREP_found=false
6908  # Loop through the user's path and test for each of PROGNAME-LIST
6909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6911do
6912  IFS=$as_save_IFS
6913  test -z "$as_dir" && as_dir=.
6914    for ac_prog in grep ggrep; do
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6917      as_fn_executable_p "$ac_path_GREP" || continue
6918# Check for GNU ac_path_GREP and select it if it is found.
6919  # Check for GNU $ac_path_GREP
6920case `"$ac_path_GREP" --version 2>&1` in
6921*GNU*)
6922  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6923*)
6924  ac_count=0
6925  $as_echo_n 0123456789 >"conftest.in"
6926  while :
6927  do
6928    cat "conftest.in" "conftest.in" >"conftest.tmp"
6929    mv "conftest.tmp" "conftest.in"
6930    cp "conftest.in" "conftest.nl"
6931    $as_echo 'GREP' >> "conftest.nl"
6932    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6933    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6934    as_fn_arith $ac_count + 1 && ac_count=$as_val
6935    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6936      # Best one so far, save it but keep looking for a better one
6937      ac_cv_path_GREP="$ac_path_GREP"
6938      ac_path_GREP_max=$ac_count
6939    fi
6940    # 10*(2^10) chars as input seems more than enough
6941    test $ac_count -gt 10 && break
6942  done
6943  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6944esac
6945
6946      $ac_path_GREP_found && break 3
6947    done
6948  done
6949  done
6950IFS=$as_save_IFS
6951  if test -z "$ac_cv_path_GREP"; then
6952    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6953  fi
6954else
6955  ac_cv_path_GREP=$GREP
6956fi
6957
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6960$as_echo "$ac_cv_path_GREP" >&6; }
6961 GREP="$ac_cv_path_GREP"
6962
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6965$as_echo_n "checking for egrep... " >&6; }
6966if ${ac_cv_path_EGREP+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6970   then ac_cv_path_EGREP="$GREP -E"
6971   else
6972     if test -z "$EGREP"; then
6973  ac_path_EGREP_found=false
6974  # Loop through the user's path and test for each of PROGNAME-LIST
6975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6977do
6978  IFS=$as_save_IFS
6979  test -z "$as_dir" && as_dir=.
6980    for ac_prog in egrep; do
6981    for ac_exec_ext in '' $ac_executable_extensions; do
6982      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6983      as_fn_executable_p "$ac_path_EGREP" || continue
6984# Check for GNU ac_path_EGREP and select it if it is found.
6985  # Check for GNU $ac_path_EGREP
6986case `"$ac_path_EGREP" --version 2>&1` in
6987*GNU*)
6988  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6989*)
6990  ac_count=0
6991  $as_echo_n 0123456789 >"conftest.in"
6992  while :
6993  do
6994    cat "conftest.in" "conftest.in" >"conftest.tmp"
6995    mv "conftest.tmp" "conftest.in"
6996    cp "conftest.in" "conftest.nl"
6997    $as_echo 'EGREP' >> "conftest.nl"
6998    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6999    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7000    as_fn_arith $ac_count + 1 && ac_count=$as_val
7001    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7002      # Best one so far, save it but keep looking for a better one
7003      ac_cv_path_EGREP="$ac_path_EGREP"
7004      ac_path_EGREP_max=$ac_count
7005    fi
7006    # 10*(2^10) chars as input seems more than enough
7007    test $ac_count -gt 10 && break
7008  done
7009  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7010esac
7011
7012      $ac_path_EGREP_found && break 3
7013    done
7014  done
7015  done
7016IFS=$as_save_IFS
7017  if test -z "$ac_cv_path_EGREP"; then
7018    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7019  fi
7020else
7021  ac_cv_path_EGREP=$EGREP
7022fi
7023
7024   fi
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7027$as_echo "$ac_cv_path_EGREP" >&6; }
7028 EGREP="$ac_cv_path_EGREP"
7029
7030
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7032$as_echo_n "checking for ANSI C header files... " >&6; }
7033if ${ac_cv_header_stdc+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h.  */
7038#include <stdlib.h>
7039#include <stdarg.h>
7040#include <string.h>
7041#include <float.h>
7042
7043int
7044main ()
7045{
7046
7047  ;
7048  return 0;
7049}
7050_ACEOF
7051if ac_fn_c_try_compile "$LINENO"; then :
7052  ac_cv_header_stdc=yes
7053else
7054  ac_cv_header_stdc=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057
7058if test $ac_cv_header_stdc = yes; then
7059  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062#include <string.h>
7063
7064_ACEOF
7065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7066  $EGREP "memchr" >/dev/null 2>&1; then :
7067
7068else
7069  ac_cv_header_stdc=no
7070fi
7071rm -f conftest*
7072
7073fi
7074
7075if test $ac_cv_header_stdc = yes; then
7076  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079#include <stdlib.h>
7080
7081_ACEOF
7082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083  $EGREP "free" >/dev/null 2>&1; then :
7084
7085else
7086  ac_cv_header_stdc=no
7087fi
7088rm -f conftest*
7089
7090fi
7091
7092if test $ac_cv_header_stdc = yes; then
7093  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7094  if test "$cross_compiling" = yes; then :
7095  :
7096else
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099#include <ctype.h>
7100#include <stdlib.h>
7101#if ((' ' & 0x0FF) == 0x020)
7102# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7103# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7104#else
7105# define ISLOWER(c) \
7106		   (('a' <= (c) && (c) <= 'i') \
7107		     || ('j' <= (c) && (c) <= 'r') \
7108		     || ('s' <= (c) && (c) <= 'z'))
7109# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7110#endif
7111
7112#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7113int
7114main ()
7115{
7116  int i;
7117  for (i = 0; i < 256; i++)
7118    if (XOR (islower (i), ISLOWER (i))
7119	|| toupper (i) != TOUPPER (i))
7120      return 2;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_run "$LINENO"; then :
7125
7126else
7127  ac_cv_header_stdc=no
7128fi
7129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7130  conftest.$ac_objext conftest.beam conftest.$ac_ext
7131fi
7132
7133fi
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7136$as_echo "$ac_cv_header_stdc" >&6; }
7137if test $ac_cv_header_stdc = yes; then
7138
7139$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7140
7141fi
7142
7143# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7145		  inttypes.h stdint.h unistd.h
7146do :
7147  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7148ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7149"
7150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7151  cat >>confdefs.h <<_ACEOF
7152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153_ACEOF
7154
7155fi
7156
7157done
7158
7159
7160for ac_header in inttypes.h stdint.h stddef.h stdlib.h unistd.h
7161do :
7162  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7163ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7165  cat >>confdefs.h <<_ACEOF
7166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7167_ACEOF
7168
7169fi
7170
7171done
7172
7173
7174for ac_header in float.h limits.h
7175do :
7176  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7177ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7179  cat >>confdefs.h <<_ACEOF
7180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7181_ACEOF
7182
7183fi
7184
7185done
7186
7187
7188for ac_header in arpa/inet.h netinet/in.h sys/ioctl.h sys/socket.h netdb.h termios.h sys/select.h
7189
7190do :
7191  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7192ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7194  cat >>confdefs.h <<_ACEOF
7195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7196_ACEOF
7197
7198fi
7199
7200done
7201
7202
7203for ac_header in dlfcn.h fcntl.h malloc.h string.h sys/param.h sys/stat.h
7204
7205do :
7206  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7208if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7209  cat >>confdefs.h <<_ACEOF
7210#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211_ACEOF
7212
7213fi
7214
7215done
7216
7217
7218for ac_header in time.h sys/time.h
7219
7220do :
7221  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7224  cat >>confdefs.h <<_ACEOF
7225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7226_ACEOF
7227
7228fi
7229
7230done
7231
7232
7233for ac_header in windows.h winsock.h winsock2.h
7234do :
7235  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7237if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7238  cat >>confdefs.h <<_ACEOF
7239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7240_ACEOF
7241
7242fi
7243
7244done
7245
7246
7247if test -z "$BUILD_CLIENT_TRUE"; then :
7248
7249
7250	jpeglib_h_found=no
7251	for ac_header in jpeglib.h jpeg/jpeglib.h
7252do :
7253  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7254ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7256  cat >>confdefs.h <<_ACEOF
7257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258_ACEOF
7259  jpeglib_h_found=yes
7260fi
7261
7262done
7263
7264	if  test "x${jpeglib_h_found}" = xno ; then :
7265  as_fn_error $? "\"Required JPEG header file not found.\"" "$LINENO" 5
7266fi
7267
7268	openal_h_found=no
7269	for ac_header in AL/al.h al.h OpenAL/al.h
7270do :
7271  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7273if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7274  cat >>confdefs.h <<_ACEOF
7275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
7277  openal_h_found=yes
7278fi
7279
7280done
7281
7282	if  test "x${openal_h_found}" = xno ; then :
7283  as_fn_error $? "\"Required OpenAL header file not found.\"" "$LINENO" 5
7284fi
7285
7286	openalc_h_found=no
7287	for ac_header in AL/alc.h alc.h OpenAL/alc.h
7288do :
7289  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7291if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7292  cat >>confdefs.h <<_ACEOF
7293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294_ACEOF
7295  openalc_h_found=yes
7296fi
7297
7298done
7299
7300	if  test "x${openalc_h_found}" = xno ; then :
7301  as_fn_error $? "\"Required OpenAL header file not found.\"" "$LINENO" 5
7302fi
7303
7304	for ac_header in GL/gl.h
7305do :
7306  ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
7307if test "x$ac_cv_header_GL_gl_h" = xyes; then :
7308  cat >>confdefs.h <<_ACEOF
7309#define HAVE_GL_GL_H 1
7310_ACEOF
7311
7312else
7313  as_fn_error $? "\"Required OpenGL header files not found.\"" "$LINENO" 5
7314fi
7315
7316done
7317
7318	if test -z "$BUILD_UNIX_TRUE"; then :
7319  for ac_header in GL/glx.h
7320do :
7321  ac_fn_c_check_header_mongrel "$LINENO" "GL/glx.h" "ac_cv_header_GL_glx_h" "$ac_includes_default"
7322if test "x$ac_cv_header_GL_glx_h" = xyes; then :
7323  cat >>confdefs.h <<_ACEOF
7324#define HAVE_GL_GLX_H 1
7325_ACEOF
7326
7327else
7328  as_fn_error $? "\"Required OpenGL header files not found.\"" "$LINENO" 5
7329
7330fi
7331
7332done
7333
7334
7335fi
7336
7337fi
7338
7339#
7340# Checks for typedefs, structures, and compiler characteristics.
7341#
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7343$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7344if ${ac_cv_header_stdbool_h+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349
7350             #include <stdbool.h>
7351             #ifndef bool
7352              "error: bool is not defined"
7353             #endif
7354             #ifndef false
7355              "error: false is not defined"
7356             #endif
7357             #if false
7358              "error: false is not 0"
7359             #endif
7360             #ifndef true
7361              "error: true is not defined"
7362             #endif
7363             #if true != 1
7364              "error: true is not 1"
7365             #endif
7366             #ifndef __bool_true_false_are_defined
7367              "error: __bool_true_false_are_defined is not defined"
7368             #endif
7369
7370             struct s { _Bool s: 1; _Bool t; } s;
7371
7372             char a[true == 1 ? 1 : -1];
7373             char b[false == 0 ? 1 : -1];
7374             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7375             char d[(bool) 0.5 == true ? 1 : -1];
7376             /* See body of main program for 'e'.  */
7377             char f[(_Bool) 0.0 == false ? 1 : -1];
7378             char g[true];
7379             char h[sizeof (_Bool)];
7380             char i[sizeof s.t];
7381             enum { j = false, k = true, l = false * true, m = true * 256 };
7382             /* The following fails for
7383                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7384             _Bool n[m];
7385             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7386             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7387             /* Catch a bug in an HP-UX C compiler.  See
7388                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7389                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7390              */
7391             _Bool q = true;
7392             _Bool *pq = &q;
7393
7394int
7395main ()
7396{
7397
7398             bool e = &s;
7399             *pq |= q;
7400             *pq |= ! q;
7401             /* Refer to every declared value, to avoid compiler optimizations.  */
7402             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7403                     + !m + !n + !o + !p + !q + !pq);
7404
7405  ;
7406  return 0;
7407}
7408_ACEOF
7409if ac_fn_c_try_compile "$LINENO"; then :
7410  ac_cv_header_stdbool_h=yes
7411else
7412  ac_cv_header_stdbool_h=no
7413fi
7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7417$as_echo "$ac_cv_header_stdbool_h" >&6; }
7418   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7419if test "x$ac_cv_type__Bool" = xyes; then :
7420
7421cat >>confdefs.h <<_ACEOF
7422#define HAVE__BOOL 1
7423_ACEOF
7424
7425
7426fi
7427
7428
7429if test $ac_cv_header_stdbool_h = yes; then
7430
7431$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7432
7433fi
7434
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7436$as_echo_n "checking for inline... " >&6; }
7437if ${ac_cv_c_inline+:} false; then :
7438  $as_echo_n "(cached) " >&6
7439else
7440  ac_cv_c_inline=no
7441for ac_kw in inline __inline__ __inline; do
7442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h.  */
7444#ifndef __cplusplus
7445typedef int foo_t;
7446static $ac_kw foo_t static_foo () {return 0; }
7447$ac_kw foo_t foo () {return 0; }
7448#endif
7449
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452  ac_cv_c_inline=$ac_kw
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455  test "$ac_cv_c_inline" != no && break
7456done
7457
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7460$as_echo "$ac_cv_c_inline" >&6; }
7461
7462case $ac_cv_c_inline in
7463  inline | yes) ;;
7464  *)
7465    case $ac_cv_c_inline in
7466      no) ac_val=;;
7467      *) ac_val=$ac_cv_c_inline;;
7468    esac
7469    cat >>confdefs.h <<_ACEOF
7470#ifndef __cplusplus
7471#define inline $ac_val
7472#endif
7473_ACEOF
7474    ;;
7475esac
7476
7477ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7478if test "x$ac_cv_type_size_t" = xyes; then :
7479
7480else
7481
7482cat >>confdefs.h <<_ACEOF
7483#define size_t unsigned int
7484_ACEOF
7485
7486fi
7487
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7489$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7490if ${ac_cv_type_uid_t+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495#include <sys/types.h>
7496
7497_ACEOF
7498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7499  $EGREP "uid_t" >/dev/null 2>&1; then :
7500  ac_cv_type_uid_t=yes
7501else
7502  ac_cv_type_uid_t=no
7503fi
7504rm -f conftest*
7505
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7508$as_echo "$ac_cv_type_uid_t" >&6; }
7509if test $ac_cv_type_uid_t = no; then
7510
7511$as_echo "#define uid_t int" >>confdefs.h
7512
7513
7514$as_echo "#define gid_t int" >>confdefs.h
7515
7516fi
7517
7518ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7519case $ac_cv_c_int32_t in #(
7520  no|yes) ;; #(
7521  *)
7522
7523cat >>confdefs.h <<_ACEOF
7524#define int32_t $ac_cv_c_int32_t
7525_ACEOF
7526;;
7527esac
7528
7529ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7530case $ac_cv_c_int64_t in #(
7531  no|yes) ;; #(
7532  *)
7533
7534cat >>confdefs.h <<_ACEOF
7535#define int64_t $ac_cv_c_int64_t
7536_ACEOF
7537;;
7538esac
7539
7540ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7541case $ac_cv_c_uint64_t in #(
7542  no|yes) ;; #(
7543  *)
7544
7545$as_echo "#define _UINT64_T 1" >>confdefs.h
7546
7547
7548cat >>confdefs.h <<_ACEOF
7549#define uint64_t $ac_cv_c_uint64_t
7550_ACEOF
7551;;
7552  esac
7553
7554ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7555if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7556
7557cat >>confdefs.h <<_ACEOF
7558#define HAVE_PTRDIFF_T 1
7559_ACEOF
7560
7561
7562fi
7563
7564ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7565if test "x$ac_cv_type_uintptr_t" = xyes; then :
7566
7567cat >>confdefs.h <<_ACEOF
7568#define HAVE_UINTPTR_T 1
7569_ACEOF
7570
7571
7572fi
7573
7574
7575
7576#
7577# Checks for library functions.
7578#
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
7580$as_echo_n "checking for error_at_line... " >&6; }
7581if ${ac_cv_lib_error_at_line+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h.  */
7586#include <error.h>
7587int
7588main ()
7589{
7590error_at_line (0, 0, "", 0, "an error occurred");
7591  ;
7592  return 0;
7593}
7594_ACEOF
7595if ac_fn_c_try_link "$LINENO"; then :
7596  ac_cv_lib_error_at_line=yes
7597else
7598  ac_cv_lib_error_at_line=no
7599fi
7600rm -f core conftest.err conftest.$ac_objext \
7601    conftest$ac_exeext conftest.$ac_ext
7602fi
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
7604$as_echo "$ac_cv_lib_error_at_line" >&6; }
7605if test $ac_cv_lib_error_at_line = no; then
7606  case " $LIBOBJS " in
7607  *" error.$ac_objext "* ) ;;
7608  *) LIBOBJS="$LIBOBJS error.$ac_objext"
7609 ;;
7610esac
7611
7612fi
7613
7614# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7615# for constant arguments.  Useless!
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7617$as_echo_n "checking for working alloca.h... " >&6; }
7618if ${ac_cv_working_alloca_h+:} false; then :
7619  $as_echo_n "(cached) " >&6
7620else
7621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622/* end confdefs.h.  */
7623#include <alloca.h>
7624int
7625main ()
7626{
7627char *p = (char *) alloca (2 * sizeof (int));
7628			  if (p) return 0;
7629  ;
7630  return 0;
7631}
7632_ACEOF
7633if ac_fn_c_try_link "$LINENO"; then :
7634  ac_cv_working_alloca_h=yes
7635else
7636  ac_cv_working_alloca_h=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext \
7639    conftest$ac_exeext conftest.$ac_ext
7640fi
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7642$as_echo "$ac_cv_working_alloca_h" >&6; }
7643if test $ac_cv_working_alloca_h = yes; then
7644
7645$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7646
7647fi
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7650$as_echo_n "checking for alloca... " >&6; }
7651if ${ac_cv_func_alloca_works+:} false; then :
7652  $as_echo_n "(cached) " >&6
7653else
7654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h.  */
7656#ifdef __GNUC__
7657# define alloca __builtin_alloca
7658#else
7659# ifdef _MSC_VER
7660#  include <malloc.h>
7661#  define alloca _alloca
7662# else
7663#  ifdef HAVE_ALLOCA_H
7664#   include <alloca.h>
7665#  else
7666#   ifdef _AIX
7667 #pragma alloca
7668#   else
7669#    ifndef alloca /* predefined by HP cc +Olibcalls */
7670void *alloca (size_t);
7671#    endif
7672#   endif
7673#  endif
7674# endif
7675#endif
7676
7677int
7678main ()
7679{
7680char *p = (char *) alloca (1);
7681				    if (p) return 0;
7682  ;
7683  return 0;
7684}
7685_ACEOF
7686if ac_fn_c_try_link "$LINENO"; then :
7687  ac_cv_func_alloca_works=yes
7688else
7689  ac_cv_func_alloca_works=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext \
7692    conftest$ac_exeext conftest.$ac_ext
7693fi
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7695$as_echo "$ac_cv_func_alloca_works" >&6; }
7696
7697if test $ac_cv_func_alloca_works = yes; then
7698
7699$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7700
7701else
7702  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7703# that cause trouble.  Some versions do not even contain alloca or
7704# contain a buggy version.  If you still want to use their alloca,
7705# use ar to extract alloca.o from them instead of compiling alloca.c.
7706
7707ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7708
7709$as_echo "#define C_ALLOCA 1" >>confdefs.h
7710
7711
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7713$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7714if ${ac_cv_os_cray+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719#if defined CRAY && ! defined CRAY2
7720webecray
7721#else
7722wenotbecray
7723#endif
7724
7725_ACEOF
7726if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727  $EGREP "webecray" >/dev/null 2>&1; then :
7728  ac_cv_os_cray=yes
7729else
7730  ac_cv_os_cray=no
7731fi
7732rm -f conftest*
7733
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7736$as_echo "$ac_cv_os_cray" >&6; }
7737if test $ac_cv_os_cray = yes; then
7738  for ac_func in _getb67 GETB67 getb67; do
7739    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7740ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7741if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7742
7743cat >>confdefs.h <<_ACEOF
7744#define CRAY_STACKSEG_END $ac_func
7745_ACEOF
7746
7747    break
7748fi
7749
7750  done
7751fi
7752
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7754$as_echo_n "checking stack direction for C alloca... " >&6; }
7755if ${ac_cv_c_stack_direction+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  if test "$cross_compiling" = yes; then :
7759  ac_cv_c_stack_direction=0
7760else
7761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h.  */
7763$ac_includes_default
7764int
7765find_stack_direction (int *addr, int depth)
7766{
7767  int dir, dummy = 0;
7768  if (! addr)
7769    addr = &dummy;
7770  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7771  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7772  return dir + dummy;
7773}
7774
7775int
7776main (int argc, char **argv)
7777{
7778  return find_stack_direction (0, argc + !argv + 20) < 0;
7779}
7780_ACEOF
7781if ac_fn_c_try_run "$LINENO"; then :
7782  ac_cv_c_stack_direction=1
7783else
7784  ac_cv_c_stack_direction=-1
7785fi
7786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7787  conftest.$ac_objext conftest.beam conftest.$ac_ext
7788fi
7789
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7792$as_echo "$ac_cv_c_stack_direction" >&6; }
7793cat >>confdefs.h <<_ACEOF
7794#define STACK_DIRECTION $ac_cv_c_stack_direction
7795_ACEOF
7796
7797
7798fi
7799
7800for ac_header in stdlib.h
7801do :
7802  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7803if test "x$ac_cv_header_stdlib_h" = xyes; then :
7804  cat >>confdefs.h <<_ACEOF
7805#define HAVE_STDLIB_H 1
7806_ACEOF
7807
7808fi
7809
7810done
7811
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7813$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7814if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7815  $as_echo_n "(cached) " >&6
7816else
7817  if test "$cross_compiling" = yes; then :
7818  ac_cv_func_malloc_0_nonnull=no
7819else
7820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821/* end confdefs.h.  */
7822#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7823# include <stdlib.h>
7824#else
7825char *malloc ();
7826#endif
7827
7828int
7829main ()
7830{
7831return ! malloc (0);
7832  ;
7833  return 0;
7834}
7835_ACEOF
7836if ac_fn_c_try_run "$LINENO"; then :
7837  ac_cv_func_malloc_0_nonnull=yes
7838else
7839  ac_cv_func_malloc_0_nonnull=no
7840fi
7841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7842  conftest.$ac_objext conftest.beam conftest.$ac_ext
7843fi
7844
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7847$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7848if test $ac_cv_func_malloc_0_nonnull = yes; then :
7849
7850$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7851
7852else
7853  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7854
7855   case " $LIBOBJS " in
7856  *" malloc.$ac_objext "* ) ;;
7857  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7858 ;;
7859esac
7860
7861
7862$as_echo "#define malloc rpl_malloc" >>confdefs.h
7863
7864fi
7865
7866
7867
7868
7869
7870  for ac_header in $ac_header_list
7871do :
7872  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7874"
7875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7876  cat >>confdefs.h <<_ACEOF
7877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878_ACEOF
7879
7880fi
7881
7882done
7883
7884
7885
7886
7887
7888
7889
7890
7891for ac_func in getpagesize
7892do :
7893  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7894if test "x$ac_cv_func_getpagesize" = xyes; then :
7895  cat >>confdefs.h <<_ACEOF
7896#define HAVE_GETPAGESIZE 1
7897_ACEOF
7898
7899fi
7900done
7901
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7903$as_echo_n "checking for working mmap... " >&6; }
7904if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  if test "$cross_compiling" = yes; then :
7908  ac_cv_func_mmap_fixed_mapped=no
7909else
7910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h.  */
7912$ac_includes_default
7913/* malloc might have been renamed as rpl_malloc. */
7914#undef malloc
7915
7916/* Thanks to Mike Haertel and Jim Avera for this test.
7917   Here is a matrix of mmap possibilities:
7918	mmap private not fixed
7919	mmap private fixed at somewhere currently unmapped
7920	mmap private fixed at somewhere already mapped
7921	mmap shared not fixed
7922	mmap shared fixed at somewhere currently unmapped
7923	mmap shared fixed at somewhere already mapped
7924   For private mappings, we should verify that changes cannot be read()
7925   back from the file, nor mmap's back from the file at a different
7926   address.  (There have been systems where private was not correctly
7927   implemented like the infamous i386 svr4.0, and systems where the
7928   VM page cache was not coherent with the file system buffer cache
7929   like early versions of FreeBSD and possibly contemporary NetBSD.)
7930   For shared mappings, we should conversely verify that changes get
7931   propagated back to all the places they're supposed to be.
7932
7933   Grep wants private fixed already mapped.
7934   The main things grep needs to know about mmap are:
7935   * does it exist and is it safe to write into the mmap'd area
7936   * how to use it (BSD variants)  */
7937
7938#include <fcntl.h>
7939#include <sys/mman.h>
7940
7941#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7942char *malloc ();
7943#endif
7944
7945/* This mess was copied from the GNU getpagesize.h.  */
7946#ifndef HAVE_GETPAGESIZE
7947# ifdef _SC_PAGESIZE
7948#  define getpagesize() sysconf(_SC_PAGESIZE)
7949# else /* no _SC_PAGESIZE */
7950#  ifdef HAVE_SYS_PARAM_H
7951#   include <sys/param.h>
7952#   ifdef EXEC_PAGESIZE
7953#    define getpagesize() EXEC_PAGESIZE
7954#   else /* no EXEC_PAGESIZE */
7955#    ifdef NBPG
7956#     define getpagesize() NBPG * CLSIZE
7957#     ifndef CLSIZE
7958#      define CLSIZE 1
7959#     endif /* no CLSIZE */
7960#    else /* no NBPG */
7961#     ifdef NBPC
7962#      define getpagesize() NBPC
7963#     else /* no NBPC */
7964#      ifdef PAGESIZE
7965#       define getpagesize() PAGESIZE
7966#      endif /* PAGESIZE */
7967#     endif /* no NBPC */
7968#    endif /* no NBPG */
7969#   endif /* no EXEC_PAGESIZE */
7970#  else /* no HAVE_SYS_PARAM_H */
7971#   define getpagesize() 8192	/* punt totally */
7972#  endif /* no HAVE_SYS_PARAM_H */
7973# endif /* no _SC_PAGESIZE */
7974
7975#endif /* no HAVE_GETPAGESIZE */
7976
7977int
7978main ()
7979{
7980  char *data, *data2, *data3;
7981  const char *cdata2;
7982  int i, pagesize;
7983  int fd, fd2;
7984
7985  pagesize = getpagesize ();
7986
7987  /* First, make a file with some known garbage in it. */
7988  data = (char *) malloc (pagesize);
7989  if (!data)
7990    return 1;
7991  for (i = 0; i < pagesize; ++i)
7992    *(data + i) = rand ();
7993  umask (0);
7994  fd = creat ("conftest.mmap", 0600);
7995  if (fd < 0)
7996    return 2;
7997  if (write (fd, data, pagesize) != pagesize)
7998    return 3;
7999  close (fd);
8000
8001  /* Next, check that the tail of a page is zero-filled.  File must have
8002     non-zero length, otherwise we risk SIGBUS for entire page.  */
8003  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8004  if (fd2 < 0)
8005    return 4;
8006  cdata2 = "";
8007  if (write (fd2, cdata2, 1) != 1)
8008    return 5;
8009  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8010  if (data2 == MAP_FAILED)
8011    return 6;
8012  for (i = 0; i < pagesize; ++i)
8013    if (*(data2 + i))
8014      return 7;
8015  close (fd2);
8016  if (munmap (data2, pagesize))
8017    return 8;
8018
8019  /* Next, try to mmap the file at a fixed address which already has
8020     something else allocated at it.  If we can, also make sure that
8021     we see the same garbage.  */
8022  fd = open ("conftest.mmap", O_RDWR);
8023  if (fd < 0)
8024    return 9;
8025  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8026		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8027    return 10;
8028  for (i = 0; i < pagesize; ++i)
8029    if (*(data + i) != *(data2 + i))
8030      return 11;
8031
8032  /* Finally, make sure that changes to the mapped area do not
8033     percolate back to the file as seen by read().  (This is a bug on
8034     some variants of i386 svr4.0.)  */
8035  for (i = 0; i < pagesize; ++i)
8036    *(data2 + i) = *(data2 + i) + 1;
8037  data3 = (char *) malloc (pagesize);
8038  if (!data3)
8039    return 12;
8040  if (read (fd, data3, pagesize) != pagesize)
8041    return 13;
8042  for (i = 0; i < pagesize; ++i)
8043    if (*(data + i) != *(data3 + i))
8044      return 14;
8045  close (fd);
8046  return 0;
8047}
8048_ACEOF
8049if ac_fn_c_try_run "$LINENO"; then :
8050  ac_cv_func_mmap_fixed_mapped=yes
8051else
8052  ac_cv_func_mmap_fixed_mapped=no
8053fi
8054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8055  conftest.$ac_objext conftest.beam conftest.$ac_ext
8056fi
8057
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8060$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8061if test $ac_cv_func_mmap_fixed_mapped = yes; then
8062
8063$as_echo "#define HAVE_MMAP 1" >>confdefs.h
8064
8065fi
8066rm -f conftest.mmap conftest.txt
8067
8068for ac_header in stdlib.h
8069do :
8070  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8071if test "x$ac_cv_header_stdlib_h" = xyes; then :
8072  cat >>confdefs.h <<_ACEOF
8073#define HAVE_STDLIB_H 1
8074_ACEOF
8075
8076fi
8077
8078done
8079
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8081$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8082if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  if test "$cross_compiling" = yes; then :
8086  ac_cv_func_realloc_0_nonnull=no
8087else
8088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h.  */
8090#if defined STDC_HEADERS || defined HAVE_STDLIB_H
8091# include <stdlib.h>
8092#else
8093char *realloc ();
8094#endif
8095
8096int
8097main ()
8098{
8099return ! realloc (0, 0);
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_run "$LINENO"; then :
8105  ac_cv_func_realloc_0_nonnull=yes
8106else
8107  ac_cv_func_realloc_0_nonnull=no
8108fi
8109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8110  conftest.$ac_objext conftest.beam conftest.$ac_ext
8111fi
8112
8113fi
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8115$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
8116if test $ac_cv_func_realloc_0_nonnull = yes; then :
8117
8118$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
8119
8120else
8121  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
8122
8123   case " $LIBOBJS " in
8124  *" realloc.$ac_objext "* ) ;;
8125  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8126 ;;
8127esac
8128
8129
8130$as_echo "#define realloc rpl_realloc" >>confdefs.h
8131
8132fi
8133
8134
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
8136$as_echo_n "checking for obstacks... " >&6; }
8137if ${ac_cv_func_obstack+:} false; then :
8138  $as_echo_n "(cached) " >&6
8139else
8140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142$ac_includes_default
8143		      #include "obstack.h"
8144int
8145main ()
8146{
8147struct obstack mem;
8148		       #define obstack_chunk_alloc malloc
8149		       #define obstack_chunk_free free
8150		       obstack_init (&mem);
8151		       obstack_free (&mem, 0);
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_link "$LINENO"; then :
8157  ac_cv_func_obstack=yes
8158else
8159  ac_cv_func_obstack=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext \
8162    conftest$ac_exeext conftest.$ac_ext
8163fi
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
8165$as_echo "$ac_cv_func_obstack" >&6; }
8166if test $ac_cv_func_obstack = yes; then
8167
8168$as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
8169
8170else
8171  case " $LIBOBJS " in
8172  *" obstack.$ac_objext "* ) ;;
8173  *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
8174 ;;
8175esac
8176
8177fi
8178
8179
8180for ac_func in closesocket socket gethostbyname select
8181do :
8182  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8184if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8185  cat >>confdefs.h <<_ACEOF
8186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8187_ACEOF
8188
8189fi
8190done
8191
8192
8193for ac_func in pthread_create _begin_thread
8194do :
8195  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8196ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8197if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8198  cat >>confdefs.h <<_ACEOF
8199#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8200_ACEOF
8201
8202fi
8203done
8204
8205
8206for ac_func in strchr strerror strrchr strstr strlcpy isascii
8207do :
8208  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8210if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8211  cat >>confdefs.h <<_ACEOF
8212#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8213_ACEOF
8214
8215fi
8216done
8217
8218for ac_func in strcasecmp strncasecmp
8219do :
8220  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8221ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8222if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8223  cat >>confdefs.h <<_ACEOF
8224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8225_ACEOF
8226
8227fi
8228done
8229
8230for ac_func in strdup _strdup stricmp _stricmp strnicmp _strnicmp
8231do :
8232  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8233ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8234if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8235  cat >>confdefs.h <<_ACEOF
8236#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8237_ACEOF
8238
8239fi
8240done
8241
8242
8243for ac_func in filelength stat fstat getcwd _getcwd unlink _unlink mkdir _mkdir
8244do :
8245  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8246ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8247if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8248  cat >>confdefs.h <<_ACEOF
8249#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8250_ACEOF
8251
8252fi
8253done
8254
8255
8256for ac_func in pow sqrt floor
8257do :
8258  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8260if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8261  cat >>confdefs.h <<_ACEOF
8262#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8263_ACEOF
8264
8265fi
8266done
8267
8268
8269for ac_func in memmove memset munmap mremap
8270do :
8271  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8272ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8273if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8274  cat >>confdefs.h <<_ACEOF
8275#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8276_ACEOF
8277
8278fi
8279done
8280
8281
8282for ac_func in gettimeofday clock_gettime
8283do :
8284  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8285ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8286if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8287  cat >>confdefs.h <<_ACEOF
8288#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8289_ACEOF
8290
8291fi
8292done
8293
8294
8295for ac_func in  putenv _putenv
8296do :
8297  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8298ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8299if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8300  cat >>confdefs.h <<_ACEOF
8301#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8302_ACEOF
8303
8304fi
8305done
8306
8307
8308if test -z "$BUILD_UNIX_TRUE"; then :
8309  case  ${unix_host}  in #(
8310   darwin ) :
8311    if  test x"${gl_dlopen_path}" = xdefault ; then :
8312
8313$as_echo "#define OPENGL_DRIVER \"libGL.dylib\"" >>confdefs.h
8314
8315
8316else
8317
8318cat >>confdefs.h <<_ACEOF
8319#define OPENGL_DRIVER "${gl_dlopen_path}/libGL.dylib"
8320_ACEOF
8321
8322
8323fi
8324
8325
8326$as_echo "#define OPENAL_DRIVER \"/System/Library/Frameworks/OpenAL.framework/OpenAL\"" >>confdefs.h
8327
8328			 ;; #(
8329  *) :
8330
8331
8332$as_echo "#define OPENGL_DRIVER \"libGL.so.1\"" >>confdefs.h
8333
8334
8335
8336$as_echo "#define OPENAL_DRIVER \"libopenal.so.1\"" >>confdefs.h
8337
8338	 ;;
8339esac
8340
8341fi
8342
8343if test -z "$BUILD_WIN32_TRUE"; then :
8344
8345
8346$as_echo "#define OPENGL_DRIVER \"opengl32\"" >>confdefs.h
8347
8348
8349
8350$as_echo "#define OPENAL_DRIVER \"OpenAL32.dll\"" >>confdefs.h
8351
8352
8353fi
8354
8355#
8356# required gcc/g++ options.
8357#  fast-math because strict adherence to IEEE standard is not needed.
8358#  no-strict-aliasing because strict aliasing is not adhered to in places.
8359#
8360if ${CFLAGS+:} false; then :
8361  case " $CFLAGS " in
8362    *" -ffast-math "*)
8363      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -ffast-math"; } >&5
8364  (: CFLAGS already contains -ffast-math) 2>&5
8365  ac_status=$?
8366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8367  test $ac_status = 0; }
8368      ;;
8369    *)
8370      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS -ffast-math\""; } >&5
8371  (: CFLAGS="$CFLAGS -ffast-math") 2>&5
8372  ac_status=$?
8373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8374  test $ac_status = 0; }
8375      CFLAGS="$CFLAGS -ffast-math"
8376      ;;
8377   esac
8378else
8379  CFLAGS="-ffast-math"
8380fi
8381
8382if ${CXXFLAGS+:} false; then :
8383  case " $CXXFLAGS " in
8384    *" -ffast-math "*)
8385      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -ffast-math"; } >&5
8386  (: CXXFLAGS already contains -ffast-math) 2>&5
8387  ac_status=$?
8388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8389  test $ac_status = 0; }
8390      ;;
8391    *)
8392      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS -ffast-math\""; } >&5
8393  (: CXXFLAGS="$CXXFLAGS -ffast-math") 2>&5
8394  ac_status=$?
8395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8396  test $ac_status = 0; }
8397      CXXFLAGS="$CXXFLAGS -ffast-math"
8398      ;;
8399   esac
8400else
8401  CXXFLAGS="-ffast-math"
8402fi
8403
8404if ${CFLAGS+:} false; then :
8405  case " $CFLAGS " in
8406    *" -fno-strict-aliasing "*)
8407      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-strict-aliasing"; } >&5
8408  (: CFLAGS already contains -fno-strict-aliasing) 2>&5
8409  ac_status=$?
8410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8411  test $ac_status = 0; }
8412      ;;
8413    *)
8414      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS -fno-strict-aliasing\""; } >&5
8415  (: CFLAGS="$CFLAGS -fno-strict-aliasing") 2>&5
8416  ac_status=$?
8417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8418  test $ac_status = 0; }
8419      CFLAGS="$CFLAGS -fno-strict-aliasing"
8420      ;;
8421   esac
8422else
8423  CFLAGS="-fno-strict-aliasing"
8424fi
8425
8426if ${CXXFLAGS+:} false; then :
8427  case " $CXXFLAGS " in
8428    *" -fno-strict-aliasing "*)
8429      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -fno-strict-aliasing"; } >&5
8430  (: CXXFLAGS already contains -fno-strict-aliasing) 2>&5
8431  ac_status=$?
8432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8433  test $ac_status = 0; }
8434      ;;
8435    *)
8436      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS -fno-strict-aliasing\""; } >&5
8437  (: CXXFLAGS="$CXXFLAGS -fno-strict-aliasing") 2>&5
8438  ac_status=$?
8439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8440  test $ac_status = 0; }
8441      CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
8442      ;;
8443   esac
8444else
8445  CXXFLAGS="-fno-strict-aliasing"
8446fi
8447
8448
8449# outputs
8450ac_config_files="$ac_config_files Makefile source/Makefile"
8451
8452
8453cat >confcache <<\_ACEOF
8454# This file is a shell script that caches the results of configure
8455# tests run on this system so they can be shared between configure
8456# scripts and configure runs, see configure's option --config-cache.
8457# It is not useful on other systems.  If it contains results you don't
8458# want to keep, you may remove or edit it.
8459#
8460# config.status only pays attention to the cache file if you give it
8461# the --recheck option to rerun configure.
8462#
8463# `ac_cv_env_foo' variables (set or unset) will be overridden when
8464# loading this file, other *unset* `ac_cv_foo' will be assigned the
8465# following values.
8466
8467_ACEOF
8468
8469# The following way of writing the cache mishandles newlines in values,
8470# but we know of no workaround that is simple, portable, and efficient.
8471# So, we kill variables containing newlines.
8472# Ultrix sh set writes to stderr and can't be redirected directly,
8473# and sets the high bit in the cache file unless we assign to the vars.
8474(
8475  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8476    eval ac_val=\$$ac_var
8477    case $ac_val in #(
8478    *${as_nl}*)
8479      case $ac_var in #(
8480      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8481$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8482      esac
8483      case $ac_var in #(
8484      _ | IFS | as_nl) ;; #(
8485      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8486      *) { eval $ac_var=; unset $ac_var;} ;;
8487      esac ;;
8488    esac
8489  done
8490
8491  (set) 2>&1 |
8492    case $as_nl`(ac_space=' '; set) 2>&1` in #(
8493    *${as_nl}ac_space=\ *)
8494      # `set' does not quote correctly, so add quotes: double-quote
8495      # substitution turns \\\\ into \\, and sed turns \\ into \.
8496      sed -n \
8497	"s/'/'\\\\''/g;
8498	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8499      ;; #(
8500    *)
8501      # `set' quotes correctly as required by POSIX, so do not add quotes.
8502      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8503      ;;
8504    esac |
8505    sort
8506) |
8507  sed '
8508     /^ac_cv_env_/b end
8509     t clear
8510     :clear
8511     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8512     t end
8513     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8514     :end' >>confcache
8515if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8516  if test -w "$cache_file"; then
8517    if test "x$cache_file" != "x/dev/null"; then
8518      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8519$as_echo "$as_me: updating cache $cache_file" >&6;}
8520      if test ! -f "$cache_file" || test -h "$cache_file"; then
8521	cat confcache >"$cache_file"
8522      else
8523        case $cache_file in #(
8524        */* | ?:*)
8525	  mv -f confcache "$cache_file"$$ &&
8526	  mv -f "$cache_file"$$ "$cache_file" ;; #(
8527        *)
8528	  mv -f confcache "$cache_file" ;;
8529	esac
8530      fi
8531    fi
8532  else
8533    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8534$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8535  fi
8536fi
8537rm -f confcache
8538
8539test "x$prefix" = xNONE && prefix=$ac_default_prefix
8540# Let make expand exec_prefix.
8541test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8542
8543DEFS=-DHAVE_CONFIG_H
8544
8545ac_libobjs=
8546ac_ltlibobjs=
8547U=
8548for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8549  # 1. Remove the extension, and $U if already installed.
8550  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8551  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8552  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8553  #    will be set to the directory where LIBOBJS objects are built.
8554  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8555  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8556done
8557LIBOBJS=$ac_libobjs
8558
8559LTLIBOBJS=$ac_ltlibobjs
8560
8561
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8563$as_echo_n "checking that generated files are newer than configure... " >&6; }
8564   if test -n "$am_sleep_pid"; then
8565     # Hide warnings about reused PIDs.
8566     wait $am_sleep_pid 2>/dev/null
8567   fi
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8569$as_echo "done" >&6; }
8570 if test -n "$EXEEXT"; then
8571  am__EXEEXT_TRUE=
8572  am__EXEEXT_FALSE='#'
8573else
8574  am__EXEEXT_TRUE='#'
8575  am__EXEEXT_FALSE=
8576fi
8577
8578if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8579  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8580Usually this means the macro was only invoked conditionally." "$LINENO" 5
8581fi
8582if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8583  as_fn_error $? "conditional \"AMDEP\" was never defined.
8584Usually this means the macro was only invoked conditionally." "$LINENO" 5
8585fi
8586if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8587  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8588Usually this means the macro was only invoked conditionally." "$LINENO" 5
8589fi
8590if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8591  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8592Usually this means the macro was only invoked conditionally." "$LINENO" 5
8593fi
8594if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
8595  as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
8596Usually this means the macro was only invoked conditionally." "$LINENO" 5
8597fi
8598if test -z "${BUILD_UNIX_TRUE}" && test -z "${BUILD_UNIX_FALSE}"; then
8599  as_fn_error $? "conditional \"BUILD_UNIX\" was never defined.
8600Usually this means the macro was only invoked conditionally." "$LINENO" 5
8601fi
8602if test -z "${BUILD_CLIENT_TRUE}" && test -z "${BUILD_CLIENT_FALSE}"; then
8603  as_fn_error $? "conditional \"BUILD_CLIENT\" was never defined.
8604Usually this means the macro was only invoked conditionally." "$LINENO" 5
8605fi
8606if test -z "${ALTERNATE_INSTALL_TRUE}" && test -z "${ALTERNATE_INSTALL_FALSE}"; then
8607  as_fn_error $? "conditional \"ALTERNATE_INSTALL\" was never defined.
8608Usually this means the macro was only invoked conditionally." "$LINENO" 5
8609fi
8610if test -z "${INSTALL_DOCS_TRUE}" && test -z "${INSTALL_DOCS_FALSE}"; then
8611  as_fn_error $? "conditional \"INSTALL_DOCS\" was never defined.
8612Usually this means the macro was only invoked conditionally." "$LINENO" 5
8613fi
8614if test -z "${USE_SYSTEM_LIBODE_TRUE}" && test -z "${USE_SYSTEM_LIBODE_FALSE}"; then
8615  as_fn_error $? "conditional \"USE_SYSTEM_LIBODE\" was never defined.
8616Usually this means the macro was only invoked conditionally." "$LINENO" 5
8617fi
8618
8619: "${CONFIG_STATUS=./config.status}"
8620ac_write_fail=0
8621ac_clean_files_save=$ac_clean_files
8622ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8623{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8624$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8625as_write_fail=0
8626cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8627#! $SHELL
8628# Generated by $as_me.
8629# Run this file to recreate the current configuration.
8630# Compiler output produced by configure, useful for debugging
8631# configure, is in config.log if it exists.
8632
8633debug=false
8634ac_cs_recheck=false
8635ac_cs_silent=false
8636
8637SHELL=\${CONFIG_SHELL-$SHELL}
8638export SHELL
8639_ASEOF
8640cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8641## -------------------- ##
8642## M4sh Initialization. ##
8643## -------------------- ##
8644
8645# Be more Bourne compatible
8646DUALCASE=1; export DUALCASE # for MKS sh
8647if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8648  emulate sh
8649  NULLCMD=:
8650  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8651  # is contrary to our usage.  Disable this feature.
8652  alias -g '${1+"$@"}'='"$@"'
8653  setopt NO_GLOB_SUBST
8654else
8655  case `(set -o) 2>/dev/null` in #(
8656  *posix*) :
8657    set -o posix ;; #(
8658  *) :
8659     ;;
8660esac
8661fi
8662
8663
8664as_nl='
8665'
8666export as_nl
8667# Printing a long string crashes Solaris 7 /usr/bin/printf.
8668as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8670as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8671# Prefer a ksh shell builtin over an external printf program on Solaris,
8672# but without wasting forks for bash or zsh.
8673if test -z "$BASH_VERSION$ZSH_VERSION" \
8674    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8675  as_echo='print -r --'
8676  as_echo_n='print -rn --'
8677elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8678  as_echo='printf %s\n'
8679  as_echo_n='printf %s'
8680else
8681  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8682    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8683    as_echo_n='/usr/ucb/echo -n'
8684  else
8685    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8686    as_echo_n_body='eval
8687      arg=$1;
8688      case $arg in #(
8689      *"$as_nl"*)
8690	expr "X$arg" : "X\\(.*\\)$as_nl";
8691	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8692      esac;
8693      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8694    '
8695    export as_echo_n_body
8696    as_echo_n='sh -c $as_echo_n_body as_echo'
8697  fi
8698  export as_echo_body
8699  as_echo='sh -c $as_echo_body as_echo'
8700fi
8701
8702# The user is always right.
8703if test "${PATH_SEPARATOR+set}" != set; then
8704  PATH_SEPARATOR=:
8705  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8706    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8707      PATH_SEPARATOR=';'
8708  }
8709fi
8710
8711
8712# IFS
8713# We need space, tab and new line, in precisely that order.  Quoting is
8714# there to prevent editors from complaining about space-tab.
8715# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8716# splitting by setting IFS to empty value.)
8717IFS=" ""	$as_nl"
8718
8719# Find who we are.  Look in the path if we contain no directory separator.
8720as_myself=
8721case $0 in #((
8722  *[\\/]* ) as_myself=$0 ;;
8723  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724for as_dir in $PATH
8725do
8726  IFS=$as_save_IFS
8727  test -z "$as_dir" && as_dir=.
8728    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8729  done
8730IFS=$as_save_IFS
8731
8732     ;;
8733esac
8734# We did not find ourselves, most probably we were run as `sh COMMAND'
8735# in which case we are not to be found in the path.
8736if test "x$as_myself" = x; then
8737  as_myself=$0
8738fi
8739if test ! -f "$as_myself"; then
8740  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8741  exit 1
8742fi
8743
8744# Unset variables that we do not need and which cause bugs (e.g. in
8745# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8746# suppresses any "Segmentation fault" message there.  '((' could
8747# trigger a bug in pdksh 5.2.14.
8748for as_var in BASH_ENV ENV MAIL MAILPATH
8749do eval test x\${$as_var+set} = xset \
8750  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8751done
8752PS1='$ '
8753PS2='> '
8754PS4='+ '
8755
8756# NLS nuisances.
8757LC_ALL=C
8758export LC_ALL
8759LANGUAGE=C
8760export LANGUAGE
8761
8762# CDPATH.
8763(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8764
8765
8766# as_fn_error STATUS ERROR [LINENO LOG_FD]
8767# ----------------------------------------
8768# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8769# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8770# script with STATUS, using 1 if that was 0.
8771as_fn_error ()
8772{
8773  as_status=$1; test $as_status -eq 0 && as_status=1
8774  if test "$4"; then
8775    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8776    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8777  fi
8778  $as_echo "$as_me: error: $2" >&2
8779  as_fn_exit $as_status
8780} # as_fn_error
8781
8782
8783# as_fn_set_status STATUS
8784# -----------------------
8785# Set $? to STATUS, without forking.
8786as_fn_set_status ()
8787{
8788  return $1
8789} # as_fn_set_status
8790
8791# as_fn_exit STATUS
8792# -----------------
8793# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8794as_fn_exit ()
8795{
8796  set +e
8797  as_fn_set_status $1
8798  exit $1
8799} # as_fn_exit
8800
8801# as_fn_unset VAR
8802# ---------------
8803# Portably unset VAR.
8804as_fn_unset ()
8805{
8806  { eval $1=; unset $1;}
8807}
8808as_unset=as_fn_unset
8809# as_fn_append VAR VALUE
8810# ----------------------
8811# Append the text in VALUE to the end of the definition contained in VAR. Take
8812# advantage of any shell optimizations that allow amortized linear growth over
8813# repeated appends, instead of the typical quadratic growth present in naive
8814# implementations.
8815if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8816  eval 'as_fn_append ()
8817  {
8818    eval $1+=\$2
8819  }'
8820else
8821  as_fn_append ()
8822  {
8823    eval $1=\$$1\$2
8824  }
8825fi # as_fn_append
8826
8827# as_fn_arith ARG...
8828# ------------------
8829# Perform arithmetic evaluation on the ARGs, and store the result in the
8830# global $as_val. Take advantage of shells that can avoid forks. The arguments
8831# must be portable across $(()) and expr.
8832if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8833  eval 'as_fn_arith ()
8834  {
8835    as_val=$(( $* ))
8836  }'
8837else
8838  as_fn_arith ()
8839  {
8840    as_val=`expr "$@" || test $? -eq 1`
8841  }
8842fi # as_fn_arith
8843
8844
8845if expr a : '\(a\)' >/dev/null 2>&1 &&
8846   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8847  as_expr=expr
8848else
8849  as_expr=false
8850fi
8851
8852if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8853  as_basename=basename
8854else
8855  as_basename=false
8856fi
8857
8858if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8859  as_dirname=dirname
8860else
8861  as_dirname=false
8862fi
8863
8864as_me=`$as_basename -- "$0" ||
8865$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8866	 X"$0" : 'X\(//\)$' \| \
8867	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8868$as_echo X/"$0" |
8869    sed '/^.*\/\([^/][^/]*\)\/*$/{
8870	    s//\1/
8871	    q
8872	  }
8873	  /^X\/\(\/\/\)$/{
8874	    s//\1/
8875	    q
8876	  }
8877	  /^X\/\(\/\).*/{
8878	    s//\1/
8879	    q
8880	  }
8881	  s/.*/./; q'`
8882
8883# Avoid depending upon Character Ranges.
8884as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8885as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8886as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8887as_cr_digits='0123456789'
8888as_cr_alnum=$as_cr_Letters$as_cr_digits
8889
8890ECHO_C= ECHO_N= ECHO_T=
8891case `echo -n x` in #(((((
8892-n*)
8893  case `echo 'xy\c'` in
8894  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8895  xy)  ECHO_C='\c';;
8896  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8897       ECHO_T='	';;
8898  esac;;
8899*)
8900  ECHO_N='-n';;
8901esac
8902
8903rm -f conf$$ conf$$.exe conf$$.file
8904if test -d conf$$.dir; then
8905  rm -f conf$$.dir/conf$$.file
8906else
8907  rm -f conf$$.dir
8908  mkdir conf$$.dir 2>/dev/null
8909fi
8910if (echo >conf$$.file) 2>/dev/null; then
8911  if ln -s conf$$.file conf$$ 2>/dev/null; then
8912    as_ln_s='ln -s'
8913    # ... but there are two gotchas:
8914    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8915    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8916    # In both cases, we have to default to `cp -pR'.
8917    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8918      as_ln_s='cp -pR'
8919  elif ln conf$$.file conf$$ 2>/dev/null; then
8920    as_ln_s=ln
8921  else
8922    as_ln_s='cp -pR'
8923  fi
8924else
8925  as_ln_s='cp -pR'
8926fi
8927rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8928rmdir conf$$.dir 2>/dev/null
8929
8930
8931# as_fn_mkdir_p
8932# -------------
8933# Create "$as_dir" as a directory, including parents if necessary.
8934as_fn_mkdir_p ()
8935{
8936
8937  case $as_dir in #(
8938  -*) as_dir=./$as_dir;;
8939  esac
8940  test -d "$as_dir" || eval $as_mkdir_p || {
8941    as_dirs=
8942    while :; do
8943      case $as_dir in #(
8944      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8945      *) as_qdir=$as_dir;;
8946      esac
8947      as_dirs="'$as_qdir' $as_dirs"
8948      as_dir=`$as_dirname -- "$as_dir" ||
8949$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8950	 X"$as_dir" : 'X\(//\)[^/]' \| \
8951	 X"$as_dir" : 'X\(//\)$' \| \
8952	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8953$as_echo X"$as_dir" |
8954    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8955	    s//\1/
8956	    q
8957	  }
8958	  /^X\(\/\/\)[^/].*/{
8959	    s//\1/
8960	    q
8961	  }
8962	  /^X\(\/\/\)$/{
8963	    s//\1/
8964	    q
8965	  }
8966	  /^X\(\/\).*/{
8967	    s//\1/
8968	    q
8969	  }
8970	  s/.*/./; q'`
8971      test -d "$as_dir" && break
8972    done
8973    test -z "$as_dirs" || eval "mkdir $as_dirs"
8974  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8975
8976
8977} # as_fn_mkdir_p
8978if mkdir -p . 2>/dev/null; then
8979  as_mkdir_p='mkdir -p "$as_dir"'
8980else
8981  test -d ./-p && rmdir ./-p
8982  as_mkdir_p=false
8983fi
8984
8985
8986# as_fn_executable_p FILE
8987# -----------------------
8988# Test if FILE is an executable regular file.
8989as_fn_executable_p ()
8990{
8991  test -f "$1" && test -x "$1"
8992} # as_fn_executable_p
8993as_test_x='test -x'
8994as_executable_p=as_fn_executable_p
8995
8996# Sed expression to map a string onto a valid CPP name.
8997as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8998
8999# Sed expression to map a string onto a valid variable name.
9000as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9001
9002
9003exec 6>&1
9004## ----------------------------------- ##
9005## Main body of $CONFIG_STATUS script. ##
9006## ----------------------------------- ##
9007_ASEOF
9008test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9009
9010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9011# Save the log message, to keep $0 and so on meaningful, and to
9012# report actual input values of CONFIG_FILES etc. instead of their
9013# values after options handling.
9014ac_log="
9015This file was extended by alienarena $as_me 7.66, which was
9016generated by GNU Autoconf 2.69.  Invocation command line was
9017
9018  CONFIG_FILES    = $CONFIG_FILES
9019  CONFIG_HEADERS  = $CONFIG_HEADERS
9020  CONFIG_LINKS    = $CONFIG_LINKS
9021  CONFIG_COMMANDS = $CONFIG_COMMANDS
9022  $ $0 $@
9023
9024on `(hostname || uname -n) 2>/dev/null | sed 1q`
9025"
9026
9027_ACEOF
9028
9029case $ac_config_files in *"
9030"*) set x $ac_config_files; shift; ac_config_files=$*;;
9031esac
9032
9033case $ac_config_headers in *"
9034"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9035esac
9036
9037
9038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9039# Files that config.status was made for.
9040config_files="$ac_config_files"
9041config_headers="$ac_config_headers"
9042config_commands="$ac_config_commands"
9043
9044_ACEOF
9045
9046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9047ac_cs_usage="\
9048\`$as_me' instantiates files and other configuration actions
9049from templates according to the current configuration.  Unless the files
9050and actions are specified as TAGs, all are instantiated by default.
9051
9052Usage: $0 [OPTION]... [TAG]...
9053
9054  -h, --help       print this help, then exit
9055  -V, --version    print version number and configuration settings, then exit
9056      --config     print configuration, then exit
9057  -q, --quiet, --silent
9058                   do not print progress messages
9059  -d, --debug      don't remove temporary files
9060      --recheck    update $as_me by reconfiguring in the same conditions
9061      --file=FILE[:TEMPLATE]
9062                   instantiate the configuration file FILE
9063      --header=FILE[:TEMPLATE]
9064                   instantiate the configuration header FILE
9065
9066Configuration files:
9067$config_files
9068
9069Configuration headers:
9070$config_headers
9071
9072Configuration commands:
9073$config_commands
9074
9075Report bugs to <alienrace@comcast.net>."
9076
9077_ACEOF
9078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9079ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9080ac_cs_version="\\
9081alienarena config.status 7.66
9082configured by $0, generated by GNU Autoconf 2.69,
9083  with options \\"\$ac_cs_config\\"
9084
9085Copyright (C) 2012 Free Software Foundation, Inc.
9086This config.status script is free software; the Free Software Foundation
9087gives unlimited permission to copy, distribute and modify it."
9088
9089ac_pwd='$ac_pwd'
9090srcdir='$srcdir'
9091INSTALL='$INSTALL'
9092MKDIR_P='$MKDIR_P'
9093AWK='$AWK'
9094test -n "\$AWK" || AWK=awk
9095_ACEOF
9096
9097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9098# The default lists apply if the user does not specify any file.
9099ac_need_defaults=:
9100while test $# != 0
9101do
9102  case $1 in
9103  --*=?*)
9104    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9105    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9106    ac_shift=:
9107    ;;
9108  --*=)
9109    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9110    ac_optarg=
9111    ac_shift=:
9112    ;;
9113  *)
9114    ac_option=$1
9115    ac_optarg=$2
9116    ac_shift=shift
9117    ;;
9118  esac
9119
9120  case $ac_option in
9121  # Handling of the options.
9122  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9123    ac_cs_recheck=: ;;
9124  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9125    $as_echo "$ac_cs_version"; exit ;;
9126  --config | --confi | --conf | --con | --co | --c )
9127    $as_echo "$ac_cs_config"; exit ;;
9128  --debug | --debu | --deb | --de | --d | -d )
9129    debug=: ;;
9130  --file | --fil | --fi | --f )
9131    $ac_shift
9132    case $ac_optarg in
9133    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9134    '') as_fn_error $? "missing file argument" ;;
9135    esac
9136    as_fn_append CONFIG_FILES " '$ac_optarg'"
9137    ac_need_defaults=false;;
9138  --header | --heade | --head | --hea )
9139    $ac_shift
9140    case $ac_optarg in
9141    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9142    esac
9143    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9144    ac_need_defaults=false;;
9145  --he | --h)
9146    # Conflict between --help and --header
9147    as_fn_error $? "ambiguous option: \`$1'
9148Try \`$0 --help' for more information.";;
9149  --help | --hel | -h )
9150    $as_echo "$ac_cs_usage"; exit ;;
9151  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9152  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9153    ac_cs_silent=: ;;
9154
9155  # This is an error.
9156  -*) as_fn_error $? "unrecognized option: \`$1'
9157Try \`$0 --help' for more information." ;;
9158
9159  *) as_fn_append ac_config_targets " $1"
9160     ac_need_defaults=false ;;
9161
9162  esac
9163  shift
9164done
9165
9166ac_configure_extra_args=
9167
9168if $ac_cs_silent; then
9169  exec 6>/dev/null
9170  ac_configure_extra_args="$ac_configure_extra_args --silent"
9171fi
9172
9173_ACEOF
9174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9175if \$ac_cs_recheck; then
9176  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9177  shift
9178  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9179  CONFIG_SHELL='$SHELL'
9180  export CONFIG_SHELL
9181  exec "\$@"
9182fi
9183
9184_ACEOF
9185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9186exec 5>>config.log
9187{
9188  echo
9189  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9190## Running $as_me. ##
9191_ASBOX
9192  $as_echo "$ac_log"
9193} >&5
9194
9195_ACEOF
9196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9197#
9198# INIT-COMMANDS
9199#
9200AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9201
9202_ACEOF
9203
9204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9205
9206# Handling of arguments.
9207for ac_config_target in $ac_config_targets
9208do
9209  case $ac_config_target in
9210    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
9211    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9212    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9213    "source/Makefile") CONFIG_FILES="$CONFIG_FILES source/Makefile" ;;
9214
9215  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9216  esac
9217done
9218
9219
9220# If the user did not use the arguments to specify the items to instantiate,
9221# then the envvar interface is used.  Set only those that are not.
9222# We use the long form for the default assignment because of an extremely
9223# bizarre bug on SunOS 4.1.3.
9224if $ac_need_defaults; then
9225  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9226  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9227  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9228fi
9229
9230# Have a temporary directory for convenience.  Make it in the build tree
9231# simply because there is no reason against having it here, and in addition,
9232# creating and moving files from /tmp can sometimes cause problems.
9233# Hook for its removal unless debugging.
9234# Note that there is a small window in which the directory will not be cleaned:
9235# after its creation but before its name has been assigned to `$tmp'.
9236$debug ||
9237{
9238  tmp= ac_tmp=
9239  trap 'exit_status=$?
9240  : "${ac_tmp:=$tmp}"
9241  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9242' 0
9243  trap 'as_fn_exit 1' 1 2 13 15
9244}
9245# Create a (secure) tmp directory for tmp files.
9246
9247{
9248  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9249  test -d "$tmp"
9250}  ||
9251{
9252  tmp=./conf$$-$RANDOM
9253  (umask 077 && mkdir "$tmp")
9254} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9255ac_tmp=$tmp
9256
9257# Set up the scripts for CONFIG_FILES section.
9258# No need to generate them if there are no CONFIG_FILES.
9259# This happens for instance with `./config.status config.h'.
9260if test -n "$CONFIG_FILES"; then
9261
9262
9263ac_cr=`echo X | tr X '\015'`
9264# On cygwin, bash can eat \r inside `` if the user requested igncr.
9265# But we know of no other shell where ac_cr would be empty at this
9266# point, so we can use a bashism as a fallback.
9267if test "x$ac_cr" = x; then
9268  eval ac_cr=\$\'\\r\'
9269fi
9270ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9271if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9272  ac_cs_awk_cr='\\r'
9273else
9274  ac_cs_awk_cr=$ac_cr
9275fi
9276
9277echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9278_ACEOF
9279
9280
9281{
9282  echo "cat >conf$$subs.awk <<_ACEOF" &&
9283  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9284  echo "_ACEOF"
9285} >conf$$subs.sh ||
9286  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9287ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9288ac_delim='%!_!# '
9289for ac_last_try in false false false false false :; do
9290  . ./conf$$subs.sh ||
9291    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9292
9293  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9294  if test $ac_delim_n = $ac_delim_num; then
9295    break
9296  elif $ac_last_try; then
9297    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9298  else
9299    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9300  fi
9301done
9302rm -f conf$$subs.sh
9303
9304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9305cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9306_ACEOF
9307sed -n '
9308h
9309s/^/S["/; s/!.*/"]=/
9310p
9311g
9312s/^[^!]*!//
9313:repl
9314t repl
9315s/'"$ac_delim"'$//
9316t delim
9317:nl
9318h
9319s/\(.\{148\}\)..*/\1/
9320t more1
9321s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9322p
9323n
9324b repl
9325:more1
9326s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9327p
9328g
9329s/.\{148\}//
9330t nl
9331:delim
9332h
9333s/\(.\{148\}\)..*/\1/
9334t more2
9335s/["\\]/\\&/g; s/^/"/; s/$/"/
9336p
9337b
9338:more2
9339s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9340p
9341g
9342s/.\{148\}//
9343t delim
9344' <conf$$subs.awk | sed '
9345/^[^""]/{
9346  N
9347  s/\n//
9348}
9349' >>$CONFIG_STATUS || ac_write_fail=1
9350rm -f conf$$subs.awk
9351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9352_ACAWK
9353cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9354  for (key in S) S_is_set[key] = 1
9355  FS = ""
9356
9357}
9358{
9359  line = $ 0
9360  nfields = split(line, field, "@")
9361  substed = 0
9362  len = length(field[1])
9363  for (i = 2; i < nfields; i++) {
9364    key = field[i]
9365    keylen = length(key)
9366    if (S_is_set[key]) {
9367      value = S[key]
9368      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9369      len += length(value) + length(field[++i])
9370      substed = 1
9371    } else
9372      len += 1 + keylen
9373  }
9374
9375  print line
9376}
9377
9378_ACAWK
9379_ACEOF
9380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9381if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9382  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9383else
9384  cat
9385fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9386  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9387_ACEOF
9388
9389# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9390# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9391# trailing colons and then remove the whole line if VPATH becomes empty
9392# (actually we leave an empty line to preserve line numbers).
9393if test "x$srcdir" = x.; then
9394  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
9395h
9396s///
9397s/^/:/
9398s/[	 ]*$/:/
9399s/:\$(srcdir):/:/g
9400s/:\${srcdir}:/:/g
9401s/:@srcdir@:/:/g
9402s/^:*//
9403s/:*$//
9404x
9405s/\(=[	 ]*\).*/\1/
9406G
9407s/\n//
9408s/^[^=]*=[	 ]*$//
9409}'
9410fi
9411
9412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9413fi # test -n "$CONFIG_FILES"
9414
9415# Set up the scripts for CONFIG_HEADERS section.
9416# No need to generate them if there are no CONFIG_HEADERS.
9417# This happens for instance with `./config.status Makefile'.
9418if test -n "$CONFIG_HEADERS"; then
9419cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9420BEGIN {
9421_ACEOF
9422
9423# Transform confdefs.h into an awk script `defines.awk', embedded as
9424# here-document in config.status, that substitutes the proper values into
9425# config.h.in to produce config.h.
9426
9427# Create a delimiter string that does not exist in confdefs.h, to ease
9428# handling of long lines.
9429ac_delim='%!_!# '
9430for ac_last_try in false false :; do
9431  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9432  if test -z "$ac_tt"; then
9433    break
9434  elif $ac_last_try; then
9435    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9436  else
9437    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9438  fi
9439done
9440
9441# For the awk script, D is an array of macro values keyed by name,
9442# likewise P contains macro parameters if any.  Preserve backslash
9443# newline sequences.
9444
9445ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9446sed -n '
9447s/.\{148\}/&'"$ac_delim"'/g
9448t rset
9449:rset
9450s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
9451t def
9452d
9453:def
9454s/\\$//
9455t bsnl
9456s/["\\]/\\&/g
9457s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9458D["\1"]=" \3"/p
9459s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
9460d
9461:bsnl
9462s/["\\]/\\&/g
9463s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
9464D["\1"]=" \3\\\\\\n"\\/p
9465t cont
9466s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9467t cont
9468d
9469:cont
9470n
9471s/.\{148\}/&'"$ac_delim"'/g
9472t clear
9473:clear
9474s/\\$//
9475t bsnlc
9476s/["\\]/\\&/g; s/^/"/; s/$/"/p
9477d
9478:bsnlc
9479s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9480b cont
9481' <confdefs.h | sed '
9482s/'"$ac_delim"'/"\\\
9483"/g' >>$CONFIG_STATUS || ac_write_fail=1
9484
9485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9486  for (key in D) D_is_set[key] = 1
9487  FS = ""
9488}
9489/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9490  line = \$ 0
9491  split(line, arg, " ")
9492  if (arg[1] == "#") {
9493    defundef = arg[2]
9494    mac1 = arg[3]
9495  } else {
9496    defundef = substr(arg[1], 2)
9497    mac1 = arg[2]
9498  }
9499  split(mac1, mac2, "(") #)
9500  macro = mac2[1]
9501  prefix = substr(line, 1, index(line, defundef) - 1)
9502  if (D_is_set[macro]) {
9503    # Preserve the white space surrounding the "#".
9504    print prefix "define", macro P[macro] D[macro]
9505    next
9506  } else {
9507    # Replace #undef with comments.  This is necessary, for example,
9508    # in the case of _POSIX_SOURCE, which is predefined and required
9509    # on some systems where configure will not decide to define it.
9510    if (defundef == "undef") {
9511      print "/*", prefix defundef, macro, "*/"
9512      next
9513    }
9514  }
9515}
9516{ print }
9517_ACAWK
9518_ACEOF
9519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9520  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9521fi # test -n "$CONFIG_HEADERS"
9522
9523
9524eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9525shift
9526for ac_tag
9527do
9528  case $ac_tag in
9529  :[FHLC]) ac_mode=$ac_tag; continue;;
9530  esac
9531  case $ac_mode$ac_tag in
9532  :[FHL]*:*);;
9533  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9534  :[FH]-) ac_tag=-:-;;
9535  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9536  esac
9537  ac_save_IFS=$IFS
9538  IFS=:
9539  set x $ac_tag
9540  IFS=$ac_save_IFS
9541  shift
9542  ac_file=$1
9543  shift
9544
9545  case $ac_mode in
9546  :L) ac_source=$1;;
9547  :[FH])
9548    ac_file_inputs=
9549    for ac_f
9550    do
9551      case $ac_f in
9552      -) ac_f="$ac_tmp/stdin";;
9553      *) # Look for the file first in the build tree, then in the source tree
9554	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
9555	 # because $ac_f cannot contain `:'.
9556	 test -f "$ac_f" ||
9557	   case $ac_f in
9558	   [\\/$]*) false;;
9559	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9560	   esac ||
9561	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9562      esac
9563      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9564      as_fn_append ac_file_inputs " '$ac_f'"
9565    done
9566
9567    # Let's still pretend it is `configure' which instantiates (i.e., don't
9568    # use $as_me), people would be surprised to read:
9569    #    /* config.h.  Generated by config.status.  */
9570    configure_input='Generated from '`
9571	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9572	`' by configure.'
9573    if test x"$ac_file" != x-; then
9574      configure_input="$ac_file.  $configure_input"
9575      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9576$as_echo "$as_me: creating $ac_file" >&6;}
9577    fi
9578    # Neutralize special characters interpreted by sed in replacement strings.
9579    case $configure_input in #(
9580    *\&* | *\|* | *\\* )
9581       ac_sed_conf_input=`$as_echo "$configure_input" |
9582       sed 's/[\\\\&|]/\\\\&/g'`;; #(
9583    *) ac_sed_conf_input=$configure_input;;
9584    esac
9585
9586    case $ac_tag in
9587    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9588      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9589    esac
9590    ;;
9591  esac
9592
9593  ac_dir=`$as_dirname -- "$ac_file" ||
9594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9595	 X"$ac_file" : 'X\(//\)[^/]' \| \
9596	 X"$ac_file" : 'X\(//\)$' \| \
9597	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9598$as_echo X"$ac_file" |
9599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9600	    s//\1/
9601	    q
9602	  }
9603	  /^X\(\/\/\)[^/].*/{
9604	    s//\1/
9605	    q
9606	  }
9607	  /^X\(\/\/\)$/{
9608	    s//\1/
9609	    q
9610	  }
9611	  /^X\(\/\).*/{
9612	    s//\1/
9613	    q
9614	  }
9615	  s/.*/./; q'`
9616  as_dir="$ac_dir"; as_fn_mkdir_p
9617  ac_builddir=.
9618
9619case "$ac_dir" in
9620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9621*)
9622  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9623  # A ".." for each directory in $ac_dir_suffix.
9624  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9625  case $ac_top_builddir_sub in
9626  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9627  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9628  esac ;;
9629esac
9630ac_abs_top_builddir=$ac_pwd
9631ac_abs_builddir=$ac_pwd$ac_dir_suffix
9632# for backward compatibility:
9633ac_top_builddir=$ac_top_build_prefix
9634
9635case $srcdir in
9636  .)  # We are building in place.
9637    ac_srcdir=.
9638    ac_top_srcdir=$ac_top_builddir_sub
9639    ac_abs_top_srcdir=$ac_pwd ;;
9640  [\\/]* | ?:[\\/]* )  # Absolute name.
9641    ac_srcdir=$srcdir$ac_dir_suffix;
9642    ac_top_srcdir=$srcdir
9643    ac_abs_top_srcdir=$srcdir ;;
9644  *) # Relative name.
9645    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9646    ac_top_srcdir=$ac_top_build_prefix$srcdir
9647    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9648esac
9649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9650
9651
9652  case $ac_mode in
9653  :F)
9654  #
9655  # CONFIG_FILE
9656  #
9657
9658  case $INSTALL in
9659  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9660  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9661  esac
9662  ac_MKDIR_P=$MKDIR_P
9663  case $MKDIR_P in
9664  [\\/$]* | ?:[\\/]* ) ;;
9665  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9666  esac
9667_ACEOF
9668
9669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9670# If the template does not know about datarootdir, expand it.
9671# FIXME: This hack should be removed a few years after 2.60.
9672ac_datarootdir_hack=; ac_datarootdir_seen=
9673ac_sed_dataroot='
9674/datarootdir/ {
9675  p
9676  q
9677}
9678/@datadir@/p
9679/@docdir@/p
9680/@infodir@/p
9681/@localedir@/p
9682/@mandir@/p'
9683case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9684*datarootdir*) ac_datarootdir_seen=yes;;
9685*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9686  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9687$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9688_ACEOF
9689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9690  ac_datarootdir_hack='
9691  s&@datadir@&$datadir&g
9692  s&@docdir@&$docdir&g
9693  s&@infodir@&$infodir&g
9694  s&@localedir@&$localedir&g
9695  s&@mandir@&$mandir&g
9696  s&\\\${datarootdir}&$datarootdir&g' ;;
9697esac
9698_ACEOF
9699
9700# Neutralize VPATH when `$srcdir' = `.'.
9701# Shell code in configure.ac might set extrasub.
9702# FIXME: do we really want to maintain this feature?
9703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9704ac_sed_extra="$ac_vpsub
9705$extrasub
9706_ACEOF
9707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9708:t
9709/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9710s|@configure_input@|$ac_sed_conf_input|;t t
9711s&@top_builddir@&$ac_top_builddir_sub&;t t
9712s&@top_build_prefix@&$ac_top_build_prefix&;t t
9713s&@srcdir@&$ac_srcdir&;t t
9714s&@abs_srcdir@&$ac_abs_srcdir&;t t
9715s&@top_srcdir@&$ac_top_srcdir&;t t
9716s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9717s&@builddir@&$ac_builddir&;t t
9718s&@abs_builddir@&$ac_abs_builddir&;t t
9719s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9720s&@INSTALL@&$ac_INSTALL&;t t
9721s&@MKDIR_P@&$ac_MKDIR_P&;t t
9722$ac_datarootdir_hack
9723"
9724eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9725  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9726
9727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9728  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9729  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9730      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9731  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9732which seems to be undefined.  Please make sure it is defined" >&5
9733$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9734which seems to be undefined.  Please make sure it is defined" >&2;}
9735
9736  rm -f "$ac_tmp/stdin"
9737  case $ac_file in
9738  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9739  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9740  esac \
9741  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9742 ;;
9743  :H)
9744  #
9745  # CONFIG_HEADER
9746  #
9747  if test x"$ac_file" != x-; then
9748    {
9749      $as_echo "/* $configure_input  */" \
9750      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9751    } >"$ac_tmp/config.h" \
9752      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9753    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9754      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9755$as_echo "$as_me: $ac_file is unchanged" >&6;}
9756    else
9757      rm -f "$ac_file"
9758      mv "$ac_tmp/config.h" "$ac_file" \
9759	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9760    fi
9761  else
9762    $as_echo "/* $configure_input  */" \
9763      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9764      || as_fn_error $? "could not create -" "$LINENO" 5
9765  fi
9766# Compute "$ac_file"'s index in $config_headers.
9767_am_arg="$ac_file"
9768_am_stamp_count=1
9769for _am_header in $config_headers :; do
9770  case $_am_header in
9771    $_am_arg | $_am_arg:* )
9772      break ;;
9773    * )
9774      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9775  esac
9776done
9777echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9778$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9779	 X"$_am_arg" : 'X\(//\)[^/]' \| \
9780	 X"$_am_arg" : 'X\(//\)$' \| \
9781	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9782$as_echo X"$_am_arg" |
9783    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9784	    s//\1/
9785	    q
9786	  }
9787	  /^X\(\/\/\)[^/].*/{
9788	    s//\1/
9789	    q
9790	  }
9791	  /^X\(\/\/\)$/{
9792	    s//\1/
9793	    q
9794	  }
9795	  /^X\(\/\).*/{
9796	    s//\1/
9797	    q
9798	  }
9799	  s/.*/./; q'`/stamp-h$_am_stamp_count
9800 ;;
9801
9802  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9803$as_echo "$as_me: executing $ac_file commands" >&6;}
9804 ;;
9805  esac
9806
9807
9808  case $ac_file$ac_mode in
9809    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9810  # Older Autoconf quotes --file arguments for eval, but not when files
9811  # are listed without --file.  Let's play safe and only enable the eval
9812  # if we detect the quoting.
9813  case $CONFIG_FILES in
9814  *\'*) eval set x "$CONFIG_FILES" ;;
9815  *)   set x $CONFIG_FILES ;;
9816  esac
9817  shift
9818  for mf
9819  do
9820    # Strip MF so we end up with the name of the file.
9821    mf=`echo "$mf" | sed -e 's/:.*$//'`
9822    # Check whether this is an Automake generated Makefile or not.
9823    # We used to match only the files named 'Makefile.in', but
9824    # some people rename them; so instead we look at the file content.
9825    # Grep'ing the first line is not enough: some people post-process
9826    # each Makefile.in and add a new line on top of each file to say so.
9827    # Grep'ing the whole file is not good either: AIX grep has a line
9828    # limit of 2048, but all sed's we know have understand at least 4000.
9829    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9830      dirpart=`$as_dirname -- "$mf" ||
9831$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9832	 X"$mf" : 'X\(//\)[^/]' \| \
9833	 X"$mf" : 'X\(//\)$' \| \
9834	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9835$as_echo X"$mf" |
9836    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9837	    s//\1/
9838	    q
9839	  }
9840	  /^X\(\/\/\)[^/].*/{
9841	    s//\1/
9842	    q
9843	  }
9844	  /^X\(\/\/\)$/{
9845	    s//\1/
9846	    q
9847	  }
9848	  /^X\(\/\).*/{
9849	    s//\1/
9850	    q
9851	  }
9852	  s/.*/./; q'`
9853    else
9854      continue
9855    fi
9856    # Extract the definition of DEPDIR, am__include, and am__quote
9857    # from the Makefile without running 'make'.
9858    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9859    test -z "$DEPDIR" && continue
9860    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9861    test -z "$am__include" && continue
9862    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9863    # Find all dependency output files, they are included files with
9864    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9865    # simplest approach to changing $(DEPDIR) to its actual value in the
9866    # expansion.
9867    for file in `sed -n "
9868      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9869	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9870      # Make sure the directory exists.
9871      test -f "$dirpart/$file" && continue
9872      fdir=`$as_dirname -- "$file" ||
9873$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9874	 X"$file" : 'X\(//\)[^/]' \| \
9875	 X"$file" : 'X\(//\)$' \| \
9876	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9877$as_echo X"$file" |
9878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9879	    s//\1/
9880	    q
9881	  }
9882	  /^X\(\/\/\)[^/].*/{
9883	    s//\1/
9884	    q
9885	  }
9886	  /^X\(\/\/\)$/{
9887	    s//\1/
9888	    q
9889	  }
9890	  /^X\(\/\).*/{
9891	    s//\1/
9892	    q
9893	  }
9894	  s/.*/./; q'`
9895      as_dir=$dirpart/$fdir; as_fn_mkdir_p
9896      # echo "creating $dirpart/$file"
9897      echo '# dummy' > "$dirpart/$file"
9898    done
9899  done
9900}
9901 ;;
9902
9903  esac
9904done # for ac_tag
9905
9906
9907as_fn_exit 0
9908_ACEOF
9909ac_clean_files=$ac_clean_files_save
9910
9911test $ac_write_fail = 0 ||
9912  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9913
9914
9915# configure is writing to config.log, and then calls config.status.
9916# config.status does its own redirection, appending to config.log.
9917# Unfortunately, on DOS this fails, as config.log is still kept open
9918# by configure, so config.status won't be able to write to it; its
9919# output is simply discarded.  So we exec the FD to /dev/null,
9920# effectively closing config.log, so it can be properly (re)opened and
9921# appended to by config.status.  When coming back to configure, we
9922# need to make the FD available again.
9923if test "$no_create" != yes; then
9924  ac_cs_success=:
9925  ac_config_status_args=
9926  test "$silent" = yes &&
9927    ac_config_status_args="$ac_config_status_args --quiet"
9928  exec 5>/dev/null
9929  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9930  exec 5>>config.log
9931  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9932  # would make configure fail if this is the last instruction.
9933  $ac_cs_success || as_fn_exit 1
9934fi
9935if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9936  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9937$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9938fi
9939
9940
9941# Check whether --enable-build-status was given.
9942if test "${enable_build_status+set}" = set; then :
9943  enableval=$enable_build_status; hide_status=${enableval}
9944else
9945  hide_status=no
9946fi
9947
9948
9949if test "x$hide_status" = "xno"; then :
9950
9951	$as_echo
9952	$as_echo "-------------------------------------------"
9953	$as_echo "Package: ${PACKAGE_NAME} Version: ${PACKAGE_VERSION}"
9954	$as_echo " OS: .................... ${host_os}"
9955	$as_echo " CPU: ................... ${host_cpu}"
9956	if test -z "$BUILD_WIN32_TRUE"; then :
9957  else
9958
9959		if  test "x$build_client" = "xyes" ; then :
9960  dedicated_only=no
9961else
9962  dedicated_only=yes
9963fi
9964		$as_echo " Dedicated Only: ........ ${dedicated_only}"
9965		$as_echo " Server terminal color: . ${ansi_color}"
9966
9967fi
9968	$as_echo " Alternate install: ..... ${alternate_install}"
9969
9970	if test -z "$ALTERNATE_INSTALL_TRUE"; then :
9971
9972		if test -z "$BUILD_CLIENT_TRUE"; then :
9973
9974			$as_echo " System ODE library ..... ${system_ode}"
9975			$as_echo " XF86 DGA support: ...... ${have_Xxf86dga}"
9976			$as_echo " XF86 VidMode support: .. ${have_Xxf86vm}"
9977			$as_echo " Zlib support: .......... ${have_zlib}"
9978
9979fi
9980		$as_echo " Shared Data ............ ${srcdir}"
9981		$as_echo "   note: with alternate install, data is located relative to CWD."
9982		$as_echo " User Home R/W Data ..... ${alienarena_homedir}"
9983
9984else
9985
9986		game_data=${datadir}/${PACKAGE_NAME}
9987		game_data_a=`eval "echo ${game_data}"`
9988		game_data=`eval "echo ${game_data_a}"`
9989		if test -z "$BUILD_CLIENT_TRUE"; then :
9990
9991			$as_echo " System ODE library ..... ${system_ode}"
9992			$as_echo " XF86 DGA support: ...... ${have_Xxf86dga}"
9993			$as_echo " XF86 VidMode support: .. ${have_Xxf86vm}"
9994			$as_echo " Zlib support: .......... ${have_zlib}"
9995			if  test x"${unix_host}" = xdarwin ; then :
9996
9997				$as_echo " GL_LIBDIR: ............. ${gl_dlopen_path}"
9998
9999fi
10000
10001fi
10002		$as_echo " Prefix ................. ${prefix}"
10003		$as_echo " Shared RO Data: ........ ${game_data}"
10004		$as_echo " User Home R/W Data ..... ${alienarena_homedir}"
10005
10006fi
10007
10008	$as_echo
10009
10010	if test -z "$ALTERNATE_INSTALL_TRUE"; then :
10011  $as_echo "Run \"make\" to build, then \"make install-alternate\" to install."
10012else
10013  $as_echo "Run \"make\" to build, then \"sudo make install\" to install."
10014fi
10015
10016	$as_echo
10017	$as_echo "Advanced Build Information:"
10018	$as_echo " See README for information and recommendations."
10019	$as_echo " Run ./configure --help for configure options."
10020	$as_echo " Compiler options:"
10021	$as_echo "  CFLAGS:.... ${CFLAGS}"
10022	$as_echo "  CXXFLAGS:.. ${CXXFLAGS}"
10023	$as_echo
10024
10025	$as_echo "--------------------------------------------"
10026
10027fi
10028