1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for dunelegacy 0.96.4.
4#
5# Report bugs to <http://dunelegacy.sourceforge.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: http://dunelegacy.sourceforge.net about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a 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='dunelegacy'
582PACKAGE_TARNAME='dunelegacy'
583PACKAGE_VERSION='0.96.4'
584PACKAGE_STRING='dunelegacy 0.96.4'
585PACKAGE_BUGREPORT='http://dunelegacy.sourceforge.net'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='am__EXEEXT_FALSE
625am__EXEEXT_TRUE
626LTLIBOBJS
627LIBOBJS
628SDL2_CONFIG
629SDL_LIBS
630SDL_CFLAGS
631PKG_CONFIG_LIBDIR
632PKG_CONFIG_PATH
633PKG_CONFIG
634dunelegacydatadir
635am__fastdepCXX_FALSE
636am__fastdepCXX_TRUE
637CXXDEPMODE
638ac_ct_CXX
639CXXFLAGS
640CXX
641AM_BACKSLASH
642AM_DEFAULT_VERBOSITY
643AM_DEFAULT_V
644AM_V
645am__fastdepCC_FALSE
646am__fastdepCC_TRUE
647CCDEPMODE
648am__nodep
649AMDEPBACKSLASH
650AMDEP_FALSE
651AMDEP_TRUE
652am__quote
653am__include
654DEPDIR
655am__untar
656am__tar
657AMTAR
658am__leading_dot
659SET_MAKE
660AWK
661mkdir_p
662MKDIR_P
663INSTALL_STRIP_PROGRAM
664STRIP
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678EGREP
679GREP
680CPP
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688build_os
689build_vendor
690build_cpu
691build
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711runstatedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_dependency_tracking
735enable_silent_rules
736enable_debug
737with_sdl_prefix
738with_sdl_exec_prefix
739enable_sdltest
740'
741      ac_precious_vars='build_alias
742host_alias
743target_alias
744CC
745CFLAGS
746LDFLAGS
747LIBS
748CPPFLAGS
749CPP
750CXX
751CXXFLAGS
752CCC
753PKG_CONFIG
754PKG_CONFIG_PATH
755PKG_CONFIG_LIBDIR
756SDL_CFLAGS
757SDL_LIBS'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796runstatedir='${localstatedir}/run'
797includedir='${prefix}/include'
798oldincludedir='/usr/include'
799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800infodir='${datarootdir}/info'
801htmldir='${docdir}'
802dvidir='${docdir}'
803pdfdir='${docdir}'
804psdir='${docdir}'
805libdir='${exec_prefix}/lib'
806localedir='${datarootdir}/locale'
807mandir='${datarootdir}/man'
808
809ac_prev=
810ac_dashdash=
811for ac_option
812do
813  # If the previous option needs an argument, assign it.
814  if test -n "$ac_prev"; then
815    eval $ac_prev=\$ac_option
816    ac_prev=
817    continue
818  fi
819
820  case $ac_option in
821  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822  *=)   ac_optarg= ;;
823  *)    ac_optarg=yes ;;
824  esac
825
826  # Accept the important Cygnus configure options, so we can diagnose typos.
827
828  case $ac_dashdash$ac_option in
829  --)
830    ac_dashdash=yes ;;
831
832  -bindir | --bindir | --bindi | --bind | --bin | --bi)
833    ac_prev=bindir ;;
834  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835    bindir=$ac_optarg ;;
836
837  -build | --build | --buil | --bui | --bu)
838    ac_prev=build_alias ;;
839  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840    build_alias=$ac_optarg ;;
841
842  -cache-file | --cache-file | --cache-fil | --cache-fi \
843  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844    ac_prev=cache_file ;;
845  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847    cache_file=$ac_optarg ;;
848
849  --config-cache | -C)
850    cache_file=config.cache ;;
851
852  -datadir | --datadir | --datadi | --datad)
853    ac_prev=datadir ;;
854  -datadir=* | --datadir=* | --datadi=* | --datad=*)
855    datadir=$ac_optarg ;;
856
857  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858  | --dataroo | --dataro | --datar)
859    ac_prev=datarootdir ;;
860  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862    datarootdir=$ac_optarg ;;
863
864  -disable-* | --disable-*)
865    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866    # Reject names that are not valid shell variable names.
867    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868      as_fn_error $? "invalid feature name: $ac_useropt"
869    ac_useropt_orig=$ac_useropt
870    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871    case $ac_user_opts in
872      *"
873"enable_$ac_useropt"
874"*) ;;
875      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876	 ac_unrecognized_sep=', ';;
877    esac
878    eval enable_$ac_useropt=no ;;
879
880  -docdir | --docdir | --docdi | --doc | --do)
881    ac_prev=docdir ;;
882  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883    docdir=$ac_optarg ;;
884
885  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886    ac_prev=dvidir ;;
887  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888    dvidir=$ac_optarg ;;
889
890  -enable-* | --enable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=\$ac_optarg ;;
905
906  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908  | --exec | --exe | --ex)
909    ac_prev=exec_prefix ;;
910  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912  | --exec=* | --exe=* | --ex=*)
913    exec_prefix=$ac_optarg ;;
914
915  -gas | --gas | --ga | --g)
916    # Obsolete; use --with-gas.
917    with_gas=yes ;;
918
919  -help | --help | --hel | --he | -h)
920    ac_init_help=long ;;
921  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922    ac_init_help=recursive ;;
923  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924    ac_init_help=short ;;
925
926  -host | --host | --hos | --ho)
927    ac_prev=host_alias ;;
928  -host=* | --host=* | --hos=* | --ho=*)
929    host_alias=$ac_optarg ;;
930
931  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932    ac_prev=htmldir ;;
933  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934  | --ht=*)
935    htmldir=$ac_optarg ;;
936
937  -includedir | --includedir | --includedi | --included | --include \
938  | --includ | --inclu | --incl | --inc)
939    ac_prev=includedir ;;
940  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941  | --includ=* | --inclu=* | --incl=* | --inc=*)
942    includedir=$ac_optarg ;;
943
944  -infodir | --infodir | --infodi | --infod | --info | --inf)
945    ac_prev=infodir ;;
946  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947    infodir=$ac_optarg ;;
948
949  -libdir | --libdir | --libdi | --libd)
950    ac_prev=libdir ;;
951  -libdir=* | --libdir=* | --libdi=* | --libd=*)
952    libdir=$ac_optarg ;;
953
954  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955  | --libexe | --libex | --libe)
956    ac_prev=libexecdir ;;
957  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958  | --libexe=* | --libex=* | --libe=*)
959    libexecdir=$ac_optarg ;;
960
961  -localedir | --localedir | --localedi | --localed | --locale)
962    ac_prev=localedir ;;
963  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964    localedir=$ac_optarg ;;
965
966  -localstatedir | --localstatedir | --localstatedi | --localstated \
967  | --localstate | --localstat | --localsta | --localst | --locals)
968    ac_prev=localstatedir ;;
969  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971    localstatedir=$ac_optarg ;;
972
973  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974    ac_prev=mandir ;;
975  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976    mandir=$ac_optarg ;;
977
978  -nfp | --nfp | --nf)
979    # Obsolete; use --without-fp.
980    with_fp=no ;;
981
982  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983  | --no-cr | --no-c | -n)
984    no_create=yes ;;
985
986  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988    no_recursion=yes ;;
989
990  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992  | --oldin | --oldi | --old | --ol | --o)
993    ac_prev=oldincludedir ;;
994  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997    oldincludedir=$ac_optarg ;;
998
999  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000    ac_prev=prefix ;;
1001  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002    prefix=$ac_optarg ;;
1003
1004  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005  | --program-pre | --program-pr | --program-p)
1006    ac_prev=program_prefix ;;
1007  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009    program_prefix=$ac_optarg ;;
1010
1011  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012  | --program-suf | --program-su | --program-s)
1013    ac_prev=program_suffix ;;
1014  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016    program_suffix=$ac_optarg ;;
1017
1018  -program-transform-name | --program-transform-name \
1019  | --program-transform-nam | --program-transform-na \
1020  | --program-transform-n | --program-transform- \
1021  | --program-transform | --program-transfor \
1022  | --program-transfo | --program-transf \
1023  | --program-trans | --program-tran \
1024  | --progr-tra | --program-tr | --program-t)
1025    ac_prev=program_transform_name ;;
1026  -program-transform-name=* | --program-transform-name=* \
1027  | --program-transform-nam=* | --program-transform-na=* \
1028  | --program-transform-n=* | --program-transform-=* \
1029  | --program-transform=* | --program-transfor=* \
1030  | --program-transfo=* | --program-transf=* \
1031  | --program-trans=* | --program-tran=* \
1032  | --progr-tra=* | --program-tr=* | --program-t=*)
1033    program_transform_name=$ac_optarg ;;
1034
1035  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036    ac_prev=pdfdir ;;
1037  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038    pdfdir=$ac_optarg ;;
1039
1040  -psdir | --psdir | --psdi | --psd | --ps)
1041    ac_prev=psdir ;;
1042  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043    psdir=$ac_optarg ;;
1044
1045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046  | -silent | --silent | --silen | --sile | --sil)
1047    silent=yes ;;
1048
1049  -runstatedir | --runstatedir | --runstatedi | --runstated \
1050  | --runstate | --runstat | --runsta | --runst | --runs \
1051  | --run | --ru | --r)
1052    ac_prev=runstatedir ;;
1053  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1054  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1055  | --run=* | --ru=* | --r=*)
1056    runstatedir=$ac_optarg ;;
1057
1058  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059    ac_prev=sbindir ;;
1060  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061  | --sbi=* | --sb=*)
1062    sbindir=$ac_optarg ;;
1063
1064  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066  | --sharedst | --shareds | --shared | --share | --shar \
1067  | --sha | --sh)
1068    ac_prev=sharedstatedir ;;
1069  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072  | --sha=* | --sh=*)
1073    sharedstatedir=$ac_optarg ;;
1074
1075  -site | --site | --sit)
1076    ac_prev=site ;;
1077  -site=* | --site=* | --sit=*)
1078    site=$ac_optarg ;;
1079
1080  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081    ac_prev=srcdir ;;
1082  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083    srcdir=$ac_optarg ;;
1084
1085  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086  | --syscon | --sysco | --sysc | --sys | --sy)
1087    ac_prev=sysconfdir ;;
1088  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090    sysconfdir=$ac_optarg ;;
1091
1092  -target | --target | --targe | --targ | --tar | --ta | --t)
1093    ac_prev=target_alias ;;
1094  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095    target_alias=$ac_optarg ;;
1096
1097  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098    verbose=yes ;;
1099
1100  -version | --version | --versio | --versi | --vers | -V)
1101    ac_init_version=: ;;
1102
1103  -with-* | --with-*)
1104    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105    # Reject names that are not valid shell variable names.
1106    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107      as_fn_error $? "invalid package name: $ac_useropt"
1108    ac_useropt_orig=$ac_useropt
1109    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110    case $ac_user_opts in
1111      *"
1112"with_$ac_useropt"
1113"*) ;;
1114      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115	 ac_unrecognized_sep=', ';;
1116    esac
1117    eval with_$ac_useropt=\$ac_optarg ;;
1118
1119  -without-* | --without-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=no ;;
1134
1135  --x)
1136    # Obsolete; use --with-x.
1137    with_x=yes ;;
1138
1139  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140  | --x-incl | --x-inc | --x-in | --x-i)
1141    ac_prev=x_includes ;;
1142  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144    x_includes=$ac_optarg ;;
1145
1146  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148    ac_prev=x_libraries ;;
1149  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151    x_libraries=$ac_optarg ;;
1152
1153  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154Try \`$0 --help' for more information"
1155    ;;
1156
1157  *=*)
1158    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159    # Reject names that are not valid shell variable names.
1160    case $ac_envvar in #(
1161      '' | [0-9]* | *[!_$as_cr_alnum]* )
1162      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163    esac
1164    eval $ac_envvar=\$ac_optarg
1165    export $ac_envvar ;;
1166
1167  *)
1168    # FIXME: should be removed in autoconf 3.0.
1169    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173    ;;
1174
1175  esac
1176done
1177
1178if test -n "$ac_prev"; then
1179  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180  as_fn_error $? "missing argument to $ac_option"
1181fi
1182
1183if test -n "$ac_unrecognized_opts"; then
1184  case $enable_option_checking in
1185    no) ;;
1186    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188  esac
1189fi
1190
1191# Check all directory arguments for consistency.
1192for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193		datadir sysconfdir sharedstatedir localstatedir includedir \
1194		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195		libdir localedir mandir runstatedir
1196do
1197  eval ac_val=\$$ac_var
1198  # Remove trailing slashes.
1199  case $ac_val in
1200    */ )
1201      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202      eval $ac_var=\$ac_val;;
1203  esac
1204  # Be sure to have absolute directory names.
1205  case $ac_val in
1206    [\\/$]* | ?:[\\/]* )  continue;;
1207    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208  esac
1209  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210done
1211
1212# There might be people who depend on the old broken behavior: `$host'
1213# used to hold the argument of --host etc.
1214# FIXME: To remove some day.
1215build=$build_alias
1216host=$host_alias
1217target=$target_alias
1218
1219# FIXME: To remove some day.
1220if test "x$host_alias" != x; then
1221  if test "x$build_alias" = x; then
1222    cross_compiling=maybe
1223  elif test "x$build_alias" != "x$host_alias"; then
1224    cross_compiling=yes
1225  fi
1226fi
1227
1228ac_tool_prefix=
1229test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231test "$silent" = yes && exec 6>/dev/null
1232
1233
1234ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235ac_ls_di=`ls -di .` &&
1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237  as_fn_error $? "working directory cannot be determined"
1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239  as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242# Find the source files, if location was not specified.
1243if test -z "$srcdir"; then
1244  ac_srcdir_defaulted=yes
1245  # Try the directory containing this script, then the parent directory.
1246  ac_confdir=`$as_dirname -- "$as_myself" ||
1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248	 X"$as_myself" : 'X\(//\)[^/]' \| \
1249	 X"$as_myself" : 'X\(//\)$' \| \
1250	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251$as_echo X"$as_myself" |
1252    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\/\)[^/].*/{
1257	    s//\1/
1258	    q
1259	  }
1260	  /^X\(\/\/\)$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\).*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  s/.*/./; q'`
1269  srcdir=$ac_confdir
1270  if test ! -r "$srcdir/$ac_unique_file"; then
1271    srcdir=..
1272  fi
1273else
1274  ac_srcdir_defaulted=no
1275fi
1276if test ! -r "$srcdir/$ac_unique_file"; then
1277  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279fi
1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281ac_abs_confdir=`(
1282	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283	pwd)`
1284# When building in place, set srcdir=.
1285if test "$ac_abs_confdir" = "$ac_pwd"; then
1286  srcdir=.
1287fi
1288# Remove unnecessary trailing slashes from srcdir.
1289# Double slashes in file names in object file debugging info
1290# mess up M-x gdb in Emacs.
1291case $srcdir in
1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293esac
1294for ac_var in $ac_precious_vars; do
1295  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296  eval ac_env_${ac_var}_value=\$${ac_var}
1297  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299done
1300
1301#
1302# Report the --help message.
1303#
1304if test "$ac_init_help" = "long"; then
1305  # Omit some internal or obsolete options to make the list less imposing.
1306  # This message is too long to be a string in the A/UX 3.1 sh.
1307  cat <<_ACEOF
1308\`configure' configures dunelegacy 0.96.4 to adapt to many kinds of systems.
1309
1310Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313VAR=VALUE.  See below for descriptions of some of the useful variables.
1314
1315Defaults for the options are specified in brackets.
1316
1317Configuration:
1318  -h, --help              display this help and exit
1319      --help=short        display options specific to this package
1320      --help=recursive    display the short help of all the included packages
1321  -V, --version           display version information and exit
1322  -q, --quiet, --silent   do not print \`checking ...' messages
1323      --cache-file=FILE   cache test results in FILE [disabled]
1324  -C, --config-cache      alias for \`--cache-file=config.cache'
1325  -n, --no-create         do not create output files
1326      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1327
1328Installation directories:
1329  --prefix=PREFIX         install architecture-independent files in PREFIX
1330                          [$ac_default_prefix]
1331  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1332                          [PREFIX]
1333
1334By default, \`make install' will install all the files in
1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1336an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337for instance \`--prefix=\$HOME'.
1338
1339For better control, use the options below.
1340
1341Fine tuning of the installation directories:
1342  --bindir=DIR            user executables [EPREFIX/bin]
1343  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1344  --libexecdir=DIR        program executables [EPREFIX/libexec]
1345  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1346  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1347  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1348  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1349  --libdir=DIR            object code libraries [EPREFIX/lib]
1350  --includedir=DIR        C header files [PREFIX/include]
1351  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1352  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1353  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1354  --infodir=DIR           info documentation [DATAROOTDIR/info]
1355  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1356  --mandir=DIR            man documentation [DATAROOTDIR/man]
1357  --docdir=DIR            documentation root [DATAROOTDIR/doc/dunelegacy]
1358  --htmldir=DIR           html documentation [DOCDIR]
1359  --dvidir=DIR            dvi documentation [DOCDIR]
1360  --pdfdir=DIR            pdf documentation [DOCDIR]
1361  --psdir=DIR             ps documentation [DOCDIR]
1362_ACEOF
1363
1364  cat <<\_ACEOF
1365
1366Program names:
1367  --program-prefix=PREFIX            prepend PREFIX to installed program names
1368  --program-suffix=SUFFIX            append SUFFIX to installed program names
1369  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1370
1371System types:
1372  --build=BUILD     configure for building on BUILD [guessed]
1373_ACEOF
1374fi
1375
1376if test -n "$ac_init_help"; then
1377  case $ac_init_help in
1378     short | recursive ) echo "Configuration of dunelegacy 0.96.4:";;
1379   esac
1380  cat <<\_ACEOF
1381
1382Optional Features:
1383  --disable-option-checking  ignore unrecognized --enable/--with options
1384  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386  --enable-dependency-tracking
1387                          do not reject slow dependency extractors
1388  --disable-dependency-tracking
1389                          speeds up one-time build
1390  --enable-silent-rules   less verbose build output (undo: "make V=1")
1391  --disable-silent-rules  verbose build output (undo: "make V=0")
1392  --enable-debug          compile with debug information [default=disabled]
1393  --disable-sdltest       Do not try to compile and run a test SDL program
1394
1395Optional Packages:
1396  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1397  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1398  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1399  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  CXX         C++ compiler command
1411  CXXFLAGS    C++ compiler flags
1412  PKG_CONFIG  path to pkg-config utility
1413  PKG_CONFIG_PATH
1414              directories to add to pkg-config's search path
1415  PKG_CONFIG_LIBDIR
1416              path overriding pkg-config's built-in search path
1417  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1418  SDL_LIBS    linker flags for SDL, overriding pkg-config
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to <http://dunelegacy.sourceforge.net>.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429  # If there are subdirs, report their specific --help.
1430  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431    test -d "$ac_dir" ||
1432      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433      continue
1434    ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440  # A ".." for each directory in $ac_dir_suffix.
1441  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442  case $ac_top_builddir_sub in
1443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445  esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453  .)  # We are building in place.
1454    ac_srcdir=.
1455    ac_top_srcdir=$ac_top_builddir_sub
1456    ac_abs_top_srcdir=$ac_pwd ;;
1457  [\\/]* | ?:[\\/]* )  # Absolute name.
1458    ac_srcdir=$srcdir$ac_dir_suffix;
1459    ac_top_srcdir=$srcdir
1460    ac_abs_top_srcdir=$srcdir ;;
1461  *) # Relative name.
1462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468    cd "$ac_dir" || { ac_status=$?; continue; }
1469    # Check for guested configure.
1470    if test -f "$ac_srcdir/configure.gnu"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473    elif test -f "$ac_srcdir/configure"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure" --help=recursive
1476    else
1477      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478    fi || ac_status=$?
1479    cd "$ac_pwd" || { ac_status=$?; break; }
1480  done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485  cat <<\_ACEOF
1486dunelegacy configure 0.96.4
1487generated by GNU Autoconf 2.69
1488
1489Copyright (C) 2012 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493  exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  rm -f conftest.$ac_objext
1507  if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510  *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514  (eval "$ac_compile") 2>conftest.err
1515  ac_status=$?
1516  if test -s conftest.err; then
1517    grep -v '^ *+' conftest.err >conftest.er1
1518    cat conftest.er1 >&5
1519    mv -f conftest.er1 conftest.err
1520  fi
1521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522  test $ac_status = 0; } && {
1523	 test -z "$ac_c_werror_flag" ||
1524	 test ! -s conftest.err
1525       } && test -s conftest.$ac_objext; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534  as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
1538# ac_fn_c_try_cpp LINENO
1539# ----------------------
1540# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_cpp ()
1542{
1543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544  if { { ac_try="$ac_cpp conftest.$ac_ext"
1545case "(($ac_try" in
1546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547  *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552  ac_status=$?
1553  if test -s conftest.err; then
1554    grep -v '^ *+' conftest.err >conftest.er1
1555    cat conftest.er1 >&5
1556    mv -f conftest.er1 conftest.err
1557  fi
1558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559  test $ac_status = 0; } > conftest.i && {
1560	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561	 test ! -s conftest.err
1562       }; then :
1563  ac_retval=0
1564else
1565  $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568    ac_retval=1
1569fi
1570  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571  as_fn_set_status $ac_retval
1572
1573} # ac_fn_c_try_cpp
1574
1575# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576# -------------------------------------------------------
1577# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578# the include files in INCLUDES and setting the cache variable VAR
1579# accordingly.
1580ac_fn_c_check_header_mongrel ()
1581{
1582  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583  if eval \${$3+:} false; then :
1584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585$as_echo_n "checking for $2... " >&6; }
1586if eval \${$3+:} false; then :
1587  $as_echo_n "(cached) " >&6
1588fi
1589eval ac_res=\$$3
1590	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591$as_echo "$ac_res" >&6; }
1592else
1593  # Is the header compilable?
1594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595$as_echo_n "checking $2 usability... " >&6; }
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h.  */
1598$4
1599#include <$2>
1600_ACEOF
1601if ac_fn_c_try_compile "$LINENO"; then :
1602  ac_header_compiler=yes
1603else
1604  ac_header_compiler=no
1605fi
1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608$as_echo "$ac_header_compiler" >&6; }
1609
1610# Is the header present?
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612$as_echo_n "checking $2 presence... " >&6; }
1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h.  */
1615#include <$2>
1616_ACEOF
1617if ac_fn_c_try_cpp "$LINENO"; then :
1618  ac_header_preproc=yes
1619else
1620  ac_header_preproc=no
1621fi
1622rm -f conftest.err conftest.i conftest.$ac_ext
1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624$as_echo "$ac_header_preproc" >&6; }
1625
1626# So?  What about this header?
1627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628  yes:no: )
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633    ;;
1634  no:yes:* )
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1638$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1642$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645( $as_echo "## ------------------------------------------------ ##
1646## Report this to http://dunelegacy.sourceforge.net ##
1647## ------------------------------------------------ ##"
1648     ) | sed "s/^/$as_me: WARNING:     /" >&2
1649    ;;
1650esac
1651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652$as_echo_n "checking for $2... " >&6; }
1653if eval \${$3+:} false; then :
1654  $as_echo_n "(cached) " >&6
1655else
1656  eval "$3=\$ac_header_compiler"
1657fi
1658eval ac_res=\$$3
1659	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661fi
1662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664} # ac_fn_c_check_header_mongrel
1665
1666# ac_fn_c_try_run LINENO
1667# ----------------------
1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669# that executables *can* be run.
1670ac_fn_c_try_run ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  if { { ac_try="$ac_link"
1674case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_link") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684  { { case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_try") 2>&5
1691  ac_status=$?
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; }; }; then :
1694  ac_retval=0
1695else
1696  $as_echo "$as_me: program exited with status $ac_status" >&5
1697       $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700       ac_retval=$ac_status
1701fi
1702  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704  as_fn_set_status $ac_retval
1705
1706} # ac_fn_c_try_run
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716$as_echo_n "checking for $2... " >&6; }
1717if eval \${$3+:} false; then :
1718  $as_echo_n "(cached) " >&6
1719else
1720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"; then :
1726  eval "$3=yes"
1727else
1728  eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734$as_echo "$ac_res" >&6; }
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_cxx_try_compile LINENO
1740# ----------------------------
1741# Try to compile conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_cxx_try_compile ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  rm -f conftest.$ac_objext
1746  if { { ac_try="$ac_compile"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_compile") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && {
1762	 test -z "$ac_cxx_werror_flag" ||
1763	 test ! -s conftest.err
1764       } && test -s conftest.$ac_objext; then :
1765  ac_retval=0
1766else
1767  $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770	ac_retval=1
1771fi
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_cxx_try_compile
1776
1777# ac_fn_c_try_link LINENO
1778# -----------------------
1779# Try to link conftest.$ac_ext, and return whether this succeeded.
1780ac_fn_c_try_link ()
1781{
1782  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783  rm -f conftest.$ac_objext conftest$ac_exeext
1784  if { { ac_try="$ac_link"
1785case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_link") 2>conftest.err
1792  ac_status=$?
1793  if test -s conftest.err; then
1794    grep -v '^ *+' conftest.err >conftest.er1
1795    cat conftest.er1 >&5
1796    mv -f conftest.er1 conftest.err
1797  fi
1798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799  test $ac_status = 0; } && {
1800	 test -z "$ac_c_werror_flag" ||
1801	 test ! -s conftest.err
1802       } && test -s conftest$ac_exeext && {
1803	 test "$cross_compiling" = yes ||
1804	 test -x conftest$ac_exeext
1805       }; then :
1806  ac_retval=0
1807else
1808  $as_echo "$as_me: failed program was:" >&5
1809sed 's/^/| /' conftest.$ac_ext >&5
1810
1811	ac_retval=1
1812fi
1813  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1814  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1815  # interfere with the next link command; also delete a directory that is
1816  # left behind by Apple's compiler.  We do this before executing the actions.
1817  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819  as_fn_set_status $ac_retval
1820
1821} # ac_fn_c_try_link
1822
1823# ac_fn_c_check_func LINENO FUNC VAR
1824# ----------------------------------
1825# Tests whether FUNC exists, setting the cache variable VAR accordingly
1826ac_fn_c_check_func ()
1827{
1828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if eval \${$3+:} false; then :
1832  $as_echo_n "(cached) " >&6
1833else
1834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1838#define $2 innocuous_$2
1839
1840/* System header to define __stub macros and hopefully few prototypes,
1841    which can conflict with char $2 (); below.
1842    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843    <limits.h> exists even on freestanding compilers.  */
1844
1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
1850
1851#undef $2
1852
1853/* Override any GCC internal prototype to avoid an error.
1854   Use char because int might match the return type of a GCC
1855   builtin and then its argument prototype would still apply.  */
1856#ifdef __cplusplus
1857extern "C"
1858#endif
1859char $2 ();
1860/* The GNU C library defines this for functions which it implements
1861    to always fail with ENOSYS.  Some functions are actually named
1862    something starting with __ and the normal name is an alias.  */
1863#if defined __stub_$2 || defined __stub___$2
1864choke me
1865#endif
1866
1867int
1868main ()
1869{
1870return $2 ();
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_link "$LINENO"; then :
1876  eval "$3=yes"
1877else
1878  eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext \
1881    conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888} # ac_fn_c_check_func
1889
1890# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1891# ----------------------------------------------------
1892# Tries to find if the field MEMBER exists in type AGGR, after including
1893# INCLUDES, setting cache variable VAR accordingly.
1894ac_fn_c_check_member ()
1895{
1896  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1898$as_echo_n "checking for $2.$3... " >&6; }
1899if eval \${$4+:} false; then :
1900  $as_echo_n "(cached) " >&6
1901else
1902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h.  */
1904$5
1905int
1906main ()
1907{
1908static $2 ac_aggr;
1909if (ac_aggr.$3)
1910return 0;
1911  ;
1912  return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916  eval "$4=yes"
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$5
1921int
1922main ()
1923{
1924static $2 ac_aggr;
1925if (sizeof ac_aggr.$3)
1926return 0;
1927  ;
1928  return 0;
1929}
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932  eval "$4=yes"
1933else
1934  eval "$4=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937fi
1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939fi
1940eval ac_res=\$$4
1941	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945} # ac_fn_c_check_member
1946
1947# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1948# -------------------------------------------
1949# Tests whether TYPE exists after having included INCLUDES, setting cache
1950# variable VAR accordingly.
1951ac_fn_c_check_type ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if eval \${$3+:} false; then :
1957  $as_echo_n "(cached) " >&6
1958else
1959  eval "$3=no"
1960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h.  */
1962$4
1963int
1964main ()
1965{
1966if (sizeof ($2))
1967	 return 0;
1968  ;
1969  return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_compile "$LINENO"; then :
1973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h.  */
1975$4
1976int
1977main ()
1978{
1979if (sizeof (($2)))
1980	    return 0;
1981  ;
1982  return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986
1987else
1988  eval "$3=yes"
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994eval ac_res=\$$3
1995	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999} # ac_fn_c_check_type
2000cat >config.log <<_ACEOF
2001This file contains any messages produced by compilers while
2002running configure, to aid debugging if configure makes a mistake.
2003
2004It was created by dunelegacy $as_me 0.96.4, which was
2005generated by GNU Autoconf 2.69.  Invocation command line was
2006
2007  $ $0 $@
2008
2009_ACEOF
2010exec 5>>config.log
2011{
2012cat <<_ASUNAME
2013## --------- ##
2014## Platform. ##
2015## --------- ##
2016
2017hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2018uname -m = `(uname -m) 2>/dev/null || echo unknown`
2019uname -r = `(uname -r) 2>/dev/null || echo unknown`
2020uname -s = `(uname -s) 2>/dev/null || echo unknown`
2021uname -v = `(uname -v) 2>/dev/null || echo unknown`
2022
2023/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2024/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2025
2026/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2027/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2028/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2029/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2030/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2031/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2032/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2033
2034_ASUNAME
2035
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039  IFS=$as_save_IFS
2040  test -z "$as_dir" && as_dir=.
2041    $as_echo "PATH: $as_dir"
2042  done
2043IFS=$as_save_IFS
2044
2045} >&5
2046
2047cat >&5 <<_ACEOF
2048
2049
2050## ----------- ##
2051## Core tests. ##
2052## ----------- ##
2053
2054_ACEOF
2055
2056
2057# Keep a trace of the command line.
2058# Strip out --no-create and --no-recursion so they do not pile up.
2059# Strip out --silent because we don't want to record it for future runs.
2060# Also quote any args containing shell meta-characters.
2061# Make two passes to allow for proper duplicate-argument suppression.
2062ac_configure_args=
2063ac_configure_args0=
2064ac_configure_args1=
2065ac_must_keep_next=false
2066for ac_pass in 1 2
2067do
2068  for ac_arg
2069  do
2070    case $ac_arg in
2071    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2072    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2073    | -silent | --silent | --silen | --sile | --sil)
2074      continue ;;
2075    *\'*)
2076      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2077    esac
2078    case $ac_pass in
2079    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2080    2)
2081      as_fn_append ac_configure_args1 " '$ac_arg'"
2082      if test $ac_must_keep_next = true; then
2083	ac_must_keep_next=false # Got value, back to normal.
2084      else
2085	case $ac_arg in
2086	  *=* | --config-cache | -C | -disable-* | --disable-* \
2087	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2088	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2089	  | -with-* | --with-* | -without-* | --without-* | --x)
2090	    case "$ac_configure_args0 " in
2091	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2092	    esac
2093	    ;;
2094	  -* ) ac_must_keep_next=true ;;
2095	esac
2096      fi
2097      as_fn_append ac_configure_args " '$ac_arg'"
2098      ;;
2099    esac
2100  done
2101done
2102{ ac_configure_args0=; unset ac_configure_args0;}
2103{ ac_configure_args1=; unset ac_configure_args1;}
2104
2105# When interrupted or exit'd, cleanup temporary files, and complete
2106# config.log.  We remove comments because anyway the quotes in there
2107# would cause problems or look ugly.
2108# WARNING: Use '\'' to represent an apostrophe within the trap.
2109# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2110trap 'exit_status=$?
2111  # Save into config.log some information that might help in debugging.
2112  {
2113    echo
2114
2115    $as_echo "## ---------------- ##
2116## Cache variables. ##
2117## ---------------- ##"
2118    echo
2119    # The following way of writing the cache mishandles newlines in values,
2120(
2121  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2122    eval ac_val=\$$ac_var
2123    case $ac_val in #(
2124    *${as_nl}*)
2125      case $ac_var in #(
2126      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2127$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2128      esac
2129      case $ac_var in #(
2130      _ | IFS | as_nl) ;; #(
2131      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2132      *) { eval $ac_var=; unset $ac_var;} ;;
2133      esac ;;
2134    esac
2135  done
2136  (set) 2>&1 |
2137    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2138    *${as_nl}ac_space=\ *)
2139      sed -n \
2140	"s/'\''/'\''\\\\'\'''\''/g;
2141	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2142      ;; #(
2143    *)
2144      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2145      ;;
2146    esac |
2147    sort
2148)
2149    echo
2150
2151    $as_echo "## ----------------- ##
2152## Output variables. ##
2153## ----------------- ##"
2154    echo
2155    for ac_var in $ac_subst_vars
2156    do
2157      eval ac_val=\$$ac_var
2158      case $ac_val in
2159      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160      esac
2161      $as_echo "$ac_var='\''$ac_val'\''"
2162    done | sort
2163    echo
2164
2165    if test -n "$ac_subst_files"; then
2166      $as_echo "## ------------------- ##
2167## File substitutions. ##
2168## ------------------- ##"
2169      echo
2170      for ac_var in $ac_subst_files
2171      do
2172	eval ac_val=\$$ac_var
2173	case $ac_val in
2174	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2175	esac
2176	$as_echo "$ac_var='\''$ac_val'\''"
2177      done | sort
2178      echo
2179    fi
2180
2181    if test -s confdefs.h; then
2182      $as_echo "## ----------- ##
2183## confdefs.h. ##
2184## ----------- ##"
2185      echo
2186      cat confdefs.h
2187      echo
2188    fi
2189    test "$ac_signal" != 0 &&
2190      $as_echo "$as_me: caught signal $ac_signal"
2191    $as_echo "$as_me: exit $exit_status"
2192  } >&5
2193  rm -f core *.core core.conftest.* &&
2194    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2195    exit $exit_status
2196' 0
2197for ac_signal in 1 2 13 15; do
2198  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2199done
2200ac_signal=0
2201
2202# confdefs.h avoids OS command line length limits that DEFS can exceed.
2203rm -f -r conftest* confdefs.h
2204
2205$as_echo "/* confdefs.h */" > confdefs.h
2206
2207# Predefined preprocessor variables.
2208
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_NAME "$PACKAGE_NAME"
2211_ACEOF
2212
2213cat >>confdefs.h <<_ACEOF
2214#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2215_ACEOF
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_VERSION "$PACKAGE_VERSION"
2219_ACEOF
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_STRING "$PACKAGE_STRING"
2223_ACEOF
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_URL "$PACKAGE_URL"
2231_ACEOF
2232
2233
2234# Let the site file select an alternate cache file if it wants to.
2235# Prefer an explicitly selected file to automatically selected ones.
2236ac_site_file1=NONE
2237ac_site_file2=NONE
2238if test -n "$CONFIG_SITE"; then
2239  # We do not want a PATH search for config.site.
2240  case $CONFIG_SITE in #((
2241    -*)  ac_site_file1=./$CONFIG_SITE;;
2242    */*) ac_site_file1=$CONFIG_SITE;;
2243    *)   ac_site_file1=./$CONFIG_SITE;;
2244  esac
2245elif test "x$prefix" != xNONE; then
2246  ac_site_file1=$prefix/share/config.site
2247  ac_site_file2=$prefix/etc/config.site
2248else
2249  ac_site_file1=$ac_default_prefix/share/config.site
2250  ac_site_file2=$ac_default_prefix/etc/config.site
2251fi
2252for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2253do
2254  test "x$ac_site_file" = xNONE && continue
2255  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2256    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2257$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2258    sed 's/^/| /' "$ac_site_file" >&5
2259    . "$ac_site_file" \
2260      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2262as_fn_error $? "failed to load site script $ac_site_file
2263See \`config.log' for more details" "$LINENO" 5; }
2264  fi
2265done
2266
2267if test -r "$cache_file"; then
2268  # Some versions of bash will fail to source /dev/null (special files
2269  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2270  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2271    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2272$as_echo "$as_me: loading cache $cache_file" >&6;}
2273    case $cache_file in
2274      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2275      *)                      . "./$cache_file";;
2276    esac
2277  fi
2278else
2279  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2280$as_echo "$as_me: creating cache $cache_file" >&6;}
2281  >$cache_file
2282fi
2283
2284# Check that the precious variables saved in the cache have kept the same
2285# value.
2286ac_cache_corrupted=false
2287for ac_var in $ac_precious_vars; do
2288  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2289  eval ac_new_set=\$ac_env_${ac_var}_set
2290  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2291  eval ac_new_val=\$ac_env_${ac_var}_value
2292  case $ac_old_set,$ac_new_set in
2293    set,)
2294      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2295$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2296      ac_cache_corrupted=: ;;
2297    ,set)
2298      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2299$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2300      ac_cache_corrupted=: ;;
2301    ,);;
2302    *)
2303      if test "x$ac_old_val" != "x$ac_new_val"; then
2304	# differences in whitespace do not lead to failure.
2305	ac_old_val_w=`echo x $ac_old_val`
2306	ac_new_val_w=`echo x $ac_new_val`
2307	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2308	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2309$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2310	  ac_cache_corrupted=:
2311	else
2312	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2313$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2314	  eval $ac_var=\$ac_old_val
2315	fi
2316	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2317$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2318	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2319$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2320      fi;;
2321  esac
2322  # Pass precious variables to config.status.
2323  if test "$ac_new_set" = set; then
2324    case $ac_new_val in
2325    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2326    *) ac_arg=$ac_var=$ac_new_val ;;
2327    esac
2328    case " $ac_configure_args " in
2329      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2330      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2331    esac
2332  fi
2333done
2334if $ac_cache_corrupted; then
2335  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2338$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2339  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2340fi
2341## -------------------- ##
2342## Main body of script. ##
2343## -------------------- ##
2344
2345ac_ext=c
2346ac_cpp='$CPP $CPPFLAGS'
2347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350
2351
2352
2353ac_aux_dir=
2354for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355  if test -f "$ac_dir/install-sh"; then
2356    ac_aux_dir=$ac_dir
2357    ac_install_sh="$ac_aux_dir/install-sh -c"
2358    break
2359  elif test -f "$ac_dir/install.sh"; then
2360    ac_aux_dir=$ac_dir
2361    ac_install_sh="$ac_aux_dir/install.sh -c"
2362    break
2363  elif test -f "$ac_dir/shtool"; then
2364    ac_aux_dir=$ac_dir
2365    ac_install_sh="$ac_aux_dir/shtool install -c"
2366    break
2367  fi
2368done
2369if test -z "$ac_aux_dir"; then
2370  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2371fi
2372
2373# These three variables are undocumented and unsupported,
2374# and are intended to be withdrawn in a future Autoconf release.
2375# They can cause serious problems if a builder's source tree is in a directory
2376# whose full name contains unusual characters.
2377ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2378ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2379ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2380
2381
2382# Make sure we can run config.sub.
2383$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2384  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2385
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2387$as_echo_n "checking build system type... " >&6; }
2388if ${ac_cv_build+:} false; then :
2389  $as_echo_n "(cached) " >&6
2390else
2391  ac_build_alias=$build_alias
2392test "x$ac_build_alias" = x &&
2393  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2394test "x$ac_build_alias" = x &&
2395  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2396ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2397  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2398
2399fi
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2401$as_echo "$ac_cv_build" >&6; }
2402case $ac_cv_build in
2403*-*-*) ;;
2404*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2405esac
2406build=$ac_cv_build
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_build
2409shift
2410build_cpu=$1
2411build_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415build_os=$*
2416IFS=$ac_save_IFS
2417case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2418
2419
2420
2421# Expand $ac_aux_dir to an absolute path.
2422am_aux_dir=`cd "$ac_aux_dir" && pwd`
2423
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429if test -n "$ac_tool_prefix"; then
2430  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2431set dummy ${ac_tool_prefix}gcc; ac_word=$2
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433$as_echo_n "checking for $ac_word... " >&6; }
2434if ${ac_cv_prog_CC+:} false; then :
2435  $as_echo_n "(cached) " >&6
2436else
2437  if test -n "$CC"; then
2438  ac_cv_prog_CC="$CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443  IFS=$as_save_IFS
2444  test -z "$as_dir" && as_dir=.
2445    for ac_exec_ext in '' $ac_executable_extensions; do
2446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449    break 2
2450  fi
2451done
2452  done
2453IFS=$as_save_IFS
2454
2455fi
2456fi
2457CC=$ac_cv_prog_CC
2458if test -n "$CC"; then
2459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2460$as_echo "$CC" >&6; }
2461else
2462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463$as_echo "no" >&6; }
2464fi
2465
2466
2467fi
2468if test -z "$ac_cv_prog_CC"; then
2469  ac_ct_CC=$CC
2470  # Extract the first word of "gcc", so it can be a program name with args.
2471set dummy gcc; ac_word=$2
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if ${ac_cv_prog_ac_ct_CC+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test -n "$ac_ct_CC"; then
2478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485    for ac_exec_ext in '' $ac_executable_extensions; do
2486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    ac_cv_prog_ac_ct_CC="gcc"
2488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492  done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498if test -n "$ac_ct_CC"; then
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2500$as_echo "$ac_ct_CC" >&6; }
2501else
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506  if test "x$ac_ct_CC" = x; then
2507    CC=""
2508  else
2509    case $cross_compiling:$ac_tool_warned in
2510yes:)
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513ac_tool_warned=yes ;;
2514esac
2515    CC=$ac_ct_CC
2516  fi
2517else
2518  CC="$ac_cv_prog_CC"
2519fi
2520
2521if test -z "$CC"; then
2522          if test -n "$ac_tool_prefix"; then
2523    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2524set dummy ${ac_tool_prefix}cc; ac_word=$2
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2526$as_echo_n "checking for $ac_word... " >&6; }
2527if ${ac_cv_prog_CC+:} false; then :
2528  $as_echo_n "(cached) " >&6
2529else
2530  if test -n "$CC"; then
2531  ac_cv_prog_CC="$CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538    for ac_exec_ext in '' $ac_executable_extensions; do
2539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540    ac_cv_prog_CC="${ac_tool_prefix}cc"
2541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542    break 2
2543  fi
2544done
2545  done
2546IFS=$as_save_IFS
2547
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2553$as_echo "$CC" >&6; }
2554else
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556$as_echo "no" >&6; }
2557fi
2558
2559
2560  fi
2561fi
2562if test -z "$CC"; then
2563  # Extract the first word of "cc", so it can be a program name with args.
2564set dummy cc; ac_word=$2
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
2567if ${ac_cv_prog_CC+:} false; then :
2568  $as_echo_n "(cached) " >&6
2569else
2570  if test -n "$CC"; then
2571  ac_cv_prog_CC="$CC" # Let the user override the test.
2572else
2573  ac_prog_rejected=no
2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575for as_dir in $PATH
2576do
2577  IFS=$as_save_IFS
2578  test -z "$as_dir" && as_dir=.
2579    for ac_exec_ext in '' $ac_executable_extensions; do
2580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2581    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2582       ac_prog_rejected=yes
2583       continue
2584     fi
2585    ac_cv_prog_CC="cc"
2586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587    break 2
2588  fi
2589done
2590  done
2591IFS=$as_save_IFS
2592
2593if test $ac_prog_rejected = yes; then
2594  # We found a bogon in the path, so make sure we never use it.
2595  set dummy $ac_cv_prog_CC
2596  shift
2597  if test $# != 0; then
2598    # We chose a different compiler from the bogus one.
2599    # However, it has the same basename, so the bogon will be chosen
2600    # first if we set CC to just the basename; use the full file name.
2601    shift
2602    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2603  fi
2604fi
2605fi
2606fi
2607CC=$ac_cv_prog_CC
2608if test -n "$CC"; then
2609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2610$as_echo "$CC" >&6; }
2611else
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613$as_echo "no" >&6; }
2614fi
2615
2616
2617fi
2618if test -z "$CC"; then
2619  if test -n "$ac_tool_prefix"; then
2620  for ac_prog in cl.exe
2621  do
2622    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_CC+:} false; then :
2627  $as_echo_n "(cached) " >&6
2628else
2629  if test -n "$CC"; then
2630  ac_cv_prog_CC="$CC" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635  IFS=$as_save_IFS
2636  test -z "$as_dir" && as_dir=.
2637    for ac_exec_ext in '' $ac_executable_extensions; do
2638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641    break 2
2642  fi
2643done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2652$as_echo "$CC" >&6; }
2653else
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659    test -n "$CC" && break
2660  done
2661fi
2662if test -z "$CC"; then
2663  ac_ct_CC=$CC
2664  for ac_prog in cl.exe
2665do
2666  # Extract the first word of "$ac_prog", so it can be a program name with args.
2667set dummy $ac_prog; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if ${ac_cv_prog_ac_ct_CC+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  if test -n "$ac_ct_CC"; then
2674  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683    ac_cv_prog_ac_ct_CC="$ac_prog"
2684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685    break 2
2686  fi
2687done
2688  done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694if test -n "$ac_ct_CC"; then
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2696$as_echo "$ac_ct_CC" >&6; }
2697else
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703  test -n "$ac_ct_CC" && break
2704done
2705
2706  if test "x$ac_ct_CC" = x; then
2707    CC=""
2708  else
2709    case $cross_compiling:$ac_tool_warned in
2710yes:)
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713ac_tool_warned=yes ;;
2714esac
2715    CC=$ac_ct_CC
2716  fi
2717fi
2718
2719fi
2720
2721
2722test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error $? "no acceptable C compiler found in \$PATH
2725See \`config.log' for more details" "$LINENO" 5; }
2726
2727# Provide some information about the compiler.
2728$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2729set X $ac_compile
2730ac_compiler=$2
2731for ac_option in --version -v -V -qversion; do
2732  { { ac_try="$ac_compiler $ac_option >&5"
2733case "(($ac_try" in
2734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735  *) ac_try_echo=$ac_try;;
2736esac
2737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738$as_echo "$ac_try_echo"; } >&5
2739  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2740  ac_status=$?
2741  if test -s conftest.err; then
2742    sed '10a\
2743... rest of stderr output deleted ...
2744         10q' conftest.err >conftest.er1
2745    cat conftest.er1 >&5
2746  fi
2747  rm -f conftest.er1 conftest.err
2748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2749  test $ac_status = 0; }
2750done
2751
2752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763ac_clean_files_save=$ac_clean_files
2764ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2765# Try to create an executable without -o first, disregard a.out.
2766# It will help us diagnose broken compilers, and finding out an intuition
2767# of exeext.
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2769$as_echo_n "checking whether the C compiler works... " >&6; }
2770ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2771
2772# The possible output files:
2773ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2774
2775ac_rmfiles=
2776for ac_file in $ac_files
2777do
2778  case $ac_file in
2779    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2780    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781  esac
2782done
2783rm -f $ac_rmfiles
2784
2785if { { ac_try="$ac_link_default"
2786case "(($ac_try" in
2787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788  *) ac_try_echo=$ac_try;;
2789esac
2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791$as_echo "$ac_try_echo"; } >&5
2792  (eval "$ac_link_default") 2>&5
2793  ac_status=$?
2794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795  test $ac_status = 0; }; then :
2796  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2799# so that the user can short-circuit this test for compilers unknown to
2800# Autoconf.
2801for ac_file in $ac_files ''
2802do
2803  test -f "$ac_file" || continue
2804  case $ac_file in
2805    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2806	;;
2807    [ab].out )
2808	# We found the default executable, but exeext='' is most
2809	# certainly right.
2810	break;;
2811    *.* )
2812	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813	then :; else
2814	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815	fi
2816	# We set ac_cv_exeext here because the later test for it is not
2817	# safe: cross compilers may not add the suffix if given an `-o'
2818	# argument, so we may need to know it at that point already.
2819	# Even if this section looks crufty: it has the advantage of
2820	# actually working.
2821	break;;
2822    * )
2823	break;;
2824  esac
2825done
2826test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
2828else
2829  ac_file=''
2830fi
2831if test -z "$ac_file"; then :
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834$as_echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839as_fn_error 77 "C compiler cannot create executables
2840See \`config.log' for more details" "$LINENO" 5; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843$as_echo "yes" >&6; }
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2846$as_echo_n "checking for C compiler default output file name... " >&6; }
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2848$as_echo "$ac_file" >&6; }
2849ac_exeext=$ac_cv_exeext
2850
2851rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2852ac_clean_files=$ac_clean_files_save
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2854$as_echo_n "checking for suffix of executables... " >&6; }
2855if { { ac_try="$ac_link"
2856case "(($ac_try" in
2857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858  *) ac_try_echo=$ac_try;;
2859esac
2860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861$as_echo "$ac_try_echo"; } >&5
2862  (eval "$ac_link") 2>&5
2863  ac_status=$?
2864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865  test $ac_status = 0; }; then :
2866  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2867# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2868# work properly (i.e., refer to `conftest.exe'), while it won't with
2869# `rm'.
2870for ac_file in conftest.exe conftest conftest.*; do
2871  test -f "$ac_file" || continue
2872  case $ac_file in
2873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2874    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875	  break;;
2876    * ) break;;
2877  esac
2878done
2879else
2880  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2883See \`config.log' for more details" "$LINENO" 5; }
2884fi
2885rm -f conftest conftest$ac_cv_exeext
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2887$as_echo "$ac_cv_exeext" >&6; }
2888
2889rm -f conftest.$ac_ext
2890EXEEXT=$ac_cv_exeext
2891ac_exeext=$EXEEXT
2892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893/* end confdefs.h.  */
2894#include <stdio.h>
2895int
2896main ()
2897{
2898FILE *f = fopen ("conftest.out", "w");
2899 return ferror (f) || fclose (f) != 0;
2900
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905ac_clean_files="$ac_clean_files conftest.out"
2906# Check that the compiler produces executables we can run.  If not, either
2907# the compiler is broken, or we cross compile.
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2909$as_echo_n "checking whether we are cross compiling... " >&6; }
2910if test "$cross_compiling" != yes; then
2911  { { ac_try="$ac_link"
2912case "(($ac_try" in
2913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914  *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
2918  (eval "$ac_link") 2>&5
2919  ac_status=$?
2920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921  test $ac_status = 0; }
2922  if { ac_try='./conftest$ac_cv_exeext'
2923  { { case "(($ac_try" in
2924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925  *) ac_try_echo=$ac_try;;
2926esac
2927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928$as_echo "$ac_try_echo"; } >&5
2929  (eval "$ac_try") 2>&5
2930  ac_status=$?
2931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932  test $ac_status = 0; }; }; then
2933    cross_compiling=no
2934  else
2935    if test "$cross_compiling" = maybe; then
2936	cross_compiling=yes
2937    else
2938	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error $? "cannot run C compiled programs.
2941If you meant to cross compile, use \`--host'.
2942See \`config.log' for more details" "$LINENO" 5; }
2943    fi
2944  fi
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2947$as_echo "$cross_compiling" >&6; }
2948
2949rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2950ac_clean_files=$ac_clean_files_save
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2952$as_echo_n "checking for suffix of object files... " >&6; }
2953if ${ac_cv_objext+:} false; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h.  */
2958
2959int
2960main ()
2961{
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.o conftest.obj
2968if { { ac_try="$ac_compile"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2974$as_echo "$ac_try_echo"; } >&5
2975  (eval "$ac_compile") 2>&5
2976  ac_status=$?
2977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2978  test $ac_status = 0; }; then :
2979  for ac_file in conftest.o conftest.obj conftest.*; do
2980  test -f "$ac_file" || continue;
2981  case $ac_file in
2982    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2983    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2984       break;;
2985  esac
2986done
2987else
2988  $as_echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993as_fn_error $? "cannot compute suffix of object files: cannot compile
2994See \`config.log' for more details" "$LINENO" 5; }
2995fi
2996rm -f conftest.$ac_cv_objext conftest.$ac_ext
2997fi
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2999$as_echo "$ac_cv_objext" >&6; }
3000OBJEXT=$ac_cv_objext
3001ac_objext=$OBJEXT
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3003$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3004if ${ac_cv_c_compiler_gnu+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013#ifndef __GNUC__
3014       choke me
3015#endif
3016
3017  ;
3018  return 0;
3019}
3020_ACEOF
3021if ac_fn_c_try_compile "$LINENO"; then :
3022  ac_compiler_gnu=yes
3023else
3024  ac_compiler_gnu=no
3025fi
3026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027ac_cv_c_compiler_gnu=$ac_compiler_gnu
3028
3029fi
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3031$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3032if test $ac_compiler_gnu = yes; then
3033  GCC=yes
3034else
3035  GCC=
3036fi
3037ac_test_CFLAGS=${CFLAGS+set}
3038ac_save_CFLAGS=$CFLAGS
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3040$as_echo_n "checking whether $CC accepts -g... " >&6; }
3041if ${ac_cv_prog_cc_g+:} false; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  ac_save_c_werror_flag=$ac_c_werror_flag
3045   ac_c_werror_flag=yes
3046   ac_cv_prog_cc_g=no
3047   CFLAGS="-g"
3048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049/* end confdefs.h.  */
3050
3051int
3052main ()
3053{
3054
3055  ;
3056  return 0;
3057}
3058_ACEOF
3059if ac_fn_c_try_compile "$LINENO"; then :
3060  ac_cv_prog_cc_g=yes
3061else
3062  CFLAGS=""
3063      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h.  */
3065
3066int
3067main ()
3068{
3069
3070  ;
3071  return 0;
3072}
3073_ACEOF
3074if ac_fn_c_try_compile "$LINENO"; then :
3075
3076else
3077  ac_c_werror_flag=$ac_save_c_werror_flag
3078	 CFLAGS="-g"
3079	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090if ac_fn_c_try_compile "$LINENO"; then :
3091  ac_cv_prog_cc_g=yes
3092fi
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094fi
3095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096fi
3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098   ac_c_werror_flag=$ac_save_c_werror_flag
3099fi
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3101$as_echo "$ac_cv_prog_cc_g" >&6; }
3102if test "$ac_test_CFLAGS" = set; then
3103  CFLAGS=$ac_save_CFLAGS
3104elif test $ac_cv_prog_cc_g = yes; then
3105  if test "$GCC" = yes; then
3106    CFLAGS="-g -O2"
3107  else
3108    CFLAGS="-g"
3109  fi
3110else
3111  if test "$GCC" = yes; then
3112    CFLAGS="-O2"
3113  else
3114    CFLAGS=
3115  fi
3116fi
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3118$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3119if ${ac_cv_prog_cc_c89+:} false; then :
3120  $as_echo_n "(cached) " >&6
3121else
3122  ac_cv_prog_cc_c89=no
3123ac_save_CC=$CC
3124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125/* end confdefs.h.  */
3126#include <stdarg.h>
3127#include <stdio.h>
3128struct stat;
3129/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3130struct buf { int x; };
3131FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132static char *e (p, i)
3133     char **p;
3134     int i;
3135{
3136  return p[i];
3137}
3138static char *f (char * (*g) (char **, int), char **p, ...)
3139{
3140  char *s;
3141  va_list v;
3142  va_start (v,p);
3143  s = g (p, va_arg (v,int));
3144  va_end (v);
3145  return s;
3146}
3147
3148/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3149   function prototypes and stuff, but not '\xHH' hex character constants.
3150   These don't provoke an error unfortunately, instead are silently treated
3151   as 'x'.  The following induces an error, until -std is added to get
3152   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3153   array size at least.  It's necessary to write '\x00'==0 to get something
3154   that's true only with -std.  */
3155int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3156
3157/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3158   inside strings and character constants.  */
3159#define FOO(x) 'x'
3160int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3161
3162int test (int i, double x);
3163struct s1 {int (*f) (int a);};
3164struct s2 {int (*f) (double a);};
3165int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166int argc;
3167char **argv;
3168int
3169main ()
3170{
3171return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3177	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3178do
3179  CC="$ac_save_CC $ac_arg"
3180  if ac_fn_c_try_compile "$LINENO"; then :
3181  ac_cv_prog_cc_c89=$ac_arg
3182fi
3183rm -f core conftest.err conftest.$ac_objext
3184  test "x$ac_cv_prog_cc_c89" != "xno" && break
3185done
3186rm -f conftest.$ac_ext
3187CC=$ac_save_CC
3188
3189fi
3190# AC_CACHE_VAL
3191case "x$ac_cv_prog_cc_c89" in
3192  x)
3193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3194$as_echo "none needed" >&6; } ;;
3195  xno)
3196    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3197$as_echo "unsupported" >&6; } ;;
3198  *)
3199    CC="$CC $ac_cv_prog_cc_c89"
3200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3201$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3202esac
3203if test "x$ac_cv_prog_cc_c89" != xno; then :
3204
3205fi
3206
3207ac_ext=c
3208ac_cpp='$CPP $CPPFLAGS'
3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3219$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3220if ${am_cv_prog_cc_c_o+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225
3226int
3227main ()
3228{
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234  # Make sure it works both with $CC and with simple cc.
3235  # Following AC_PROG_CC_C_O, we do the test twice because some
3236  # compilers refuse to overwrite an existing .o file with -o,
3237  # though they will create one.
3238  am_cv_prog_cc_c_o=yes
3239  for am_i in 1 2; do
3240    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3241   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } \
3245         && test -f conftest2.$ac_objext; then
3246      : OK
3247    else
3248      am_cv_prog_cc_c_o=no
3249      break
3250    fi
3251  done
3252  rm -f core conftest*
3253  unset am_i
3254fi
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3256$as_echo "$am_cv_prog_cc_c_o" >&6; }
3257if test "$am_cv_prog_cc_c_o" != yes; then
3258   # Losing compiler, so override with the script.
3259   # FIXME: It is wrong to rewrite CC.
3260   # But if we don't then we get into trouble of one sort or another.
3261   # A longer-term fix would be to have automake use am__CC in this case,
3262   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3263   CC="$am_aux_dir/compile $CC"
3264fi
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272
3273ac_ext=c
3274ac_cpp='$CPP $CPPFLAGS'
3275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3279$as_echo_n "checking how to run the C preprocessor... " >&6; }
3280# On Suns, sometimes $CPP names a directory.
3281if test -n "$CPP" && test -d "$CPP"; then
3282  CPP=
3283fi
3284if test -z "$CPP"; then
3285  if ${ac_cv_prog_CPP+:} false; then :
3286  $as_echo_n "(cached) " >&6
3287else
3288      # Double quotes because CPP needs to be expanded
3289    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3290    do
3291      ac_preproc_ok=false
3292for ac_c_preproc_warn_flag in '' yes
3293do
3294  # Use a header file that comes with gcc, so configuring glibc
3295  # with a fresh cross-compiler works.
3296  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297  # <limits.h> exists even on freestanding compilers.
3298  # On the NeXT, cc -E runs the code through the compiler's parser,
3299  # not just through cpp. "Syntax error" is here to catch this case.
3300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302#ifdef __STDC__
3303# include <limits.h>
3304#else
3305# include <assert.h>
3306#endif
3307		     Syntax error
3308_ACEOF
3309if ac_fn_c_try_cpp "$LINENO"; then :
3310
3311else
3312  # Broken: fails on valid input.
3313continue
3314fi
3315rm -f conftest.err conftest.i conftest.$ac_ext
3316
3317  # OK, works on sane cases.  Now check whether nonexistent headers
3318  # can be detected and how.
3319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320/* end confdefs.h.  */
3321#include <ac_nonexistent.h>
3322_ACEOF
3323if ac_fn_c_try_cpp "$LINENO"; then :
3324  # Broken: success on invalid input.
3325continue
3326else
3327  # Passes both tests.
3328ac_preproc_ok=:
3329break
3330fi
3331rm -f conftest.err conftest.i conftest.$ac_ext
3332
3333done
3334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3335rm -f conftest.i conftest.err conftest.$ac_ext
3336if $ac_preproc_ok; then :
3337  break
3338fi
3339
3340    done
3341    ac_cv_prog_CPP=$CPP
3342
3343fi
3344  CPP=$ac_cv_prog_CPP
3345else
3346  ac_cv_prog_CPP=$CPP
3347fi
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3349$as_echo "$CPP" >&6; }
3350ac_preproc_ok=false
3351for ac_c_preproc_warn_flag in '' yes
3352do
3353  # Use a header file that comes with gcc, so configuring glibc
3354  # with a fresh cross-compiler works.
3355  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3356  # <limits.h> exists even on freestanding compilers.
3357  # On the NeXT, cc -E runs the code through the compiler's parser,
3358  # not just through cpp. "Syntax error" is here to catch this case.
3359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360/* end confdefs.h.  */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
3366		     Syntax error
3367_ACEOF
3368if ac_fn_c_try_cpp "$LINENO"; then :
3369
3370else
3371  # Broken: fails on valid input.
3372continue
3373fi
3374rm -f conftest.err conftest.i conftest.$ac_ext
3375
3376  # OK, works on sane cases.  Now check whether nonexistent headers
3377  # can be detected and how.
3378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380#include <ac_nonexistent.h>
3381_ACEOF
3382if ac_fn_c_try_cpp "$LINENO"; then :
3383  # Broken: success on invalid input.
3384continue
3385else
3386  # Passes both tests.
3387ac_preproc_ok=:
3388break
3389fi
3390rm -f conftest.err conftest.i conftest.$ac_ext
3391
3392done
3393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3394rm -f conftest.i conftest.err conftest.$ac_ext
3395if $ac_preproc_ok; then :
3396
3397else
3398  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3401See \`config.log' for more details" "$LINENO" 5; }
3402fi
3403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3412$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3413if ${ac_cv_path_GREP+:} false; then :
3414  $as_echo_n "(cached) " >&6
3415else
3416  if test -z "$GREP"; then
3417  ac_path_GREP_found=false
3418  # Loop through the user's path and test for each of PROGNAME-LIST
3419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3421do
3422  IFS=$as_save_IFS
3423  test -z "$as_dir" && as_dir=.
3424    for ac_prog in grep ggrep; do
3425    for ac_exec_ext in '' $ac_executable_extensions; do
3426      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3427      as_fn_executable_p "$ac_path_GREP" || continue
3428# Check for GNU ac_path_GREP and select it if it is found.
3429  # Check for GNU $ac_path_GREP
3430case `"$ac_path_GREP" --version 2>&1` in
3431*GNU*)
3432  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3433*)
3434  ac_count=0
3435  $as_echo_n 0123456789 >"conftest.in"
3436  while :
3437  do
3438    cat "conftest.in" "conftest.in" >"conftest.tmp"
3439    mv "conftest.tmp" "conftest.in"
3440    cp "conftest.in" "conftest.nl"
3441    $as_echo 'GREP' >> "conftest.nl"
3442    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3443    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3444    as_fn_arith $ac_count + 1 && ac_count=$as_val
3445    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3446      # Best one so far, save it but keep looking for a better one
3447      ac_cv_path_GREP="$ac_path_GREP"
3448      ac_path_GREP_max=$ac_count
3449    fi
3450    # 10*(2^10) chars as input seems more than enough
3451    test $ac_count -gt 10 && break
3452  done
3453  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3454esac
3455
3456      $ac_path_GREP_found && break 3
3457    done
3458  done
3459  done
3460IFS=$as_save_IFS
3461  if test -z "$ac_cv_path_GREP"; then
3462    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3463  fi
3464else
3465  ac_cv_path_GREP=$GREP
3466fi
3467
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3470$as_echo "$ac_cv_path_GREP" >&6; }
3471 GREP="$ac_cv_path_GREP"
3472
3473
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3475$as_echo_n "checking for egrep... " >&6; }
3476if ${ac_cv_path_EGREP+:} false; then :
3477  $as_echo_n "(cached) " >&6
3478else
3479  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3480   then ac_cv_path_EGREP="$GREP -E"
3481   else
3482     if test -z "$EGREP"; then
3483  ac_path_EGREP_found=false
3484  # Loop through the user's path and test for each of PROGNAME-LIST
3485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3487do
3488  IFS=$as_save_IFS
3489  test -z "$as_dir" && as_dir=.
3490    for ac_prog in egrep; do
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3493      as_fn_executable_p "$ac_path_EGREP" || continue
3494# Check for GNU ac_path_EGREP and select it if it is found.
3495  # Check for GNU $ac_path_EGREP
3496case `"$ac_path_EGREP" --version 2>&1` in
3497*GNU*)
3498  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3499*)
3500  ac_count=0
3501  $as_echo_n 0123456789 >"conftest.in"
3502  while :
3503  do
3504    cat "conftest.in" "conftest.in" >"conftest.tmp"
3505    mv "conftest.tmp" "conftest.in"
3506    cp "conftest.in" "conftest.nl"
3507    $as_echo 'EGREP' >> "conftest.nl"
3508    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3510    as_fn_arith $ac_count + 1 && ac_count=$as_val
3511    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3512      # Best one so far, save it but keep looking for a better one
3513      ac_cv_path_EGREP="$ac_path_EGREP"
3514      ac_path_EGREP_max=$ac_count
3515    fi
3516    # 10*(2^10) chars as input seems more than enough
3517    test $ac_count -gt 10 && break
3518  done
3519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3520esac
3521
3522      $ac_path_EGREP_found && break 3
3523    done
3524  done
3525  done
3526IFS=$as_save_IFS
3527  if test -z "$ac_cv_path_EGREP"; then
3528    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3529  fi
3530else
3531  ac_cv_path_EGREP=$EGREP
3532fi
3533
3534   fi
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3537$as_echo "$ac_cv_path_EGREP" >&6; }
3538 EGREP="$ac_cv_path_EGREP"
3539
3540
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3542$as_echo_n "checking for ANSI C header files... " >&6; }
3543if ${ac_cv_header_stdc+:} false; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547/* end confdefs.h.  */
3548#include <stdlib.h>
3549#include <stdarg.h>
3550#include <string.h>
3551#include <float.h>
3552
3553int
3554main ()
3555{
3556
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562  ac_cv_header_stdc=yes
3563else
3564  ac_cv_header_stdc=no
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567
3568if test $ac_cv_header_stdc = yes; then
3569  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572#include <string.h>
3573
3574_ACEOF
3575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576  $EGREP "memchr" >/dev/null 2>&1; then :
3577
3578else
3579  ac_cv_header_stdc=no
3580fi
3581rm -f conftest*
3582
3583fi
3584
3585if test $ac_cv_header_stdc = yes; then
3586  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589#include <stdlib.h>
3590
3591_ACEOF
3592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593  $EGREP "free" >/dev/null 2>&1; then :
3594
3595else
3596  ac_cv_header_stdc=no
3597fi
3598rm -f conftest*
3599
3600fi
3601
3602if test $ac_cv_header_stdc = yes; then
3603  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3604  if test "$cross_compiling" = yes; then :
3605  :
3606else
3607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609#include <ctype.h>
3610#include <stdlib.h>
3611#if ((' ' & 0x0FF) == 0x020)
3612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3614#else
3615# define ISLOWER(c) \
3616		   (('a' <= (c) && (c) <= 'i') \
3617		     || ('j' <= (c) && (c) <= 'r') \
3618		     || ('s' <= (c) && (c) <= 'z'))
3619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3620#endif
3621
3622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3623int
3624main ()
3625{
3626  int i;
3627  for (i = 0; i < 256; i++)
3628    if (XOR (islower (i), ISLOWER (i))
3629	|| toupper (i) != TOUPPER (i))
3630      return 2;
3631  return 0;
3632}
3633_ACEOF
3634if ac_fn_c_try_run "$LINENO"; then :
3635
3636else
3637  ac_cv_header_stdc=no
3638fi
3639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3640  conftest.$ac_objext conftest.beam conftest.$ac_ext
3641fi
3642
3643fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3646$as_echo "$ac_cv_header_stdc" >&6; }
3647if test $ac_cv_header_stdc = yes; then
3648
3649$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3650
3651fi
3652
3653# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3654for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3655		  inttypes.h stdint.h unistd.h
3656do :
3657  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3658ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3659"
3660if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3661  cat >>confdefs.h <<_ACEOF
3662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3663_ACEOF
3664
3665fi
3666
3667done
3668
3669
3670
3671  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3672if test "x$ac_cv_header_minix_config_h" = xyes; then :
3673  MINIX=yes
3674else
3675  MINIX=
3676fi
3677
3678
3679  if test "$MINIX" = yes; then
3680
3681$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3682
3683
3684$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3685
3686
3687$as_echo "#define _MINIX 1" >>confdefs.h
3688
3689  fi
3690
3691
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3693$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3694if ${ac_cv_safe_to_define___extensions__+:} false; then :
3695  $as_echo_n "(cached) " >&6
3696else
3697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700#         define __EXTENSIONS__ 1
3701          $ac_includes_default
3702int
3703main ()
3704{
3705
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711  ac_cv_safe_to_define___extensions__=yes
3712else
3713  ac_cv_safe_to_define___extensions__=no
3714fi
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716fi
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3718$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3719  test $ac_cv_safe_to_define___extensions__ = yes &&
3720    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3721
3722  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3723
3724  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3725
3726  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3727
3728  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3729
3730
3731
3732am__api_version='1.15'
3733
3734# Find a good install program.  We prefer a C program (faster),
3735# so one script is as good as another.  But avoid the broken or
3736# incompatible versions:
3737# SysV /etc/install, /usr/sbin/install
3738# SunOS /usr/etc/install
3739# IRIX /sbin/install
3740# AIX /bin/install
3741# AmigaOS /C/install, which installs bootblocks on floppy discs
3742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3745# OS/2's system install, which has a completely different semantic
3746# ./install, which can be erroneously created by make from ./install.sh.
3747# Reject install programs that cannot install multiple files.
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3749$as_echo_n "checking for a BSD-compatible install... " >&6; }
3750if test -z "$INSTALL"; then
3751if ${ac_cv_path_install+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757  IFS=$as_save_IFS
3758  test -z "$as_dir" && as_dir=.
3759    # Account for people who put trailing slashes in PATH elements.
3760case $as_dir/ in #((
3761  ./ | .// | /[cC]/* | \
3762  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3763  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3764  /usr/ucb/* ) ;;
3765  *)
3766    # OSF1 and SCO ODT 3.0 have their own names for install.
3767    # Don't use installbsd from OSF since it installs stuff as root
3768    # by default.
3769    for ac_prog in ginstall scoinst install; do
3770      for ac_exec_ext in '' $ac_executable_extensions; do
3771	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3772	  if test $ac_prog = install &&
3773	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3774	    # AIX install.  It has an incompatible calling convention.
3775	    :
3776	  elif test $ac_prog = install &&
3777	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3778	    # program-specific install script used by HP pwplus--don't use.
3779	    :
3780	  else
3781	    rm -rf conftest.one conftest.two conftest.dir
3782	    echo one > conftest.one
3783	    echo two > conftest.two
3784	    mkdir conftest.dir
3785	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3786	      test -s conftest.one && test -s conftest.two &&
3787	      test -s conftest.dir/conftest.one &&
3788	      test -s conftest.dir/conftest.two
3789	    then
3790	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3791	      break 3
3792	    fi
3793	  fi
3794	fi
3795      done
3796    done
3797    ;;
3798esac
3799
3800  done
3801IFS=$as_save_IFS
3802
3803rm -rf conftest.one conftest.two conftest.dir
3804
3805fi
3806  if test "${ac_cv_path_install+set}" = set; then
3807    INSTALL=$ac_cv_path_install
3808  else
3809    # As a last resort, use the slow shell script.  Don't cache a
3810    # value for INSTALL within a source directory, because that will
3811    # break other packages using the cache if that directory is
3812    # removed, or if the value is a relative name.
3813    INSTALL=$ac_install_sh
3814  fi
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3817$as_echo "$INSTALL" >&6; }
3818
3819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3820# It thinks the first close brace ends the variable substitution.
3821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3822
3823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3824
3825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3826
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3828$as_echo_n "checking whether build environment is sane... " >&6; }
3829# Reject unsafe characters in $srcdir or the absolute working directory
3830# name.  Accept space and tab only in the latter.
3831am_lf='
3832'
3833case `pwd` in
3834  *[\\\"\#\$\&\'\`$am_lf]*)
3835    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3836esac
3837case $srcdir in
3838  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3839    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3840esac
3841
3842# Do 'set' in a subshell so we don't clobber the current shell's
3843# arguments.  Must try -L first in case configure is actually a
3844# symlink; some systems play weird games with the mod time of symlinks
3845# (eg FreeBSD returns the mod time of the symlink's containing
3846# directory).
3847if (
3848   am_has_slept=no
3849   for am_try in 1 2; do
3850     echo "timestamp, slept: $am_has_slept" > conftest.file
3851     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3852     if test "$*" = "X"; then
3853	# -L didn't work.
3854	set X `ls -t "$srcdir/configure" conftest.file`
3855     fi
3856     if test "$*" != "X $srcdir/configure conftest.file" \
3857	&& test "$*" != "X conftest.file $srcdir/configure"; then
3858
3859	# If neither matched, then we have a broken ls.  This can happen
3860	# if, for instance, CONFIG_SHELL is bash and it inherits a
3861	# broken ls alias from the environment.  This has actually
3862	# happened.  Such a system could not be considered "sane".
3863	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3864  alias in your environment" "$LINENO" 5
3865     fi
3866     if test "$2" = conftest.file || test $am_try -eq 2; then
3867       break
3868     fi
3869     # Just in case.
3870     sleep 1
3871     am_has_slept=yes
3872   done
3873   test "$2" = conftest.file
3874   )
3875then
3876   # Ok.
3877   :
3878else
3879   as_fn_error $? "newly created file is older than distributed files!
3880Check your system clock" "$LINENO" 5
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883$as_echo "yes" >&6; }
3884# If we didn't sleep, we still need to ensure time stamps of config.status and
3885# generated files are strictly newer.
3886am_sleep_pid=
3887if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3888  ( sleep 1 ) &
3889  am_sleep_pid=$!
3890fi
3891
3892rm -f conftest.file
3893
3894test "$program_prefix" != NONE &&
3895  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3896# Use a double $ so make ignores it.
3897test "$program_suffix" != NONE &&
3898  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3899# Double any \ or $.
3900# By default was `s,x,x', remove it if useless.
3901ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3902program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3903
3904if test x"${MISSING+set}" != xset; then
3905  case $am_aux_dir in
3906  *\ * | *\	*)
3907    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3908  *)
3909    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3910  esac
3911fi
3912# Use eval to expand $SHELL
3913if eval "$MISSING --is-lightweight"; then
3914  am_missing_run="$MISSING "
3915else
3916  am_missing_run=
3917  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3918$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3919fi
3920
3921if test x"${install_sh+set}" != xset; then
3922  case $am_aux_dir in
3923  *\ * | *\	*)
3924    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3925  *)
3926    install_sh="\${SHELL} $am_aux_dir/install-sh"
3927  esac
3928fi
3929
3930# Installed binaries are usually stripped using 'strip' when the user
3931# run "make install-strip".  However 'strip' might not be the right
3932# tool to use in cross-compilation environments, therefore Automake
3933# will honor the 'STRIP' environment variable to overrule this program.
3934if test "$cross_compiling" != no; then
3935  if test -n "$ac_tool_prefix"; then
3936  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3937set dummy ${ac_tool_prefix}strip; ac_word=$2
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
3940if ${ac_cv_prog_STRIP+:} false; then :
3941  $as_echo_n "(cached) " >&6
3942else
3943  if test -n "$STRIP"; then
3944  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949  IFS=$as_save_IFS
3950  test -z "$as_dir" && as_dir=.
3951    for ac_exec_ext in '' $ac_executable_extensions; do
3952  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955    break 2
3956  fi
3957done
3958  done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963STRIP=$ac_cv_prog_STRIP
3964if test -n "$STRIP"; then
3965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3966$as_echo "$STRIP" >&6; }
3967else
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972
3973fi
3974if test -z "$ac_cv_prog_STRIP"; then
3975  ac_ct_STRIP=$STRIP
3976  # Extract the first word of "strip", so it can be a program name with args.
3977set dummy strip; ac_word=$2
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
3980if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if test -n "$ac_ct_STRIP"; then
3984  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991    for ac_exec_ext in '' $ac_executable_extensions; do
3992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993    ac_cv_prog_ac_ct_STRIP="strip"
3994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995    break 2
3996  fi
3997done
3998  done
3999IFS=$as_save_IFS
4000
4001fi
4002fi
4003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4004if test -n "$ac_ct_STRIP"; then
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4006$as_echo "$ac_ct_STRIP" >&6; }
4007else
4008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
4010fi
4011
4012  if test "x$ac_ct_STRIP" = x; then
4013    STRIP=":"
4014  else
4015    case $cross_compiling:$ac_tool_warned in
4016yes:)
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019ac_tool_warned=yes ;;
4020esac
4021    STRIP=$ac_ct_STRIP
4022  fi
4023else
4024  STRIP="$ac_cv_prog_STRIP"
4025fi
4026
4027fi
4028INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4029
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4031$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4032if test -z "$MKDIR_P"; then
4033  if ${ac_cv_path_mkdir+:} false; then :
4034  $as_echo_n "(cached) " >&6
4035else
4036  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4038do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_prog in mkdir gmkdir; do
4042	 for ac_exec_ext in '' $ac_executable_extensions; do
4043	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4044	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4045	     'mkdir (GNU coreutils) '* | \
4046	     'mkdir (coreutils) '* | \
4047	     'mkdir (fileutils) '4.1*)
4048	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4049	       break 3;;
4050	   esac
4051	 done
4052       done
4053  done
4054IFS=$as_save_IFS
4055
4056fi
4057
4058  test -d ./--version && rmdir ./--version
4059  if test "${ac_cv_path_mkdir+set}" = set; then
4060    MKDIR_P="$ac_cv_path_mkdir -p"
4061  else
4062    # As a last resort, use the slow shell script.  Don't cache a
4063    # value for MKDIR_P within a source directory, because that will
4064    # break other packages using the cache if that directory is
4065    # removed, or if the value is a relative name.
4066    MKDIR_P="$ac_install_sh -d"
4067  fi
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4070$as_echo "$MKDIR_P" >&6; }
4071
4072for ac_prog in gawk mawk nawk awk
4073do
4074  # Extract the first word of "$ac_prog", so it can be a program name with args.
4075set dummy $ac_prog; ac_word=$2
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
4078if ${ac_cv_prog_AWK+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  if test -n "$AWK"; then
4082  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091    ac_cv_prog_AWK="$ac_prog"
4092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093    break 2
4094  fi
4095done
4096  done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101AWK=$ac_cv_prog_AWK
4102if test -n "$AWK"; then
4103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4104$as_echo "$AWK" >&6; }
4105else
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107$as_echo "no" >&6; }
4108fi
4109
4110
4111  test -n "$AWK" && break
4112done
4113
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4115$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4116set x ${MAKE-make}
4117ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4118if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4119  $as_echo_n "(cached) " >&6
4120else
4121  cat >conftest.make <<\_ACEOF
4122SHELL = /bin/sh
4123all:
4124	@echo '@@@%%%=$(MAKE)=@@@%%%'
4125_ACEOF
4126# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4127case `${MAKE-make} -f conftest.make 2>/dev/null` in
4128  *@@@%%%=?*=@@@%%%*)
4129    eval ac_cv_prog_make_${ac_make}_set=yes;;
4130  *)
4131    eval ac_cv_prog_make_${ac_make}_set=no;;
4132esac
4133rm -f conftest.make
4134fi
4135if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137$as_echo "yes" >&6; }
4138  SET_MAKE=
4139else
4140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141$as_echo "no" >&6; }
4142  SET_MAKE="MAKE=${MAKE-make}"
4143fi
4144
4145rm -rf .tst 2>/dev/null
4146mkdir .tst 2>/dev/null
4147if test -d .tst; then
4148  am__leading_dot=.
4149else
4150  am__leading_dot=_
4151fi
4152rmdir .tst 2>/dev/null
4153
4154DEPDIR="${am__leading_dot}deps"
4155
4156ac_config_commands="$ac_config_commands depfiles"
4157
4158
4159am_make=${MAKE-make}
4160cat > confinc << 'END'
4161am__doit:
4162	@echo this is the am__doit target
4163.PHONY: am__doit
4164END
4165# If we don't find an include directive, just comment out the code.
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4167$as_echo_n "checking for style of include used by $am_make... " >&6; }
4168am__include="#"
4169am__quote=
4170_am_result=none
4171# First try GNU make style include.
4172echo "include confinc" > confmf
4173# Ignore all kinds of additional output from 'make'.
4174case `$am_make -s -f confmf 2> /dev/null` in #(
4175*the\ am__doit\ target*)
4176  am__include=include
4177  am__quote=
4178  _am_result=GNU
4179  ;;
4180esac
4181# Now try BSD make style include.
4182if test "$am__include" = "#"; then
4183   echo '.include "confinc"' > confmf
4184   case `$am_make -s -f confmf 2> /dev/null` in #(
4185   *the\ am__doit\ target*)
4186     am__include=.include
4187     am__quote="\""
4188     _am_result=BSD
4189     ;;
4190   esac
4191fi
4192
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4195$as_echo "$_am_result" >&6; }
4196rm -f confinc confmf
4197
4198# Check whether --enable-dependency-tracking was given.
4199if test "${enable_dependency_tracking+set}" = set; then :
4200  enableval=$enable_dependency_tracking;
4201fi
4202
4203if test "x$enable_dependency_tracking" != xno; then
4204  am_depcomp="$ac_aux_dir/depcomp"
4205  AMDEPBACKSLASH='\'
4206  am__nodep='_no'
4207fi
4208 if test "x$enable_dependency_tracking" != xno; then
4209  AMDEP_TRUE=
4210  AMDEP_FALSE='#'
4211else
4212  AMDEP_TRUE='#'
4213  AMDEP_FALSE=
4214fi
4215
4216
4217# Check whether --enable-silent-rules was given.
4218if test "${enable_silent_rules+set}" = set; then :
4219  enableval=$enable_silent_rules;
4220fi
4221
4222case $enable_silent_rules in # (((
4223  yes) AM_DEFAULT_VERBOSITY=0;;
4224   no) AM_DEFAULT_VERBOSITY=1;;
4225    *) AM_DEFAULT_VERBOSITY=1;;
4226esac
4227am_make=${MAKE-make}
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4229$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4230if ${am_cv_make_support_nested_variables+:} false; then :
4231  $as_echo_n "(cached) " >&6
4232else
4233  if $as_echo 'TRUE=$(BAR$(V))
4234BAR0=false
4235BAR1=true
4236V=1
4237am__doit:
4238	@$(TRUE)
4239.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4240  am_cv_make_support_nested_variables=yes
4241else
4242  am_cv_make_support_nested_variables=no
4243fi
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4246$as_echo "$am_cv_make_support_nested_variables" >&6; }
4247if test $am_cv_make_support_nested_variables = yes; then
4248    AM_V='$(V)'
4249  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4250else
4251  AM_V=$AM_DEFAULT_VERBOSITY
4252  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4253fi
4254AM_BACKSLASH='\'
4255
4256if test "`cd $srcdir && pwd`" != "`pwd`"; then
4257  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4258  # is not polluted with repeated "-I."
4259  am__isrc=' -I$(srcdir)'
4260  # test to see if srcdir already configured
4261  if test -f $srcdir/config.status; then
4262    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4263  fi
4264fi
4265
4266# test whether we have cygpath
4267if test -z "$CYGPATH_W"; then
4268  if (cygpath --version) >/dev/null 2>/dev/null; then
4269    CYGPATH_W='cygpath -w'
4270  else
4271    CYGPATH_W=echo
4272  fi
4273fi
4274
4275
4276# Define the identity of the package.
4277 PACKAGE='dunelegacy'
4278 VERSION='0.96.4'
4279
4280
4281cat >>confdefs.h <<_ACEOF
4282#define PACKAGE "$PACKAGE"
4283_ACEOF
4284
4285
4286cat >>confdefs.h <<_ACEOF
4287#define VERSION "$VERSION"
4288_ACEOF
4289
4290# Some tools Automake needs.
4291
4292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4293
4294
4295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4296
4297
4298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4299
4300
4301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4302
4303
4304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4305
4306# For better backward compatibility.  To be removed once Automake 1.9.x
4307# dies out for good.  For more background, see:
4308# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4309# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4310mkdir_p='$(MKDIR_P)'
4311
4312# We need awk for the "check" target (and possibly the TAP driver).  The
4313# system "awk" is bad on some platforms.
4314# Always define AMTAR for backward compatibility.  Yes, it's still used
4315# in the wild :-(  We should find a proper way to deprecate it ...
4316AMTAR='$${TAR-tar}'
4317
4318
4319# We'll loop over all known methods to create a tar archive until one works.
4320_am_tools='gnutar  pax cpio none'
4321
4322am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4323
4324
4325
4326
4327
4328depcc="$CC"   am_compiler_list=
4329
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4331$as_echo_n "checking dependency style of $depcc... " >&6; }
4332if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4336  # We make a subdir and do the tests there.  Otherwise we can end up
4337  # making bogus files that we don't know about and never remove.  For
4338  # instance it was reported that on HP-UX the gcc test will end up
4339  # making a dummy file named 'D' -- because '-MD' means "put the output
4340  # in D".
4341  rm -rf conftest.dir
4342  mkdir conftest.dir
4343  # Copy depcomp to subdir because otherwise we won't find it if we're
4344  # using a relative directory.
4345  cp "$am_depcomp" conftest.dir
4346  cd conftest.dir
4347  # We will build objects and dependencies in a subdirectory because
4348  # it helps to detect inapplicable dependency modes.  For instance
4349  # both Tru64's cc and ICC support -MD to output dependencies as a
4350  # side effect of compilation, but ICC will put the dependencies in
4351  # the current directory while Tru64 will put them in the object
4352  # directory.
4353  mkdir sub
4354
4355  am_cv_CC_dependencies_compiler_type=none
4356  if test "$am_compiler_list" = ""; then
4357     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4358  fi
4359  am__universal=false
4360  case " $depcc " in #(
4361     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4362     esac
4363
4364  for depmode in $am_compiler_list; do
4365    # Setup a source with many dependencies, because some compilers
4366    # like to wrap large dependency lists on column 80 (with \), and
4367    # we should not choose a depcomp mode which is confused by this.
4368    #
4369    # We need to recreate these files for each test, as the compiler may
4370    # overwrite some of them when testing with obscure command lines.
4371    # This happens at least with the AIX C compiler.
4372    : > sub/conftest.c
4373    for i in 1 2 3 4 5 6; do
4374      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4375      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4376      # Solaris 10 /bin/sh.
4377      echo '/* dummy */' > sub/conftst$i.h
4378    done
4379    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4380
4381    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4382    # mode.  It turns out that the SunPro C++ compiler does not properly
4383    # handle '-M -o', and we need to detect this.  Also, some Intel
4384    # versions had trouble with output in subdirs.
4385    am__obj=sub/conftest.${OBJEXT-o}
4386    am__minus_obj="-o $am__obj"
4387    case $depmode in
4388    gcc)
4389      # This depmode causes a compiler race in universal mode.
4390      test "$am__universal" = false || continue
4391      ;;
4392    nosideeffect)
4393      # After this tag, mechanisms are not by side-effect, so they'll
4394      # only be used when explicitly requested.
4395      if test "x$enable_dependency_tracking" = xyes; then
4396	continue
4397      else
4398	break
4399      fi
4400      ;;
4401    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4402      # This compiler won't grok '-c -o', but also, the minuso test has
4403      # not run yet.  These depmodes are late enough in the game, and
4404      # so weak that their functioning should not be impacted.
4405      am__obj=conftest.${OBJEXT-o}
4406      am__minus_obj=
4407      ;;
4408    none) break ;;
4409    esac
4410    if depmode=$depmode \
4411       source=sub/conftest.c object=$am__obj \
4412       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4413       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4414         >/dev/null 2>conftest.err &&
4415       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4416       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4417       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4418       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4419      # icc doesn't choke on unknown options, it will just issue warnings
4420      # or remarks (even with -Werror).  So we grep stderr for any message
4421      # that says an option was ignored or not supported.
4422      # When given -MP, icc 7.0 and 7.1 complain thusly:
4423      #   icc: Command line warning: ignoring option '-M'; no argument required
4424      # The diagnosis changed in icc 8.0:
4425      #   icc: Command line remark: option '-MP' not supported
4426      if (grep 'ignoring option' conftest.err ||
4427          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4428        am_cv_CC_dependencies_compiler_type=$depmode
4429        break
4430      fi
4431    fi
4432  done
4433
4434  cd ..
4435  rm -rf conftest.dir
4436else
4437  am_cv_CC_dependencies_compiler_type=none
4438fi
4439
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4442$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4443CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4444
4445 if
4446  test "x$enable_dependency_tracking" != xno \
4447  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4448  am__fastdepCC_TRUE=
4449  am__fastdepCC_FALSE='#'
4450else
4451  am__fastdepCC_TRUE='#'
4452  am__fastdepCC_FALSE=
4453fi
4454
4455
4456
4457# POSIX will say in a future version that running "rm -f" with no argument
4458# is OK; and we want to be able to make that assumption in our Makefile
4459# recipes.  So use an aggressive probe to check that the usage we want is
4460# actually supported "in the wild" to an acceptable degree.
4461# See automake bug#10828.
4462# To make any issue more visible, cause the running configure to be aborted
4463# by default if the 'rm' program in use doesn't match our expectations; the
4464# user can still override this though.
4465if rm -f && rm -fr && rm -rf; then : OK; else
4466  cat >&2 <<'END'
4467Oops!
4468
4469Your 'rm' program seems unable to run without file operands specified
4470on the command line, even when the '-f' option is present.  This is contrary
4471to the behaviour of most rm programs out there, and not conforming with
4472the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4473
4474Please tell bug-automake@gnu.org about your system, including the value
4475of your $PATH and any error possibly output before this message.  This
4476can help us improve future automake versions.
4477
4478END
4479  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4480    echo 'Configuration will proceed anyway, since you have set the' >&2
4481    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4482    echo >&2
4483  else
4484    cat >&2 <<'END'
4485Aborting the configuration process, to ensure you take notice of the issue.
4486
4487You can download and install GNU coreutils to get an 'rm' implementation
4488that behaves properly: <http://www.gnu.org/software/coreutils/>.
4489
4490If you want to complete the configuration process using your problematic
4491'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4492to "yes", and re-run configure.
4493
4494END
4495    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4496  fi
4497fi
4498
4499
4500
4501
4502ac_ext=cpp
4503ac_cpp='$CXXCPP $CPPFLAGS'
4504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4507if test -z "$CXX"; then
4508  if test -n "$CCC"; then
4509    CXX=$CCC
4510  else
4511    if test -n "$ac_tool_prefix"; then
4512  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4513  do
4514    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517$as_echo_n "checking for $ac_word... " >&6; }
4518if ${ac_cv_prog_CXX+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  if test -n "$CXX"; then
4522  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529    for ac_exec_ext in '' $ac_executable_extensions; do
4530  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533    break 2
4534  fi
4535done
4536  done
4537IFS=$as_save_IFS
4538
4539fi
4540fi
4541CXX=$ac_cv_prog_CXX
4542if test -n "$CXX"; then
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4544$as_echo "$CXX" >&6; }
4545else
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548fi
4549
4550
4551    test -n "$CXX" && break
4552  done
4553fi
4554if test -z "$CXX"; then
4555  ac_ct_CXX=$CXX
4556  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4557do
4558  # Extract the first word of "$ac_prog", so it can be a program name with args.
4559set dummy $ac_prog; ac_word=$2
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561$as_echo_n "checking for $ac_word... " >&6; }
4562if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565  if test -n "$ac_ct_CXX"; then
4566  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567else
4568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571  IFS=$as_save_IFS
4572  test -z "$as_dir" && as_dir=.
4573    for ac_exec_ext in '' $ac_executable_extensions; do
4574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575    ac_cv_prog_ac_ct_CXX="$ac_prog"
4576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577    break 2
4578  fi
4579done
4580  done
4581IFS=$as_save_IFS
4582
4583fi
4584fi
4585ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4586if test -n "$ac_ct_CXX"; then
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4588$as_echo "$ac_ct_CXX" >&6; }
4589else
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593
4594
4595  test -n "$ac_ct_CXX" && break
4596done
4597
4598  if test "x$ac_ct_CXX" = x; then
4599    CXX="g++"
4600  else
4601    case $cross_compiling:$ac_tool_warned in
4602yes:)
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605ac_tool_warned=yes ;;
4606esac
4607    CXX=$ac_ct_CXX
4608  fi
4609fi
4610
4611  fi
4612fi
4613# Provide some information about the compiler.
4614$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4615set X $ac_compile
4616ac_compiler=$2
4617for ac_option in --version -v -V -qversion; do
4618  { { ac_try="$ac_compiler $ac_option >&5"
4619case "(($ac_try" in
4620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621  *) ac_try_echo=$ac_try;;
4622esac
4623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624$as_echo "$ac_try_echo"; } >&5
4625  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4626  ac_status=$?
4627  if test -s conftest.err; then
4628    sed '10a\
4629... rest of stderr output deleted ...
4630         10q' conftest.err >conftest.er1
4631    cat conftest.er1 >&5
4632  fi
4633  rm -f conftest.er1 conftest.err
4634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635  test $ac_status = 0; }
4636done
4637
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4639$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4640if ${ac_cv_cxx_compiler_gnu+:} false; then :
4641  $as_echo_n "(cached) " >&6
4642else
4643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h.  */
4645
4646int
4647main ()
4648{
4649#ifndef __GNUC__
4650       choke me
4651#endif
4652
4653  ;
4654  return 0;
4655}
4656_ACEOF
4657if ac_fn_cxx_try_compile "$LINENO"; then :
4658  ac_compiler_gnu=yes
4659else
4660  ac_compiler_gnu=no
4661fi
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4667$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4668if test $ac_compiler_gnu = yes; then
4669  GXX=yes
4670else
4671  GXX=
4672fi
4673ac_test_CXXFLAGS=${CXXFLAGS+set}
4674ac_save_CXXFLAGS=$CXXFLAGS
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4677if ${ac_cv_prog_cxx_g+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4681   ac_cxx_werror_flag=yes
4682   ac_cv_prog_cxx_g=no
4683   CXXFLAGS="-g"
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h.  */
4686
4687int
4688main ()
4689{
4690
4691  ;
4692  return 0;
4693}
4694_ACEOF
4695if ac_fn_cxx_try_compile "$LINENO"; then :
4696  ac_cv_prog_cxx_g=yes
4697else
4698  CXXFLAGS=""
4699      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701
4702int
4703main ()
4704{
4705
4706  ;
4707  return 0;
4708}
4709_ACEOF
4710if ac_fn_cxx_try_compile "$LINENO"; then :
4711
4712else
4713  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714	 CXXFLAGS="-g"
4715	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716/* end confdefs.h.  */
4717
4718int
4719main ()
4720{
4721
4722  ;
4723  return 0;
4724}
4725_ACEOF
4726if ac_fn_cxx_try_compile "$LINENO"; then :
4727  ac_cv_prog_cxx_g=yes
4728fi
4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730fi
4731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4735fi
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4737$as_echo "$ac_cv_prog_cxx_g" >&6; }
4738if test "$ac_test_CXXFLAGS" = set; then
4739  CXXFLAGS=$ac_save_CXXFLAGS
4740elif test $ac_cv_prog_cxx_g = yes; then
4741  if test "$GXX" = yes; then
4742    CXXFLAGS="-g -O2"
4743  else
4744    CXXFLAGS="-g"
4745  fi
4746else
4747  if test "$GXX" = yes; then
4748    CXXFLAGS="-O2"
4749  else
4750    CXXFLAGS=
4751  fi
4752fi
4753ac_ext=c
4754ac_cpp='$CPP $CPPFLAGS'
4755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758
4759depcc="$CXX"  am_compiler_list=
4760
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4762$as_echo_n "checking dependency style of $depcc... " >&6; }
4763if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4767  # We make a subdir and do the tests there.  Otherwise we can end up
4768  # making bogus files that we don't know about and never remove.  For
4769  # instance it was reported that on HP-UX the gcc test will end up
4770  # making a dummy file named 'D' -- because '-MD' means "put the output
4771  # in D".
4772  rm -rf conftest.dir
4773  mkdir conftest.dir
4774  # Copy depcomp to subdir because otherwise we won't find it if we're
4775  # using a relative directory.
4776  cp "$am_depcomp" conftest.dir
4777  cd conftest.dir
4778  # We will build objects and dependencies in a subdirectory because
4779  # it helps to detect inapplicable dependency modes.  For instance
4780  # both Tru64's cc and ICC support -MD to output dependencies as a
4781  # side effect of compilation, but ICC will put the dependencies in
4782  # the current directory while Tru64 will put them in the object
4783  # directory.
4784  mkdir sub
4785
4786  am_cv_CXX_dependencies_compiler_type=none
4787  if test "$am_compiler_list" = ""; then
4788     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4789  fi
4790  am__universal=false
4791  case " $depcc " in #(
4792     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4793     esac
4794
4795  for depmode in $am_compiler_list; do
4796    # Setup a source with many dependencies, because some compilers
4797    # like to wrap large dependency lists on column 80 (with \), and
4798    # we should not choose a depcomp mode which is confused by this.
4799    #
4800    # We need to recreate these files for each test, as the compiler may
4801    # overwrite some of them when testing with obscure command lines.
4802    # This happens at least with the AIX C compiler.
4803    : > sub/conftest.c
4804    for i in 1 2 3 4 5 6; do
4805      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4806      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4807      # Solaris 10 /bin/sh.
4808      echo '/* dummy */' > sub/conftst$i.h
4809    done
4810    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4811
4812    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4813    # mode.  It turns out that the SunPro C++ compiler does not properly
4814    # handle '-M -o', and we need to detect this.  Also, some Intel
4815    # versions had trouble with output in subdirs.
4816    am__obj=sub/conftest.${OBJEXT-o}
4817    am__minus_obj="-o $am__obj"
4818    case $depmode in
4819    gcc)
4820      # This depmode causes a compiler race in universal mode.
4821      test "$am__universal" = false || continue
4822      ;;
4823    nosideeffect)
4824      # After this tag, mechanisms are not by side-effect, so they'll
4825      # only be used when explicitly requested.
4826      if test "x$enable_dependency_tracking" = xyes; then
4827	continue
4828      else
4829	break
4830      fi
4831      ;;
4832    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4833      # This compiler won't grok '-c -o', but also, the minuso test has
4834      # not run yet.  These depmodes are late enough in the game, and
4835      # so weak that their functioning should not be impacted.
4836      am__obj=conftest.${OBJEXT-o}
4837      am__minus_obj=
4838      ;;
4839    none) break ;;
4840    esac
4841    if depmode=$depmode \
4842       source=sub/conftest.c object=$am__obj \
4843       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4844       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4845         >/dev/null 2>conftest.err &&
4846       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4847       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4848       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4849       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4850      # icc doesn't choke on unknown options, it will just issue warnings
4851      # or remarks (even with -Werror).  So we grep stderr for any message
4852      # that says an option was ignored or not supported.
4853      # When given -MP, icc 7.0 and 7.1 complain thusly:
4854      #   icc: Command line warning: ignoring option '-M'; no argument required
4855      # The diagnosis changed in icc 8.0:
4856      #   icc: Command line remark: option '-MP' not supported
4857      if (grep 'ignoring option' conftest.err ||
4858          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4859        am_cv_CXX_dependencies_compiler_type=$depmode
4860        break
4861      fi
4862    fi
4863  done
4864
4865  cd ..
4866  rm -rf conftest.dir
4867else
4868  am_cv_CXX_dependencies_compiler_type=none
4869fi
4870
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4873$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4874CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4875
4876 if
4877  test "x$enable_dependency_tracking" != xno \
4878  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4879  am__fastdepCXX_TRUE=
4880  am__fastdepCXX_FALSE='#'
4881else
4882  am__fastdepCXX_TRUE='#'
4883  am__fastdepCXX_FALSE=
4884fi
4885
4886
4887
4888if test "$prefix" = "" ; then
4889	dunelegacydatadir='data'
4890else
4891	dunelegacydatadir='${pkgdatadir}'
4892fi
4893
4894
4895
4896CXXFLAGS="-std=c++11 -pthread -fPIC -O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -DNDEBUG"
4897CFLAGS="-std=c99 -pthread -fPIC -O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -DNDEBUG"
4898
4899
4900
4901# Check whether --enable-debug was given.
4902if test "${enable_debug+set}" = set; then :
4903  enableval=$enable_debug;
4904fi
4905
4906
4907if test "$enable_debug" = "yes" ; then
4908	CXXFLAGS="$CXXFLAGS -g"
4909fi
4910
4911SDL_VERSION=2.0.0
4912
4913
4914
4915
4916
4917
4918
4919if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4920	if test -n "$ac_tool_prefix"; then
4921  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4922set dummy ${ac_tool_prefix}pkg-config; 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_path_PKG_CONFIG+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  case $PKG_CONFIG in
4929  [\\/]* | ?:[\\/]*)
4930  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4931  ;;
4932  *)
4933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938    for ac_exec_ext in '' $ac_executable_extensions; do
4939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945  done
4946IFS=$as_save_IFS
4947
4948  ;;
4949esac
4950fi
4951PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4952if test -n "$PKG_CONFIG"; then
4953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4954$as_echo "$PKG_CONFIG" >&6; }
4955else
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
4958fi
4959
4960
4961fi
4962if test -z "$ac_cv_path_PKG_CONFIG"; then
4963  ac_pt_PKG_CONFIG=$PKG_CONFIG
4964  # Extract the first word of "pkg-config", so it can be a program name with args.
4965set dummy pkg-config; ac_word=$2
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  case $ac_pt_PKG_CONFIG in
4972  [\\/]* | ?:[\\/]*)
4973  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4974  ;;
4975  *)
4976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  test -z "$as_dir" && as_dir=.
4981    for ac_exec_ext in '' $ac_executable_extensions; do
4982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985    break 2
4986  fi
4987done
4988  done
4989IFS=$as_save_IFS
4990
4991  ;;
4992esac
4993fi
4994ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4995if test -n "$ac_pt_PKG_CONFIG"; then
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4997$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4998else
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000$as_echo "no" >&6; }
5001fi
5002
5003  if test "x$ac_pt_PKG_CONFIG" = x; then
5004    PKG_CONFIG=""
5005  else
5006    case $cross_compiling:$ac_tool_warned in
5007yes:)
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010ac_tool_warned=yes ;;
5011esac
5012    PKG_CONFIG=$ac_pt_PKG_CONFIG
5013  fi
5014else
5015  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5016fi
5017
5018fi
5019if test -n "$PKG_CONFIG"; then
5020	_pkg_min_version=0.9.0
5021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5022$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5023	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025$as_echo "yes" >&6; }
5026	else
5027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029		PKG_CONFIG=""
5030	fi
5031fi
5032
5033# Check whether --with-sdl-prefix was given.
5034if test "${with_sdl_prefix+set}" = set; then :
5035  withval=$with_sdl_prefix; sdl_prefix="$withval"
5036else
5037  sdl_prefix=""
5038fi
5039
5040
5041# Check whether --with-sdl-exec-prefix was given.
5042if test "${with_sdl_exec_prefix+set}" = set; then :
5043  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
5044else
5045  sdl_exec_prefix=""
5046fi
5047
5048# Check whether --enable-sdltest was given.
5049if test "${enable_sdltest+set}" = set; then :
5050  enableval=$enable_sdltest;
5051else
5052  enable_sdltest=yes
5053fi
5054
5055
5056  min_sdl_version=$SDL_VERSION
5057
5058  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
5059
5060pkg_failed=no
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
5062$as_echo_n "checking for SDL... " >&6; }
5063
5064if test -n "$SDL_CFLAGS"; then
5065    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
5066 elif test -n "$PKG_CONFIG"; then
5067    if test -n "$PKG_CONFIG" && \
5068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
5069  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
5070  ac_status=$?
5071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072  test $ac_status = 0; }; then
5073  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
5074		      test "x$?" != "x0" && pkg_failed=yes
5075else
5076  pkg_failed=yes
5077fi
5078 else
5079    pkg_failed=untried
5080fi
5081if test -n "$SDL_LIBS"; then
5082    pkg_cv_SDL_LIBS="$SDL_LIBS"
5083 elif test -n "$PKG_CONFIG"; then
5084    if test -n "$PKG_CONFIG" && \
5085    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
5086  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
5087  ac_status=$?
5088  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089  test $ac_status = 0; }; then
5090  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
5091		      test "x$?" != "x0" && pkg_failed=yes
5092else
5093  pkg_failed=yes
5094fi
5095 else
5096    pkg_failed=untried
5097fi
5098
5099
5100
5101if test $pkg_failed = yes; then
5102   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104
5105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5106        _pkg_short_errors_supported=yes
5107else
5108        _pkg_short_errors_supported=no
5109fi
5110        if test $_pkg_short_errors_supported = yes; then
5111	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
5112        else
5113	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
5114        fi
5115	# Put the nasty error message in config.log where it belongs
5116	echo "$SDL_PKG_ERRORS" >&5
5117
5118	sdl_pc=no
5119elif test $pkg_failed = untried; then
5120     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121$as_echo "no" >&6; }
5122	sdl_pc=no
5123else
5124	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
5125	SDL_LIBS=$pkg_cv_SDL_LIBS
5126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5127$as_echo "yes" >&6; }
5128	sdl_pc=yes
5129fi
5130  else
5131    sdl_pc=no
5132    if test x$sdl_exec_prefix != x ; then
5133      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
5134      if test x${SDL2_CONFIG+set} != xset ; then
5135        SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
5136      fi
5137    fi
5138    if test x$sdl_prefix != x ; then
5139      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
5140      if test x${SDL2_CONFIG+set} != xset ; then
5141        SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
5142      fi
5143    fi
5144  fi
5145
5146  if test "x$sdl_pc" = xyes ; then
5147    no_sdl=""
5148    SDL2_CONFIG="pkg-config sdl2"
5149  else
5150    as_save_PATH="$PATH"
5151    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
5152      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
5153    fi
5154    # Extract the first word of "sdl2-config", so it can be a program name with args.
5155set dummy sdl2-config; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if ${ac_cv_path_SDL2_CONFIG+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  case $SDL2_CONFIG in
5162  [\\/]* | ?:[\\/]*)
5163  ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
5164  ;;
5165  *)
5166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167for as_dir in $PATH
5168do
5169  IFS=$as_save_IFS
5170  test -z "$as_dir" && as_dir=.
5171    for ac_exec_ext in '' $ac_executable_extensions; do
5172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173    ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175    break 2
5176  fi
5177done
5178  done
5179IFS=$as_save_IFS
5180
5181  test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
5182  ;;
5183esac
5184fi
5185SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
5186if test -n "$SDL2_CONFIG"; then
5187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
5188$as_echo "$SDL2_CONFIG" >&6; }
5189else
5190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
5192fi
5193
5194
5195    PATH="$as_save_PATH"
5196    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
5197$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
5198    no_sdl=""
5199
5200    if test "$SDL2_CONFIG" = "no" ; then
5201      no_sdl=yes
5202    else
5203      SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
5204      SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
5205
5206      sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
5207             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5208      sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
5209             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5210      sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
5211             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5212      if test "x$enable_sdltest" = "xyes" ; then
5213        ac_save_CFLAGS="$CFLAGS"
5214        ac_save_CXXFLAGS="$CXXFLAGS"
5215        ac_save_LIBS="$LIBS"
5216        CFLAGS="$CFLAGS $SDL_CFLAGS"
5217        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5218        LIBS="$LIBS $SDL_LIBS"
5219      rm -f conf.sdltest
5220      if test "$cross_compiling" = yes; then :
5221  echo $ac_n "cross compiling; assumed OK... $ac_c"
5222else
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225
5226#include <stdio.h>
5227#include <stdlib.h>
5228#include <string.h>
5229#include "SDL.h"
5230
5231char*
5232my_strdup (char *str)
5233{
5234  char *new_str;
5235
5236  if (str)
5237    {
5238      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
5239      strcpy (new_str, str);
5240    }
5241  else
5242    new_str = NULL;
5243
5244  return new_str;
5245}
5246
5247int main (int argc, char *argv[])
5248{
5249  int major, minor, micro;
5250  char *tmp_version;
5251
5252  /* This hangs on some systems (?)
5253  system ("touch conf.sdltest");
5254  */
5255  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
5256
5257  /* HP/UX 9 (%@#!) writes to sscanf strings */
5258  tmp_version = my_strdup("$min_sdl_version");
5259  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5260     printf("%s, bad version string\n", "$min_sdl_version");
5261     exit(1);
5262   }
5263
5264   if (($sdl_major_version > major) ||
5265      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
5266      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
5267    {
5268      return 0;
5269    }
5270  else
5271    {
5272      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
5273      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
5274      printf("*** best to upgrade to the required version.\n");
5275      printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
5276      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
5277      printf("*** config.cache before re-running configure\n");
5278      return 1;
5279    }
5280}
5281
5282
5283_ACEOF
5284if ac_fn_c_try_run "$LINENO"; then :
5285
5286else
5287  no_sdl=yes
5288fi
5289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5290  conftest.$ac_objext conftest.beam conftest.$ac_ext
5291fi
5292
5293        CFLAGS="$ac_save_CFLAGS"
5294        CXXFLAGS="$ac_save_CXXFLAGS"
5295        LIBS="$ac_save_LIBS"
5296      fi
5297    fi
5298    if test "x$no_sdl" = x ; then
5299      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300$as_echo "yes" >&6; }
5301    else
5302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }
5304    fi
5305  fi
5306  if test "x$no_sdl" = x ; then
5307     :
5308  else
5309     if test "$SDL2_CONFIG" = "no" ; then
5310       echo "*** The sdl2-config script installed by SDL could not be found"
5311       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
5312       echo "*** your path, or set the SDL2_CONFIG environment variable to the"
5313       echo "*** full path to sdl2-config."
5314     else
5315       if test -f conf.sdltest ; then
5316        :
5317       else
5318          echo "*** Could not run SDL test program, checking why..."
5319          CFLAGS="$CFLAGS $SDL_CFLAGS"
5320          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5321          LIBS="$LIBS $SDL_LIBS"
5322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323/* end confdefs.h.  */
5324
5325#include <stdio.h>
5326#include "SDL.h"
5327
5328int main(int argc, char *argv[])
5329{ return 0; }
5330#undef  main
5331#define main K_and_R_C_main
5332
5333int
5334main ()
5335{
5336 return 0;
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341if ac_fn_c_try_link "$LINENO"; then :
5342   echo "*** The test program compiled, but did not run. This usually means"
5343          echo "*** that the run-time linker is not finding SDL or finding the wrong"
5344          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
5345          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5346          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5347          echo "*** is required on your system"
5348	  echo "***"
5349          echo "*** If you have an old version installed, it is best to remove it, although"
5350          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5351else
5352   echo "*** The test program failed to compile or link. See the file config.log for the"
5353          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
5354          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
5355          echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
5356fi
5357rm -f core conftest.err conftest.$ac_objext \
5358    conftest$ac_exeext conftest.$ac_ext
5359          CFLAGS="$ac_save_CFLAGS"
5360          CXXFLAGS="$ac_save_CXXFLAGS"
5361          LIBS="$ac_save_LIBS"
5362       fi
5363     fi
5364     SDL_CFLAGS=""
5365     SDL_LIBS=""
5366     as_fn_error $? "*** SDL2 version $SDL_VERSION not found!" "$LINENO" 5
5367  fi
5368
5369
5370  rm -f conf.sdltest
5371
5372CFLAGS="$CFLAGS $SDL_CFLAGS"
5373CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5374LIBS="$LIBS $SDL_LIBS"
5375
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL2_mixer" >&5
5377$as_echo_n "checking for Mix_OpenAudio in -lSDL2_mixer... " >&6; }
5378if ${ac_cv_lib_SDL2_mixer_Mix_OpenAudio+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  ac_check_lib_save_LIBS=$LIBS
5382LIBS="-lSDL2_mixer  $LIBS"
5383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h.  */
5385
5386/* Override any GCC internal prototype to avoid an error.
5387   Use char because int might match the return type of a GCC
5388   builtin and then its argument prototype would still apply.  */
5389#ifdef __cplusplus
5390extern "C"
5391#endif
5392char Mix_OpenAudio ();
5393int
5394main ()
5395{
5396return Mix_OpenAudio ();
5397  ;
5398  return 0;
5399}
5400_ACEOF
5401if ac_fn_c_try_link "$LINENO"; then :
5402  ac_cv_lib_SDL2_mixer_Mix_OpenAudio=yes
5403else
5404  ac_cv_lib_SDL2_mixer_Mix_OpenAudio=no
5405fi
5406rm -f core conftest.err conftest.$ac_objext \
5407    conftest$ac_exeext conftest.$ac_ext
5408LIBS=$ac_check_lib_save_LIBS
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&5
5411$as_echo "$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&6; }
5412if test "x$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" = xyes; then :
5413  LIBS="$LIBS -lSDL2_mixer"
5414else
5415  as_fn_error $? "*** SDL2_mixer library not found!" "$LINENO" 5
5416
5417fi
5418
5419
5420ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
5421if test "x$ac_cv_func_gethostbyaddr_r" = xyes; then :
5422  $as_echo "#define HAS_GETHOSTBYADDR_R 1" >>confdefs.h
5423
5424fi
5425
5426ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
5427if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
5428  $as_echo "#define HAS_GETHOSTBYNAME_R 1" >>confdefs.h
5429
5430fi
5431
5432ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
5433if test "x$ac_cv_func_poll" = xyes; then :
5434  $as_echo "#define HAS_POLL 1" >>confdefs.h
5435
5436fi
5437
5438ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
5439if test "x$ac_cv_func_fcntl" = xyes; then :
5440  $as_echo "#define HAS_FCNTL 1" >>confdefs.h
5441
5442fi
5443
5444ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
5445if test "x$ac_cv_func_inet_pton" = xyes; then :
5446  $as_echo "#define HAS_INET_PTON 1" >>confdefs.h
5447
5448fi
5449
5450ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
5451if test "x$ac_cv_func_inet_ntop" = xyes; then :
5452  $as_echo "#define HAS_INET_NTOP 1" >>confdefs.h
5453
5454fi
5455
5456
5457ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "#include <sys/socket.h>
5458"
5459if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
5460  $as_echo "#define HAS_MSGHDR_FLAGS 1" >>confdefs.h
5461
5462fi
5463
5464
5465ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5466              #include <sys/socket.h>
5467
5468"
5469if test "x$ac_cv_type_socklen_t" = xyes; then :
5470  $as_echo "#define HAS_SOCKLEN_T 1" >>confdefs.h
5471
5472fi
5473
5474
5475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477#include </usr/include/sys/socket.h>
5478
5479_ACEOF
5480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5481  $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then :
5482  $as_echo "#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN" >>confdefs.h
5483
5484fi
5485rm -f conftest*
5486
5487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h.  */
5489#include <socket.h>
5490
5491_ACEOF
5492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493  $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then :
5494  $as_echo "#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN" >>confdefs.h
5495
5496fi
5497rm -f conftest*
5498
5499
5500if test "${host}" = "i686-w64-mingw32" ; then
5501        LIBS="$LIBS -lws2_32 -lwinmm -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic resource.o"
5502		dunelegacydatadir='.'
5503elif test "${host}" = "x86_64-w64-mingw32" ; then
5504        LIBS="$LIBS -lws2_32 -lwinmm -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic resource.o"
5505		dunelegacydatadir='.'
5506fi
5507
5508ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
5509
5510cat >confcache <<\_ACEOF
5511# This file is a shell script that caches the results of configure
5512# tests run on this system so they can be shared between configure
5513# scripts and configure runs, see configure's option --config-cache.
5514# It is not useful on other systems.  If it contains results you don't
5515# want to keep, you may remove or edit it.
5516#
5517# config.status only pays attention to the cache file if you give it
5518# the --recheck option to rerun configure.
5519#
5520# `ac_cv_env_foo' variables (set or unset) will be overridden when
5521# loading this file, other *unset* `ac_cv_foo' will be assigned the
5522# following values.
5523
5524_ACEOF
5525
5526# The following way of writing the cache mishandles newlines in values,
5527# but we know of no workaround that is simple, portable, and efficient.
5528# So, we kill variables containing newlines.
5529# Ultrix sh set writes to stderr and can't be redirected directly,
5530# and sets the high bit in the cache file unless we assign to the vars.
5531(
5532  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5533    eval ac_val=\$$ac_var
5534    case $ac_val in #(
5535    *${as_nl}*)
5536      case $ac_var in #(
5537      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5539      esac
5540      case $ac_var in #(
5541      _ | IFS | as_nl) ;; #(
5542      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5543      *) { eval $ac_var=; unset $ac_var;} ;;
5544      esac ;;
5545    esac
5546  done
5547
5548  (set) 2>&1 |
5549    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5550    *${as_nl}ac_space=\ *)
5551      # `set' does not quote correctly, so add quotes: double-quote
5552      # substitution turns \\\\ into \\, and sed turns \\ into \.
5553      sed -n \
5554	"s/'/'\\\\''/g;
5555	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5556      ;; #(
5557    *)
5558      # `set' quotes correctly as required by POSIX, so do not add quotes.
5559      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5560      ;;
5561    esac |
5562    sort
5563) |
5564  sed '
5565     /^ac_cv_env_/b end
5566     t clear
5567     :clear
5568     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5569     t end
5570     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5571     :end' >>confcache
5572if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5573  if test -w "$cache_file"; then
5574    if test "x$cache_file" != "x/dev/null"; then
5575      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5576$as_echo "$as_me: updating cache $cache_file" >&6;}
5577      if test ! -f "$cache_file" || test -h "$cache_file"; then
5578	cat confcache >"$cache_file"
5579      else
5580        case $cache_file in #(
5581        */* | ?:*)
5582	  mv -f confcache "$cache_file"$$ &&
5583	  mv -f "$cache_file"$$ "$cache_file" ;; #(
5584        *)
5585	  mv -f confcache "$cache_file" ;;
5586	esac
5587      fi
5588    fi
5589  else
5590    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5591$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5592  fi
5593fi
5594rm -f confcache
5595
5596test "x$prefix" = xNONE && prefix=$ac_default_prefix
5597# Let make expand exec_prefix.
5598test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5599
5600# Transform confdefs.h into DEFS.
5601# Protect against shell expansion while executing Makefile rules.
5602# Protect against Makefile macro expansion.
5603#
5604# If the first sed substitution is executed (which looks for macros that
5605# take arguments), then branch to the quote section.  Otherwise,
5606# look for a macro that doesn't take arguments.
5607ac_script='
5608:mline
5609/\\$/{
5610 N
5611 s,\\\n,,
5612 b mline
5613}
5614t clear
5615:clear
5616s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
5617t quote
5618s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
5619t quote
5620b any
5621:quote
5622s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5623s/\[/\\&/g
5624s/\]/\\&/g
5625s/\$/$$/g
5626H
5627:any
5628${
5629	g
5630	s/^\n//
5631	s/\n/ /g
5632	p
5633}
5634'
5635DEFS=`sed -n "$ac_script" confdefs.h`
5636
5637
5638ac_libobjs=
5639ac_ltlibobjs=
5640U=
5641for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5642  # 1. Remove the extension, and $U if already installed.
5643  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5644  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5645  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5646  #    will be set to the directory where LIBOBJS objects are built.
5647  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5648  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5649done
5650LIBOBJS=$ac_libobjs
5651
5652LTLIBOBJS=$ac_ltlibobjs
5653
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5656$as_echo_n "checking that generated files are newer than configure... " >&6; }
5657   if test -n "$am_sleep_pid"; then
5658     # Hide warnings about reused PIDs.
5659     wait $am_sleep_pid 2>/dev/null
5660   fi
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5662$as_echo "done" >&6; }
5663if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5664  as_fn_error $? "conditional \"AMDEP\" was never defined.
5665Usually this means the macro was only invoked conditionally." "$LINENO" 5
5666fi
5667if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5668  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5669Usually this means the macro was only invoked conditionally." "$LINENO" 5
5670fi
5671 if test -n "$EXEEXT"; then
5672  am__EXEEXT_TRUE=
5673  am__EXEEXT_FALSE='#'
5674else
5675  am__EXEEXT_TRUE='#'
5676  am__EXEEXT_FALSE=
5677fi
5678
5679if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5680  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5681Usually this means the macro was only invoked conditionally." "$LINENO" 5
5682fi
5683
5684: "${CONFIG_STATUS=./config.status}"
5685ac_write_fail=0
5686ac_clean_files_save=$ac_clean_files
5687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5689$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5690as_write_fail=0
5691cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5692#! $SHELL
5693# Generated by $as_me.
5694# Run this file to recreate the current configuration.
5695# Compiler output produced by configure, useful for debugging
5696# configure, is in config.log if it exists.
5697
5698debug=false
5699ac_cs_recheck=false
5700ac_cs_silent=false
5701
5702SHELL=\${CONFIG_SHELL-$SHELL}
5703export SHELL
5704_ASEOF
5705cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5706## -------------------- ##
5707## M4sh Initialization. ##
5708## -------------------- ##
5709
5710# Be more Bourne compatible
5711DUALCASE=1; export DUALCASE # for MKS sh
5712if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5713  emulate sh
5714  NULLCMD=:
5715  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5716  # is contrary to our usage.  Disable this feature.
5717  alias -g '${1+"$@"}'='"$@"'
5718  setopt NO_GLOB_SUBST
5719else
5720  case `(set -o) 2>/dev/null` in #(
5721  *posix*) :
5722    set -o posix ;; #(
5723  *) :
5724     ;;
5725esac
5726fi
5727
5728
5729as_nl='
5730'
5731export as_nl
5732# Printing a long string crashes Solaris 7 /usr/bin/printf.
5733as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5736# Prefer a ksh shell builtin over an external printf program on Solaris,
5737# but without wasting forks for bash or zsh.
5738if test -z "$BASH_VERSION$ZSH_VERSION" \
5739    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5740  as_echo='print -r --'
5741  as_echo_n='print -rn --'
5742elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5743  as_echo='printf %s\n'
5744  as_echo_n='printf %s'
5745else
5746  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5747    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5748    as_echo_n='/usr/ucb/echo -n'
5749  else
5750    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5751    as_echo_n_body='eval
5752      arg=$1;
5753      case $arg in #(
5754      *"$as_nl"*)
5755	expr "X$arg" : "X\\(.*\\)$as_nl";
5756	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5757      esac;
5758      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5759    '
5760    export as_echo_n_body
5761    as_echo_n='sh -c $as_echo_n_body as_echo'
5762  fi
5763  export as_echo_body
5764  as_echo='sh -c $as_echo_body as_echo'
5765fi
5766
5767# The user is always right.
5768if test "${PATH_SEPARATOR+set}" != set; then
5769  PATH_SEPARATOR=:
5770  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5771    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5772      PATH_SEPARATOR=';'
5773  }
5774fi
5775
5776
5777# IFS
5778# We need space, tab and new line, in precisely that order.  Quoting is
5779# there to prevent editors from complaining about space-tab.
5780# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5781# splitting by setting IFS to empty value.)
5782IFS=" ""	$as_nl"
5783
5784# Find who we are.  Look in the path if we contain no directory separator.
5785as_myself=
5786case $0 in #((
5787  *[\\/]* ) as_myself=$0 ;;
5788  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5794  done
5795IFS=$as_save_IFS
5796
5797     ;;
5798esac
5799# We did not find ourselves, most probably we were run as `sh COMMAND'
5800# in which case we are not to be found in the path.
5801if test "x$as_myself" = x; then
5802  as_myself=$0
5803fi
5804if test ! -f "$as_myself"; then
5805  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5806  exit 1
5807fi
5808
5809# Unset variables that we do not need and which cause bugs (e.g. in
5810# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5811# suppresses any "Segmentation fault" message there.  '((' could
5812# trigger a bug in pdksh 5.2.14.
5813for as_var in BASH_ENV ENV MAIL MAILPATH
5814do eval test x\${$as_var+set} = xset \
5815  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5816done
5817PS1='$ '
5818PS2='> '
5819PS4='+ '
5820
5821# NLS nuisances.
5822LC_ALL=C
5823export LC_ALL
5824LANGUAGE=C
5825export LANGUAGE
5826
5827# CDPATH.
5828(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5829
5830
5831# as_fn_error STATUS ERROR [LINENO LOG_FD]
5832# ----------------------------------------
5833# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5834# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5835# script with STATUS, using 1 if that was 0.
5836as_fn_error ()
5837{
5838  as_status=$1; test $as_status -eq 0 && as_status=1
5839  if test "$4"; then
5840    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5841    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5842  fi
5843  $as_echo "$as_me: error: $2" >&2
5844  as_fn_exit $as_status
5845} # as_fn_error
5846
5847
5848# as_fn_set_status STATUS
5849# -----------------------
5850# Set $? to STATUS, without forking.
5851as_fn_set_status ()
5852{
5853  return $1
5854} # as_fn_set_status
5855
5856# as_fn_exit STATUS
5857# -----------------
5858# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5859as_fn_exit ()
5860{
5861  set +e
5862  as_fn_set_status $1
5863  exit $1
5864} # as_fn_exit
5865
5866# as_fn_unset VAR
5867# ---------------
5868# Portably unset VAR.
5869as_fn_unset ()
5870{
5871  { eval $1=; unset $1;}
5872}
5873as_unset=as_fn_unset
5874# as_fn_append VAR VALUE
5875# ----------------------
5876# Append the text in VALUE to the end of the definition contained in VAR. Take
5877# advantage of any shell optimizations that allow amortized linear growth over
5878# repeated appends, instead of the typical quadratic growth present in naive
5879# implementations.
5880if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5881  eval 'as_fn_append ()
5882  {
5883    eval $1+=\$2
5884  }'
5885else
5886  as_fn_append ()
5887  {
5888    eval $1=\$$1\$2
5889  }
5890fi # as_fn_append
5891
5892# as_fn_arith ARG...
5893# ------------------
5894# Perform arithmetic evaluation on the ARGs, and store the result in the
5895# global $as_val. Take advantage of shells that can avoid forks. The arguments
5896# must be portable across $(()) and expr.
5897if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5898  eval 'as_fn_arith ()
5899  {
5900    as_val=$(( $* ))
5901  }'
5902else
5903  as_fn_arith ()
5904  {
5905    as_val=`expr "$@" || test $? -eq 1`
5906  }
5907fi # as_fn_arith
5908
5909
5910if expr a : '\(a\)' >/dev/null 2>&1 &&
5911   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5912  as_expr=expr
5913else
5914  as_expr=false
5915fi
5916
5917if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5918  as_basename=basename
5919else
5920  as_basename=false
5921fi
5922
5923if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5924  as_dirname=dirname
5925else
5926  as_dirname=false
5927fi
5928
5929as_me=`$as_basename -- "$0" ||
5930$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5931	 X"$0" : 'X\(//\)$' \| \
5932	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5933$as_echo X/"$0" |
5934    sed '/^.*\/\([^/][^/]*\)\/*$/{
5935	    s//\1/
5936	    q
5937	  }
5938	  /^X\/\(\/\/\)$/{
5939	    s//\1/
5940	    q
5941	  }
5942	  /^X\/\(\/\).*/{
5943	    s//\1/
5944	    q
5945	  }
5946	  s/.*/./; q'`
5947
5948# Avoid depending upon Character Ranges.
5949as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5950as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5951as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5952as_cr_digits='0123456789'
5953as_cr_alnum=$as_cr_Letters$as_cr_digits
5954
5955ECHO_C= ECHO_N= ECHO_T=
5956case `echo -n x` in #(((((
5957-n*)
5958  case `echo 'xy\c'` in
5959  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5960  xy)  ECHO_C='\c';;
5961  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5962       ECHO_T='	';;
5963  esac;;
5964*)
5965  ECHO_N='-n';;
5966esac
5967
5968rm -f conf$$ conf$$.exe conf$$.file
5969if test -d conf$$.dir; then
5970  rm -f conf$$.dir/conf$$.file
5971else
5972  rm -f conf$$.dir
5973  mkdir conf$$.dir 2>/dev/null
5974fi
5975if (echo >conf$$.file) 2>/dev/null; then
5976  if ln -s conf$$.file conf$$ 2>/dev/null; then
5977    as_ln_s='ln -s'
5978    # ... but there are two gotchas:
5979    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5980    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5981    # In both cases, we have to default to `cp -pR'.
5982    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5983      as_ln_s='cp -pR'
5984  elif ln conf$$.file conf$$ 2>/dev/null; then
5985    as_ln_s=ln
5986  else
5987    as_ln_s='cp -pR'
5988  fi
5989else
5990  as_ln_s='cp -pR'
5991fi
5992rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5993rmdir conf$$.dir 2>/dev/null
5994
5995
5996# as_fn_mkdir_p
5997# -------------
5998# Create "$as_dir" as a directory, including parents if necessary.
5999as_fn_mkdir_p ()
6000{
6001
6002  case $as_dir in #(
6003  -*) as_dir=./$as_dir;;
6004  esac
6005  test -d "$as_dir" || eval $as_mkdir_p || {
6006    as_dirs=
6007    while :; do
6008      case $as_dir in #(
6009      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6010      *) as_qdir=$as_dir;;
6011      esac
6012      as_dirs="'$as_qdir' $as_dirs"
6013      as_dir=`$as_dirname -- "$as_dir" ||
6014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6015	 X"$as_dir" : 'X\(//\)[^/]' \| \
6016	 X"$as_dir" : 'X\(//\)$' \| \
6017	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6018$as_echo X"$as_dir" |
6019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6020	    s//\1/
6021	    q
6022	  }
6023	  /^X\(\/\/\)[^/].*/{
6024	    s//\1/
6025	    q
6026	  }
6027	  /^X\(\/\/\)$/{
6028	    s//\1/
6029	    q
6030	  }
6031	  /^X\(\/\).*/{
6032	    s//\1/
6033	    q
6034	  }
6035	  s/.*/./; q'`
6036      test -d "$as_dir" && break
6037    done
6038    test -z "$as_dirs" || eval "mkdir $as_dirs"
6039  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6040
6041
6042} # as_fn_mkdir_p
6043if mkdir -p . 2>/dev/null; then
6044  as_mkdir_p='mkdir -p "$as_dir"'
6045else
6046  test -d ./-p && rmdir ./-p
6047  as_mkdir_p=false
6048fi
6049
6050
6051# as_fn_executable_p FILE
6052# -----------------------
6053# Test if FILE is an executable regular file.
6054as_fn_executable_p ()
6055{
6056  test -f "$1" && test -x "$1"
6057} # as_fn_executable_p
6058as_test_x='test -x'
6059as_executable_p=as_fn_executable_p
6060
6061# Sed expression to map a string onto a valid CPP name.
6062as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6063
6064# Sed expression to map a string onto a valid variable name.
6065as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6066
6067
6068exec 6>&1
6069## ----------------------------------- ##
6070## Main body of $CONFIG_STATUS script. ##
6071## ----------------------------------- ##
6072_ASEOF
6073test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6074
6075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6076# Save the log message, to keep $0 and so on meaningful, and to
6077# report actual input values of CONFIG_FILES etc. instead of their
6078# values after options handling.
6079ac_log="
6080This file was extended by dunelegacy $as_me 0.96.4, which was
6081generated by GNU Autoconf 2.69.  Invocation command line was
6082
6083  CONFIG_FILES    = $CONFIG_FILES
6084  CONFIG_HEADERS  = $CONFIG_HEADERS
6085  CONFIG_LINKS    = $CONFIG_LINKS
6086  CONFIG_COMMANDS = $CONFIG_COMMANDS
6087  $ $0 $@
6088
6089on `(hostname || uname -n) 2>/dev/null | sed 1q`
6090"
6091
6092_ACEOF
6093
6094case $ac_config_files in *"
6095"*) set x $ac_config_files; shift; ac_config_files=$*;;
6096esac
6097
6098
6099
6100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6101# Files that config.status was made for.
6102config_files="$ac_config_files"
6103config_commands="$ac_config_commands"
6104
6105_ACEOF
6106
6107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6108ac_cs_usage="\
6109\`$as_me' instantiates files and other configuration actions
6110from templates according to the current configuration.  Unless the files
6111and actions are specified as TAGs, all are instantiated by default.
6112
6113Usage: $0 [OPTION]... [TAG]...
6114
6115  -h, --help       print this help, then exit
6116  -V, --version    print version number and configuration settings, then exit
6117      --config     print configuration, then exit
6118  -q, --quiet, --silent
6119                   do not print progress messages
6120  -d, --debug      don't remove temporary files
6121      --recheck    update $as_me by reconfiguring in the same conditions
6122      --file=FILE[:TEMPLATE]
6123                   instantiate the configuration file FILE
6124
6125Configuration files:
6126$config_files
6127
6128Configuration commands:
6129$config_commands
6130
6131Report bugs to <http://dunelegacy.sourceforge.net>."
6132
6133_ACEOF
6134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6135ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6136ac_cs_version="\\
6137dunelegacy config.status 0.96.4
6138configured by $0, generated by GNU Autoconf 2.69,
6139  with options \\"\$ac_cs_config\\"
6140
6141Copyright (C) 2012 Free Software Foundation, Inc.
6142This config.status script is free software; the Free Software Foundation
6143gives unlimited permission to copy, distribute and modify it."
6144
6145ac_pwd='$ac_pwd'
6146srcdir='$srcdir'
6147INSTALL='$INSTALL'
6148MKDIR_P='$MKDIR_P'
6149AWK='$AWK'
6150test -n "\$AWK" || AWK=awk
6151_ACEOF
6152
6153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6154# The default lists apply if the user does not specify any file.
6155ac_need_defaults=:
6156while test $# != 0
6157do
6158  case $1 in
6159  --*=?*)
6160    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6161    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6162    ac_shift=:
6163    ;;
6164  --*=)
6165    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6166    ac_optarg=
6167    ac_shift=:
6168    ;;
6169  *)
6170    ac_option=$1
6171    ac_optarg=$2
6172    ac_shift=shift
6173    ;;
6174  esac
6175
6176  case $ac_option in
6177  # Handling of the options.
6178  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6179    ac_cs_recheck=: ;;
6180  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6181    $as_echo "$ac_cs_version"; exit ;;
6182  --config | --confi | --conf | --con | --co | --c )
6183    $as_echo "$ac_cs_config"; exit ;;
6184  --debug | --debu | --deb | --de | --d | -d )
6185    debug=: ;;
6186  --file | --fil | --fi | --f )
6187    $ac_shift
6188    case $ac_optarg in
6189    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6190    '') as_fn_error $? "missing file argument" ;;
6191    esac
6192    as_fn_append CONFIG_FILES " '$ac_optarg'"
6193    ac_need_defaults=false;;
6194  --he | --h |  --help | --hel | -h )
6195    $as_echo "$ac_cs_usage"; exit ;;
6196  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6197  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6198    ac_cs_silent=: ;;
6199
6200  # This is an error.
6201  -*) as_fn_error $? "unrecognized option: \`$1'
6202Try \`$0 --help' for more information." ;;
6203
6204  *) as_fn_append ac_config_targets " $1"
6205     ac_need_defaults=false ;;
6206
6207  esac
6208  shift
6209done
6210
6211ac_configure_extra_args=
6212
6213if $ac_cs_silent; then
6214  exec 6>/dev/null
6215  ac_configure_extra_args="$ac_configure_extra_args --silent"
6216fi
6217
6218_ACEOF
6219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6220if \$ac_cs_recheck; then
6221  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6222  shift
6223  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6224  CONFIG_SHELL='$SHELL'
6225  export CONFIG_SHELL
6226  exec "\$@"
6227fi
6228
6229_ACEOF
6230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6231exec 5>>config.log
6232{
6233  echo
6234  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6235## Running $as_me. ##
6236_ASBOX
6237  $as_echo "$ac_log"
6238} >&5
6239
6240_ACEOF
6241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6242#
6243# INIT-COMMANDS
6244#
6245AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6246
6247_ACEOF
6248
6249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6250
6251# Handling of arguments.
6252for ac_config_target in $ac_config_targets
6253do
6254  case $ac_config_target in
6255    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6256    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6257    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6258    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
6259
6260  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6261  esac
6262done
6263
6264
6265# If the user did not use the arguments to specify the items to instantiate,
6266# then the envvar interface is used.  Set only those that are not.
6267# We use the long form for the default assignment because of an extremely
6268# bizarre bug on SunOS 4.1.3.
6269if $ac_need_defaults; then
6270  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6271  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6272fi
6273
6274# Have a temporary directory for convenience.  Make it in the build tree
6275# simply because there is no reason against having it here, and in addition,
6276# creating and moving files from /tmp can sometimes cause problems.
6277# Hook for its removal unless debugging.
6278# Note that there is a small window in which the directory will not be cleaned:
6279# after its creation but before its name has been assigned to `$tmp'.
6280$debug ||
6281{
6282  tmp= ac_tmp=
6283  trap 'exit_status=$?
6284  : "${ac_tmp:=$tmp}"
6285  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6286' 0
6287  trap 'as_fn_exit 1' 1 2 13 15
6288}
6289# Create a (secure) tmp directory for tmp files.
6290
6291{
6292  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6293  test -d "$tmp"
6294}  ||
6295{
6296  tmp=./conf$$-$RANDOM
6297  (umask 077 && mkdir "$tmp")
6298} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6299ac_tmp=$tmp
6300
6301# Set up the scripts for CONFIG_FILES section.
6302# No need to generate them if there are no CONFIG_FILES.
6303# This happens for instance with `./config.status config.h'.
6304if test -n "$CONFIG_FILES"; then
6305
6306
6307ac_cr=`echo X | tr X '\015'`
6308# On cygwin, bash can eat \r inside `` if the user requested igncr.
6309# But we know of no other shell where ac_cr would be empty at this
6310# point, so we can use a bashism as a fallback.
6311if test "x$ac_cr" = x; then
6312  eval ac_cr=\$\'\\r\'
6313fi
6314ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6315if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6316  ac_cs_awk_cr='\\r'
6317else
6318  ac_cs_awk_cr=$ac_cr
6319fi
6320
6321echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6322_ACEOF
6323
6324
6325{
6326  echo "cat >conf$$subs.awk <<_ACEOF" &&
6327  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6328  echo "_ACEOF"
6329} >conf$$subs.sh ||
6330  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6331ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6332ac_delim='%!_!# '
6333for ac_last_try in false false false false false :; do
6334  . ./conf$$subs.sh ||
6335    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6336
6337  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6338  if test $ac_delim_n = $ac_delim_num; then
6339    break
6340  elif $ac_last_try; then
6341    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6342  else
6343    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6344  fi
6345done
6346rm -f conf$$subs.sh
6347
6348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6349cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6350_ACEOF
6351sed -n '
6352h
6353s/^/S["/; s/!.*/"]=/
6354p
6355g
6356s/^[^!]*!//
6357:repl
6358t repl
6359s/'"$ac_delim"'$//
6360t delim
6361:nl
6362h
6363s/\(.\{148\}\)..*/\1/
6364t more1
6365s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6366p
6367n
6368b repl
6369:more1
6370s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6371p
6372g
6373s/.\{148\}//
6374t nl
6375:delim
6376h
6377s/\(.\{148\}\)..*/\1/
6378t more2
6379s/["\\]/\\&/g; s/^/"/; s/$/"/
6380p
6381b
6382:more2
6383s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6384p
6385g
6386s/.\{148\}//
6387t delim
6388' <conf$$subs.awk | sed '
6389/^[^""]/{
6390  N
6391  s/\n//
6392}
6393' >>$CONFIG_STATUS || ac_write_fail=1
6394rm -f conf$$subs.awk
6395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6396_ACAWK
6397cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6398  for (key in S) S_is_set[key] = 1
6399  FS = ""
6400
6401}
6402{
6403  line = $ 0
6404  nfields = split(line, field, "@")
6405  substed = 0
6406  len = length(field[1])
6407  for (i = 2; i < nfields; i++) {
6408    key = field[i]
6409    keylen = length(key)
6410    if (S_is_set[key]) {
6411      value = S[key]
6412      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6413      len += length(value) + length(field[++i])
6414      substed = 1
6415    } else
6416      len += 1 + keylen
6417  }
6418
6419  print line
6420}
6421
6422_ACAWK
6423_ACEOF
6424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6425if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6426  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6427else
6428  cat
6429fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6430  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6431_ACEOF
6432
6433# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6434# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6435# trailing colons and then remove the whole line if VPATH becomes empty
6436# (actually we leave an empty line to preserve line numbers).
6437if test "x$srcdir" = x.; then
6438  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
6439h
6440s///
6441s/^/:/
6442s/[	 ]*$/:/
6443s/:\$(srcdir):/:/g
6444s/:\${srcdir}:/:/g
6445s/:@srcdir@:/:/g
6446s/^:*//
6447s/:*$//
6448x
6449s/\(=[	 ]*\).*/\1/
6450G
6451s/\n//
6452s/^[^=]*=[	 ]*$//
6453}'
6454fi
6455
6456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6457fi # test -n "$CONFIG_FILES"
6458
6459
6460eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
6461shift
6462for ac_tag
6463do
6464  case $ac_tag in
6465  :[FHLC]) ac_mode=$ac_tag; continue;;
6466  esac
6467  case $ac_mode$ac_tag in
6468  :[FHL]*:*);;
6469  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6470  :[FH]-) ac_tag=-:-;;
6471  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6472  esac
6473  ac_save_IFS=$IFS
6474  IFS=:
6475  set x $ac_tag
6476  IFS=$ac_save_IFS
6477  shift
6478  ac_file=$1
6479  shift
6480
6481  case $ac_mode in
6482  :L) ac_source=$1;;
6483  :[FH])
6484    ac_file_inputs=
6485    for ac_f
6486    do
6487      case $ac_f in
6488      -) ac_f="$ac_tmp/stdin";;
6489      *) # Look for the file first in the build tree, then in the source tree
6490	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6491	 # because $ac_f cannot contain `:'.
6492	 test -f "$ac_f" ||
6493	   case $ac_f in
6494	   [\\/$]*) false;;
6495	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6496	   esac ||
6497	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6498      esac
6499      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6500      as_fn_append ac_file_inputs " '$ac_f'"
6501    done
6502
6503    # Let's still pretend it is `configure' which instantiates (i.e., don't
6504    # use $as_me), people would be surprised to read:
6505    #    /* config.h.  Generated by config.status.  */
6506    configure_input='Generated from '`
6507	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6508	`' by configure.'
6509    if test x"$ac_file" != x-; then
6510      configure_input="$ac_file.  $configure_input"
6511      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6512$as_echo "$as_me: creating $ac_file" >&6;}
6513    fi
6514    # Neutralize special characters interpreted by sed in replacement strings.
6515    case $configure_input in #(
6516    *\&* | *\|* | *\\* )
6517       ac_sed_conf_input=`$as_echo "$configure_input" |
6518       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6519    *) ac_sed_conf_input=$configure_input;;
6520    esac
6521
6522    case $ac_tag in
6523    *:-:* | *:-) cat >"$ac_tmp/stdin" \
6524      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6525    esac
6526    ;;
6527  esac
6528
6529  ac_dir=`$as_dirname -- "$ac_file" ||
6530$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6531	 X"$ac_file" : 'X\(//\)[^/]' \| \
6532	 X"$ac_file" : 'X\(//\)$' \| \
6533	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6534$as_echo X"$ac_file" |
6535    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6536	    s//\1/
6537	    q
6538	  }
6539	  /^X\(\/\/\)[^/].*/{
6540	    s//\1/
6541	    q
6542	  }
6543	  /^X\(\/\/\)$/{
6544	    s//\1/
6545	    q
6546	  }
6547	  /^X\(\/\).*/{
6548	    s//\1/
6549	    q
6550	  }
6551	  s/.*/./; q'`
6552  as_dir="$ac_dir"; as_fn_mkdir_p
6553  ac_builddir=.
6554
6555case "$ac_dir" in
6556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6557*)
6558  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6559  # A ".." for each directory in $ac_dir_suffix.
6560  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6561  case $ac_top_builddir_sub in
6562  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6563  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6564  esac ;;
6565esac
6566ac_abs_top_builddir=$ac_pwd
6567ac_abs_builddir=$ac_pwd$ac_dir_suffix
6568# for backward compatibility:
6569ac_top_builddir=$ac_top_build_prefix
6570
6571case $srcdir in
6572  .)  # We are building in place.
6573    ac_srcdir=.
6574    ac_top_srcdir=$ac_top_builddir_sub
6575    ac_abs_top_srcdir=$ac_pwd ;;
6576  [\\/]* | ?:[\\/]* )  # Absolute name.
6577    ac_srcdir=$srcdir$ac_dir_suffix;
6578    ac_top_srcdir=$srcdir
6579    ac_abs_top_srcdir=$srcdir ;;
6580  *) # Relative name.
6581    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6582    ac_top_srcdir=$ac_top_build_prefix$srcdir
6583    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6584esac
6585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6586
6587
6588  case $ac_mode in
6589  :F)
6590  #
6591  # CONFIG_FILE
6592  #
6593
6594  case $INSTALL in
6595  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6596  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6597  esac
6598  ac_MKDIR_P=$MKDIR_P
6599  case $MKDIR_P in
6600  [\\/$]* | ?:[\\/]* ) ;;
6601  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6602  esac
6603_ACEOF
6604
6605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6606# If the template does not know about datarootdir, expand it.
6607# FIXME: This hack should be removed a few years after 2.60.
6608ac_datarootdir_hack=; ac_datarootdir_seen=
6609ac_sed_dataroot='
6610/datarootdir/ {
6611  p
6612  q
6613}
6614/@datadir@/p
6615/@docdir@/p
6616/@infodir@/p
6617/@localedir@/p
6618/@mandir@/p'
6619case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6620*datarootdir*) ac_datarootdir_seen=yes;;
6621*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6623$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6624_ACEOF
6625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626  ac_datarootdir_hack='
6627  s&@datadir@&$datadir&g
6628  s&@docdir@&$docdir&g
6629  s&@infodir@&$infodir&g
6630  s&@localedir@&$localedir&g
6631  s&@mandir@&$mandir&g
6632  s&\\\${datarootdir}&$datarootdir&g' ;;
6633esac
6634_ACEOF
6635
6636# Neutralize VPATH when `$srcdir' = `.'.
6637# Shell code in configure.ac might set extrasub.
6638# FIXME: do we really want to maintain this feature?
6639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640ac_sed_extra="$ac_vpsub
6641$extrasub
6642_ACEOF
6643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6644:t
6645/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6646s|@configure_input@|$ac_sed_conf_input|;t t
6647s&@top_builddir@&$ac_top_builddir_sub&;t t
6648s&@top_build_prefix@&$ac_top_build_prefix&;t t
6649s&@srcdir@&$ac_srcdir&;t t
6650s&@abs_srcdir@&$ac_abs_srcdir&;t t
6651s&@top_srcdir@&$ac_top_srcdir&;t t
6652s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6653s&@builddir@&$ac_builddir&;t t
6654s&@abs_builddir@&$ac_abs_builddir&;t t
6655s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6656s&@INSTALL@&$ac_INSTALL&;t t
6657s&@MKDIR_P@&$ac_MKDIR_P&;t t
6658$ac_datarootdir_hack
6659"
6660eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6661  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6662
6663test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6664  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6665  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
6666      "$ac_tmp/out"`; test -z "$ac_out"; } &&
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6668which seems to be undefined.  Please make sure it is defined" >&5
6669$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6670which seems to be undefined.  Please make sure it is defined" >&2;}
6671
6672  rm -f "$ac_tmp/stdin"
6673  case $ac_file in
6674  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6675  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6676  esac \
6677  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6678 ;;
6679
6680
6681  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6682$as_echo "$as_me: executing $ac_file commands" >&6;}
6683 ;;
6684  esac
6685
6686
6687  case $ac_file$ac_mode in
6688    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6689  # Older Autoconf quotes --file arguments for eval, but not when files
6690  # are listed without --file.  Let's play safe and only enable the eval
6691  # if we detect the quoting.
6692  case $CONFIG_FILES in
6693  *\'*) eval set x "$CONFIG_FILES" ;;
6694  *)   set x $CONFIG_FILES ;;
6695  esac
6696  shift
6697  for mf
6698  do
6699    # Strip MF so we end up with the name of the file.
6700    mf=`echo "$mf" | sed -e 's/:.*$//'`
6701    # Check whether this is an Automake generated Makefile or not.
6702    # We used to match only the files named 'Makefile.in', but
6703    # some people rename them; so instead we look at the file content.
6704    # Grep'ing the first line is not enough: some people post-process
6705    # each Makefile.in and add a new line on top of each file to say so.
6706    # Grep'ing the whole file is not good either: AIX grep has a line
6707    # limit of 2048, but all sed's we know have understand at least 4000.
6708    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6709      dirpart=`$as_dirname -- "$mf" ||
6710$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6711	 X"$mf" : 'X\(//\)[^/]' \| \
6712	 X"$mf" : 'X\(//\)$' \| \
6713	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6714$as_echo X"$mf" |
6715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6716	    s//\1/
6717	    q
6718	  }
6719	  /^X\(\/\/\)[^/].*/{
6720	    s//\1/
6721	    q
6722	  }
6723	  /^X\(\/\/\)$/{
6724	    s//\1/
6725	    q
6726	  }
6727	  /^X\(\/\).*/{
6728	    s//\1/
6729	    q
6730	  }
6731	  s/.*/./; q'`
6732    else
6733      continue
6734    fi
6735    # Extract the definition of DEPDIR, am__include, and am__quote
6736    # from the Makefile without running 'make'.
6737    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6738    test -z "$DEPDIR" && continue
6739    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6740    test -z "$am__include" && continue
6741    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6742    # Find all dependency output files, they are included files with
6743    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6744    # simplest approach to changing $(DEPDIR) to its actual value in the
6745    # expansion.
6746    for file in `sed -n "
6747      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6748	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
6749      # Make sure the directory exists.
6750      test -f "$dirpart/$file" && continue
6751      fdir=`$as_dirname -- "$file" ||
6752$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6753	 X"$file" : 'X\(//\)[^/]' \| \
6754	 X"$file" : 'X\(//\)$' \| \
6755	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6756$as_echo X"$file" |
6757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6758	    s//\1/
6759	    q
6760	  }
6761	  /^X\(\/\/\)[^/].*/{
6762	    s//\1/
6763	    q
6764	  }
6765	  /^X\(\/\/\)$/{
6766	    s//\1/
6767	    q
6768	  }
6769	  /^X\(\/\).*/{
6770	    s//\1/
6771	    q
6772	  }
6773	  s/.*/./; q'`
6774      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6775      # echo "creating $dirpart/$file"
6776      echo '# dummy' > "$dirpart/$file"
6777    done
6778  done
6779}
6780 ;;
6781
6782  esac
6783done # for ac_tag
6784
6785
6786as_fn_exit 0
6787_ACEOF
6788ac_clean_files=$ac_clean_files_save
6789
6790test $ac_write_fail = 0 ||
6791  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6792
6793
6794# configure is writing to config.log, and then calls config.status.
6795# config.status does its own redirection, appending to config.log.
6796# Unfortunately, on DOS this fails, as config.log is still kept open
6797# by configure, so config.status won't be able to write to it; its
6798# output is simply discarded.  So we exec the FD to /dev/null,
6799# effectively closing config.log, so it can be properly (re)opened and
6800# appended to by config.status.  When coming back to configure, we
6801# need to make the FD available again.
6802if test "$no_create" != yes; then
6803  ac_cs_success=:
6804  ac_config_status_args=
6805  test "$silent" = yes &&
6806    ac_config_status_args="$ac_config_status_args --quiet"
6807  exec 5>/dev/null
6808  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6809  exec 5>>config.log
6810  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6811  # would make configure fail if this is the last instruction.
6812  $ac_cs_success || as_fn_exit 1
6813fi
6814if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6816$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6817fi
6818
6819