cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

configure (147684B)


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