1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199  if (eval "$as_required") 2>/dev/null; then :
200  as_have_required=yes
201else
202  as_have_required=no
203fi
204  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  test -z "$as_dir" && as_dir=.
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir/$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  break 2
224fi
225fi
226	   done;;
227       esac
228  as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232  CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237      if test "x$CONFIG_SHELL" != x; then :
238  export CONFIG_SHELL
239             # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247  *v*x* | *x*v* ) as_opts=-vx ;;
248  *v* ) as_opts=-v ;;
249  *x* ) as_opts=-x ;;
250  * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
257fi
258
259    if test x$as_have_required = xno; then :
260  $as_echo "$0: This script requires a shell more modern than all"
261  $as_echo "$0: the shells that I found on your system."
262  if test x${ZSH_VERSION+set} = xset ; then
263    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265  else
266    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
270  fi
271  exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289  { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298  return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306  set +e
307  as_fn_set_status $1
308  exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317  case $as_dir in #(
318  -*) as_dir=./$as_dir;;
319  esac
320  test -d "$as_dir" || eval $as_mkdir_p || {
321    as_dirs=
322    while :; do
323      case $as_dir in #(
324      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325      *) as_qdir=$as_dir;;
326      esac
327      as_dirs="'$as_qdir' $as_dirs"
328      as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330	 X"$as_dir" : 'X\(//\)[^/]' \| \
331	 X"$as_dir" : 'X\(//\)$' \| \
332	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335	    s//\1/
336	    q
337	  }
338	  /^X\(\/\/\)[^/].*/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)$/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\).*/{
347	    s//\1/
348	    q
349	  }
350	  s/.*/./; q'`
351      test -d "$as_dir" && break
352    done
353    test -z "$as_dirs" || eval "mkdir $as_dirs"
354  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357} # as_fn_mkdir_p
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364  test -f "$1" && test -x "$1"
365} # as_fn_executable_p
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373  eval 'as_fn_append ()
374  {
375    eval $1+=\$2
376  }'
377else
378  as_fn_append ()
379  {
380    eval $1=\$$1\$2
381  }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390  eval 'as_fn_arith ()
391  {
392    as_val=$(( $* ))
393  }'
394else
395  as_fn_arith ()
396  {
397    as_val=`expr "$@" || test $? -eq 1`
398  }
399fi # as_fn_arith
400
401
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406# script with STATUS, using 1 if that was 0.
407as_fn_error ()
408{
409  as_status=$1; test $as_status -eq 0 && as_status=1
410  if test "$4"; then
411    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413  fi
414  $as_echo "$as_me: error: $2" >&2
415  as_fn_exit $as_status
416} # as_fn_error
417
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419   test "X`expr 00001 : '.*\(...\)'`" = X001; then
420  as_expr=expr
421else
422  as_expr=false
423fi
424
425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426  as_basename=basename
427else
428  as_basename=false
429fi
430
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432  as_dirname=dirname
433else
434  as_dirname=false
435fi
436
437as_me=`$as_basename -- "$0" ||
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439	 X"$0" : 'X\(//\)$' \| \
440	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442    sed '/^.*\/\([^/][^/]*\)\/*$/{
443	    s//\1/
444	    q
445	  }
446	  /^X\/\(\/\/\)$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\).*/{
451	    s//\1/
452	    q
453	  }
454	  s/.*/./; q'`
455
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464  as_lineno_1=$LINENO as_lineno_1a=$LINENO
465  as_lineno_2=$LINENO as_lineno_2a=$LINENO
466  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
469  sed -n '
470    p
471    /[$]LINENO/=
472  ' <$as_myself |
473    sed '
474      s/[$]LINENO.*/&-/
475      t lineno
476      b
477      :lineno
478      N
479      :loop
480      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481      t loop
482      s/-\n.*//
483    ' >$as_me.lineno &&
484  chmod +x "$as_me.lineno" ||
485    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488  # already done that, so ensure we don't try to do so again and fall
489  # in an infinite loop.  This has already happened in practice.
490  _as_can_reexec=no; export _as_can_reexec
491  # Don't try to exec as it changes $[0], causing all sort of problems
492  # (the dirname of $[0] is not the place where we might find the
493  # original and so on.  Autoconf is especially sensitive to this).
494  . "./$as_me.lineno"
495  # Exit status is that of the last command.
496  exit
497}
498
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502  case `echo 'xy\c'` in
503  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
504  xy)  ECHO_C='\c';;
505  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
506       ECHO_T='	';;
507  esac;;
508*)
509  ECHO_N='-n';;
510esac
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514  rm -f conf$$.dir/conf$$.file
515else
516  rm -f conf$$.dir
517  mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520  if ln -s conf$$.file conf$$ 2>/dev/null; then
521    as_ln_s='ln -s'
522    # ... but there are two gotchas:
523    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525    # In both cases, we have to default to `cp -pR'.
526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527      as_ln_s='cp -pR'
528  elif ln conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s=ln
530  else
531    as_ln_s='cp -pR'
532  fi
533else
534  as_ln_s='cp -pR'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540  as_mkdir_p='mkdir -p "$as_dir"'
541else
542  test -d ./-p && rmdir ./-p
543  as_mkdir_p=false
544fi
545
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
548
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
558
559# Name of the host.
560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564#
565# Initializations.
566#
567ac_default_prefix=/usr/local
568ac_clean_files=
569ac_config_libobj_dir=.
570LIBOBJS=
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
575
576# Identity of this package.
577PACKAGE_NAME=
578PACKAGE_TARNAME=
579PACKAGE_VERSION=
580PACKAGE_STRING=
581PACKAGE_BUGREPORT=
582PACKAGE_URL=
583
584ac_unique_file="loopwave.c"
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
587LIBUNWIND_LIBS
588LIBUNWIND_CFLAGS
589SDL_TTF_LIB
590XLIB
591GLES2LIB
592GLESLIB
593GLLIB
594OPENGL_TARGETS
595OPENGLES2_TARGETS
596OPENGLES1_TARGETS
597CPP
598XMKMF
599SDL2_CONFIG
600SDL_LIBS
601SDL_CFLAGS
602PKG_CONFIG_LIBDIR
603PKG_CONFIG_PATH
604PKG_CONFIG
605ISUNIX
606ISWINDOWS
607ISMACOSX
608MATHLIB
609EXE
610OSMESA_CONFIG
611OBJEXT
612EXEEXT
613ac_ct_CC
614CPPFLAGS
615LDFLAGS
616CFLAGS
617CC
618host_os
619host_vendor
620host_cpu
621host
622build_os
623build_vendor
624build_cpu
625build
626target_alias
627host_alias
628build_alias
629LIBS
630ECHO_T
631ECHO_N
632ECHO_C
633DEFS
634mandir
635localedir
636libdir
637psdir
638pdfdir
639dvidir
640htmldir
641infodir
642docdir
643oldincludedir
644includedir
645localstatedir
646sharedstatedir
647sysconfdir
648datadir
649datarootdir
650libexecdir
651sbindir
652bindir
653program_transform_name
654prefix
655exec_prefix
656PACKAGE_URL
657PACKAGE_BUGREPORT
658PACKAGE_STRING
659PACKAGE_VERSION
660PACKAGE_TARNAME
661PACKAGE_NAME
662PATH_SEPARATOR
663SHELL'
664ac_subst_files=''
665ac_user_opts='
666enable_option_checking
667with_sdl_prefix
668with_sdl_exec_prefix
669enable_sdltest
670with_x
671'
672      ac_precious_vars='build_alias
673host_alias
674target_alias
675CC
676CFLAGS
677LDFLAGS
678LIBS
679CPPFLAGS
680PKG_CONFIG
681PKG_CONFIG_PATH
682PKG_CONFIG_LIBDIR
683SDL_CFLAGS
684SDL_LIBS
685XMKMF
686CPP
687LIBUNWIND_CFLAGS
688LIBUNWIND_LIBS'
689
690
691# Initialize some variables set by options.
692ac_init_help=
693ac_init_version=false
694ac_unrecognized_opts=
695ac_unrecognized_sep=
696# The variables have the same names as the options, with
697# dashes changed to underlines.
698cache_file=/dev/null
699exec_prefix=NONE
700no_create=
701no_recursion=
702prefix=NONE
703program_prefix=NONE
704program_suffix=NONE
705program_transform_name=s,x,x,
706silent=
707site=
708srcdir=
709verbose=
710x_includes=NONE
711x_libraries=NONE
712
713# Installation directory options.
714# These are left unexpanded so users can "make install exec_prefix=/foo"
715# and all the variables that are supposed to be based on exec_prefix
716# by default will actually change.
717# Use braces instead of parens because sh, perl, etc. also accept them.
718# (The list follows the same order as the GNU Coding Standards.)
719bindir='${exec_prefix}/bin'
720sbindir='${exec_prefix}/sbin'
721libexecdir='${exec_prefix}/libexec'
722datarootdir='${prefix}/share'
723datadir='${datarootdir}'
724sysconfdir='${prefix}/etc'
725sharedstatedir='${prefix}/com'
726localstatedir='${prefix}/var'
727includedir='${prefix}/include'
728oldincludedir='/usr/include'
729docdir='${datarootdir}/doc/${PACKAGE}'
730infodir='${datarootdir}/info'
731htmldir='${docdir}'
732dvidir='${docdir}'
733pdfdir='${docdir}'
734psdir='${docdir}'
735libdir='${exec_prefix}/lib'
736localedir='${datarootdir}/locale'
737mandir='${datarootdir}/man'
738
739ac_prev=
740ac_dashdash=
741for ac_option
742do
743  # If the previous option needs an argument, assign it.
744  if test -n "$ac_prev"; then
745    eval $ac_prev=\$ac_option
746    ac_prev=
747    continue
748  fi
749
750  case $ac_option in
751  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
752  *=)   ac_optarg= ;;
753  *)    ac_optarg=yes ;;
754  esac
755
756  # Accept the important Cygnus configure options, so we can diagnose typos.
757
758  case $ac_dashdash$ac_option in
759  --)
760    ac_dashdash=yes ;;
761
762  -bindir | --bindir | --bindi | --bind | --bin | --bi)
763    ac_prev=bindir ;;
764  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
765    bindir=$ac_optarg ;;
766
767  -build | --build | --buil | --bui | --bu)
768    ac_prev=build_alias ;;
769  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
770    build_alias=$ac_optarg ;;
771
772  -cache-file | --cache-file | --cache-fil | --cache-fi \
773  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
774    ac_prev=cache_file ;;
775  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
776  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
777    cache_file=$ac_optarg ;;
778
779  --config-cache | -C)
780    cache_file=config.cache ;;
781
782  -datadir | --datadir | --datadi | --datad)
783    ac_prev=datadir ;;
784  -datadir=* | --datadir=* | --datadi=* | --datad=*)
785    datadir=$ac_optarg ;;
786
787  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
788  | --dataroo | --dataro | --datar)
789    ac_prev=datarootdir ;;
790  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
791  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
792    datarootdir=$ac_optarg ;;
793
794  -disable-* | --disable-*)
795    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
798      as_fn_error $? "invalid feature name: $ac_useropt"
799    ac_useropt_orig=$ac_useropt
800    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801    case $ac_user_opts in
802      *"
803"enable_$ac_useropt"
804"*) ;;
805      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
806	 ac_unrecognized_sep=', ';;
807    esac
808    eval enable_$ac_useropt=no ;;
809
810  -docdir | --docdir | --docdi | --doc | --do)
811    ac_prev=docdir ;;
812  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813    docdir=$ac_optarg ;;
814
815  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816    ac_prev=dvidir ;;
817  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818    dvidir=$ac_optarg ;;
819
820  -enable-* | --enable-*)
821    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822    # Reject names that are not valid shell variable names.
823    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824      as_fn_error $? "invalid feature name: $ac_useropt"
825    ac_useropt_orig=$ac_useropt
826    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827    case $ac_user_opts in
828      *"
829"enable_$ac_useropt"
830"*) ;;
831      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
832	 ac_unrecognized_sep=', ';;
833    esac
834    eval enable_$ac_useropt=\$ac_optarg ;;
835
836  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838  | --exec | --exe | --ex)
839    ac_prev=exec_prefix ;;
840  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842  | --exec=* | --exe=* | --ex=*)
843    exec_prefix=$ac_optarg ;;
844
845  -gas | --gas | --ga | --g)
846    # Obsolete; use --with-gas.
847    with_gas=yes ;;
848
849  -help | --help | --hel | --he | -h)
850    ac_init_help=long ;;
851  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852    ac_init_help=recursive ;;
853  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854    ac_init_help=short ;;
855
856  -host | --host | --hos | --ho)
857    ac_prev=host_alias ;;
858  -host=* | --host=* | --hos=* | --ho=*)
859    host_alias=$ac_optarg ;;
860
861  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862    ac_prev=htmldir ;;
863  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864  | --ht=*)
865    htmldir=$ac_optarg ;;
866
867  -includedir | --includedir | --includedi | --included | --include \
868  | --includ | --inclu | --incl | --inc)
869    ac_prev=includedir ;;
870  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871  | --includ=* | --inclu=* | --incl=* | --inc=*)
872    includedir=$ac_optarg ;;
873
874  -infodir | --infodir | --infodi | --infod | --info | --inf)
875    ac_prev=infodir ;;
876  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877    infodir=$ac_optarg ;;
878
879  -libdir | --libdir | --libdi | --libd)
880    ac_prev=libdir ;;
881  -libdir=* | --libdir=* | --libdi=* | --libd=*)
882    libdir=$ac_optarg ;;
883
884  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885  | --libexe | --libex | --libe)
886    ac_prev=libexecdir ;;
887  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888  | --libexe=* | --libex=* | --libe=*)
889    libexecdir=$ac_optarg ;;
890
891  -localedir | --localedir | --localedi | --localed | --locale)
892    ac_prev=localedir ;;
893  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894    localedir=$ac_optarg ;;
895
896  -localstatedir | --localstatedir | --localstatedi | --localstated \
897  | --localstate | --localstat | --localsta | --localst | --locals)
898    ac_prev=localstatedir ;;
899  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901    localstatedir=$ac_optarg ;;
902
903  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904    ac_prev=mandir ;;
905  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
906    mandir=$ac_optarg ;;
907
908  -nfp | --nfp | --nf)
909    # Obsolete; use --without-fp.
910    with_fp=no ;;
911
912  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913  | --no-cr | --no-c | -n)
914    no_create=yes ;;
915
916  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
918    no_recursion=yes ;;
919
920  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922  | --oldin | --oldi | --old | --ol | --o)
923    ac_prev=oldincludedir ;;
924  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927    oldincludedir=$ac_optarg ;;
928
929  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930    ac_prev=prefix ;;
931  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
932    prefix=$ac_optarg ;;
933
934  -program-prefix | --program-prefix | --program-prefi | --program-pref \
935  | --program-pre | --program-pr | --program-p)
936    ac_prev=program_prefix ;;
937  -program-prefix=* | --program-prefix=* | --program-prefi=* \
938  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939    program_prefix=$ac_optarg ;;
940
941  -program-suffix | --program-suffix | --program-suffi | --program-suff \
942  | --program-suf | --program-su | --program-s)
943    ac_prev=program_suffix ;;
944  -program-suffix=* | --program-suffix=* | --program-suffi=* \
945  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946    program_suffix=$ac_optarg ;;
947
948  -program-transform-name | --program-transform-name \
949  | --program-transform-nam | --program-transform-na \
950  | --program-transform-n | --program-transform- \
951  | --program-transform | --program-transfor \
952  | --program-transfo | --program-transf \
953  | --program-trans | --program-tran \
954  | --progr-tra | --program-tr | --program-t)
955    ac_prev=program_transform_name ;;
956  -program-transform-name=* | --program-transform-name=* \
957  | --program-transform-nam=* | --program-transform-na=* \
958  | --program-transform-n=* | --program-transform-=* \
959  | --program-transform=* | --program-transfor=* \
960  | --program-transfo=* | --program-transf=* \
961  | --program-trans=* | --program-tran=* \
962  | --progr-tra=* | --program-tr=* | --program-t=*)
963    program_transform_name=$ac_optarg ;;
964
965  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966    ac_prev=pdfdir ;;
967  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
968    pdfdir=$ac_optarg ;;
969
970  -psdir | --psdir | --psdi | --psd | --ps)
971    ac_prev=psdir ;;
972  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
973    psdir=$ac_optarg ;;
974
975  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976  | -silent | --silent | --silen | --sile | --sil)
977    silent=yes ;;
978
979  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
980    ac_prev=sbindir ;;
981  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
982  | --sbi=* | --sb=*)
983    sbindir=$ac_optarg ;;
984
985  -sharedstatedir | --sharedstatedir | --sharedstatedi \
986  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987  | --sharedst | --shareds | --shared | --share | --shar \
988  | --sha | --sh)
989    ac_prev=sharedstatedir ;;
990  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
993  | --sha=* | --sh=*)
994    sharedstatedir=$ac_optarg ;;
995
996  -site | --site | --sit)
997    ac_prev=site ;;
998  -site=* | --site=* | --sit=*)
999    site=$ac_optarg ;;
1000
1001  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1002    ac_prev=srcdir ;;
1003  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004    srcdir=$ac_optarg ;;
1005
1006  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007  | --syscon | --sysco | --sysc | --sys | --sy)
1008    ac_prev=sysconfdir ;;
1009  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011    sysconfdir=$ac_optarg ;;
1012
1013  -target | --target | --targe | --targ | --tar | --ta | --t)
1014    ac_prev=target_alias ;;
1015  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016    target_alias=$ac_optarg ;;
1017
1018  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1019    verbose=yes ;;
1020
1021  -version | --version | --versio | --versi | --vers | -V)
1022    ac_init_version=: ;;
1023
1024  -with-* | --with-*)
1025    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028      as_fn_error $? "invalid package name: $ac_useropt"
1029    ac_useropt_orig=$ac_useropt
1030    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031    case $ac_user_opts in
1032      *"
1033"with_$ac_useropt"
1034"*) ;;
1035      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1036	 ac_unrecognized_sep=', ';;
1037    esac
1038    eval with_$ac_useropt=\$ac_optarg ;;
1039
1040  -without-* | --without-*)
1041    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1042    # Reject names that are not valid shell variable names.
1043    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044      as_fn_error $? "invalid package name: $ac_useropt"
1045    ac_useropt_orig=$ac_useropt
1046    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047    case $ac_user_opts in
1048      *"
1049"with_$ac_useropt"
1050"*) ;;
1051      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1052	 ac_unrecognized_sep=', ';;
1053    esac
1054    eval with_$ac_useropt=no ;;
1055
1056  --x)
1057    # Obsolete; use --with-x.
1058    with_x=yes ;;
1059
1060  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061  | --x-incl | --x-inc | --x-in | --x-i)
1062    ac_prev=x_includes ;;
1063  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065    x_includes=$ac_optarg ;;
1066
1067  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069    ac_prev=x_libraries ;;
1070  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072    x_libraries=$ac_optarg ;;
1073
1074  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1075Try \`$0 --help' for more information"
1076    ;;
1077
1078  *=*)
1079    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080    # Reject names that are not valid shell variable names.
1081    case $ac_envvar in #(
1082      '' | [0-9]* | *[!_$as_cr_alnum]* )
1083      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1084    esac
1085    eval $ac_envvar=\$ac_optarg
1086    export $ac_envvar ;;
1087
1088  *)
1089    # FIXME: should be removed in autoconf 3.0.
1090    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1094    ;;
1095
1096  esac
1097done
1098
1099if test -n "$ac_prev"; then
1100  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101  as_fn_error $? "missing argument to $ac_option"
1102fi
1103
1104if test -n "$ac_unrecognized_opts"; then
1105  case $enable_option_checking in
1106    no) ;;
1107    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1108    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1109  esac
1110fi
1111
1112# Check all directory arguments for consistency.
1113for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114		datadir sysconfdir sharedstatedir localstatedir includedir \
1115		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116		libdir localedir mandir
1117do
1118  eval ac_val=\$$ac_var
1119  # Remove trailing slashes.
1120  case $ac_val in
1121    */ )
1122      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1123      eval $ac_var=\$ac_val;;
1124  esac
1125  # Be sure to have absolute directory names.
1126  case $ac_val in
1127    [\\/$]* | ?:[\\/]* )  continue;;
1128    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129  esac
1130  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1131done
1132
1133# There might be people who depend on the old broken behavior: `$host'
1134# used to hold the argument of --host etc.
1135# FIXME: To remove some day.
1136build=$build_alias
1137host=$host_alias
1138target=$target_alias
1139
1140# FIXME: To remove some day.
1141if test "x$host_alias" != x; then
1142  if test "x$build_alias" = x; then
1143    cross_compiling=maybe
1144  elif test "x$build_alias" != "x$host_alias"; then
1145    cross_compiling=yes
1146  fi
1147fi
1148
1149ac_tool_prefix=
1150test -n "$host_alias" && ac_tool_prefix=$host_alias-
1151
1152test "$silent" = yes && exec 6>/dev/null
1153
1154
1155ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156ac_ls_di=`ls -di .` &&
1157ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1158  as_fn_error $? "working directory cannot be determined"
1159test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1160  as_fn_error $? "pwd does not report name of working directory"
1161
1162
1163# Find the source files, if location was not specified.
1164if test -z "$srcdir"; then
1165  ac_srcdir_defaulted=yes
1166  # Try the directory containing this script, then the parent directory.
1167  ac_confdir=`$as_dirname -- "$as_myself" ||
1168$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169	 X"$as_myself" : 'X\(//\)[^/]' \| \
1170	 X"$as_myself" : 'X\(//\)$' \| \
1171	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1172$as_echo X"$as_myself" |
1173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174	    s//\1/
1175	    q
1176	  }
1177	  /^X\(\/\/\)[^/].*/{
1178	    s//\1/
1179	    q
1180	  }
1181	  /^X\(\/\/\)$/{
1182	    s//\1/
1183	    q
1184	  }
1185	  /^X\(\/\).*/{
1186	    s//\1/
1187	    q
1188	  }
1189	  s/.*/./; q'`
1190  srcdir=$ac_confdir
1191  if test ! -r "$srcdir/$ac_unique_file"; then
1192    srcdir=..
1193  fi
1194else
1195  ac_srcdir_defaulted=no
1196fi
1197if test ! -r "$srcdir/$ac_unique_file"; then
1198  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1200fi
1201ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1202ac_abs_confdir=`(
1203	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1204	pwd)`
1205# When building in place, set srcdir=.
1206if test "$ac_abs_confdir" = "$ac_pwd"; then
1207  srcdir=.
1208fi
1209# Remove unnecessary trailing slashes from srcdir.
1210# Double slashes in file names in object file debugging info
1211# mess up M-x gdb in Emacs.
1212case $srcdir in
1213*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1214esac
1215for ac_var in $ac_precious_vars; do
1216  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1217  eval ac_env_${ac_var}_value=\$${ac_var}
1218  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1219  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1220done
1221
1222#
1223# Report the --help message.
1224#
1225if test "$ac_init_help" = "long"; then
1226  # Omit some internal or obsolete options to make the list less imposing.
1227  # This message is too long to be a string in the A/UX 3.1 sh.
1228  cat <<_ACEOF
1229\`configure' configures this package to adapt to many kinds of systems.
1230
1231Usage: $0 [OPTION]... [VAR=VALUE]...
1232
1233To assign environment variables (e.g., CC, CFLAGS...), specify them as
1234VAR=VALUE.  See below for descriptions of some of the useful variables.
1235
1236Defaults for the options are specified in brackets.
1237
1238Configuration:
1239  -h, --help              display this help and exit
1240      --help=short        display options specific to this package
1241      --help=recursive    display the short help of all the included packages
1242  -V, --version           display version information and exit
1243  -q, --quiet, --silent   do not print \`checking ...' messages
1244      --cache-file=FILE   cache test results in FILE [disabled]
1245  -C, --config-cache      alias for \`--cache-file=config.cache'
1246  -n, --no-create         do not create output files
1247      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1248
1249Installation directories:
1250  --prefix=PREFIX         install architecture-independent files in PREFIX
1251                          [$ac_default_prefix]
1252  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1253                          [PREFIX]
1254
1255By default, \`make install' will install all the files in
1256\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1257an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1258for instance \`--prefix=\$HOME'.
1259
1260For better control, use the options below.
1261
1262Fine tuning of the installation directories:
1263  --bindir=DIR            user executables [EPREFIX/bin]
1264  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1265  --libexecdir=DIR        program executables [EPREFIX/libexec]
1266  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1267  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1268  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1269  --libdir=DIR            object code libraries [EPREFIX/lib]
1270  --includedir=DIR        C header files [PREFIX/include]
1271  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1272  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1273  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1274  --infodir=DIR           info documentation [DATAROOTDIR/info]
1275  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1276  --mandir=DIR            man documentation [DATAROOTDIR/man]
1277  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1278  --htmldir=DIR           html documentation [DOCDIR]
1279  --dvidir=DIR            dvi documentation [DOCDIR]
1280  --pdfdir=DIR            pdf documentation [DOCDIR]
1281  --psdir=DIR             ps documentation [DOCDIR]
1282_ACEOF
1283
1284  cat <<\_ACEOF
1285
1286X features:
1287  --x-includes=DIR    X include files are in DIR
1288  --x-libraries=DIR   X library files are in DIR
1289
1290System types:
1291  --build=BUILD     configure for building on BUILD [guessed]
1292  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1293_ACEOF
1294fi
1295
1296if test -n "$ac_init_help"; then
1297
1298  cat <<\_ACEOF
1299
1300Optional Features:
1301  --disable-option-checking  ignore unrecognized --enable/--with options
1302  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1303  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1304  --disable-sdltest       Do not try to compile and run a test SDL program
1305
1306Optional Packages:
1307  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1308  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1309  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1310  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1311  --with-x                use the X Window System
1312
1313Some influential environment variables:
1314  CC          C compiler command
1315  CFLAGS      C compiler flags
1316  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1317              nonstandard directory <lib dir>
1318  LIBS        libraries to pass to the linker, e.g. -l<library>
1319  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1320              you have headers in a nonstandard directory <include dir>
1321  PKG_CONFIG  path to pkg-config utility
1322  PKG_CONFIG_PATH
1323              directories to add to pkg-config's search path
1324  PKG_CONFIG_LIBDIR
1325              path overriding pkg-config's built-in search path
1326  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1327  SDL_LIBS    linker flags for SDL, overriding pkg-config
1328  XMKMF       Path to xmkmf, Makefile generator for X Window System
1329  CPP         C preprocessor
1330  LIBUNWIND_CFLAGS
1331              C compiler flags for LIBUNWIND, overriding pkg-config
1332  LIBUNWIND_LIBS
1333              linker flags for LIBUNWIND, overriding pkg-config
1334
1335Use these variables to override the choices made by `configure' or to help
1336it to find libraries and programs with nonstandard names/locations.
1337
1338Report bugs to the package provider.
1339_ACEOF
1340ac_status=$?
1341fi
1342
1343if test "$ac_init_help" = "recursive"; then
1344  # If there are subdirs, report their specific --help.
1345  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346    test -d "$ac_dir" ||
1347      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1348      continue
1349    ac_builddir=.
1350
1351case "$ac_dir" in
1352.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353*)
1354  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355  # A ".." for each directory in $ac_dir_suffix.
1356  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357  case $ac_top_builddir_sub in
1358  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360  esac ;;
1361esac
1362ac_abs_top_builddir=$ac_pwd
1363ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364# for backward compatibility:
1365ac_top_builddir=$ac_top_build_prefix
1366
1367case $srcdir in
1368  .)  # We are building in place.
1369    ac_srcdir=.
1370    ac_top_srcdir=$ac_top_builddir_sub
1371    ac_abs_top_srcdir=$ac_pwd ;;
1372  [\\/]* | ?:[\\/]* )  # Absolute name.
1373    ac_srcdir=$srcdir$ac_dir_suffix;
1374    ac_top_srcdir=$srcdir
1375    ac_abs_top_srcdir=$srcdir ;;
1376  *) # Relative name.
1377    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378    ac_top_srcdir=$ac_top_build_prefix$srcdir
1379    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380esac
1381ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383    cd "$ac_dir" || { ac_status=$?; continue; }
1384    # Check for guested configure.
1385    if test -f "$ac_srcdir/configure.gnu"; then
1386      echo &&
1387      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388    elif test -f "$ac_srcdir/configure"; then
1389      echo &&
1390      $SHELL "$ac_srcdir/configure" --help=recursive
1391    else
1392      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393    fi || ac_status=$?
1394    cd "$ac_pwd" || { ac_status=$?; break; }
1395  done
1396fi
1397
1398test -n "$ac_init_help" && exit $ac_status
1399if $ac_init_version; then
1400  cat <<\_ACEOF
1401configure
1402generated by GNU Autoconf 2.69
1403
1404Copyright (C) 2012 Free Software Foundation, Inc.
1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407_ACEOF
1408  exit
1409fi
1410
1411## ------------------------ ##
1412## Autoconf initialization. ##
1413## ------------------------ ##
1414
1415# ac_fn_c_try_compile LINENO
1416# --------------------------
1417# Try to compile conftest.$ac_ext, and return whether this succeeded.
1418ac_fn_c_try_compile ()
1419{
1420  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421  rm -f conftest.$ac_objext
1422  if { { ac_try="$ac_compile"
1423case "(($ac_try" in
1424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425  *) ac_try_echo=$ac_try;;
1426esac
1427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428$as_echo "$ac_try_echo"; } >&5
1429  (eval "$ac_compile") 2>conftest.err
1430  ac_status=$?
1431  if test -s conftest.err; then
1432    grep -v '^ *+' conftest.err >conftest.er1
1433    cat conftest.er1 >&5
1434    mv -f conftest.er1 conftest.err
1435  fi
1436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437  test $ac_status = 0; } && {
1438	 test -z "$ac_c_werror_flag" ||
1439	 test ! -s conftest.err
1440       } && test -s conftest.$ac_objext; then :
1441  ac_retval=0
1442else
1443  $as_echo "$as_me: failed program was:" >&5
1444sed 's/^/| /' conftest.$ac_ext >&5
1445
1446	ac_retval=1
1447fi
1448  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1449  as_fn_set_status $ac_retval
1450
1451} # ac_fn_c_try_compile
1452
1453# ac_fn_c_try_link LINENO
1454# -----------------------
1455# Try to link conftest.$ac_ext, and return whether this succeeded.
1456ac_fn_c_try_link ()
1457{
1458  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459  rm -f conftest.$ac_objext conftest$ac_exeext
1460  if { { ac_try="$ac_link"
1461case "(($ac_try" in
1462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463  *) ac_try_echo=$ac_try;;
1464esac
1465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466$as_echo "$ac_try_echo"; } >&5
1467  (eval "$ac_link") 2>conftest.err
1468  ac_status=$?
1469  if test -s conftest.err; then
1470    grep -v '^ *+' conftest.err >conftest.er1
1471    cat conftest.er1 >&5
1472    mv -f conftest.er1 conftest.err
1473  fi
1474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475  test $ac_status = 0; } && {
1476	 test -z "$ac_c_werror_flag" ||
1477	 test ! -s conftest.err
1478       } && test -s conftest$ac_exeext && {
1479	 test "$cross_compiling" = yes ||
1480	 test -x conftest$ac_exeext
1481       }; then :
1482  ac_retval=0
1483else
1484  $as_echo "$as_me: failed program was:" >&5
1485sed 's/^/| /' conftest.$ac_ext >&5
1486
1487	ac_retval=1
1488fi
1489  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1490  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1491  # interfere with the next link command; also delete a directory that is
1492  # left behind by Apple's compiler.  We do this before executing the actions.
1493  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1494  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495  as_fn_set_status $ac_retval
1496
1497} # ac_fn_c_try_link
1498
1499# ac_fn_c_try_run LINENO
1500# ----------------------
1501# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1502# that executables *can* be run.
1503ac_fn_c_try_run ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  if { { ac_try="$ac_link"
1507case "(($ac_try" in
1508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509  *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513  (eval "$ac_link") 2>&5
1514  ac_status=$?
1515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1517  { { case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_try") 2>&5
1524  ac_status=$?
1525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526  test $ac_status = 0; }; }; then :
1527  ac_retval=0
1528else
1529  $as_echo "$as_me: program exited with status $ac_status" >&5
1530       $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533       ac_retval=$ac_status
1534fi
1535  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1536  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537  as_fn_set_status $ac_retval
1538
1539} # ac_fn_c_try_run
1540
1541# ac_fn_c_try_cpp LINENO
1542# ----------------------
1543# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_cpp ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  if { { ac_try="$ac_cpp conftest.$ac_ext"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } > conftest.i && {
1563	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       }; then :
1566  ac_retval=0
1567else
1568  $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571    ac_retval=1
1572fi
1573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574  as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_cpp
1577cat >config.log <<_ACEOF
1578This file contains any messages produced by compilers while
1579running configure, to aid debugging if configure makes a mistake.
1580
1581It was created by $as_me, which was
1582generated by GNU Autoconf 2.69.  Invocation command line was
1583
1584  $ $0 $@
1585
1586_ACEOF
1587exec 5>>config.log
1588{
1589cat <<_ASUNAME
1590## --------- ##
1591## Platform. ##
1592## --------- ##
1593
1594hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599
1600/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1602
1603/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1604/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1605/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1607/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1608/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1609/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1610
1611_ASUNAME
1612
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616  IFS=$as_save_IFS
1617  test -z "$as_dir" && as_dir=.
1618    $as_echo "PATH: $as_dir"
1619  done
1620IFS=$as_save_IFS
1621
1622} >&5
1623
1624cat >&5 <<_ACEOF
1625
1626
1627## ----------- ##
1628## Core tests. ##
1629## ----------- ##
1630
1631_ACEOF
1632
1633
1634# Keep a trace of the command line.
1635# Strip out --no-create and --no-recursion so they do not pile up.
1636# Strip out --silent because we don't want to record it for future runs.
1637# Also quote any args containing shell meta-characters.
1638# Make two passes to allow for proper duplicate-argument suppression.
1639ac_configure_args=
1640ac_configure_args0=
1641ac_configure_args1=
1642ac_must_keep_next=false
1643for ac_pass in 1 2
1644do
1645  for ac_arg
1646  do
1647    case $ac_arg in
1648    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650    | -silent | --silent | --silen | --sile | --sil)
1651      continue ;;
1652    *\'*)
1653      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654    esac
1655    case $ac_pass in
1656    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1657    2)
1658      as_fn_append ac_configure_args1 " '$ac_arg'"
1659      if test $ac_must_keep_next = true; then
1660	ac_must_keep_next=false # Got value, back to normal.
1661      else
1662	case $ac_arg in
1663	  *=* | --config-cache | -C | -disable-* | --disable-* \
1664	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666	  | -with-* | --with-* | -without-* | --without-* | --x)
1667	    case "$ac_configure_args0 " in
1668	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669	    esac
1670	    ;;
1671	  -* ) ac_must_keep_next=true ;;
1672	esac
1673      fi
1674      as_fn_append ac_configure_args " '$ac_arg'"
1675      ;;
1676    esac
1677  done
1678done
1679{ ac_configure_args0=; unset ac_configure_args0;}
1680{ ac_configure_args1=; unset ac_configure_args1;}
1681
1682# When interrupted or exit'd, cleanup temporary files, and complete
1683# config.log.  We remove comments because anyway the quotes in there
1684# would cause problems or look ugly.
1685# WARNING: Use '\'' to represent an apostrophe within the trap.
1686# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687trap 'exit_status=$?
1688  # Save into config.log some information that might help in debugging.
1689  {
1690    echo
1691
1692    $as_echo "## ---------------- ##
1693## Cache variables. ##
1694## ---------------- ##"
1695    echo
1696    # The following way of writing the cache mishandles newlines in values,
1697(
1698  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699    eval ac_val=\$$ac_var
1700    case $ac_val in #(
1701    *${as_nl}*)
1702      case $ac_var in #(
1703      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1704$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1705      esac
1706      case $ac_var in #(
1707      _ | IFS | as_nl) ;; #(
1708      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1709      *) { eval $ac_var=; unset $ac_var;} ;;
1710      esac ;;
1711    esac
1712  done
1713  (set) 2>&1 |
1714    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715    *${as_nl}ac_space=\ *)
1716      sed -n \
1717	"s/'\''/'\''\\\\'\'''\''/g;
1718	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719      ;; #(
1720    *)
1721      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722      ;;
1723    esac |
1724    sort
1725)
1726    echo
1727
1728    $as_echo "## ----------------- ##
1729## Output variables. ##
1730## ----------------- ##"
1731    echo
1732    for ac_var in $ac_subst_vars
1733    do
1734      eval ac_val=\$$ac_var
1735      case $ac_val in
1736      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737      esac
1738      $as_echo "$ac_var='\''$ac_val'\''"
1739    done | sort
1740    echo
1741
1742    if test -n "$ac_subst_files"; then
1743      $as_echo "## ------------------- ##
1744## File substitutions. ##
1745## ------------------- ##"
1746      echo
1747      for ac_var in $ac_subst_files
1748      do
1749	eval ac_val=\$$ac_var
1750	case $ac_val in
1751	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752	esac
1753	$as_echo "$ac_var='\''$ac_val'\''"
1754      done | sort
1755      echo
1756    fi
1757
1758    if test -s confdefs.h; then
1759      $as_echo "## ----------- ##
1760## confdefs.h. ##
1761## ----------- ##"
1762      echo
1763      cat confdefs.h
1764      echo
1765    fi
1766    test "$ac_signal" != 0 &&
1767      $as_echo "$as_me: caught signal $ac_signal"
1768    $as_echo "$as_me: exit $exit_status"
1769  } >&5
1770  rm -f core *.core core.conftest.* &&
1771    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772    exit $exit_status
1773' 0
1774for ac_signal in 1 2 13 15; do
1775  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
1780rm -f -r conftest* confdefs.h
1781
1782$as_echo "/* confdefs.h */" > confdefs.h
1783
1784# Predefined preprocessor variables.
1785
1786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_NAME "$PACKAGE_NAME"
1788_ACEOF
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792_ACEOF
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_STRING "$PACKAGE_STRING"
1800_ACEOF
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1804_ACEOF
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_URL "$PACKAGE_URL"
1808_ACEOF
1809
1810
1811# Let the site file select an alternate cache file if it wants to.
1812# Prefer an explicitly selected file to automatically selected ones.
1813ac_site_file1=NONE
1814ac_site_file2=NONE
1815if test -n "$CONFIG_SITE"; then
1816  # We do not want a PATH search for config.site.
1817  case $CONFIG_SITE in #((
1818    -*)  ac_site_file1=./$CONFIG_SITE;;
1819    */*) ac_site_file1=$CONFIG_SITE;;
1820    *)   ac_site_file1=./$CONFIG_SITE;;
1821  esac
1822elif test "x$prefix" != xNONE; then
1823  ac_site_file1=$prefix/share/config.site
1824  ac_site_file2=$prefix/etc/config.site
1825else
1826  ac_site_file1=$ac_default_prefix/share/config.site
1827  ac_site_file2=$ac_default_prefix/etc/config.site
1828fi
1829for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1830do
1831  test "x$ac_site_file" = xNONE && continue
1832  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1833    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1834$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1835    sed 's/^/| /' "$ac_site_file" >&5
1836    . "$ac_site_file" \
1837      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1839as_fn_error $? "failed to load site script $ac_site_file
1840See \`config.log' for more details" "$LINENO" 5; }
1841  fi
1842done
1843
1844if test -r "$cache_file"; then
1845  # Some versions of bash will fail to source /dev/null (special files
1846  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1847  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1849$as_echo "$as_me: loading cache $cache_file" >&6;}
1850    case $cache_file in
1851      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852      *)                      . "./$cache_file";;
1853    esac
1854  fi
1855else
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1857$as_echo "$as_me: creating cache $cache_file" >&6;}
1858  >$cache_file
1859fi
1860
1861# Check that the precious variables saved in the cache have kept the same
1862# value.
1863ac_cache_corrupted=false
1864for ac_var in $ac_precious_vars; do
1865  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1866  eval ac_new_set=\$ac_env_${ac_var}_set
1867  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1868  eval ac_new_val=\$ac_env_${ac_var}_value
1869  case $ac_old_set,$ac_new_set in
1870    set,)
1871      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1872$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1873      ac_cache_corrupted=: ;;
1874    ,set)
1875      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1876$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1877      ac_cache_corrupted=: ;;
1878    ,);;
1879    *)
1880      if test "x$ac_old_val" != "x$ac_new_val"; then
1881	# differences in whitespace do not lead to failure.
1882	ac_old_val_w=`echo x $ac_old_val`
1883	ac_new_val_w=`echo x $ac_new_val`
1884	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1885	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1886$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887	  ac_cache_corrupted=:
1888	else
1889	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1890$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1891	  eval $ac_var=\$ac_old_val
1892	fi
1893	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1894$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1895	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1896$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1897      fi;;
1898  esac
1899  # Pass precious variables to config.status.
1900  if test "$ac_new_set" = set; then
1901    case $ac_new_val in
1902    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903    *) ac_arg=$ac_var=$ac_new_val ;;
1904    esac
1905    case " $ac_configure_args " in
1906      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1907      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1908    esac
1909  fi
1910done
1911if $ac_cache_corrupted; then
1912  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1914  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1915$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1917fi
1918## -------------------- ##
1919## Main body of script. ##
1920## -------------------- ##
1921
1922ac_ext=c
1923ac_cpp='$CPP $CPPFLAGS'
1924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930
1931ac_aux_dir=
1932for ac_dir in ../build-scripts "$srcdir"/../build-scripts; do
1933  if test -f "$ac_dir/install-sh"; then
1934    ac_aux_dir=$ac_dir
1935    ac_install_sh="$ac_aux_dir/install-sh -c"
1936    break
1937  elif test -f "$ac_dir/install.sh"; then
1938    ac_aux_dir=$ac_dir
1939    ac_install_sh="$ac_aux_dir/install.sh -c"
1940    break
1941  elif test -f "$ac_dir/shtool"; then
1942    ac_aux_dir=$ac_dir
1943    ac_install_sh="$ac_aux_dir/shtool install -c"
1944    break
1945  fi
1946done
1947if test -z "$ac_aux_dir"; then
1948  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-scripts \"$srcdir\"/../build-scripts" "$LINENO" 5
1949fi
1950
1951# These three variables are undocumented and unsupported,
1952# and are intended to be withdrawn in a future Autoconf release.
1953# They can cause serious problems if a builder's source tree is in a directory
1954# whose full name contains unusual characters.
1955ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1956ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1957ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1958
1959
1960# Make sure we can run config.sub.
1961$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1962  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1963
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1965$as_echo_n "checking build system type... " >&6; }
1966if ${ac_cv_build+:} false; then :
1967  $as_echo_n "(cached) " >&6
1968else
1969  ac_build_alias=$build_alias
1970test "x$ac_build_alias" = x &&
1971  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1972test "x$ac_build_alias" = x &&
1973  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1974ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1975  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1976
1977fi
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1979$as_echo "$ac_cv_build" >&6; }
1980case $ac_cv_build in
1981*-*-*) ;;
1982*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1983esac
1984build=$ac_cv_build
1985ac_save_IFS=$IFS; IFS='-'
1986set x $ac_cv_build
1987shift
1988build_cpu=$1
1989build_vendor=$2
1990shift; shift
1991# Remember, the first character of IFS is used to create $*,
1992# except with old shells:
1993build_os=$*
1994IFS=$ac_save_IFS
1995case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1996
1997
1998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1999$as_echo_n "checking host system type... " >&6; }
2000if ${ac_cv_host+:} false; then :
2001  $as_echo_n "(cached) " >&6
2002else
2003  if test "x$host_alias" = x; then
2004  ac_cv_host=$ac_cv_build
2005else
2006  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2007    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2008fi
2009
2010fi
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2012$as_echo "$ac_cv_host" >&6; }
2013case $ac_cv_host in
2014*-*-*) ;;
2015*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2016esac
2017host=$ac_cv_host
2018ac_save_IFS=$IFS; IFS='-'
2019set x $ac_cv_host
2020shift
2021host_cpu=$1
2022host_vendor=$2
2023shift; shift
2024# Remember, the first character of IFS is used to create $*,
2025# except with old shells:
2026host_os=$*
2027IFS=$ac_save_IFS
2028case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2029
2030
2031
2032ac_ext=c
2033ac_cpp='$CPP $CPPFLAGS'
2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037if test -n "$ac_tool_prefix"; then
2038  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039set dummy ${ac_tool_prefix}gcc; ac_word=$2
2040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2041$as_echo_n "checking for $ac_word... " >&6; }
2042if ${ac_cv_prog_CC+:} false; then :
2043  $as_echo_n "(cached) " >&6
2044else
2045  if test -n "$CC"; then
2046  ac_cv_prog_CC="$CC" # Let the user override the test.
2047else
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051  IFS=$as_save_IFS
2052  test -z "$as_dir" && as_dir=.
2053    for ac_exec_ext in '' $ac_executable_extensions; do
2054  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2057    break 2
2058  fi
2059done
2060  done
2061IFS=$as_save_IFS
2062
2063fi
2064fi
2065CC=$ac_cv_prog_CC
2066if test -n "$CC"; then
2067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2068$as_echo "$CC" >&6; }
2069else
2070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2071$as_echo "no" >&6; }
2072fi
2073
2074
2075fi
2076if test -z "$ac_cv_prog_CC"; then
2077  ac_ct_CC=$CC
2078  # Extract the first word of "gcc", so it can be a program name with args.
2079set dummy gcc; ac_word=$2
2080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2081$as_echo_n "checking for $ac_word... " >&6; }
2082if ${ac_cv_prog_ac_ct_CC+:} false; then :
2083  $as_echo_n "(cached) " >&6
2084else
2085  if test -n "$ac_ct_CC"; then
2086  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091  IFS=$as_save_IFS
2092  test -z "$as_dir" && as_dir=.
2093    for ac_exec_ext in '' $ac_executable_extensions; do
2094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095    ac_cv_prog_ac_ct_CC="gcc"
2096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2097    break 2
2098  fi
2099done
2100  done
2101IFS=$as_save_IFS
2102
2103fi
2104fi
2105ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106if test -n "$ac_ct_CC"; then
2107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2108$as_echo "$ac_ct_CC" >&6; }
2109else
2110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2111$as_echo "no" >&6; }
2112fi
2113
2114  if test "x$ac_ct_CC" = x; then
2115    CC=""
2116  else
2117    case $cross_compiling:$ac_tool_warned in
2118yes:)
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2121ac_tool_warned=yes ;;
2122esac
2123    CC=$ac_ct_CC
2124  fi
2125else
2126  CC="$ac_cv_prog_CC"
2127fi
2128
2129if test -z "$CC"; then
2130          if test -n "$ac_tool_prefix"; then
2131    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132set dummy ${ac_tool_prefix}cc; ac_word=$2
2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2134$as_echo_n "checking for $ac_word... " >&6; }
2135if ${ac_cv_prog_CC+:} false; then :
2136  $as_echo_n "(cached) " >&6
2137else
2138  if test -n "$CC"; then
2139  ac_cv_prog_CC="$CC" # Let the user override the test.
2140else
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146    for ac_exec_ext in '' $ac_executable_extensions; do
2147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148    ac_cv_prog_CC="${ac_tool_prefix}cc"
2149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153  done
2154IFS=$as_save_IFS
2155
2156fi
2157fi
2158CC=$ac_cv_prog_CC
2159if test -n "$CC"; then
2160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2161$as_echo "$CC" >&6; }
2162else
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2164$as_echo "no" >&6; }
2165fi
2166
2167
2168  fi
2169fi
2170if test -z "$CC"; then
2171  # Extract the first word of "cc", so it can be a program name with args.
2172set dummy cc; ac_word=$2
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2174$as_echo_n "checking for $ac_word... " >&6; }
2175if ${ac_cv_prog_CC+:} false; then :
2176  $as_echo_n "(cached) " >&6
2177else
2178  if test -n "$CC"; then
2179  ac_cv_prog_CC="$CC" # Let the user override the test.
2180else
2181  ac_prog_rejected=no
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185  IFS=$as_save_IFS
2186  test -z "$as_dir" && as_dir=.
2187    for ac_exec_ext in '' $ac_executable_extensions; do
2188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190       ac_prog_rejected=yes
2191       continue
2192     fi
2193    ac_cv_prog_CC="cc"
2194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2195    break 2
2196  fi
2197done
2198  done
2199IFS=$as_save_IFS
2200
2201if test $ac_prog_rejected = yes; then
2202  # We found a bogon in the path, so make sure we never use it.
2203  set dummy $ac_cv_prog_CC
2204  shift
2205  if test $# != 0; then
2206    # We chose a different compiler from the bogus one.
2207    # However, it has the same basename, so the bogon will be chosen
2208    # first if we set CC to just the basename; use the full file name.
2209    shift
2210    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2211  fi
2212fi
2213fi
2214fi
2215CC=$ac_cv_prog_CC
2216if test -n "$CC"; then
2217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2218$as_echo "$CC" >&6; }
2219else
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2221$as_echo "no" >&6; }
2222fi
2223
2224
2225fi
2226if test -z "$CC"; then
2227  if test -n "$ac_tool_prefix"; then
2228  for ac_prog in cl.exe
2229  do
2230    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2233$as_echo_n "checking for $ac_word... " >&6; }
2234if ${ac_cv_prog_CC+:} false; then :
2235  $as_echo_n "(cached) " >&6
2236else
2237  if test -n "$CC"; then
2238  ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245    for ac_exec_ext in '' $ac_executable_extensions; do
2246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2249    break 2
2250  fi
2251done
2252  done
2253IFS=$as_save_IFS
2254
2255fi
2256fi
2257CC=$ac_cv_prog_CC
2258if test -n "$CC"; then
2259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2260$as_echo "$CC" >&6; }
2261else
2262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2263$as_echo "no" >&6; }
2264fi
2265
2266
2267    test -n "$CC" && break
2268  done
2269fi
2270if test -z "$CC"; then
2271  ac_ct_CC=$CC
2272  for ac_prog in cl.exe
2273do
2274  # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277$as_echo_n "checking for $ac_word... " >&6; }
2278if ${ac_cv_prog_ac_ct_CC+:} false; then :
2279  $as_echo_n "(cached) " >&6
2280else
2281  if test -n "$ac_ct_CC"; then
2282  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287  IFS=$as_save_IFS
2288  test -z "$as_dir" && as_dir=.
2289    for ac_exec_ext in '' $ac_executable_extensions; do
2290  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291    ac_cv_prog_ac_ct_CC="$ac_prog"
2292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293    break 2
2294  fi
2295done
2296  done
2297IFS=$as_save_IFS
2298
2299fi
2300fi
2301ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302if test -n "$ac_ct_CC"; then
2303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2304$as_echo "$ac_ct_CC" >&6; }
2305else
2306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2307$as_echo "no" >&6; }
2308fi
2309
2310
2311  test -n "$ac_ct_CC" && break
2312done
2313
2314  if test "x$ac_ct_CC" = x; then
2315    CC=""
2316  else
2317    case $cross_compiling:$ac_tool_warned in
2318yes:)
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2321ac_tool_warned=yes ;;
2322esac
2323    CC=$ac_ct_CC
2324  fi
2325fi
2326
2327fi
2328
2329
2330test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332as_fn_error $? "no acceptable C compiler found in \$PATH
2333See \`config.log' for more details" "$LINENO" 5; }
2334
2335# Provide some information about the compiler.
2336$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2337set X $ac_compile
2338ac_compiler=$2
2339for ac_option in --version -v -V -qversion; do
2340  { { ac_try="$ac_compiler $ac_option >&5"
2341case "(($ac_try" in
2342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343  *) ac_try_echo=$ac_try;;
2344esac
2345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2346$as_echo "$ac_try_echo"; } >&5
2347  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2348  ac_status=$?
2349  if test -s conftest.err; then
2350    sed '10a\
2351... rest of stderr output deleted ...
2352         10q' conftest.err >conftest.er1
2353    cat conftest.er1 >&5
2354  fi
2355  rm -f conftest.er1 conftest.err
2356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2357  test $ac_status = 0; }
2358done
2359
2360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361/* end confdefs.h.  */
2362
2363int
2364main ()
2365{
2366
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371ac_clean_files_save=$ac_clean_files
2372ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2373# Try to create an executable without -o first, disregard a.out.
2374# It will help us diagnose broken compilers, and finding out an intuition
2375# of exeext.
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2377$as_echo_n "checking whether the C compiler works... " >&6; }
2378ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2379
2380# The possible output files:
2381ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2382
2383ac_rmfiles=
2384for ac_file in $ac_files
2385do
2386  case $ac_file in
2387    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2388    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2389  esac
2390done
2391rm -f $ac_rmfiles
2392
2393if { { ac_try="$ac_link_default"
2394case "(($ac_try" in
2395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396  *) ac_try_echo=$ac_try;;
2397esac
2398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399$as_echo "$ac_try_echo"; } >&5
2400  (eval "$ac_link_default") 2>&5
2401  ac_status=$?
2402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403  test $ac_status = 0; }; then :
2404  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2405# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2406# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2407# so that the user can short-circuit this test for compilers unknown to
2408# Autoconf.
2409for ac_file in $ac_files ''
2410do
2411  test -f "$ac_file" || continue
2412  case $ac_file in
2413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2414	;;
2415    [ab].out )
2416	# We found the default executable, but exeext='' is most
2417	# certainly right.
2418	break;;
2419    *.* )
2420	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2421	then :; else
2422	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423	fi
2424	# We set ac_cv_exeext here because the later test for it is not
2425	# safe: cross compilers may not add the suffix if given an `-o'
2426	# argument, so we may need to know it at that point already.
2427	# Even if this section looks crufty: it has the advantage of
2428	# actually working.
2429	break;;
2430    * )
2431	break;;
2432  esac
2433done
2434test "$ac_cv_exeext" = no && ac_cv_exeext=
2435
2436else
2437  ac_file=''
2438fi
2439if test -z "$ac_file"; then :
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2441$as_echo "no" >&6; }
2442$as_echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447as_fn_error 77 "C compiler cannot create executables
2448See \`config.log' for more details" "$LINENO" 5; }
2449else
2450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2451$as_echo "yes" >&6; }
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2454$as_echo_n "checking for C compiler default output file name... " >&6; }
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2456$as_echo "$ac_file" >&6; }
2457ac_exeext=$ac_cv_exeext
2458
2459rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2460ac_clean_files=$ac_clean_files_save
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2462$as_echo_n "checking for suffix of executables... " >&6; }
2463if { { ac_try="$ac_link"
2464case "(($ac_try" in
2465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466  *) ac_try_echo=$ac_try;;
2467esac
2468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469$as_echo "$ac_try_echo"; } >&5
2470  (eval "$ac_link") 2>&5
2471  ac_status=$?
2472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2473  test $ac_status = 0; }; then :
2474  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2475# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2476# work properly (i.e., refer to `conftest.exe'), while it won't with
2477# `rm'.
2478for ac_file in conftest.exe conftest conftest.*; do
2479  test -f "$ac_file" || continue
2480  case $ac_file in
2481    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2482    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2483	  break;;
2484    * ) break;;
2485  esac
2486done
2487else
2488  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2491See \`config.log' for more details" "$LINENO" 5; }
2492fi
2493rm -f conftest conftest$ac_cv_exeext
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2495$as_echo "$ac_cv_exeext" >&6; }
2496
2497rm -f conftest.$ac_ext
2498EXEEXT=$ac_cv_exeext
2499ac_exeext=$EXEEXT
2500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501/* end confdefs.h.  */
2502#include <stdio.h>
2503int
2504main ()
2505{
2506FILE *f = fopen ("conftest.out", "w");
2507 return ferror (f) || fclose (f) != 0;
2508
2509  ;
2510  return 0;
2511}
2512_ACEOF
2513ac_clean_files="$ac_clean_files conftest.out"
2514# Check that the compiler produces executables we can run.  If not, either
2515# the compiler is broken, or we cross compile.
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2517$as_echo_n "checking whether we are cross compiling... " >&6; }
2518if test "$cross_compiling" != yes; then
2519  { { ac_try="$ac_link"
2520case "(($ac_try" in
2521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522  *) ac_try_echo=$ac_try;;
2523esac
2524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525$as_echo "$ac_try_echo"; } >&5
2526  (eval "$ac_link") 2>&5
2527  ac_status=$?
2528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529  test $ac_status = 0; }
2530  if { ac_try='./conftest$ac_cv_exeext'
2531  { { case "(($ac_try" in
2532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533  *) ac_try_echo=$ac_try;;
2534esac
2535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536$as_echo "$ac_try_echo"; } >&5
2537  (eval "$ac_try") 2>&5
2538  ac_status=$?
2539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540  test $ac_status = 0; }; }; then
2541    cross_compiling=no
2542  else
2543    if test "$cross_compiling" = maybe; then
2544	cross_compiling=yes
2545    else
2546	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548as_fn_error $? "cannot run C compiled programs.
2549If you meant to cross compile, use \`--host'.
2550See \`config.log' for more details" "$LINENO" 5; }
2551    fi
2552  fi
2553fi
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2555$as_echo "$cross_compiling" >&6; }
2556
2557rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2558ac_clean_files=$ac_clean_files_save
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2560$as_echo_n "checking for suffix of object files... " >&6; }
2561if ${ac_cv_objext+:} false; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565/* end confdefs.h.  */
2566
2567int
2568main ()
2569{
2570
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575rm -f conftest.o conftest.obj
2576if { { ac_try="$ac_compile"
2577case "(($ac_try" in
2578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579  *) ac_try_echo=$ac_try;;
2580esac
2581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582$as_echo "$ac_try_echo"; } >&5
2583  (eval "$ac_compile") 2>&5
2584  ac_status=$?
2585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2586  test $ac_status = 0; }; then :
2587  for ac_file in conftest.o conftest.obj conftest.*; do
2588  test -f "$ac_file" || continue;
2589  case $ac_file in
2590    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2591    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2592       break;;
2593  esac
2594done
2595else
2596  $as_echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601as_fn_error $? "cannot compute suffix of object files: cannot compile
2602See \`config.log' for more details" "$LINENO" 5; }
2603fi
2604rm -f conftest.$ac_cv_objext conftest.$ac_ext
2605fi
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2607$as_echo "$ac_cv_objext" >&6; }
2608OBJEXT=$ac_cv_objext
2609ac_objext=$OBJEXT
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2611$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2612if ${ac_cv_c_compiler_gnu+:} false; then :
2613  $as_echo_n "(cached) " >&6
2614else
2615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616/* end confdefs.h.  */
2617
2618int
2619main ()
2620{
2621#ifndef __GNUC__
2622       choke me
2623#endif
2624
2625  ;
2626  return 0;
2627}
2628_ACEOF
2629if ac_fn_c_try_compile "$LINENO"; then :
2630  ac_compiler_gnu=yes
2631else
2632  ac_compiler_gnu=no
2633fi
2634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635ac_cv_c_compiler_gnu=$ac_compiler_gnu
2636
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2639$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2640if test $ac_compiler_gnu = yes; then
2641  GCC=yes
2642else
2643  GCC=
2644fi
2645ac_test_CFLAGS=${CFLAGS+set}
2646ac_save_CFLAGS=$CFLAGS
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2648$as_echo_n "checking whether $CC accepts -g... " >&6; }
2649if ${ac_cv_prog_cc_g+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  ac_save_c_werror_flag=$ac_c_werror_flag
2653   ac_c_werror_flag=yes
2654   ac_cv_prog_cc_g=no
2655   CFLAGS="-g"
2656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657/* end confdefs.h.  */
2658
2659int
2660main ()
2661{
2662
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667if ac_fn_c_try_compile "$LINENO"; then :
2668  ac_cv_prog_cc_g=yes
2669else
2670  CFLAGS=""
2671      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672/* end confdefs.h.  */
2673
2674int
2675main ()
2676{
2677
2678  ;
2679  return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683
2684else
2685  ac_c_werror_flag=$ac_save_c_werror_flag
2686	 CFLAGS="-g"
2687	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688/* end confdefs.h.  */
2689
2690int
2691main ()
2692{
2693
2694  ;
2695  return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699  ac_cv_prog_cc_g=yes
2700fi
2701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702fi
2703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704fi
2705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706   ac_c_werror_flag=$ac_save_c_werror_flag
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2709$as_echo "$ac_cv_prog_cc_g" >&6; }
2710if test "$ac_test_CFLAGS" = set; then
2711  CFLAGS=$ac_save_CFLAGS
2712elif test $ac_cv_prog_cc_g = yes; then
2713  if test "$GCC" = yes; then
2714    CFLAGS="-g -O2"
2715  else
2716    CFLAGS="-g"
2717  fi
2718else
2719  if test "$GCC" = yes; then
2720    CFLAGS="-O2"
2721  else
2722    CFLAGS=
2723  fi
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2726$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2727if ${ac_cv_prog_cc_c89+:} false; then :
2728  $as_echo_n "(cached) " >&6
2729else
2730  ac_cv_prog_cc_c89=no
2731ac_save_CC=$CC
2732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733/* end confdefs.h.  */
2734#include <stdarg.h>
2735#include <stdio.h>
2736struct stat;
2737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2738struct buf { int x; };
2739FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740static char *e (p, i)
2741     char **p;
2742     int i;
2743{
2744  return p[i];
2745}
2746static char *f (char * (*g) (char **, int), char **p, ...)
2747{
2748  char *s;
2749  va_list v;
2750  va_start (v,p);
2751  s = g (p, va_arg (v,int));
2752  va_end (v);
2753  return s;
2754}
2755
2756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2757   function prototypes and stuff, but not '\xHH' hex character constants.
2758   These don't provoke an error unfortunately, instead are silently treated
2759   as 'x'.  The following induces an error, until -std is added to get
2760   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2761   array size at least.  It's necessary to write '\x00'==0 to get something
2762   that's true only with -std.  */
2763int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2764
2765/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2766   inside strings and character constants.  */
2767#define FOO(x) 'x'
2768int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2769
2770int test (int i, double x);
2771struct s1 {int (*f) (int a);};
2772struct s2 {int (*f) (double a);};
2773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774int argc;
2775char **argv;
2776int
2777main ()
2778{
2779return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2785	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786do
2787  CC="$ac_save_CC $ac_arg"
2788  if ac_fn_c_try_compile "$LINENO"; then :
2789  ac_cv_prog_cc_c89=$ac_arg
2790fi
2791rm -f core conftest.err conftest.$ac_objext
2792  test "x$ac_cv_prog_cc_c89" != "xno" && break
2793done
2794rm -f conftest.$ac_ext
2795CC=$ac_save_CC
2796
2797fi
2798# AC_CACHE_VAL
2799case "x$ac_cv_prog_cc_c89" in
2800  x)
2801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2802$as_echo "none needed" >&6; } ;;
2803  xno)
2804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2805$as_echo "unsupported" >&6; } ;;
2806  *)
2807    CC="$CC $ac_cv_prog_cc_c89"
2808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2809$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2810esac
2811if test "x$ac_cv_prog_cc_c89" != xno; then :
2812
2813fi
2814
2815ac_ext=c
2816ac_cpp='$CPP $CPPFLAGS'
2817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
2821
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
2824$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
2825if ${ac_cv_c_const+:} false; then :
2826  $as_echo_n "(cached) " >&6
2827else
2828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829/* end confdefs.h.  */
2830
2831int
2832main ()
2833{
2834
2835#ifndef __cplusplus
2836  /* Ultrix mips cc rejects this sort of thing.  */
2837  typedef int charset[2];
2838  const charset cs = { 0, 0 };
2839  /* SunOS 4.1.1 cc rejects this.  */
2840  char const *const *pcpcc;
2841  char **ppc;
2842  /* NEC SVR4.0.2 mips cc rejects this.  */
2843  struct point {int x, y;};
2844  static struct point const zero = {0,0};
2845  /* AIX XL C 1.02.0.0 rejects this.
2846     It does not let you subtract one const X* pointer from another in
2847     an arm of an if-expression whose if-part is not a constant
2848     expression */
2849  const char *g = "string";
2850  pcpcc = &g + (g ? g-g : 0);
2851  /* HPUX 7.0 cc rejects these. */
2852  ++pcpcc;
2853  ppc = (char**) pcpcc;
2854  pcpcc = (char const *const *) ppc;
2855  { /* SCO 3.2v4 cc rejects this sort of thing.  */
2856    char tx;
2857    char *t = &tx;
2858    char const *s = 0 ? (char *) 0 : (char const *) 0;
2859
2860    *t++ = 0;
2861    if (s) return 0;
2862  }
2863  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2864    int x[] = {25, 17};
2865    const int *foo = &x[0];
2866    ++foo;
2867  }
2868  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2869    typedef const int *iptr;
2870    iptr p = 0;
2871    ++p;
2872  }
2873  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
2874       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2875    struct s { int j; const int *ap[3]; } bx;
2876    struct s *b = &bx; b->j = 5;
2877  }
2878  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2879    const int foo = 10;
2880    if (!foo) return 0;
2881  }
2882  return !cs[0] && !zero.x;
2883#endif
2884
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890  ac_cv_c_const=yes
2891else
2892  ac_cv_c_const=no
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895fi
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
2897$as_echo "$ac_cv_c_const" >&6; }
2898if test $ac_cv_c_const = no; then
2899
2900$as_echo "#define const /**/" >>confdefs.h
2901
2902fi
2903
2904
2905ISUNIX="false"
2906ISWINDOWS="false"
2907ISMACOSX="false"
2908
2909case "$host" in
2910    *-*-cygwin* | *-*-mingw*)
2911        ISWINDOWS="true"
2912        EXE=".exe"
2913        MATHLIB=""
2914        SYS_GL_LIBS="-lopengl32"
2915        ;;
2916    *-*-haiku*)
2917        EXE=""
2918        MATHLIB=""
2919        SYS_GL_LIBS="-lGL"
2920        ;;
2921    *-*-darwin* )
2922        ISMACOSX="true"
2923        EXE=""
2924        MATHLIB=""
2925        SYS_GL_LIBS="-Wl,-framework,OpenGL"
2926        ;;
2927    *-*-aix*)
2928        ISUNIX="true"
2929        EXE=""
2930        if test x$ac_cv_c_compiler_gnu = xyes; then
2931            CFLAGS="-mthreads"
2932        fi
2933        SYS_GL_LIBS=""
2934        ;;
2935    *-*-mint*)
2936        EXE=""
2937        MATHLIB=""
2938        # Extract the first word of "osmesa-config", so it can be a program name with args.
2939set dummy osmesa-config; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if ${ac_cv_path_OSMESA_CONFIG+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  case $OSMESA_CONFIG in
2946  [\\/]* | ?:[\\/]*)
2947  ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2948  ;;
2949  *)
2950  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965  test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2966  ;;
2967esac
2968fi
2969OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2970if test -n "$OSMESA_CONFIG"; then
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
2972$as_echo "$OSMESA_CONFIG" >&6; }
2973else
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979        if test "x$OSMESA_CONFIG" = "xyes"; then
2980            OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2981            OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2982            CFLAGS="$CFLAGS $OSMESA_CFLAGS"
2983            SYS_GL_LIBS="$OSMESA_LIBS"
2984        else
2985            SYS_GL_LIBS="-lOSMesa"
2986        fi
2987        ;;
2988    *-*-qnx*)
2989        EXE=""
2990        MATHLIB=""
2991        SYS_GL_LIBS="-lGLES_CM"
2992        ;;
2993    *-*-emscripten* )
2994                EXE=".bc"
2995        MATHLIB=""
2996        SYS_GL_LIBS=""
2997        ;;
2998    *-*-riscos* )
2999        EXE=",e1f"
3000        MATHLIB=""
3001        SYS_GL_LIBS=""
3002        ;;
3003    *)
3004                ISUNIX="true"
3005        EXE=""
3006        MATHLIB="-lm"
3007                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOpenGL" >&5
3008$as_echo_n "checking for glBegin in -lOpenGL... " >&6; }
3009if ${ac_cv_lib_OpenGL_glBegin+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  ac_check_lib_save_LIBS=$LIBS
3013LIBS="-lOpenGL  $LIBS"
3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016
3017/* Override any GCC internal prototype to avoid an error.
3018   Use char because int might match the return type of a GCC
3019   builtin and then its argument prototype would still apply.  */
3020#ifdef __cplusplus
3021extern "C"
3022#endif
3023char glBegin ();
3024int
3025main ()
3026{
3027return glBegin ();
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032if ac_fn_c_try_link "$LINENO"; then :
3033  ac_cv_lib_OpenGL_glBegin=yes
3034else
3035  ac_cv_lib_OpenGL_glBegin=no
3036fi
3037rm -f core conftest.err conftest.$ac_objext \
3038    conftest$ac_exeext conftest.$ac_ext
3039LIBS=$ac_check_lib_save_LIBS
3040fi
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenGL_glBegin" >&5
3042$as_echo "$ac_cv_lib_OpenGL_glBegin" >&6; }
3043if test "x$ac_cv_lib_OpenGL_glBegin" = xyes; then :
3044  SYS_GL_LIBS="-lOpenGL"
3045else
3046  SYS_GL_LIBS="-lGL"
3047fi
3048
3049        ;;
3050esac
3051
3052
3053
3054
3055
3056
3057SDL_VERSION=2.0.18
3058
3059
3060
3061
3062
3063
3064if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3065	if test -n "$ac_tool_prefix"; then
3066  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3067set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069$as_echo_n "checking for $ac_word... " >&6; }
3070if ${ac_cv_path_PKG_CONFIG+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  case $PKG_CONFIG in
3074  [\\/]* | ?:[\\/]*)
3075  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3076  ;;
3077  *)
3078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081  IFS=$as_save_IFS
3082  test -z "$as_dir" && as_dir=.
3083    for ac_exec_ext in '' $ac_executable_extensions; do
3084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090  done
3091IFS=$as_save_IFS
3092
3093  ;;
3094esac
3095fi
3096PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3097if test -n "$PKG_CONFIG"; then
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3099$as_echo "$PKG_CONFIG" >&6; }
3100else
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103fi
3104
3105
3106fi
3107if test -z "$ac_cv_path_PKG_CONFIG"; then
3108  ac_pt_PKG_CONFIG=$PKG_CONFIG
3109  # Extract the first word of "pkg-config", so it can be a program name with args.
3110set dummy pkg-config; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
3113if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3114  $as_echo_n "(cached) " >&6
3115else
3116  case $ac_pt_PKG_CONFIG in
3117  [\\/]* | ?:[\\/]*)
3118  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3119  ;;
3120  *)
3121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124  IFS=$as_save_IFS
3125  test -z "$as_dir" && as_dir=.
3126    for ac_exec_ext in '' $ac_executable_extensions; do
3127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3128    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130    break 2
3131  fi
3132done
3133  done
3134IFS=$as_save_IFS
3135
3136  ;;
3137esac
3138fi
3139ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3140if test -n "$ac_pt_PKG_CONFIG"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3142$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148  if test "x$ac_pt_PKG_CONFIG" = x; then
3149    PKG_CONFIG=""
3150  else
3151    case $cross_compiling:$ac_tool_warned in
3152yes:)
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155ac_tool_warned=yes ;;
3156esac
3157    PKG_CONFIG=$ac_pt_PKG_CONFIG
3158  fi
3159else
3160  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3161fi
3162
3163fi
3164if test -n "$PKG_CONFIG"; then
3165	_pkg_min_version=0.9.0
3166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3167$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3168	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170$as_echo "yes" >&6; }
3171	else
3172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174		PKG_CONFIG=""
3175	fi
3176fi
3177
3178# Check whether --with-sdl-prefix was given.
3179if test "${with_sdl_prefix+set}" = set; then :
3180  withval=$with_sdl_prefix; sdl_prefix="$withval"
3181else
3182  sdl_prefix=""
3183fi
3184
3185
3186# Check whether --with-sdl-exec-prefix was given.
3187if test "${with_sdl_exec_prefix+set}" = set; then :
3188  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
3189else
3190  sdl_exec_prefix=""
3191fi
3192
3193# Check whether --enable-sdltest was given.
3194if test "${enable_sdltest+set}" = set; then :
3195  enableval=$enable_sdltest;
3196else
3197  enable_sdltest=yes
3198fi
3199
3200
3201  min_sdl_version=$SDL_VERSION
3202
3203  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
3204
3205pkg_failed=no
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2 >= $min_sdl_version" >&5
3207$as_echo_n "checking for sdl2 >= $min_sdl_version... " >&6; }
3208
3209if test -n "$SDL_CFLAGS"; then
3210    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
3211 elif test -n "$PKG_CONFIG"; then
3212    if test -n "$PKG_CONFIG" && \
3213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
3214  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
3215  ac_status=$?
3216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217  test $ac_status = 0; }; then
3218  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
3219else
3220  pkg_failed=yes
3221fi
3222 else
3223    pkg_failed=untried
3224fi
3225if test -n "$SDL_LIBS"; then
3226    pkg_cv_SDL_LIBS="$SDL_LIBS"
3227 elif test -n "$PKG_CONFIG"; then
3228    if test -n "$PKG_CONFIG" && \
3229    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
3230  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
3231  ac_status=$?
3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233  test $ac_status = 0; }; then
3234  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
3235else
3236  pkg_failed=yes
3237fi
3238 else
3239    pkg_failed=untried
3240fi
3241
3242
3243
3244if test $pkg_failed = yes; then
3245   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247
3248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3249        _pkg_short_errors_supported=yes
3250else
3251        _pkg_short_errors_supported=no
3252fi
3253        if test $_pkg_short_errors_supported = yes; then
3254	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl2 >= $min_sdl_version" 2>&1`
3255        else
3256	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1`
3257        fi
3258	# Put the nasty error message in config.log where it belongs
3259	echo "$SDL_PKG_ERRORS" >&5
3260
3261	sdl_pc=no
3262elif test $pkg_failed = untried; then
3263     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265	sdl_pc=no
3266else
3267	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
3268	SDL_LIBS=$pkg_cv_SDL_LIBS
3269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
3271	sdl_pc=yes
3272fi
3273  else
3274    sdl_pc=no
3275    if test x$sdl_exec_prefix != x ; then
3276      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
3277      if test x${SDL2_CONFIG+set} != xset ; then
3278        SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
3279      fi
3280    fi
3281    if test x$sdl_prefix != x ; then
3282      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
3283      if test x${SDL2_CONFIG+set} != xset ; then
3284        SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
3285      fi
3286    fi
3287  fi
3288
3289  if test "x$sdl_pc" = xyes ; then
3290    no_sdl=""
3291    SDL2_CONFIG="pkg-config sdl2"
3292  else
3293    as_save_PATH="$PATH"
3294    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
3295      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
3296    fi
3297    # Extract the first word of "sdl2-config", so it can be a program name with args.
3298set dummy sdl2-config; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if ${ac_cv_path_SDL2_CONFIG+:} false; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  case $SDL2_CONFIG in
3305  [\\/]* | ?:[\\/]*)
3306  ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
3307  ;;
3308  *)
3309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316    ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318    break 2
3319  fi
3320done
3321  done
3322IFS=$as_save_IFS
3323
3324  test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
3325  ;;
3326esac
3327fi
3328SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
3329if test -n "$SDL2_CONFIG"; then
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
3331$as_echo "$SDL2_CONFIG" >&6; }
3332else
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337
3338    PATH="$as_save_PATH"
3339    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
3340$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
3341    no_sdl=""
3342
3343    if test "$SDL2_CONFIG" = "no" ; then
3344      no_sdl=yes
3345    else
3346      SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
3347      SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
3348
3349      sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
3350             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3351      sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
3352             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3353      sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
3354             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3355      if test "x$enable_sdltest" = "xyes" ; then
3356        ac_save_CFLAGS="$CFLAGS"
3357        ac_save_CXXFLAGS="$CXXFLAGS"
3358        ac_save_LIBS="$LIBS"
3359        CFLAGS="$CFLAGS $SDL_CFLAGS"
3360        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3361        LIBS="$LIBS $SDL_LIBS"
3362      rm -f conf.sdltest
3363      if test "$cross_compiling" = yes; then :
3364  echo $ac_n "cross compiling; assumed OK... $ac_c"
3365else
3366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h.  */
3368
3369#include <stdio.h>
3370#include <stdlib.h>
3371#include "SDL.h"
3372
3373int main (int argc, char *argv[])
3374{
3375  int major, minor, micro;
3376  FILE *fp = fopen("conf.sdltest", "w");
3377
3378  if (fp) fclose(fp);
3379
3380  if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
3381     printf("%s, bad version string\n", "$min_sdl_version");
3382     exit(1);
3383   }
3384
3385   if (($sdl_major_version > major) ||
3386      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
3387      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
3388    {
3389      return 0;
3390    }
3391  else
3392    {
3393      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
3394      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
3395      printf("*** best to upgrade to the required version.\n");
3396      printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
3397      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
3398      printf("*** config.cache before re-running configure\n");
3399      return 1;
3400    }
3401}
3402
3403
3404_ACEOF
3405if ac_fn_c_try_run "$LINENO"; then :
3406
3407else
3408  no_sdl=yes
3409fi
3410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3411  conftest.$ac_objext conftest.beam conftest.$ac_ext
3412fi
3413
3414        CFLAGS="$ac_save_CFLAGS"
3415        CXXFLAGS="$ac_save_CXXFLAGS"
3416        LIBS="$ac_save_LIBS"
3417      fi
3418    fi
3419    if test "x$no_sdl" = x ; then
3420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421$as_echo "yes" >&6; }
3422    else
3423      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424$as_echo "no" >&6; }
3425    fi
3426  fi
3427  if test "x$no_sdl" = x ; then
3428     :
3429  else
3430     if test "$SDL2_CONFIG" = "no" ; then
3431       echo "*** The sdl2-config script installed by SDL could not be found"
3432       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
3433       echo "*** your path, or set the SDL2_CONFIG environment variable to the"
3434       echo "*** full path to sdl2-config."
3435     else
3436       if test -f conf.sdltest ; then
3437        :
3438       else
3439          echo "*** Could not run SDL test program, checking why..."
3440          CFLAGS="$CFLAGS $SDL_CFLAGS"
3441          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
3442          LIBS="$LIBS $SDL_LIBS"
3443          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445
3446#include <stdio.h>
3447#include "SDL.h"
3448
3449int main(int argc, char *argv[])
3450{ return 0; }
3451#undef  main
3452#define main K_and_R_C_main
3453
3454int
3455main ()
3456{
3457 return 0;
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462if ac_fn_c_try_link "$LINENO"; then :
3463   echo "*** The test program compiled, but did not run. This usually means"
3464          echo "*** that the run-time linker is not finding SDL or finding the wrong"
3465          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
3466          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3467          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3468          echo "*** is required on your system"
3469	  echo "***"
3470          echo "*** If you have an old version installed, it is best to remove it, although"
3471          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3472else
3473   echo "*** The test program failed to compile or link. See the file config.log for the"
3474          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
3475          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
3476          echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
3477fi
3478rm -f core conftest.err conftest.$ac_objext \
3479    conftest$ac_exeext conftest.$ac_ext
3480          CFLAGS="$ac_save_CFLAGS"
3481          CXXFLAGS="$ac_save_CXXFLAGS"
3482          LIBS="$ac_save_LIBS"
3483       fi
3484     fi
3485     SDL_CFLAGS=""
3486     SDL_LIBS=""
3487     as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
3488
3489  fi
3490
3491
3492  rm -f conf.sdltest
3493
3494CFLAGS="$CFLAGS $SDL_CFLAGS"
3495LIBS="$LIBS -lSDL2_test $SDL_LIBS"
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3503$as_echo_n "checking how to run the C preprocessor... " >&6; }
3504# On Suns, sometimes $CPP names a directory.
3505if test -n "$CPP" && test -d "$CPP"; then
3506  CPP=
3507fi
3508if test -z "$CPP"; then
3509  if ${ac_cv_prog_CPP+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512      # Double quotes because CPP needs to be expanded
3513    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3514    do
3515      ac_preproc_ok=false
3516for ac_c_preproc_warn_flag in '' yes
3517do
3518  # Use a header file that comes with gcc, so configuring glibc
3519  # with a fresh cross-compiler works.
3520  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521  # <limits.h> exists even on freestanding compilers.
3522  # On the NeXT, cc -E runs the code through the compiler's parser,
3523  # not just through cpp. "Syntax error" is here to catch this case.
3524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526#ifdef __STDC__
3527# include <limits.h>
3528#else
3529# include <assert.h>
3530#endif
3531		     Syntax error
3532_ACEOF
3533if ac_fn_c_try_cpp "$LINENO"; then :
3534
3535else
3536  # Broken: fails on valid input.
3537continue
3538fi
3539rm -f conftest.err conftest.i conftest.$ac_ext
3540
3541  # OK, works on sane cases.  Now check whether nonexistent headers
3542  # can be detected and how.
3543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545#include <ac_nonexistent.h>
3546_ACEOF
3547if ac_fn_c_try_cpp "$LINENO"; then :
3548  # Broken: success on invalid input.
3549continue
3550else
3551  # Passes both tests.
3552ac_preproc_ok=:
3553break
3554fi
3555rm -f conftest.err conftest.i conftest.$ac_ext
3556
3557done
3558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559rm -f conftest.i conftest.err conftest.$ac_ext
3560if $ac_preproc_ok; then :
3561  break
3562fi
3563
3564    done
3565    ac_cv_prog_CPP=$CPP
3566
3567fi
3568  CPP=$ac_cv_prog_CPP
3569else
3570  ac_cv_prog_CPP=$CPP
3571fi
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3573$as_echo "$CPP" >&6; }
3574ac_preproc_ok=false
3575for ac_c_preproc_warn_flag in '' yes
3576do
3577  # Use a header file that comes with gcc, so configuring glibc
3578  # with a fresh cross-compiler works.
3579  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580  # <limits.h> exists even on freestanding compilers.
3581  # On the NeXT, cc -E runs the code through the compiler's parser,
3582  # not just through cpp. "Syntax error" is here to catch this case.
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#ifdef __STDC__
3586# include <limits.h>
3587#else
3588# include <assert.h>
3589#endif
3590		     Syntax error
3591_ACEOF
3592if ac_fn_c_try_cpp "$LINENO"; then :
3593
3594else
3595  # Broken: fails on valid input.
3596continue
3597fi
3598rm -f conftest.err conftest.i conftest.$ac_ext
3599
3600  # OK, works on sane cases.  Now check whether nonexistent headers
3601  # can be detected and how.
3602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603/* end confdefs.h.  */
3604#include <ac_nonexistent.h>
3605_ACEOF
3606if ac_fn_c_try_cpp "$LINENO"; then :
3607  # Broken: success on invalid input.
3608continue
3609else
3610  # Passes both tests.
3611ac_preproc_ok=:
3612break
3613fi
3614rm -f conftest.err conftest.i conftest.$ac_ext
3615
3616done
3617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3618rm -f conftest.i conftest.err conftest.$ac_ext
3619if $ac_preproc_ok; then :
3620
3621else
3622  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3625See \`config.log' for more details" "$LINENO" 5; }
3626fi
3627
3628ac_ext=c
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3636$as_echo_n "checking for X... " >&6; }
3637
3638
3639# Check whether --with-x was given.
3640if test "${with_x+set}" = set; then :
3641  withval=$with_x;
3642fi
3643
3644# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3645if test "x$with_x" = xno; then
3646  # The user explicitly disabled X.
3647  have_x=disabled
3648else
3649  case $x_includes,$x_libraries in #(
3650    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3651    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3652  $as_echo_n "(cached) " >&6
3653else
3654  # One or both of the vars are not set, and there is no cached value.
3655ac_x_includes=no
3656ac_x_libraries=no
3657# Do we need to do anything special at all?
3658ac_save_LIBS=$LIBS
3659LIBS="-lX11 $LIBS"
3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661/* end confdefs.h.  */
3662#include <X11/Xlib.h>
3663int
3664main ()
3665{
3666XrmInitialize ()
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671if ac_fn_c_try_link "$LINENO"; then :
3672  # We can compile and link X programs with no special options.
3673  ac_x_includes=
3674  ac_x_libraries=
3675fi
3676rm -f core conftest.err conftest.$ac_objext \
3677    conftest$ac_exeext conftest.$ac_ext
3678LIBS="$ac_save_LIBS"
3679# If that didn't work, only try xmkmf and filesystem searches
3680# for native compilation.
3681if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
3682  rm -f -r conftest.dir
3683if mkdir conftest.dir; then
3684  cd conftest.dir
3685  cat >Imakefile <<'_ACEOF'
3686incroot:
3687	@echo incroot='${INCROOT}'
3688usrlibdir:
3689	@echo usrlibdir='${USRLIBDIR}'
3690libdir:
3691	@echo libdir='${LIBDIR}'
3692_ACEOF
3693  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3694    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3695    for ac_var in incroot usrlibdir libdir; do
3696      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3697    done
3698    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3699    for ac_extension in a so sl dylib la dll; do
3700      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3701	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3702	ac_im_usrlibdir=$ac_im_libdir; break
3703      fi
3704    done
3705    # Screen out bogus values from the imake configuration.  They are
3706    # bogus both because they are the default anyway, and because
3707    # using them would break gcc on systems where it needs fixed includes.
3708    case $ac_im_incroot in
3709	/usr/include) ac_x_includes= ;;
3710	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3711    esac
3712    case $ac_im_usrlibdir in
3713	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
3714	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3715    esac
3716  fi
3717  cd ..
3718  rm -f -r conftest.dir
3719fi
3720
3721  # Standard set of common directories for X headers.
3722# Check X11 before X11Rn because it is often a symlink to the current release.
3723ac_x_header_dirs='
3724/usr/X11/include
3725/usr/X11R7/include
3726/usr/X11R6/include
3727/usr/X11R5/include
3728/usr/X11R4/include
3729
3730/usr/include/X11
3731/usr/include/X11R7
3732/usr/include/X11R6
3733/usr/include/X11R5
3734/usr/include/X11R4
3735
3736/usr/local/X11/include
3737/usr/local/X11R7/include
3738/usr/local/X11R6/include
3739/usr/local/X11R5/include
3740/usr/local/X11R4/include
3741
3742/usr/local/include/X11
3743/usr/local/include/X11R7
3744/usr/local/include/X11R6
3745/usr/local/include/X11R5
3746/usr/local/include/X11R4
3747
3748/opt/X11/include
3749
3750/usr/X386/include
3751/usr/x386/include
3752/usr/XFree86/include/X11
3753
3754/usr/include
3755/usr/local/include
3756/usr/unsupported/include
3757/usr/athena/include
3758/usr/local/x11r5/include
3759/usr/lpp/Xamples/include
3760
3761/usr/openwin/include
3762/usr/openwin/share/include'
3763
3764if test "$ac_x_includes" = no; then
3765  # Guess where to find include files, by looking for Xlib.h.
3766  # First, try using that file with no special directory specified.
3767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768/* end confdefs.h.  */
3769#include <X11/Xlib.h>
3770_ACEOF
3771if ac_fn_c_try_cpp "$LINENO"; then :
3772  # We can compile using X headers with no special include directory.
3773ac_x_includes=
3774else
3775  for ac_dir in $ac_x_header_dirs; do
3776  if test -r "$ac_dir/X11/Xlib.h"; then
3777    ac_x_includes=$ac_dir
3778    break
3779  fi
3780done
3781fi
3782rm -f conftest.err conftest.i conftest.$ac_ext
3783fi # $ac_x_includes = no
3784
3785if test "$ac_x_libraries" = no; then
3786  # Check for the libraries.
3787  # See if we find them without any special options.
3788  # Don't add to $LIBS permanently.
3789  ac_save_LIBS=$LIBS
3790  LIBS="-lX11 $LIBS"
3791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h.  */
3793#include <X11/Xlib.h>
3794int
3795main ()
3796{
3797XrmInitialize ()
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802if ac_fn_c_try_link "$LINENO"; then :
3803  LIBS=$ac_save_LIBS
3804# We can link X programs with no special library path.
3805ac_x_libraries=
3806else
3807  LIBS=$ac_save_LIBS
3808for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3809do
3810  # Don't even attempt the hair of trying to link an X program!
3811  for ac_extension in a so sl dylib la dll; do
3812    if test -r "$ac_dir/libX11.$ac_extension"; then
3813      ac_x_libraries=$ac_dir
3814      break 2
3815    fi
3816  done
3817done
3818fi
3819rm -f core conftest.err conftest.$ac_objext \
3820    conftest$ac_exeext conftest.$ac_ext
3821fi # $ac_x_libraries = no
3822
3823fi
3824# Record the results.
3825case $ac_x_includes,$ac_x_libraries in #(
3826  no,* | *,no | *\'*) :
3827    # Didn't find X, or a directory has "'" in its name.
3828    ac_cv_have_x="have_x=no" ;; #(
3829  *) :
3830    # Record where we found X for the cache.
3831    ac_cv_have_x="have_x=yes\
3832	ac_x_includes='$ac_x_includes'\
3833	ac_x_libraries='$ac_x_libraries'" ;;
3834esac
3835fi
3836;; #(
3837    *) have_x=yes;;
3838  esac
3839  eval "$ac_cv_have_x"
3840fi # $with_x != no
3841
3842if test "$have_x" != yes; then
3843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
3844$as_echo "$have_x" >&6; }
3845  no_x=yes
3846else
3847  # If each of the values was on the command line, it overrides each guess.
3848  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3849  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3850  # Update the cache value to reflect the command line values.
3851  ac_cv_have_x="have_x=yes\
3852	ac_x_includes='$x_includes'\
3853	ac_x_libraries='$x_libraries'"
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
3855$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
3856fi
3857
3858if test x$have_x = xyes; then
3859    if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone || test "x$ac_x_includes" = x; then
3860        :
3861    else
3862        CFLAGS="$CFLAGS -I$ac_x_includes"
3863    fi
3864    if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then
3865        :
3866    else
3867        if test "x$ac_x_libraries" = x; then
3868            XPATH=""
3869            XLIB="-lX11"
3870        else
3871            XPATH="-L$ac_x_libraries"
3872            XLIB="-L$ac_x_libraries -lX11"
3873        fi
3874    fi
3875fi
3876
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
3878$as_echo_n "checking for OpenGL support... " >&6; }
3879have_opengl=no
3880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882
3883 #include "SDL_opengl.h"
3884 #ifndef SDL_VIDEO_OPENGL
3885 #error SDL_VIDEO_OPENGL
3886 #endif
3887
3888int
3889main ()
3890{
3891
3892  ;
3893  return 0;
3894}
3895_ACEOF
3896if ac_fn_c_try_compile "$LINENO"; then :
3897  have_opengl=yes
3898fi
3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
3901$as_echo "$have_opengl" >&6; }
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
3904$as_echo_n "checking for OpenGL ES support... " >&6; }
3905have_opengles=no
3906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907/* end confdefs.h.  */
3908
3909 #include "SDL_opengles.h"
3910 #ifndef SDL_VIDEO_OPENGL_ES
3911 #error SDL_VIDEO_OPENGL_ES
3912 #endif
3913
3914int
3915main ()
3916{
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  have_opengles=yes
3924fi
3925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
3927$as_echo "$have_opengles" >&6; }
3928
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES2 support" >&5
3930$as_echo_n "checking for OpenGL ES2 support... " >&6; }
3931have_opengles2=no
3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934
3935 #include "SDL_opengles2.h"
3936 #ifndef SDL_VIDEO_OPENGL_ES2
3937 #error SDL_VIDEO_OPENGL_ES2
3938 #endif
3939
3940int
3941main ()
3942{
3943
3944  ;
3945  return 0;
3946}
3947_ACEOF
3948if ac_fn_c_try_compile "$LINENO"; then :
3949  have_opengles2=yes
3950fi
3951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles2" >&5
3953$as_echo "$have_opengles2" >&6; }
3954
3955GLLIB=""
3956GLESLIB=""
3957GLES2LIB=""
3958OPENGLES1_TARGETS="UNUSED"
3959OPENGLES2_TARGETS="UNUSED"
3960OPENGL_TARGETS="UNUSED"
3961if test x$have_opengles = xyes; then
3962    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
3963    GLESLIB="$XPATH -lGLESv1_CM"
3964    OPENGLES1_TARGETS="TARGETS"
3965fi
3966if test x$have_opengles2 = xyes; then
3967    CFLAGS="$CFLAGS -DHAVE_OPENGLES2"
3968    #GLES2LIB="$XPATH -lGLESv2"
3969    OPENGLES2_TARGETS="TARGETS"
3970fi
3971if test x$have_opengl = xyes; then
3972    CFLAGS="$CFLAGS -DHAVE_OPENGL"
3973    GLLIB="$XPATH $SYS_GL_LIBS"
3974    OPENGL_TARGETS="TARGETS"
3975fi
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5
3986$as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; }
3987if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990  ac_check_lib_save_LIBS=$LIBS
3991LIBS="-lSDL2_ttf  $LIBS"
3992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h.  */
3994
3995/* Override any GCC internal prototype to avoid an error.
3996   Use char because int might match the return type of a GCC
3997   builtin and then its argument prototype would still apply.  */
3998#ifdef __cplusplus
3999extern "C"
4000#endif
4001char TTF_Init ();
4002int
4003main ()
4004{
4005return TTF_Init ();
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_link "$LINENO"; then :
4011  ac_cv_lib_SDL2_ttf_TTF_Init=yes
4012else
4013  ac_cv_lib_SDL2_ttf_TTF_Init=no
4014fi
4015rm -f core conftest.err conftest.$ac_objext \
4016    conftest$ac_exeext conftest.$ac_ext
4017LIBS=$ac_check_lib_save_LIBS
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_Init" >&5
4020$as_echo "$ac_cv_lib_SDL2_ttf_TTF_Init" >&6; }
4021if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then :
4022  have_SDL_ttf=yes
4023fi
4024
4025if test x$have_SDL_ttf = xyes; then
4026    CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
4027    SDL_TTF_LIB="-lSDL2_ttf"
4028fi
4029
4030
4031
4032pkg_failed=no
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
4034$as_echo_n "checking for libunwind... " >&6; }
4035
4036if test -n "$LIBUNWIND_CFLAGS"; then
4037    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
4038 elif test -n "$PKG_CONFIG"; then
4039    if test -n "$PKG_CONFIG" && \
4040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
4041  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
4042  ac_status=$?
4043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044  test $ac_status = 0; }; then
4045  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
4046else
4047  pkg_failed=yes
4048fi
4049 else
4050    pkg_failed=untried
4051fi
4052if test -n "$LIBUNWIND_LIBS"; then
4053    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
4054 elif test -n "$PKG_CONFIG"; then
4055    if test -n "$PKG_CONFIG" && \
4056    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
4057  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
4058  ac_status=$?
4059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060  test $ac_status = 0; }; then
4061  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
4062else
4063  pkg_failed=yes
4064fi
4065 else
4066    pkg_failed=untried
4067fi
4068
4069
4070
4071if test $pkg_failed = yes; then
4072   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
4074
4075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4076        _pkg_short_errors_supported=yes
4077else
4078        _pkg_short_errors_supported=no
4079fi
4080        if test $_pkg_short_errors_supported = yes; then
4081	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libunwind" 2>&1`
4082        else
4083	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "libunwind" 2>&1`
4084        fi
4085	# Put the nasty error message in config.log where it belongs
4086	echo "$LIBUNWIND_PKG_ERRORS" >&5
4087
4088	have_libunwind=no
4089elif test $pkg_failed = untried; then
4090     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092	have_libunwind=no
4093else
4094	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
4095	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
4096        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4097$as_echo "yes" >&6; }
4098	have_libunwind=yes
4099fi
4100if test x$have_libunwind = xyes ; then
4101   LIBS="$LIBS $LIBUNWIND_LIBS"
4102fi
4103
4104ac_config_files="$ac_config_files Makefile"
4105
4106cat >confcache <<\_ACEOF
4107# This file is a shell script that caches the results of configure
4108# tests run on this system so they can be shared between configure
4109# scripts and configure runs, see configure's option --config-cache.
4110# It is not useful on other systems.  If it contains results you don't
4111# want to keep, you may remove or edit it.
4112#
4113# config.status only pays attention to the cache file if you give it
4114# the --recheck option to rerun configure.
4115#
4116# `ac_cv_env_foo' variables (set or unset) will be overridden when
4117# loading this file, other *unset* `ac_cv_foo' will be assigned the
4118# following values.
4119
4120_ACEOF
4121
4122# The following way of writing the cache mishandles newlines in values,
4123# but we know of no workaround that is simple, portable, and efficient.
4124# So, we kill variables containing newlines.
4125# Ultrix sh set writes to stderr and can't be redirected directly,
4126# and sets the high bit in the cache file unless we assign to the vars.
4127(
4128  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4129    eval ac_val=\$$ac_var
4130    case $ac_val in #(
4131    *${as_nl}*)
4132      case $ac_var in #(
4133      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4134$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4135      esac
4136      case $ac_var in #(
4137      _ | IFS | as_nl) ;; #(
4138      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4139      *) { eval $ac_var=; unset $ac_var;} ;;
4140      esac ;;
4141    esac
4142  done
4143
4144  (set) 2>&1 |
4145    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4146    *${as_nl}ac_space=\ *)
4147      # `set' does not quote correctly, so add quotes: double-quote
4148      # substitution turns \\\\ into \\, and sed turns \\ into \.
4149      sed -n \
4150	"s/'/'\\\\''/g;
4151	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4152      ;; #(
4153    *)
4154      # `set' quotes correctly as required by POSIX, so do not add quotes.
4155      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4156      ;;
4157    esac |
4158    sort
4159) |
4160  sed '
4161     /^ac_cv_env_/b end
4162     t clear
4163     :clear
4164     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4165     t end
4166     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4167     :end' >>confcache
4168if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4169  if test -w "$cache_file"; then
4170    if test "x$cache_file" != "x/dev/null"; then
4171      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4172$as_echo "$as_me: updating cache $cache_file" >&6;}
4173      if test ! -f "$cache_file" || test -h "$cache_file"; then
4174	cat confcache >"$cache_file"
4175      else
4176        case $cache_file in #(
4177        */* | ?:*)
4178	  mv -f confcache "$cache_file"$$ &&
4179	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4180        *)
4181	  mv -f confcache "$cache_file" ;;
4182	esac
4183      fi
4184    fi
4185  else
4186    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4187$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4188  fi
4189fi
4190rm -f confcache
4191
4192test "x$prefix" = xNONE && prefix=$ac_default_prefix
4193# Let make expand exec_prefix.
4194test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4195
4196# Transform confdefs.h into DEFS.
4197# Protect against shell expansion while executing Makefile rules.
4198# Protect against Makefile macro expansion.
4199#
4200# If the first sed substitution is executed (which looks for macros that
4201# take arguments), then branch to the quote section.  Otherwise,
4202# look for a macro that doesn't take arguments.
4203ac_script='
4204:mline
4205/\\$/{
4206 N
4207 s,\\\n,,
4208 b mline
4209}
4210t clear
4211:clear
4212s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
4213t quote
4214s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
4215t quote
4216b any
4217:quote
4218s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4219s/\[/\\&/g
4220s/\]/\\&/g
4221s/\$/$$/g
4222H
4223:any
4224${
4225	g
4226	s/^\n//
4227	s/\n/ /g
4228	p
4229}
4230'
4231DEFS=`sed -n "$ac_script" confdefs.h`
4232
4233
4234ac_libobjs=
4235ac_ltlibobjs=
4236U=
4237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4238  # 1. Remove the extension, and $U if already installed.
4239  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4240  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4241  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4242  #    will be set to the directory where LIBOBJS objects are built.
4243  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4244  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4245done
4246LIBOBJS=$ac_libobjs
4247
4248LTLIBOBJS=$ac_ltlibobjs
4249
4250
4251
4252: "${CONFIG_STATUS=./config.status}"
4253ac_write_fail=0
4254ac_clean_files_save=$ac_clean_files
4255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4257$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4258as_write_fail=0
4259cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4260#! $SHELL
4261# Generated by $as_me.
4262# Run this file to recreate the current configuration.
4263# Compiler output produced by configure, useful for debugging
4264# configure, is in config.log if it exists.
4265
4266debug=false
4267ac_cs_recheck=false
4268ac_cs_silent=false
4269
4270SHELL=\${CONFIG_SHELL-$SHELL}
4271export SHELL
4272_ASEOF
4273cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4274## -------------------- ##
4275## M4sh Initialization. ##
4276## -------------------- ##
4277
4278# Be more Bourne compatible
4279DUALCASE=1; export DUALCASE # for MKS sh
4280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4281  emulate sh
4282  NULLCMD=:
4283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4284  # is contrary to our usage.  Disable this feature.
4285  alias -g '${1+"$@"}'='"$@"'
4286  setopt NO_GLOB_SUBST
4287else
4288  case `(set -o) 2>/dev/null` in #(
4289  *posix*) :
4290    set -o posix ;; #(
4291  *) :
4292     ;;
4293esac
4294fi
4295
4296
4297as_nl='
4298'
4299export as_nl
4300# Printing a long string crashes Solaris 7 /usr/bin/printf.
4301as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4302as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4303as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4304# Prefer a ksh shell builtin over an external printf program on Solaris,
4305# but without wasting forks for bash or zsh.
4306if test -z "$BASH_VERSION$ZSH_VERSION" \
4307    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4308  as_echo='print -r --'
4309  as_echo_n='print -rn --'
4310elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4311  as_echo='printf %s\n'
4312  as_echo_n='printf %s'
4313else
4314  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4315    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4316    as_echo_n='/usr/ucb/echo -n'
4317  else
4318    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4319    as_echo_n_body='eval
4320      arg=$1;
4321      case $arg in #(
4322      *"$as_nl"*)
4323	expr "X$arg" : "X\\(.*\\)$as_nl";
4324	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4325      esac;
4326      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4327    '
4328    export as_echo_n_body
4329    as_echo_n='sh -c $as_echo_n_body as_echo'
4330  fi
4331  export as_echo_body
4332  as_echo='sh -c $as_echo_body as_echo'
4333fi
4334
4335# The user is always right.
4336if test "${PATH_SEPARATOR+set}" != set; then
4337  PATH_SEPARATOR=:
4338  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4339    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4340      PATH_SEPARATOR=';'
4341  }
4342fi
4343
4344
4345# IFS
4346# We need space, tab and new line, in precisely that order.  Quoting is
4347# there to prevent editors from complaining about space-tab.
4348# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4349# splitting by setting IFS to empty value.)
4350IFS=" ""	$as_nl"
4351
4352# Find who we are.  Look in the path if we contain no directory separator.
4353as_myself=
4354case $0 in #((
4355  *[\\/]* ) as_myself=$0 ;;
4356  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4362  done
4363IFS=$as_save_IFS
4364
4365     ;;
4366esac
4367# We did not find ourselves, most probably we were run as `sh COMMAND'
4368# in which case we are not to be found in the path.
4369if test "x$as_myself" = x; then
4370  as_myself=$0
4371fi
4372if test ! -f "$as_myself"; then
4373  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4374  exit 1
4375fi
4376
4377# Unset variables that we do not need and which cause bugs (e.g. in
4378# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4379# suppresses any "Segmentation fault" message there.  '((' could
4380# trigger a bug in pdksh 5.2.14.
4381for as_var in BASH_ENV ENV MAIL MAILPATH
4382do eval test x\${$as_var+set} = xset \
4383  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4384done
4385PS1='$ '
4386PS2='> '
4387PS4='+ '
4388
4389# NLS nuisances.
4390LC_ALL=C
4391export LC_ALL
4392LANGUAGE=C
4393export LANGUAGE
4394
4395# CDPATH.
4396(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4397
4398
4399# as_fn_error STATUS ERROR [LINENO LOG_FD]
4400# ----------------------------------------
4401# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4402# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4403# script with STATUS, using 1 if that was 0.
4404as_fn_error ()
4405{
4406  as_status=$1; test $as_status -eq 0 && as_status=1
4407  if test "$4"; then
4408    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4409    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4410  fi
4411  $as_echo "$as_me: error: $2" >&2
4412  as_fn_exit $as_status
4413} # as_fn_error
4414
4415
4416# as_fn_set_status STATUS
4417# -----------------------
4418# Set $? to STATUS, without forking.
4419as_fn_set_status ()
4420{
4421  return $1
4422} # as_fn_set_status
4423
4424# as_fn_exit STATUS
4425# -----------------
4426# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4427as_fn_exit ()
4428{
4429  set +e
4430  as_fn_set_status $1
4431  exit $1
4432} # as_fn_exit
4433
4434# as_fn_unset VAR
4435# ---------------
4436# Portably unset VAR.
4437as_fn_unset ()
4438{
4439  { eval $1=; unset $1;}
4440}
4441as_unset=as_fn_unset
4442# as_fn_append VAR VALUE
4443# ----------------------
4444# Append the text in VALUE to the end of the definition contained in VAR. Take
4445# advantage of any shell optimizations that allow amortized linear growth over
4446# repeated appends, instead of the typical quadratic growth present in naive
4447# implementations.
4448if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4449  eval 'as_fn_append ()
4450  {
4451    eval $1+=\$2
4452  }'
4453else
4454  as_fn_append ()
4455  {
4456    eval $1=\$$1\$2
4457  }
4458fi # as_fn_append
4459
4460# as_fn_arith ARG...
4461# ------------------
4462# Perform arithmetic evaluation on the ARGs, and store the result in the
4463# global $as_val. Take advantage of shells that can avoid forks. The arguments
4464# must be portable across $(()) and expr.
4465if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4466  eval 'as_fn_arith ()
4467  {
4468    as_val=$(( $* ))
4469  }'
4470else
4471  as_fn_arith ()
4472  {
4473    as_val=`expr "$@" || test $? -eq 1`
4474  }
4475fi # as_fn_arith
4476
4477
4478if expr a : '\(a\)' >/dev/null 2>&1 &&
4479   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4480  as_expr=expr
4481else
4482  as_expr=false
4483fi
4484
4485if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4486  as_basename=basename
4487else
4488  as_basename=false
4489fi
4490
4491if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4492  as_dirname=dirname
4493else
4494  as_dirname=false
4495fi
4496
4497as_me=`$as_basename -- "$0" ||
4498$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4499	 X"$0" : 'X\(//\)$' \| \
4500	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4501$as_echo X/"$0" |
4502    sed '/^.*\/\([^/][^/]*\)\/*$/{
4503	    s//\1/
4504	    q
4505	  }
4506	  /^X\/\(\/\/\)$/{
4507	    s//\1/
4508	    q
4509	  }
4510	  /^X\/\(\/\).*/{
4511	    s//\1/
4512	    q
4513	  }
4514	  s/.*/./; q'`
4515
4516# Avoid depending upon Character Ranges.
4517as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4518as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4519as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4520as_cr_digits='0123456789'
4521as_cr_alnum=$as_cr_Letters$as_cr_digits
4522
4523ECHO_C= ECHO_N= ECHO_T=
4524case `echo -n x` in #(((((
4525-n*)
4526  case `echo 'xy\c'` in
4527  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4528  xy)  ECHO_C='\c';;
4529  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4530       ECHO_T='	';;
4531  esac;;
4532*)
4533  ECHO_N='-n';;
4534esac
4535
4536rm -f conf$$ conf$$.exe conf$$.file
4537if test -d conf$$.dir; then
4538  rm -f conf$$.dir/conf$$.file
4539else
4540  rm -f conf$$.dir
4541  mkdir conf$$.dir 2>/dev/null
4542fi
4543if (echo >conf$$.file) 2>/dev/null; then
4544  if ln -s conf$$.file conf$$ 2>/dev/null; then
4545    as_ln_s='ln -s'
4546    # ... but there are two gotchas:
4547    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4548    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4549    # In both cases, we have to default to `cp -pR'.
4550    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4551      as_ln_s='cp -pR'
4552  elif ln conf$$.file conf$$ 2>/dev/null; then
4553    as_ln_s=ln
4554  else
4555    as_ln_s='cp -pR'
4556  fi
4557else
4558  as_ln_s='cp -pR'
4559fi
4560rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4561rmdir conf$$.dir 2>/dev/null
4562
4563
4564# as_fn_mkdir_p
4565# -------------
4566# Create "$as_dir" as a directory, including parents if necessary.
4567as_fn_mkdir_p ()
4568{
4569
4570  case $as_dir in #(
4571  -*) as_dir=./$as_dir;;
4572  esac
4573  test -d "$as_dir" || eval $as_mkdir_p || {
4574    as_dirs=
4575    while :; do
4576      case $as_dir in #(
4577      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4578      *) as_qdir=$as_dir;;
4579      esac
4580      as_dirs="'$as_qdir' $as_dirs"
4581      as_dir=`$as_dirname -- "$as_dir" ||
4582$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4583	 X"$as_dir" : 'X\(//\)[^/]' \| \
4584	 X"$as_dir" : 'X\(//\)$' \| \
4585	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4586$as_echo X"$as_dir" |
4587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4588	    s//\1/
4589	    q
4590	  }
4591	  /^X\(\/\/\)[^/].*/{
4592	    s//\1/
4593	    q
4594	  }
4595	  /^X\(\/\/\)$/{
4596	    s//\1/
4597	    q
4598	  }
4599	  /^X\(\/\).*/{
4600	    s//\1/
4601	    q
4602	  }
4603	  s/.*/./; q'`
4604      test -d "$as_dir" && break
4605    done
4606    test -z "$as_dirs" || eval "mkdir $as_dirs"
4607  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4608
4609
4610} # as_fn_mkdir_p
4611if mkdir -p . 2>/dev/null; then
4612  as_mkdir_p='mkdir -p "$as_dir"'
4613else
4614  test -d ./-p && rmdir ./-p
4615  as_mkdir_p=false
4616fi
4617
4618
4619# as_fn_executable_p FILE
4620# -----------------------
4621# Test if FILE is an executable regular file.
4622as_fn_executable_p ()
4623{
4624  test -f "$1" && test -x "$1"
4625} # as_fn_executable_p
4626as_test_x='test -x'
4627as_executable_p=as_fn_executable_p
4628
4629# Sed expression to map a string onto a valid CPP name.
4630as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4631
4632# Sed expression to map a string onto a valid variable name.
4633as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4634
4635
4636exec 6>&1
4637## ----------------------------------- ##
4638## Main body of $CONFIG_STATUS script. ##
4639## ----------------------------------- ##
4640_ASEOF
4641test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4642
4643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4644# Save the log message, to keep $0 and so on meaningful, and to
4645# report actual input values of CONFIG_FILES etc. instead of their
4646# values after options handling.
4647ac_log="
4648This file was extended by $as_me, which was
4649generated by GNU Autoconf 2.69.  Invocation command line was
4650
4651  CONFIG_FILES    = $CONFIG_FILES
4652  CONFIG_HEADERS  = $CONFIG_HEADERS
4653  CONFIG_LINKS    = $CONFIG_LINKS
4654  CONFIG_COMMANDS = $CONFIG_COMMANDS
4655  $ $0 $@
4656
4657on `(hostname || uname -n) 2>/dev/null | sed 1q`
4658"
4659
4660_ACEOF
4661
4662case $ac_config_files in *"
4663"*) set x $ac_config_files; shift; ac_config_files=$*;;
4664esac
4665
4666
4667
4668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4669# Files that config.status was made for.
4670config_files="$ac_config_files"
4671
4672_ACEOF
4673
4674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4675ac_cs_usage="\
4676\`$as_me' instantiates files and other configuration actions
4677from templates according to the current configuration.  Unless the files
4678and actions are specified as TAGs, all are instantiated by default.
4679
4680Usage: $0 [OPTION]... [TAG]...
4681
4682  -h, --help       print this help, then exit
4683  -V, --version    print version number and configuration settings, then exit
4684      --config     print configuration, then exit
4685  -q, --quiet, --silent
4686                   do not print progress messages
4687  -d, --debug      don't remove temporary files
4688      --recheck    update $as_me by reconfiguring in the same conditions
4689      --file=FILE[:TEMPLATE]
4690                   instantiate the configuration file FILE
4691
4692Configuration files:
4693$config_files
4694
4695Report bugs to the package provider."
4696
4697_ACEOF
4698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4699ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4700ac_cs_version="\\
4701config.status
4702configured by $0, generated by GNU Autoconf 2.69,
4703  with options \\"\$ac_cs_config\\"
4704
4705Copyright (C) 2012 Free Software Foundation, Inc.
4706This config.status script is free software; the Free Software Foundation
4707gives unlimited permission to copy, distribute and modify it."
4708
4709ac_pwd='$ac_pwd'
4710srcdir='$srcdir'
4711test -n "\$AWK" || AWK=awk
4712_ACEOF
4713
4714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4715# The default lists apply if the user does not specify any file.
4716ac_need_defaults=:
4717while test $# != 0
4718do
4719  case $1 in
4720  --*=?*)
4721    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4722    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4723    ac_shift=:
4724    ;;
4725  --*=)
4726    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4727    ac_optarg=
4728    ac_shift=:
4729    ;;
4730  *)
4731    ac_option=$1
4732    ac_optarg=$2
4733    ac_shift=shift
4734    ;;
4735  esac
4736
4737  case $ac_option in
4738  # Handling of the options.
4739  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4740    ac_cs_recheck=: ;;
4741  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4742    $as_echo "$ac_cs_version"; exit ;;
4743  --config | --confi | --conf | --con | --co | --c )
4744    $as_echo "$ac_cs_config"; exit ;;
4745  --debug | --debu | --deb | --de | --d | -d )
4746    debug=: ;;
4747  --file | --fil | --fi | --f )
4748    $ac_shift
4749    case $ac_optarg in
4750    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4751    '') as_fn_error $? "missing file argument" ;;
4752    esac
4753    as_fn_append CONFIG_FILES " '$ac_optarg'"
4754    ac_need_defaults=false;;
4755  --he | --h |  --help | --hel | -h )
4756    $as_echo "$ac_cs_usage"; exit ;;
4757  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4758  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4759    ac_cs_silent=: ;;
4760
4761  # This is an error.
4762  -*) as_fn_error $? "unrecognized option: \`$1'
4763Try \`$0 --help' for more information." ;;
4764
4765  *) as_fn_append ac_config_targets " $1"
4766     ac_need_defaults=false ;;
4767
4768  esac
4769  shift
4770done
4771
4772ac_configure_extra_args=
4773
4774if $ac_cs_silent; then
4775  exec 6>/dev/null
4776  ac_configure_extra_args="$ac_configure_extra_args --silent"
4777fi
4778
4779_ACEOF
4780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4781if \$ac_cs_recheck; then
4782  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4783  shift
4784  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4785  CONFIG_SHELL='$SHELL'
4786  export CONFIG_SHELL
4787  exec "\$@"
4788fi
4789
4790_ACEOF
4791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4792exec 5>>config.log
4793{
4794  echo
4795  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4796## Running $as_me. ##
4797_ASBOX
4798  $as_echo "$ac_log"
4799} >&5
4800
4801_ACEOF
4802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4803_ACEOF
4804
4805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4806
4807# Handling of arguments.
4808for ac_config_target in $ac_config_targets
4809do
4810  case $ac_config_target in
4811    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4812
4813  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4814  esac
4815done
4816
4817
4818# If the user did not use the arguments to specify the items to instantiate,
4819# then the envvar interface is used.  Set only those that are not.
4820# We use the long form for the default assignment because of an extremely
4821# bizarre bug on SunOS 4.1.3.
4822if $ac_need_defaults; then
4823  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4824fi
4825
4826# Have a temporary directory for convenience.  Make it in the build tree
4827# simply because there is no reason against having it here, and in addition,
4828# creating and moving files from /tmp can sometimes cause problems.
4829# Hook for its removal unless debugging.
4830# Note that there is a small window in which the directory will not be cleaned:
4831# after its creation but before its name has been assigned to `$tmp'.
4832$debug ||
4833{
4834  tmp= ac_tmp=
4835  trap 'exit_status=$?
4836  : "${ac_tmp:=$tmp}"
4837  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4838' 0
4839  trap 'as_fn_exit 1' 1 2 13 15
4840}
4841# Create a (secure) tmp directory for tmp files.
4842
4843{
4844  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4845  test -d "$tmp"
4846}  ||
4847{
4848  tmp=./conf$$-$RANDOM
4849  (umask 077 && mkdir "$tmp")
4850} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4851ac_tmp=$tmp
4852
4853# Set up the scripts for CONFIG_FILES section.
4854# No need to generate them if there are no CONFIG_FILES.
4855# This happens for instance with `./config.status config.h'.
4856if test -n "$CONFIG_FILES"; then
4857
4858
4859ac_cr=`echo X | tr X '\015'`
4860# On cygwin, bash can eat \r inside `` if the user requested igncr.
4861# But we know of no other shell where ac_cr would be empty at this
4862# point, so we can use a bashism as a fallback.
4863if test "x$ac_cr" = x; then
4864  eval ac_cr=\$\'\\r\'
4865fi
4866ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4867if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4868  ac_cs_awk_cr='\\r'
4869else
4870  ac_cs_awk_cr=$ac_cr
4871fi
4872
4873echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4874_ACEOF
4875
4876
4877{
4878  echo "cat >conf$$subs.awk <<_ACEOF" &&
4879  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4880  echo "_ACEOF"
4881} >conf$$subs.sh ||
4882  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4883ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4884ac_delim='%!_!# '
4885for ac_last_try in false false false false false :; do
4886  . ./conf$$subs.sh ||
4887    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4888
4889  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4890  if test $ac_delim_n = $ac_delim_num; then
4891    break
4892  elif $ac_last_try; then
4893    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4894  else
4895    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4896  fi
4897done
4898rm -f conf$$subs.sh
4899
4900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4901cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4902_ACEOF
4903sed -n '
4904h
4905s/^/S["/; s/!.*/"]=/
4906p
4907g
4908s/^[^!]*!//
4909:repl
4910t repl
4911s/'"$ac_delim"'$//
4912t delim
4913:nl
4914h
4915s/\(.\{148\}\)..*/\1/
4916t more1
4917s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4918p
4919n
4920b repl
4921:more1
4922s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4923p
4924g
4925s/.\{148\}//
4926t nl
4927:delim
4928h
4929s/\(.\{148\}\)..*/\1/
4930t more2
4931s/["\\]/\\&/g; s/^/"/; s/$/"/
4932p
4933b
4934:more2
4935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4936p
4937g
4938s/.\{148\}//
4939t delim
4940' <conf$$subs.awk | sed '
4941/^[^""]/{
4942  N
4943  s/\n//
4944}
4945' >>$CONFIG_STATUS || ac_write_fail=1
4946rm -f conf$$subs.awk
4947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4948_ACAWK
4949cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4950  for (key in S) S_is_set[key] = 1
4951  FS = ""
4952
4953}
4954{
4955  line = $ 0
4956  nfields = split(line, field, "@")
4957  substed = 0
4958  len = length(field[1])
4959  for (i = 2; i < nfields; i++) {
4960    key = field[i]
4961    keylen = length(key)
4962    if (S_is_set[key]) {
4963      value = S[key]
4964      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4965      len += length(value) + length(field[++i])
4966      substed = 1
4967    } else
4968      len += 1 + keylen
4969  }
4970
4971  print line
4972}
4973
4974_ACAWK
4975_ACEOF
4976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4977if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4978  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4979else
4980  cat
4981fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4982  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4983_ACEOF
4984
4985# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4986# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4987# trailing colons and then remove the whole line if VPATH becomes empty
4988# (actually we leave an empty line to preserve line numbers).
4989if test "x$srcdir" = x.; then
4990  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4991h
4992s///
4993s/^/:/
4994s/[	 ]*$/:/
4995s/:\$(srcdir):/:/g
4996s/:\${srcdir}:/:/g
4997s/:@srcdir@:/:/g
4998s/^:*//
4999s/:*$//
5000x
5001s/\(=[	 ]*\).*/\1/
5002G
5003s/\n//
5004s/^[^=]*=[	 ]*$//
5005}'
5006fi
5007
5008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5009fi # test -n "$CONFIG_FILES"
5010
5011
5012eval set X "  :F $CONFIG_FILES      "
5013shift
5014for ac_tag
5015do
5016  case $ac_tag in
5017  :[FHLC]) ac_mode=$ac_tag; continue;;
5018  esac
5019  case $ac_mode$ac_tag in
5020  :[FHL]*:*);;
5021  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5022  :[FH]-) ac_tag=-:-;;
5023  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5024  esac
5025  ac_save_IFS=$IFS
5026  IFS=:
5027  set x $ac_tag
5028  IFS=$ac_save_IFS
5029  shift
5030  ac_file=$1
5031  shift
5032
5033  case $ac_mode in
5034  :L) ac_source=$1;;
5035  :[FH])
5036    ac_file_inputs=
5037    for ac_f
5038    do
5039      case $ac_f in
5040      -) ac_f="$ac_tmp/stdin";;
5041      *) # Look for the file first in the build tree, then in the source tree
5042	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5043	 # because $ac_f cannot contain `:'.
5044	 test -f "$ac_f" ||
5045	   case $ac_f in
5046	   [\\/$]*) false;;
5047	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5048	   esac ||
5049	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5050      esac
5051      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5052      as_fn_append ac_file_inputs " '$ac_f'"
5053    done
5054
5055    # Let's still pretend it is `configure' which instantiates (i.e., don't
5056    # use $as_me), people would be surprised to read:
5057    #    /* config.h.  Generated by config.status.  */
5058    configure_input='Generated from '`
5059	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5060	`' by configure.'
5061    if test x"$ac_file" != x-; then
5062      configure_input="$ac_file.  $configure_input"
5063      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5064$as_echo "$as_me: creating $ac_file" >&6;}
5065    fi
5066    # Neutralize special characters interpreted by sed in replacement strings.
5067    case $configure_input in #(
5068    *\&* | *\|* | *\\* )
5069       ac_sed_conf_input=`$as_echo "$configure_input" |
5070       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5071    *) ac_sed_conf_input=$configure_input;;
5072    esac
5073
5074    case $ac_tag in
5075    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5076      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5077    esac
5078    ;;
5079  esac
5080
5081  ac_dir=`$as_dirname -- "$ac_file" ||
5082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5083	 X"$ac_file" : 'X\(//\)[^/]' \| \
5084	 X"$ac_file" : 'X\(//\)$' \| \
5085	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5086$as_echo X"$ac_file" |
5087    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5088	    s//\1/
5089	    q
5090	  }
5091	  /^X\(\/\/\)[^/].*/{
5092	    s//\1/
5093	    q
5094	  }
5095	  /^X\(\/\/\)$/{
5096	    s//\1/
5097	    q
5098	  }
5099	  /^X\(\/\).*/{
5100	    s//\1/
5101	    q
5102	  }
5103	  s/.*/./; q'`
5104  as_dir="$ac_dir"; as_fn_mkdir_p
5105  ac_builddir=.
5106
5107case "$ac_dir" in
5108.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5109*)
5110  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5111  # A ".." for each directory in $ac_dir_suffix.
5112  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5113  case $ac_top_builddir_sub in
5114  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5115  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5116  esac ;;
5117esac
5118ac_abs_top_builddir=$ac_pwd
5119ac_abs_builddir=$ac_pwd$ac_dir_suffix
5120# for backward compatibility:
5121ac_top_builddir=$ac_top_build_prefix
5122
5123case $srcdir in
5124  .)  # We are building in place.
5125    ac_srcdir=.
5126    ac_top_srcdir=$ac_top_builddir_sub
5127    ac_abs_top_srcdir=$ac_pwd ;;
5128  [\\/]* | ?:[\\/]* )  # Absolute name.
5129    ac_srcdir=$srcdir$ac_dir_suffix;
5130    ac_top_srcdir=$srcdir
5131    ac_abs_top_srcdir=$srcdir ;;
5132  *) # Relative name.
5133    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5134    ac_top_srcdir=$ac_top_build_prefix$srcdir
5135    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5136esac
5137ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5138
5139
5140  case $ac_mode in
5141  :F)
5142  #
5143  # CONFIG_FILE
5144  #
5145
5146_ACEOF
5147
5148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5149# If the template does not know about datarootdir, expand it.
5150# FIXME: This hack should be removed a few years after 2.60.
5151ac_datarootdir_hack=; ac_datarootdir_seen=
5152ac_sed_dataroot='
5153/datarootdir/ {
5154  p
5155  q
5156}
5157/@datadir@/p
5158/@docdir@/p
5159/@infodir@/p
5160/@localedir@/p
5161/@mandir@/p'
5162case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5163*datarootdir*) ac_datarootdir_seen=yes;;
5164*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5166$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5167_ACEOF
5168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5169  ac_datarootdir_hack='
5170  s&@datadir@&$datadir&g
5171  s&@docdir@&$docdir&g
5172  s&@infodir@&$infodir&g
5173  s&@localedir@&$localedir&g
5174  s&@mandir@&$mandir&g
5175  s&\\\${datarootdir}&$datarootdir&g' ;;
5176esac
5177_ACEOF
5178
5179# Neutralize VPATH when `$srcdir' = `.'.
5180# Shell code in configure.ac might set extrasub.
5181# FIXME: do we really want to maintain this feature?
5182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5183ac_sed_extra="$ac_vpsub
5184$extrasub
5185_ACEOF
5186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5187:t
5188/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5189s|@configure_input@|$ac_sed_conf_input|;t t
5190s&@top_builddir@&$ac_top_builddir_sub&;t t
5191s&@top_build_prefix@&$ac_top_build_prefix&;t t
5192s&@srcdir@&$ac_srcdir&;t t
5193s&@abs_srcdir@&$ac_abs_srcdir&;t t
5194s&@top_srcdir@&$ac_top_srcdir&;t t
5195s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5196s&@builddir@&$ac_builddir&;t t
5197s&@abs_builddir@&$ac_abs_builddir&;t t
5198s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5199$ac_datarootdir_hack
5200"
5201eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5202  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5203
5204test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5205  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5206  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5207      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5208  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5209which seems to be undefined.  Please make sure it is defined" >&5
5210$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5211which seems to be undefined.  Please make sure it is defined" >&2;}
5212
5213  rm -f "$ac_tmp/stdin"
5214  case $ac_file in
5215  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5216  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5217  esac \
5218  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5219 ;;
5220
5221
5222
5223  esac
5224
5225done # for ac_tag
5226
5227
5228as_fn_exit 0
5229_ACEOF
5230ac_clean_files=$ac_clean_files_save
5231
5232test $ac_write_fail = 0 ||
5233  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5234
5235
5236# configure is writing to config.log, and then calls config.status.
5237# config.status does its own redirection, appending to config.log.
5238# Unfortunately, on DOS this fails, as config.log is still kept open
5239# by configure, so config.status won't be able to write to it; its
5240# output is simply discarded.  So we exec the FD to /dev/null,
5241# effectively closing config.log, so it can be properly (re)opened and
5242# appended to by config.status.  When coming back to configure, we
5243# need to make the FD available again.
5244if test "$no_create" != yes; then
5245  ac_cs_success=:
5246  ac_config_status_args=
5247  test "$silent" = yes &&
5248    ac_config_status_args="$ac_config_status_args --quiet"
5249  exec 5>/dev/null
5250  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5251  exec 5>>config.log
5252  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5253  # would make configure fail if this is the last instruction.
5254  $ac_cs_success || as_fn_exit 1
5255fi
5256if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5257  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5258$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5259fi
5260
5261