Nasty attempt to fix building of testnative across various platforms.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 09 Aug 2012 14:28:45 -0400
changeset 63903047baa4a5e0
parent 6389 43a190ad60a7
child 6391 ae8952e7e769
Nasty attempt to fix building of testnative across various platforms.

The world longs for a hero named CMake.
test/Makefile.in
test/configure
test/configure.in
     1.1 --- a/test/Makefile.in	Thu Aug 09 14:14:41 2012 -0400
     1.2 +++ b/test/Makefile.in	Thu Aug 09 14:28:45 2012 -0400
     1.3 @@ -121,11 +121,25 @@
     1.4  testlock$(EXE): $(srcdir)/testlock.c
     1.5  	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
     1.6  
     1.7 +ifeq (@ISMACOSX@,true)
     1.8  testnative$(EXE): $(srcdir)/testnative.c \
     1.9  			$(srcdir)/testnativecocoa.m \
    1.10  			$(srcdir)/testnativew32.c \
    1.11  			$(srcdir)/testnativex11.c
    1.12  	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11 -framework Cocoa
    1.13 +endif
    1.14 +
    1.15 +ifeq (@ISWINDOWS@,true)
    1.16 +testnative$(EXE): $(srcdir)/testnative.c \
    1.17 +			$(srcdir)/testnativew32.c
    1.18 +	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
    1.19 +endif
    1.20 +
    1.21 +ifeq (@ISUNIX@,true)
    1.22 +testnative$(EXE): $(srcdir)/testnative.c \
    1.23 +			$(srcdir)/testnativex11.c
    1.24 +	$(CC) -o $@ $? $(CFLAGS) $(LIBS) -L/usr/X11/lib -lX11
    1.25 +endif
    1.26  
    1.27  testoverlay2$(EXE): $(srcdir)/testoverlay2.c
    1.28  	$(CC) -o $@ $? $(CFLAGS) $(LIBS)
     2.1 --- a/test/configure	Thu Aug 09 14:14:41 2012 -0400
     2.2 +++ b/test/configure	Thu Aug 09 14:28:45 2012 -0400
     2.3 @@ -1,60 +1,83 @@
     2.4  #! /bin/sh
     2.5  # Guess values for system-dependent variables and create Makefiles.
     2.6 -# Generated by GNU Autoconf 2.61.
     2.7 +# Generated by GNU Autoconf 2.68.
     2.8 +#
     2.9  #
    2.10  # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    2.11 -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
    2.12 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    2.13 +# Foundation, Inc.
    2.14 +#
    2.15 +#
    2.16  # This configure script is free software; the Free Software Foundation
    2.17  # gives unlimited permission to copy, distribute and modify it.
    2.18 -## --------------------- ##
    2.19 -## M4sh Initialization.  ##
    2.20 -## --------------------- ##
    2.21 +## -------------------- ##
    2.22 +## M4sh Initialization. ##
    2.23 +## -------------------- ##
    2.24  
    2.25  # Be more Bourne compatible
    2.26  DUALCASE=1; export DUALCASE # for MKS sh
    2.27 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    2.28 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
    2.29    emulate sh
    2.30    NULLCMD=:
    2.31 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    2.32 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
    2.33    # is contrary to our usage.  Disable this feature.
    2.34    alias -g '${1+"$@"}'='"$@"'
    2.35    setopt NO_GLOB_SUBST
    2.36  else
    2.37 -  case `(set -o) 2>/dev/null` in
    2.38 -  *posix*) set -o posix ;;
    2.39 +  case `(set -o) 2>/dev/null` in #(
    2.40 +  *posix*) :
    2.41 +    set -o posix ;; #(
    2.42 +  *) :
    2.43 +     ;;
    2.44  esac
    2.45 -
    2.46  fi
    2.47  
    2.48  
    2.49 -
    2.50 -
    2.51 -# PATH needs CR
    2.52 -# Avoid depending upon Character Ranges.
    2.53 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    2.54 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    2.55 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    2.56 -as_cr_digits='0123456789'
    2.57 -as_cr_alnum=$as_cr_Letters$as_cr_digits
    2.58 +as_nl='
    2.59 +'
    2.60 +export as_nl
    2.61 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
    2.62 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    2.63 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
    2.64 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
    2.65 +# Prefer a ksh shell builtin over an external printf program on Solaris,
    2.66 +# but without wasting forks for bash or zsh.
    2.67 +if test -z "$BASH_VERSION$ZSH_VERSION" \
    2.68 +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
    2.69 +  as_echo='print -r --'
    2.70 +  as_echo_n='print -rn --'
    2.71 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
    2.72 +  as_echo='printf %s\n'
    2.73 +  as_echo_n='printf %s'
    2.74 +else
    2.75 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    2.76 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    2.77 +    as_echo_n='/usr/ucb/echo -n'
    2.78 +  else
    2.79 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    2.80 +    as_echo_n_body='eval
    2.81 +      arg=$1;
    2.82 +      case $arg in #(
    2.83 +      *"$as_nl"*)
    2.84 +	expr "X$arg" : "X\\(.*\\)$as_nl";
    2.85 +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
    2.86 +      esac;
    2.87 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    2.88 +    '
    2.89 +    export as_echo_n_body
    2.90 +    as_echo_n='sh -c $as_echo_n_body as_echo'
    2.91 +  fi
    2.92 +  export as_echo_body
    2.93 +  as_echo='sh -c $as_echo_body as_echo'
    2.94 +fi
    2.95  
    2.96  # The user is always right.
    2.97  if test "${PATH_SEPARATOR+set}" != set; then
    2.98 -  echo "#! /bin/sh" >conf$$.sh
    2.99 -  echo  "exit 0"   >>conf$$.sh
   2.100 -  chmod +x conf$$.sh
   2.101 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   2.102 -    PATH_SEPARATOR=';'
   2.103 -  else
   2.104 -    PATH_SEPARATOR=:
   2.105 -  fi
   2.106 -  rm -f conf$$.sh
   2.107 -fi
   2.108 -
   2.109 -# Support unset when possible.
   2.110 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   2.111 -  as_unset=unset
   2.112 -else
   2.113 -  as_unset=false
   2.114 +  PATH_SEPARATOR=:
   2.115 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   2.116 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   2.117 +      PATH_SEPARATOR=';'
   2.118 +  }
   2.119  fi
   2.120  
   2.121  
   2.122 @@ -63,20 +86,19 @@
   2.123  # there to prevent editors from complaining about space-tab.
   2.124  # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   2.125  # splitting by setting IFS to empty value.)
   2.126 -as_nl='
   2.127 -'
   2.128  IFS=" ""	$as_nl"
   2.129  
   2.130  # Find who we are.  Look in the path if we contain no directory separator.
   2.131 -case $0 in
   2.132 +as_myself=
   2.133 +case $0 in #((
   2.134    *[\\/]* ) as_myself=$0 ;;
   2.135    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2.136  for as_dir in $PATH
   2.137  do
   2.138    IFS=$as_save_IFS
   2.139    test -z "$as_dir" && as_dir=.
   2.140 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   2.141 -done
   2.142 +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   2.143 +  done
   2.144  IFS=$as_save_IFS
   2.145  
   2.146       ;;
   2.147 @@ -87,32 +109,276 @@
   2.148    as_myself=$0
   2.149  fi
   2.150  if test ! -f "$as_myself"; then
   2.151 -  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   2.152 -  { (exit 1); exit 1; }
   2.153 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   2.154 +  exit 1
   2.155  fi
   2.156  
   2.157 -# Work around bugs in pre-3.0 UWIN ksh.
   2.158 -for as_var in ENV MAIL MAILPATH
   2.159 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   2.160 +# Unset variables that we do not need and which cause bugs (e.g. in
   2.161 +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   2.162 +# suppresses any "Segmentation fault" message there.  '((' could
   2.163 +# trigger a bug in pdksh 5.2.14.
   2.164 +for as_var in BASH_ENV ENV MAIL MAILPATH
   2.165 +do eval test x\${$as_var+set} = xset \
   2.166 +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   2.167  done
   2.168  PS1='$ '
   2.169  PS2='> '
   2.170  PS4='+ '
   2.171  
   2.172  # NLS nuisances.
   2.173 -for as_var in \
   2.174 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   2.175 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   2.176 -  LC_TELEPHONE LC_TIME
   2.177 +LC_ALL=C
   2.178 +export LC_ALL
   2.179 +LANGUAGE=C
   2.180 +export LANGUAGE
   2.181 +
   2.182 +# CDPATH.
   2.183 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   2.184 +
   2.185 +if test "x$CONFIG_SHELL" = x; then
   2.186 +  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
   2.187 +  emulate sh
   2.188 +  NULLCMD=:
   2.189 +  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
   2.190 +  # is contrary to our usage.  Disable this feature.
   2.191 +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
   2.192 +  setopt NO_GLOB_SUBST
   2.193 +else
   2.194 +  case \`(set -o) 2>/dev/null\` in #(
   2.195 +  *posix*) :
   2.196 +    set -o posix ;; #(
   2.197 +  *) :
   2.198 +     ;;
   2.199 +esac
   2.200 +fi
   2.201 +"
   2.202 +  as_required="as_fn_return () { (exit \$1); }
   2.203 +as_fn_success () { as_fn_return 0; }
   2.204 +as_fn_failure () { as_fn_return 1; }
   2.205 +as_fn_ret_success () { return 0; }
   2.206 +as_fn_ret_failure () { return 1; }
   2.207 +
   2.208 +exitcode=0
   2.209 +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
   2.210 +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
   2.211 +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
   2.212 +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
   2.213 +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
   2.214 +
   2.215 +else
   2.216 +  exitcode=1; echo positional parameters were not saved.
   2.217 +fi
   2.218 +test x\$exitcode = x0 || exit 1"
   2.219 +  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
   2.220 +  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   2.221 +  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
   2.222 +  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
   2.223 +  if (eval "$as_required") 2>/dev/null; then :
   2.224 +  as_have_required=yes
   2.225 +else
   2.226 +  as_have_required=no
   2.227 +fi
   2.228 +  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
   2.229 +
   2.230 +else
   2.231 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2.232 +as_found=false
   2.233 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   2.234  do
   2.235 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   2.236 -    eval $as_var=C; export $as_var
   2.237 +  IFS=$as_save_IFS
   2.238 +  test -z "$as_dir" && as_dir=.
   2.239 +  as_found=:
   2.240 +  case $as_dir in #(
   2.241 +	 /*)
   2.242 +	   for as_base in sh bash ksh sh5; do
   2.243 +	     # Try only shells that exist, to save several forks.
   2.244 +	     as_shell=$as_dir/$as_base
   2.245 +	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   2.246 +		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
   2.247 +  CONFIG_SHELL=$as_shell as_have_required=yes
   2.248 +		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
   2.249 +  break 2
   2.250 +fi
   2.251 +fi
   2.252 +	   done;;
   2.253 +       esac
   2.254 +  as_found=false
   2.255 +done
   2.256 +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
   2.257 +	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
   2.258 +  CONFIG_SHELL=$SHELL as_have_required=yes
   2.259 +fi; }
   2.260 +IFS=$as_save_IFS
   2.261 +
   2.262 +
   2.263 +      if test "x$CONFIG_SHELL" != x; then :
   2.264 +  # We cannot yet assume a decent shell, so we have to provide a
   2.265 +	# neutralization value for shells without unset; and this also
   2.266 +	# works around shells that cannot unset nonexistent variables.
   2.267 +	# Preserve -v and -x to the replacement shell.
   2.268 +	BASH_ENV=/dev/null
   2.269 +	ENV=/dev/null
   2.270 +	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   2.271 +	export CONFIG_SHELL
   2.272 +	case $- in # ((((
   2.273 +	  *v*x* | *x*v* ) as_opts=-vx ;;
   2.274 +	  *v* ) as_opts=-v ;;
   2.275 +	  *x* ) as_opts=-x ;;
   2.276 +	  * ) as_opts= ;;
   2.277 +	esac
   2.278 +	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
   2.279 +fi
   2.280 +
   2.281 +    if test x$as_have_required = xno; then :
   2.282 +  $as_echo "$0: This script requires a shell more modern than all"
   2.283 +  $as_echo "$0: the shells that I found on your system."
   2.284 +  if test x${ZSH_VERSION+set} = xset ; then
   2.285 +    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
   2.286 +    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   2.287    else
   2.288 -    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   2.289 +    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
   2.290 +$0: including any error possibly output before this
   2.291 +$0: message. Then install a modern shell, or manually run
   2.292 +$0: the script under such a shell if you do have one."
   2.293    fi
   2.294 -done
   2.295 -
   2.296 -# Required to use basename.
   2.297 +  exit 1
   2.298 +fi
   2.299 +fi
   2.300 +fi
   2.301 +SHELL=${CONFIG_SHELL-/bin/sh}
   2.302 +export SHELL
   2.303 +# Unset more variables known to interfere with behavior of common tools.
   2.304 +CLICOLOR_FORCE= GREP_OPTIONS=
   2.305 +unset CLICOLOR_FORCE GREP_OPTIONS
   2.306 +
   2.307 +## --------------------- ##
   2.308 +## M4sh Shell Functions. ##
   2.309 +## --------------------- ##
   2.310 +# as_fn_unset VAR
   2.311 +# ---------------
   2.312 +# Portably unset VAR.
   2.313 +as_fn_unset ()
   2.314 +{
   2.315 +  { eval $1=; unset $1;}
   2.316 +}
   2.317 +as_unset=as_fn_unset
   2.318 +
   2.319 +# as_fn_set_status STATUS
   2.320 +# -----------------------
   2.321 +# Set $? to STATUS, without forking.
   2.322 +as_fn_set_status ()
   2.323 +{
   2.324 +  return $1
   2.325 +} # as_fn_set_status
   2.326 +
   2.327 +# as_fn_exit STATUS
   2.328 +# -----------------
   2.329 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   2.330 +as_fn_exit ()
   2.331 +{
   2.332 +  set +e
   2.333 +  as_fn_set_status $1
   2.334 +  exit $1
   2.335 +} # as_fn_exit
   2.336 +
   2.337 +# as_fn_mkdir_p
   2.338 +# -------------
   2.339 +# Create "$as_dir" as a directory, including parents if necessary.
   2.340 +as_fn_mkdir_p ()
   2.341 +{
   2.342 +
   2.343 +  case $as_dir in #(
   2.344 +  -*) as_dir=./$as_dir;;
   2.345 +  esac
   2.346 +  test -d "$as_dir" || eval $as_mkdir_p || {
   2.347 +    as_dirs=
   2.348 +    while :; do
   2.349 +      case $as_dir in #(
   2.350 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   2.351 +      *) as_qdir=$as_dir;;
   2.352 +      esac
   2.353 +      as_dirs="'$as_qdir' $as_dirs"
   2.354 +      as_dir=`$as_dirname -- "$as_dir" ||
   2.355 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   2.356 +	 X"$as_dir" : 'X\(//\)[^/]' \| \
   2.357 +	 X"$as_dir" : 'X\(//\)$' \| \
   2.358 +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   2.359 +$as_echo X"$as_dir" |
   2.360 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   2.361 +	    s//\1/
   2.362 +	    q
   2.363 +	  }
   2.364 +	  /^X\(\/\/\)[^/].*/{
   2.365 +	    s//\1/
   2.366 +	    q
   2.367 +	  }
   2.368 +	  /^X\(\/\/\)$/{
   2.369 +	    s//\1/
   2.370 +	    q
   2.371 +	  }
   2.372 +	  /^X\(\/\).*/{
   2.373 +	    s//\1/
   2.374 +	    q
   2.375 +	  }
   2.376 +	  s/.*/./; q'`
   2.377 +      test -d "$as_dir" && break
   2.378 +    done
   2.379 +    test -z "$as_dirs" || eval "mkdir $as_dirs"
   2.380 +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   2.381 +
   2.382 +
   2.383 +} # as_fn_mkdir_p
   2.384 +# as_fn_append VAR VALUE
   2.385 +# ----------------------
   2.386 +# Append the text in VALUE to the end of the definition contained in VAR. Take
   2.387 +# advantage of any shell optimizations that allow amortized linear growth over
   2.388 +# repeated appends, instead of the typical quadratic growth present in naive
   2.389 +# implementations.
   2.390 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   2.391 +  eval 'as_fn_append ()
   2.392 +  {
   2.393 +    eval $1+=\$2
   2.394 +  }'
   2.395 +else
   2.396 +  as_fn_append ()
   2.397 +  {
   2.398 +    eval $1=\$$1\$2
   2.399 +  }
   2.400 +fi # as_fn_append
   2.401 +
   2.402 +# as_fn_arith ARG...
   2.403 +# ------------------
   2.404 +# Perform arithmetic evaluation on the ARGs, and store the result in the
   2.405 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
   2.406 +# must be portable across $(()) and expr.
   2.407 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   2.408 +  eval 'as_fn_arith ()
   2.409 +  {
   2.410 +    as_val=$(( $* ))
   2.411 +  }'
   2.412 +else
   2.413 +  as_fn_arith ()
   2.414 +  {
   2.415 +    as_val=`expr "$@" || test $? -eq 1`
   2.416 +  }
   2.417 +fi # as_fn_arith
   2.418 +
   2.419 +
   2.420 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
   2.421 +# ----------------------------------------
   2.422 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   2.423 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   2.424 +# script with STATUS, using 1 if that was 0.
   2.425 +as_fn_error ()
   2.426 +{
   2.427 +  as_status=$1; test $as_status -eq 0 && as_status=1
   2.428 +  if test "$4"; then
   2.429 +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2.430 +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   2.431 +  fi
   2.432 +  $as_echo "$as_me: error: $2" >&2
   2.433 +  as_fn_exit $as_status
   2.434 +} # as_fn_error
   2.435 +
   2.436  if expr a : '\(a\)' >/dev/null 2>&1 &&
   2.437     test "X`expr 00001 : '.*\(...\)'`" = X001; then
   2.438    as_expr=expr
   2.439 @@ -126,13 +392,17 @@
   2.440    as_basename=false
   2.441  fi
   2.442  
   2.443 -
   2.444 -# Name of the executable.
   2.445 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   2.446 +  as_dirname=dirname
   2.447 +else
   2.448 +  as_dirname=false
   2.449 +fi
   2.450 +
   2.451  as_me=`$as_basename -- "$0" ||
   2.452  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   2.453  	 X"$0" : 'X\(//\)$' \| \
   2.454  	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   2.455 -echo X/"$0" |
   2.456 +$as_echo X/"$0" |
   2.457      sed '/^.*\/\([^/][^/]*\)\/*$/{
   2.458  	    s//\1/
   2.459  	    q
   2.460 @@ -147,294 +417,19 @@
   2.461  	  }
   2.462  	  s/.*/./; q'`
   2.463  
   2.464 -# CDPATH.
   2.465 -$as_unset CDPATH
   2.466 -
   2.467 -
   2.468 -if test "x$CONFIG_SHELL" = x; then
   2.469 -  if (eval ":") 2>/dev/null; then
   2.470 -  as_have_required=yes
   2.471 -else
   2.472 -  as_have_required=no
   2.473 -fi
   2.474 -
   2.475 -  if test $as_have_required = yes && 	 (eval ":
   2.476 -(as_func_return () {
   2.477 -  (exit \$1)
   2.478 -}
   2.479 -as_func_success () {
   2.480 -  as_func_return 0
   2.481 -}
   2.482 -as_func_failure () {
   2.483 -  as_func_return 1
   2.484 -}
   2.485 -as_func_ret_success () {
   2.486 -  return 0
   2.487 -}
   2.488 -as_func_ret_failure () {
   2.489 -  return 1
   2.490 -}
   2.491 -
   2.492 -exitcode=0
   2.493 -if as_func_success; then
   2.494 -  :
   2.495 -else
   2.496 -  exitcode=1
   2.497 -  echo as_func_success failed.
   2.498 -fi
   2.499 -
   2.500 -if as_func_failure; then
   2.501 -  exitcode=1
   2.502 -  echo as_func_failure succeeded.
   2.503 -fi
   2.504 -
   2.505 -if as_func_ret_success; then
   2.506 -  :
   2.507 -else
   2.508 -  exitcode=1
   2.509 -  echo as_func_ret_success failed.
   2.510 -fi
   2.511 -
   2.512 -if as_func_ret_failure; then
   2.513 -  exitcode=1
   2.514 -  echo as_func_ret_failure succeeded.
   2.515 -fi
   2.516 -
   2.517 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   2.518 -  :
   2.519 -else
   2.520 -  exitcode=1
   2.521 -  echo positional parameters were not saved.
   2.522 -fi
   2.523 -
   2.524 -test \$exitcode = 0) || { (exit 1); exit 1; }
   2.525 -
   2.526 -(
   2.527 -  as_lineno_1=\$LINENO
   2.528 -  as_lineno_2=\$LINENO
   2.529 -  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
   2.530 -  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
   2.531 -") 2> /dev/null; then
   2.532 -  :
   2.533 -else
   2.534 -  as_candidate_shells=
   2.535 -    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2.536 -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
   2.537 -do
   2.538 -  IFS=$as_save_IFS
   2.539 -  test -z "$as_dir" && as_dir=.
   2.540 -  case $as_dir in
   2.541 -	 /*)
   2.542 -	   for as_base in sh bash ksh sh5; do
   2.543 -	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
   2.544 -	   done;;
   2.545 -       esac
   2.546 -done
   2.547 -IFS=$as_save_IFS
   2.548 -
   2.549 -
   2.550 -      for as_shell in $as_candidate_shells $SHELL; do
   2.551 -	 # Try only shells that exist, to save several forks.
   2.552 -	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
   2.553 -		{ ("$as_shell") 2> /dev/null <<\_ASEOF
   2.554 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   2.555 -  emulate sh
   2.556 -  NULLCMD=:
   2.557 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   2.558 -  # is contrary to our usage.  Disable this feature.
   2.559 -  alias -g '${1+"$@"}'='"$@"'
   2.560 -  setopt NO_GLOB_SUBST
   2.561 -else
   2.562 -  case `(set -o) 2>/dev/null` in
   2.563 -  *posix*) set -o posix ;;
   2.564 -esac
   2.565 -
   2.566 -fi
   2.567 -
   2.568 -
   2.569 -:
   2.570 -_ASEOF
   2.571 -}; then
   2.572 -  CONFIG_SHELL=$as_shell
   2.573 -	       as_have_required=yes
   2.574 -	       if { "$as_shell" 2> /dev/null <<\_ASEOF
   2.575 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   2.576 -  emulate sh
   2.577 -  NULLCMD=:
   2.578 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   2.579 -  # is contrary to our usage.  Disable this feature.
   2.580 -  alias -g '${1+"$@"}'='"$@"'
   2.581 -  setopt NO_GLOB_SUBST
   2.582 -else
   2.583 -  case `(set -o) 2>/dev/null` in
   2.584 -  *posix*) set -o posix ;;
   2.585 -esac
   2.586 -
   2.587 -fi
   2.588 -
   2.589 -
   2.590 -:
   2.591 -(as_func_return () {
   2.592 -  (exit $1)
   2.593 -}
   2.594 -as_func_success () {
   2.595 -  as_func_return 0
   2.596 -}
   2.597 -as_func_failure () {
   2.598 -  as_func_return 1
   2.599 -}
   2.600 -as_func_ret_success () {
   2.601 -  return 0
   2.602 -}
   2.603 -as_func_ret_failure () {
   2.604 -  return 1
   2.605 -}
   2.606 -
   2.607 -exitcode=0
   2.608 -if as_func_success; then
   2.609 -  :
   2.610 -else
   2.611 -  exitcode=1
   2.612 -  echo as_func_success failed.
   2.613 -fi
   2.614 -
   2.615 -if as_func_failure; then
   2.616 -  exitcode=1
   2.617 -  echo as_func_failure succeeded.
   2.618 -fi
   2.619 -
   2.620 -if as_func_ret_success; then
   2.621 -  :
   2.622 -else
   2.623 -  exitcode=1
   2.624 -  echo as_func_ret_success failed.
   2.625 -fi
   2.626 -
   2.627 -if as_func_ret_failure; then
   2.628 -  exitcode=1
   2.629 -  echo as_func_ret_failure succeeded.
   2.630 -fi
   2.631 -
   2.632 -if ( set x; as_func_ret_success y && test x = "$1" ); then
   2.633 -  :
   2.634 -else
   2.635 -  exitcode=1
   2.636 -  echo positional parameters were not saved.
   2.637 -fi
   2.638 -
   2.639 -test $exitcode = 0) || { (exit 1); exit 1; }
   2.640 -
   2.641 -(
   2.642 -  as_lineno_1=$LINENO
   2.643 -  as_lineno_2=$LINENO
   2.644 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
   2.645 -  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
   2.646 -
   2.647 -_ASEOF
   2.648 -}; then
   2.649 -  break
   2.650 -fi
   2.651 -
   2.652 -fi
   2.653 -
   2.654 -      done
   2.655 -
   2.656 -      if test "x$CONFIG_SHELL" != x; then
   2.657 -  for as_var in BASH_ENV ENV
   2.658 -        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
   2.659 -        done
   2.660 -        export CONFIG_SHELL
   2.661 -        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
   2.662 -fi
   2.663 -
   2.664 -
   2.665 -    if test $as_have_required = no; then
   2.666 -  echo This script requires a shell more modern than all the
   2.667 -      echo shells that I found on your system.  Please install a
   2.668 -      echo modern shell, or manually run the script under such a
   2.669 -      echo shell if you do have one.
   2.670 -      { (exit 1); exit 1; }
   2.671 -fi
   2.672 -
   2.673 -
   2.674 -fi
   2.675 -
   2.676 -fi
   2.677 -
   2.678 -
   2.679 -
   2.680 -(eval "as_func_return () {
   2.681 -  (exit \$1)
   2.682 -}
   2.683 -as_func_success () {
   2.684 -  as_func_return 0
   2.685 -}
   2.686 -as_func_failure () {
   2.687 -  as_func_return 1
   2.688 -}
   2.689 -as_func_ret_success () {
   2.690 -  return 0
   2.691 -}
   2.692 -as_func_ret_failure () {
   2.693 -  return 1
   2.694 -}
   2.695 -
   2.696 -exitcode=0
   2.697 -if as_func_success; then
   2.698 -  :
   2.699 -else
   2.700 -  exitcode=1
   2.701 -  echo as_func_success failed.
   2.702 -fi
   2.703 -
   2.704 -if as_func_failure; then
   2.705 -  exitcode=1
   2.706 -  echo as_func_failure succeeded.
   2.707 -fi
   2.708 -
   2.709 -if as_func_ret_success; then
   2.710 -  :
   2.711 -else
   2.712 -  exitcode=1
   2.713 -  echo as_func_ret_success failed.
   2.714 -fi
   2.715 -
   2.716 -if as_func_ret_failure; then
   2.717 -  exitcode=1
   2.718 -  echo as_func_ret_failure succeeded.
   2.719 -fi
   2.720 -
   2.721 -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
   2.722 -  :
   2.723 -else
   2.724 -  exitcode=1
   2.725 -  echo positional parameters were not saved.
   2.726 -fi
   2.727 -
   2.728 -test \$exitcode = 0") || {
   2.729 -  echo No shell found that supports shell functions.
   2.730 -  echo Please tell autoconf@gnu.org about your system,
   2.731 -  echo including any error possibly output before this
   2.732 -  echo message
   2.733 -}
   2.734 -
   2.735 -
   2.736 -
   2.737 -  as_lineno_1=$LINENO
   2.738 -  as_lineno_2=$LINENO
   2.739 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
   2.740 -  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
   2.741 -
   2.742 -  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
   2.743 -  # uniformly replaced by the line number.  The first 'sed' inserts a
   2.744 -  # line-number line after each line using $LINENO; the second 'sed'
   2.745 -  # does the real work.  The second script uses 'N' to pair each
   2.746 -  # line-number line with the line containing $LINENO, and appends
   2.747 -  # trailing '-' during substitution so that $LINENO is not a special
   2.748 -  # case at line end.
   2.749 -  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
   2.750 -  # scripts with optimization help from Paolo Bonzini.  Blame Lee
   2.751 -  # E. McMahon (1931-1989) for sed's syntax.  :-)
   2.752 +# Avoid depending upon Character Ranges.
   2.753 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   2.754 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   2.755 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   2.756 +as_cr_digits='0123456789'
   2.757 +as_cr_alnum=$as_cr_Letters$as_cr_digits
   2.758 +
   2.759 +
   2.760 +  as_lineno_1=$LINENO as_lineno_1a=$LINENO
   2.761 +  as_lineno_2=$LINENO as_lineno_2a=$LINENO
   2.762 +  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
   2.763 +  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
   2.764 +  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
   2.765    sed -n '
   2.766      p
   2.767      /[$]LINENO/=
   2.768 @@ -451,8 +446,7 @@
   2.769        s/-\n.*//
   2.770      ' >$as_me.lineno &&
   2.771    chmod +x "$as_me.lineno" ||
   2.772 -    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   2.773 -   { (exit 1); exit 1; }; }
   2.774 +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
   2.775  
   2.776    # Don't try to exec as it changes $[0], causing all sort of problems
   2.777    # (the dirname of $[0] is not the place where we might find the
   2.778 @@ -462,49 +456,40 @@
   2.779    exit
   2.780  }
   2.781  
   2.782 -
   2.783 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   2.784 -  as_dirname=dirname
   2.785 -else
   2.786 -  as_dirname=false
   2.787 -fi
   2.788 -
   2.789  ECHO_C= ECHO_N= ECHO_T=
   2.790 -case `echo -n x` in
   2.791 +case `echo -n x` in #(((((
   2.792  -n*)
   2.793 -  case `echo 'x\c'` in
   2.794 +  case `echo 'xy\c'` in
   2.795    *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   2.796 -  *)   ECHO_C='\c';;
   2.797 +  xy)  ECHO_C='\c';;
   2.798 +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   2.799 +       ECHO_T='	';;
   2.800    esac;;
   2.801  *)
   2.802    ECHO_N='-n';;
   2.803  esac
   2.804  
   2.805 -if expr a : '\(a\)' >/dev/null 2>&1 &&
   2.806 -   test "X`expr 00001 : '.*\(...\)'`" = X001; then
   2.807 -  as_expr=expr
   2.808 -else
   2.809 -  as_expr=false
   2.810 -fi
   2.811 -
   2.812  rm -f conf$$ conf$$.exe conf$$.file
   2.813  if test -d conf$$.dir; then
   2.814    rm -f conf$$.dir/conf$$.file
   2.815  else
   2.816    rm -f conf$$.dir
   2.817 -  mkdir conf$$.dir
   2.818 +  mkdir conf$$.dir 2>/dev/null
   2.819  fi
   2.820 -echo >conf$$.file
   2.821 -if ln -s conf$$.file conf$$ 2>/dev/null; then
   2.822 -  as_ln_s='ln -s'
   2.823 -  # ... but there are two gotchas:
   2.824 -  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   2.825 -  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   2.826 -  # In both cases, we have to default to `cp -p'.
   2.827 -  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   2.828 +if (echo >conf$$.file) 2>/dev/null; then
   2.829 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
   2.830 +    as_ln_s='ln -s'
   2.831 +    # ... but there are two gotchas:
   2.832 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   2.833 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   2.834 +    # In both cases, we have to default to `cp -p'.
   2.835 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   2.836 +      as_ln_s='cp -p'
   2.837 +  elif ln conf$$.file conf$$ 2>/dev/null; then
   2.838 +    as_ln_s=ln
   2.839 +  else
   2.840      as_ln_s='cp -p'
   2.841 -elif ln conf$$.file conf$$ 2>/dev/null; then
   2.842 -  as_ln_s=ln
   2.843 +  fi
   2.844  else
   2.845    as_ln_s='cp -p'
   2.846  fi
   2.847 @@ -512,7 +497,7 @@
   2.848  rmdir conf$$.dir 2>/dev/null
   2.849  
   2.850  if mkdir -p . 2>/dev/null; then
   2.851 -  as_mkdir_p=:
   2.852 +  as_mkdir_p='mkdir -p "$as_dir"'
   2.853  else
   2.854    test -d ./-p && rmdir ./-p
   2.855    as_mkdir_p=false
   2.856 @@ -529,12 +514,12 @@
   2.857    as_test_x='
   2.858      eval sh -c '\''
   2.859        if test -d "$1"; then
   2.860 -        test -d "$1/.";
   2.861 +	test -d "$1/.";
   2.862        else
   2.863 -	case $1 in
   2.864 -        -*)set "./$1";;
   2.865 +	case $1 in #(
   2.866 +	-*)set "./$1";;
   2.867  	esac;
   2.868 -	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
   2.869 +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   2.870  	???[sx]*):;;*)false;;esac;fi
   2.871      '\'' sh
   2.872    '
   2.873 @@ -548,11 +533,11 @@
   2.874  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   2.875  
   2.876  
   2.877 -
   2.878 -exec 7<&0 </dev/null 6>&1
   2.879 +test -n "$DJDIR" || exec 7<&0 </dev/null
   2.880 +exec 6>&1
   2.881  
   2.882  # Name of the host.
   2.883 -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
   2.884 +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
   2.885  # so uname gets run too.
   2.886  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
   2.887  
   2.888 @@ -567,7 +552,6 @@
   2.889  subdirs=
   2.890  MFLAGS=
   2.891  MAKEFLAGS=
   2.892 -SHELL=${CONFIG_SHELL-/bin/sh}
   2.893  
   2.894  # Identity of this package.
   2.895  PACKAGE_NAME=
   2.896 @@ -575,76 +559,88 @@
   2.897  PACKAGE_VERSION=
   2.898  PACKAGE_STRING=
   2.899  PACKAGE_BUGREPORT=
   2.900 +PACKAGE_URL=
   2.901  
   2.902  ac_unique_file="README"
   2.903 -ac_subst_vars='SHELL
   2.904 +ac_subst_vars='LTLIBOBJS
   2.905 +LIBOBJS
   2.906 +SDL_TTF_LIB
   2.907 +GLLIB
   2.908 +CPP
   2.909 +XMKMF
   2.910 +SDL_CONFIG
   2.911 +SDL_LIBS
   2.912 +SDL_CFLAGS
   2.913 +PKG_CONFIG_LIBDIR
   2.914 +PKG_CONFIG_PATH
   2.915 +PKG_CONFIG
   2.916 +ISUNIX
   2.917 +ISWINDOWS
   2.918 +ISMACOSX
   2.919 +MATHLIB
   2.920 +EXE
   2.921 +OSMESA_CONFIG
   2.922 +OBJEXT
   2.923 +EXEEXT
   2.924 +ac_ct_CC
   2.925 +CPPFLAGS
   2.926 +LDFLAGS
   2.927 +CFLAGS
   2.928 +CC
   2.929 +host_os
   2.930 +host_vendor
   2.931 +host_cpu
   2.932 +host
   2.933 +build_os
   2.934 +build_vendor
   2.935 +build_cpu
   2.936 +build
   2.937 +target_alias
   2.938 +host_alias
   2.939 +build_alias
   2.940 +LIBS
   2.941 +ECHO_T
   2.942 +ECHO_N
   2.943 +ECHO_C
   2.944 +DEFS
   2.945 +mandir
   2.946 +localedir
   2.947 +libdir
   2.948 +psdir
   2.949 +pdfdir
   2.950 +dvidir
   2.951 +htmldir
   2.952 +infodir
   2.953 +docdir
   2.954 +oldincludedir
   2.955 +includedir
   2.956 +localstatedir
   2.957 +sharedstatedir
   2.958 +sysconfdir
   2.959 +datadir
   2.960 +datarootdir
   2.961 +libexecdir
   2.962 +sbindir
   2.963 +bindir
   2.964 +program_transform_name
   2.965 +prefix
   2.966 +exec_prefix
   2.967 +PACKAGE_URL
   2.968 +PACKAGE_BUGREPORT
   2.969 +PACKAGE_STRING
   2.970 +PACKAGE_VERSION
   2.971 +PACKAGE_TARNAME
   2.972 +PACKAGE_NAME
   2.973  PATH_SEPARATOR
   2.974 -PACKAGE_NAME
   2.975 -PACKAGE_TARNAME
   2.976 -PACKAGE_VERSION
   2.977 -PACKAGE_STRING
   2.978 -PACKAGE_BUGREPORT
   2.979 -exec_prefix
   2.980 -prefix
   2.981 -program_transform_name
   2.982 -bindir
   2.983 -sbindir
   2.984 -libexecdir
   2.985 -datarootdir
   2.986 -datadir
   2.987 -sysconfdir
   2.988 -sharedstatedir
   2.989 -localstatedir
   2.990 -includedir
   2.991 -oldincludedir
   2.992 -docdir
   2.993 -infodir
   2.994 -htmldir
   2.995 -dvidir
   2.996 -pdfdir
   2.997 -psdir
   2.998 -libdir
   2.999 -localedir
  2.1000 -mandir
  2.1001 -DEFS
  2.1002 -ECHO_C
  2.1003 -ECHO_N
  2.1004 -ECHO_T
  2.1005 -LIBS
  2.1006 -build_alias
  2.1007 -host_alias
  2.1008 -target_alias
  2.1009 -build
  2.1010 -build_cpu
  2.1011 -build_vendor
  2.1012 -build_os
  2.1013 -host
  2.1014 -host_cpu
  2.1015 -host_vendor
  2.1016 -host_os
  2.1017 -CC
  2.1018 -CFLAGS
  2.1019 -LDFLAGS
  2.1020 -CPPFLAGS
  2.1021 -ac_ct_CC
  2.1022 -EXEEXT
  2.1023 -OBJEXT
  2.1024 -OSMESA_CONFIG
  2.1025 -EXE
  2.1026 -MATHLIB
  2.1027 -PKG_CONFIG
  2.1028 -PKG_CONFIG_PATH
  2.1029 -PKG_CONFIG_LIBDIR
  2.1030 -SDL_CFLAGS
  2.1031 -SDL_LIBS
  2.1032 -SDL_CONFIG
  2.1033 -XMKMF
  2.1034 -CPP
  2.1035 -GLLIB
  2.1036 -SDL_TTF_LIB
  2.1037 -LIBOBJS
  2.1038 -LTLIBOBJS'
  2.1039 +SHELL'
  2.1040  ac_subst_files=''
  2.1041 +ac_user_opts='
  2.1042 +enable_option_checking
  2.1043 +with_sdl_prefix
  2.1044 +with_sdl_exec_prefix
  2.1045 +enable_sdltest
  2.1046 +with_x
  2.1047 +'
  2.1048        ac_precious_vars='build_alias
  2.1049  host_alias
  2.1050  target_alias
  2.1051 @@ -665,6 +661,8 @@
  2.1052  # Initialize some variables set by options.
  2.1053  ac_init_help=
  2.1054  ac_init_version=false
  2.1055 +ac_unrecognized_opts=
  2.1056 +ac_unrecognized_sep=
  2.1057  # The variables have the same names as the options, with
  2.1058  # dashes changed to underlines.
  2.1059  cache_file=/dev/null
  2.1060 @@ -720,8 +718,9 @@
  2.1061    fi
  2.1062  
  2.1063    case $ac_option in
  2.1064 -  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  2.1065 -  *)	ac_optarg=yes ;;
  2.1066 +  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  2.1067 +  *=)   ac_optarg= ;;
  2.1068 +  *)    ac_optarg=yes ;;
  2.1069    esac
  2.1070  
  2.1071    # Accept the important Cygnus configure options, so we can diagnose typos.
  2.1072 @@ -763,13 +762,20 @@
  2.1073      datarootdir=$ac_optarg ;;
  2.1074  
  2.1075    -disable-* | --disable-*)
  2.1076 -    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  2.1077 +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  2.1078      # Reject names that are not valid shell variable names.
  2.1079 -    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2.1080 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  2.1081 -   { (exit 1); exit 1; }; }
  2.1082 -    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  2.1083 -    eval enable_$ac_feature=no ;;
  2.1084 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2.1085 +      as_fn_error $? "invalid feature name: $ac_useropt"
  2.1086 +    ac_useropt_orig=$ac_useropt
  2.1087 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2.1088 +    case $ac_user_opts in
  2.1089 +      *"
  2.1090 +"enable_$ac_useropt"
  2.1091 +"*) ;;
  2.1092 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  2.1093 +	 ac_unrecognized_sep=', ';;
  2.1094 +    esac
  2.1095 +    eval enable_$ac_useropt=no ;;
  2.1096  
  2.1097    -docdir | --docdir | --docdi | --doc | --do)
  2.1098      ac_prev=docdir ;;
  2.1099 @@ -782,13 +788,20 @@
  2.1100      dvidir=$ac_optarg ;;
  2.1101  
  2.1102    -enable-* | --enable-*)
  2.1103 -    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  2.1104 +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  2.1105      # Reject names that are not valid shell variable names.
  2.1106 -    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2.1107 -      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  2.1108 -   { (exit 1); exit 1; }; }
  2.1109 -    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  2.1110 -    eval enable_$ac_feature=\$ac_optarg ;;
  2.1111 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2.1112 +      as_fn_error $? "invalid feature name: $ac_useropt"
  2.1113 +    ac_useropt_orig=$ac_useropt
  2.1114 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2.1115 +    case $ac_user_opts in
  2.1116 +      *"
  2.1117 +"enable_$ac_useropt"
  2.1118 +"*) ;;
  2.1119 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  2.1120 +	 ac_unrecognized_sep=', ';;
  2.1121 +    esac
  2.1122 +    eval enable_$ac_useropt=\$ac_optarg ;;
  2.1123  
  2.1124    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  2.1125    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  2.1126 @@ -979,22 +992,36 @@
  2.1127      ac_init_version=: ;;
  2.1128  
  2.1129    -with-* | --with-*)
  2.1130 -    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  2.1131 +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  2.1132      # Reject names that are not valid shell variable names.
  2.1133 -    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2.1134 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
  2.1135 -   { (exit 1); exit 1; }; }
  2.1136 -    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  2.1137 -    eval with_$ac_package=\$ac_optarg ;;
  2.1138 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2.1139 +      as_fn_error $? "invalid package name: $ac_useropt"
  2.1140 +    ac_useropt_orig=$ac_useropt
  2.1141 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2.1142 +    case $ac_user_opts in
  2.1143 +      *"
  2.1144 +"with_$ac_useropt"
  2.1145 +"*) ;;
  2.1146 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  2.1147 +	 ac_unrecognized_sep=', ';;
  2.1148 +    esac
  2.1149 +    eval with_$ac_useropt=\$ac_optarg ;;
  2.1150  
  2.1151    -without-* | --without-*)
  2.1152 -    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  2.1153 +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  2.1154      # Reject names that are not valid shell variable names.
  2.1155 -    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2.1156 -      { echo "$as_me: error: invalid package name: $ac_package" >&2
  2.1157 -   { (exit 1); exit 1; }; }
  2.1158 -    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  2.1159 -    eval with_$ac_package=no ;;
  2.1160 +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  2.1161 +      as_fn_error $? "invalid package name: $ac_useropt"
  2.1162 +    ac_useropt_orig=$ac_useropt
  2.1163 +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  2.1164 +    case $ac_user_opts in
  2.1165 +      *"
  2.1166 +"with_$ac_useropt"
  2.1167 +"*) ;;
  2.1168 +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  2.1169 +	 ac_unrecognized_sep=', ';;
  2.1170 +    esac
  2.1171 +    eval with_$ac_useropt=no ;;
  2.1172  
  2.1173    --x)
  2.1174      # Obsolete; use --with-x.
  2.1175 @@ -1014,26 +1041,26 @@
  2.1176    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  2.1177      x_libraries=$ac_optarg ;;
  2.1178  
  2.1179 -  -*) { echo "$as_me: error: unrecognized option: $ac_option
  2.1180 -Try \`$0 --help' for more information." >&2
  2.1181 -   { (exit 1); exit 1; }; }
  2.1182 +  -*) as_fn_error $? "unrecognized option: \`$ac_option'
  2.1183 +Try \`$0 --help' for more information"
  2.1184      ;;
  2.1185  
  2.1186    *=*)
  2.1187      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  2.1188      # Reject names that are not valid shell variable names.
  2.1189 -    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  2.1190 -      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  2.1191 -   { (exit 1); exit 1; }; }
  2.1192 +    case $ac_envvar in #(
  2.1193 +      '' | [0-9]* | *[!_$as_cr_alnum]* )
  2.1194 +      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  2.1195 +    esac
  2.1196      eval $ac_envvar=\$ac_optarg
  2.1197      export $ac_envvar ;;
  2.1198  
  2.1199    *)
  2.1200      # FIXME: should be removed in autoconf 3.0.
  2.1201 -    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  2.1202 +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  2.1203      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  2.1204 -      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  2.1205 -    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  2.1206 +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  2.1207 +    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  2.1208      ;;
  2.1209  
  2.1210    esac
  2.1211 @@ -1041,23 +1068,36 @@
  2.1212  
  2.1213  if test -n "$ac_prev"; then
  2.1214    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  2.1215 -  { echo "$as_me: error: missing argument to $ac_option" >&2
  2.1216 -   { (exit 1); exit 1; }; }
  2.1217 +  as_fn_error $? "missing argument to $ac_option"
  2.1218  fi
  2.1219  
  2.1220 -# Be sure to have absolute directory names.
  2.1221 +if test -n "$ac_unrecognized_opts"; then
  2.1222 +  case $enable_option_checking in
  2.1223 +    no) ;;
  2.1224 +    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  2.1225 +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  2.1226 +  esac
  2.1227 +fi
  2.1228 +
  2.1229 +# Check all directory arguments for consistency.
  2.1230  for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  2.1231  		datadir sysconfdir sharedstatedir localstatedir includedir \
  2.1232  		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  2.1233  		libdir localedir mandir
  2.1234  do
  2.1235    eval ac_val=\$$ac_var
  2.1236 +  # Remove trailing slashes.
  2.1237 +  case $ac_val in
  2.1238 +    */ )
  2.1239 +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  2.1240 +      eval $ac_var=\$ac_val;;
  2.1241 +  esac
  2.1242 +  # Be sure to have absolute directory names.
  2.1243    case $ac_val in
  2.1244      [\\/$]* | ?:[\\/]* )  continue;;
  2.1245      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  2.1246    esac
  2.1247 -  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  2.1248 -   { (exit 1); exit 1; }; }
  2.1249 +  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  2.1250  done
  2.1251  
  2.1252  # There might be people who depend on the old broken behavior: `$host'
  2.1253 @@ -1071,8 +1111,8 @@
  2.1254  if test "x$host_alias" != x; then
  2.1255    if test "x$build_alias" = x; then
  2.1256      cross_compiling=maybe
  2.1257 -    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  2.1258 -    If a cross compiler is detected then cross compile mode will be used." >&2
  2.1259 +    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  2.1260 +    If a cross compiler is detected then cross compile mode will be used" >&2
  2.1261    elif test "x$build_alias" != "x$host_alias"; then
  2.1262      cross_compiling=yes
  2.1263    fi
  2.1264 @@ -1087,23 +1127,21 @@
  2.1265  ac_pwd=`pwd` && test -n "$ac_pwd" &&
  2.1266  ac_ls_di=`ls -di .` &&
  2.1267  ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  2.1268 -  { echo "$as_me: error: Working directory cannot be determined" >&2
  2.1269 -   { (exit 1); exit 1; }; }
  2.1270 +  as_fn_error $? "working directory cannot be determined"
  2.1271  test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  2.1272 -  { echo "$as_me: error: pwd does not report name of working directory" >&2
  2.1273 -   { (exit 1); exit 1; }; }
  2.1274 +  as_fn_error $? "pwd does not report name of working directory"
  2.1275  
  2.1276  
  2.1277  # Find the source files, if location was not specified.
  2.1278  if test -z "$srcdir"; then
  2.1279    ac_srcdir_defaulted=yes
  2.1280    # Try the directory containing this script, then the parent directory.
  2.1281 -  ac_confdir=`$as_dirname -- "$0" ||
  2.1282 -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2.1283 -	 X"$0" : 'X\(//\)[^/]' \| \
  2.1284 -	 X"$0" : 'X\(//\)$' \| \
  2.1285 -	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  2.1286 -echo X"$0" |
  2.1287 +  ac_confdir=`$as_dirname -- "$as_myself" ||
  2.1288 +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2.1289 +	 X"$as_myself" : 'X\(//\)[^/]' \| \
  2.1290 +	 X"$as_myself" : 'X\(//\)$' \| \
  2.1291 +	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  2.1292 +$as_echo X"$as_myself" |
  2.1293      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2.1294  	    s//\1/
  2.1295  	    q
  2.1296 @@ -1130,13 +1168,11 @@
  2.1297  fi
  2.1298  if test ! -r "$srcdir/$ac_unique_file"; then
  2.1299    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  2.1300 -  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  2.1301 -   { (exit 1); exit 1; }; }
  2.1302 +  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  2.1303  fi
  2.1304  ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  2.1305  ac_abs_confdir=`(
  2.1306 -	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  2.1307 -   { (exit 1); exit 1; }; }
  2.1308 +	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  2.1309  	pwd)`
  2.1310  # When building in place, set srcdir=.
  2.1311  if test "$ac_abs_confdir" = "$ac_pwd"; then
  2.1312 @@ -1176,7 +1212,7 @@
  2.1313        --help=short        display options specific to this package
  2.1314        --help=recursive    display the short help of all the included packages
  2.1315    -V, --version           display version information and exit
  2.1316 -  -q, --quiet, --silent   do not print \`checking...' messages
  2.1317 +  -q, --quiet, --silent   do not print \`checking ...' messages
  2.1318        --cache-file=FILE   cache test results in FILE [disabled]
  2.1319    -C, --config-cache      alias for \`--cache-file=config.cache'
  2.1320    -n, --no-create         do not create output files
  2.1321 @@ -1184,9 +1220,9 @@
  2.1322  
  2.1323  Installation directories:
  2.1324    --prefix=PREFIX         install architecture-independent files in PREFIX
  2.1325 -			  [$ac_default_prefix]
  2.1326 +                          [$ac_default_prefix]
  2.1327    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  2.1328 -			  [PREFIX]
  2.1329 +                          [PREFIX]
  2.1330  
  2.1331  By default, \`make install' will install all the files in
  2.1332  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  2.1333 @@ -1196,25 +1232,25 @@
  2.1334  For better control, use the options below.
  2.1335  
  2.1336  Fine tuning of the installation directories:
  2.1337 -  --bindir=DIR           user executables [EPREFIX/bin]
  2.1338 -  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  2.1339 -  --libexecdir=DIR       program executables [EPREFIX/libexec]
  2.1340 -  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  2.1341 -  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  2.1342 -  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  2.1343 -  --libdir=DIR           object code libraries [EPREFIX/lib]
  2.1344 -  --includedir=DIR       C header files [PREFIX/include]
  2.1345 -  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  2.1346 -  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  2.1347 -  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  2.1348 -  --infodir=DIR          info documentation [DATAROOTDIR/info]
  2.1349 -  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  2.1350 -  --mandir=DIR           man documentation [DATAROOTDIR/man]
  2.1351 -  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
  2.1352 -  --htmldir=DIR          html documentation [DOCDIR]
  2.1353 -  --dvidir=DIR           dvi documentation [DOCDIR]
  2.1354 -  --pdfdir=DIR           pdf documentation [DOCDIR]
  2.1355 -  --psdir=DIR            ps documentation [DOCDIR]
  2.1356 +  --bindir=DIR            user executables [EPREFIX/bin]
  2.1357 +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  2.1358 +  --libexecdir=DIR        program executables [EPREFIX/libexec]
  2.1359 +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  2.1360 +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  2.1361 +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  2.1362 +  --libdir=DIR            object code libraries [EPREFIX/lib]
  2.1363 +  --includedir=DIR        C header files [PREFIX/include]
  2.1364 +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  2.1365 +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  2.1366 +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  2.1367 +  --infodir=DIR           info documentation [DATAROOTDIR/info]
  2.1368 +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  2.1369 +  --mandir=DIR            man documentation [DATAROOTDIR/man]
  2.1370 +  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  2.1371 +  --htmldir=DIR           html documentation [DOCDIR]
  2.1372 +  --dvidir=DIR            dvi documentation [DOCDIR]
  2.1373 +  --pdfdir=DIR            pdf documentation [DOCDIR]
  2.1374 +  --psdir=DIR             ps documentation [DOCDIR]
  2.1375  _ACEOF
  2.1376  
  2.1377    cat <<\_ACEOF
  2.1378 @@ -1234,6 +1270,7 @@
  2.1379    cat <<\_ACEOF
  2.1380  
  2.1381  Optional Features:
  2.1382 +  --disable-option-checking  ignore unrecognized --enable/--with options
  2.1383    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  2.1384    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  2.1385    --disable-sdltest       Do not try to compile and run a test SDL program
  2.1386 @@ -1251,7 +1288,7 @@
  2.1387    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  2.1388                nonstandard directory <lib dir>
  2.1389    LIBS        libraries to pass to the linker, e.g. -l<library>
  2.1390 -  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  2.1391 +  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  2.1392                you have headers in a nonstandard directory <include dir>
  2.1393    PKG_CONFIG  path to pkg-config utility
  2.1394    PKG_CONFIG_PATH
  2.1395 @@ -1266,6 +1303,7 @@
  2.1396  Use these variables to override the choices made by `configure' or to help
  2.1397  it to find libraries and programs with nonstandard names/locations.
  2.1398  
  2.1399 +Report bugs to the package provider.
  2.1400  _ACEOF
  2.1401  ac_status=$?
  2.1402  fi
  2.1403 @@ -1273,15 +1311,17 @@
  2.1404  if test "$ac_init_help" = "recursive"; then
  2.1405    # If there are subdirs, report their specific --help.
  2.1406    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2.1407 -    test -d "$ac_dir" || continue
  2.1408 +    test -d "$ac_dir" ||
  2.1409 +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2.1410 +      continue
  2.1411      ac_builddir=.
  2.1412  
  2.1413  case "$ac_dir" in
  2.1414  .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2.1415  *)
  2.1416 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  2.1417 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2.1418    # A ".." for each directory in $ac_dir_suffix.
  2.1419 -  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  2.1420 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2.1421    case $ac_top_builddir_sub in
  2.1422    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2.1423    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2.1424 @@ -1317,7 +1357,7 @@
  2.1425        echo &&
  2.1426        $SHELL "$ac_srcdir/configure" --help=recursive
  2.1427      else
  2.1428 -      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2.1429 +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2.1430      fi || ac_status=$?
  2.1431      cd "$ac_pwd" || { ac_status=$?; break; }
  2.1432    done
  2.1433 @@ -1327,21 +1367,187 @@
  2.1434  if $ac_init_version; then
  2.1435    cat <<\_ACEOF
  2.1436  configure
  2.1437 -generated by GNU Autoconf 2.61
  2.1438 -
  2.1439 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  2.1440 -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  2.1441 +generated by GNU Autoconf 2.68
  2.1442 +
  2.1443 +Copyright (C) 2010 Free Software Foundation, Inc.
  2.1444  This configure script is free software; the Free Software Foundation
  2.1445  gives unlimited permission to copy, distribute and modify it.
  2.1446  _ACEOF
  2.1447    exit
  2.1448  fi
  2.1449 +
  2.1450 +## ------------------------ ##
  2.1451 +## Autoconf initialization. ##
  2.1452 +## ------------------------ ##
  2.1453 +
  2.1454 +# ac_fn_c_try_compile LINENO
  2.1455 +# --------------------------
  2.1456 +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  2.1457 +ac_fn_c_try_compile ()
  2.1458 +{
  2.1459 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2.1460 +  rm -f conftest.$ac_objext
  2.1461 +  if { { ac_try="$ac_compile"
  2.1462 +case "(($ac_try" in
  2.1463 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.1464 +  *) ac_try_echo=$ac_try;;
  2.1465 +esac
  2.1466 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.1467 +$as_echo "$ac_try_echo"; } >&5
  2.1468 +  (eval "$ac_compile") 2>conftest.err
  2.1469 +  ac_status=$?
  2.1470 +  if test -s conftest.err; then
  2.1471 +    grep -v '^ *+' conftest.err >conftest.er1
  2.1472 +    cat conftest.er1 >&5
  2.1473 +    mv -f conftest.er1 conftest.err
  2.1474 +  fi
  2.1475 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.1476 +  test $ac_status = 0; } && {
  2.1477 +	 test -z "$ac_c_werror_flag" ||
  2.1478 +	 test ! -s conftest.err
  2.1479 +       } && test -s conftest.$ac_objext; then :
  2.1480 +  ac_retval=0
  2.1481 +else
  2.1482 +  $as_echo "$as_me: failed program was:" >&5
  2.1483 +sed 's/^/| /' conftest.$ac_ext >&5
  2.1484 +
  2.1485 +	ac_retval=1
  2.1486 +fi
  2.1487 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2.1488 +  as_fn_set_status $ac_retval
  2.1489 +
  2.1490 +} # ac_fn_c_try_compile
  2.1491 +
  2.1492 +# ac_fn_c_try_run LINENO
  2.1493 +# ----------------------
  2.1494 +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2.1495 +# that executables *can* be run.
  2.1496 +ac_fn_c_try_run ()
  2.1497 +{
  2.1498 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2.1499 +  if { { ac_try="$ac_link"
  2.1500 +case "(($ac_try" in
  2.1501 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.1502 +  *) ac_try_echo=$ac_try;;
  2.1503 +esac
  2.1504 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.1505 +$as_echo "$ac_try_echo"; } >&5
  2.1506 +  (eval "$ac_link") 2>&5
  2.1507 +  ac_status=$?
  2.1508 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.1509 +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2.1510 +  { { case "(($ac_try" in
  2.1511 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.1512 +  *) ac_try_echo=$ac_try;;
  2.1513 +esac
  2.1514 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.1515 +$as_echo "$ac_try_echo"; } >&5
  2.1516 +  (eval "$ac_try") 2>&5
  2.1517 +  ac_status=$?
  2.1518 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.1519 +  test $ac_status = 0; }; }; then :
  2.1520 +  ac_retval=0
  2.1521 +else
  2.1522 +  $as_echo "$as_me: program exited with status $ac_status" >&5
  2.1523 +       $as_echo "$as_me: failed program was:" >&5
  2.1524 +sed 's/^/| /' conftest.$ac_ext >&5
  2.1525 +
  2.1526 +       ac_retval=$ac_status
  2.1527 +fi
  2.1528 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2.1529 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2.1530 +  as_fn_set_status $ac_retval
  2.1531 +
  2.1532 +} # ac_fn_c_try_run
  2.1533 +
  2.1534 +# ac_fn_c_try_link LINENO
  2.1535 +# -----------------------
  2.1536 +# Try to link conftest.$ac_ext, and return whether this succeeded.
  2.1537 +ac_fn_c_try_link ()
  2.1538 +{
  2.1539 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2.1540 +  rm -f conftest.$ac_objext conftest$ac_exeext
  2.1541 +  if { { ac_try="$ac_link"
  2.1542 +case "(($ac_try" in
  2.1543 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.1544 +  *) ac_try_echo=$ac_try;;
  2.1545 +esac
  2.1546 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.1547 +$as_echo "$ac_try_echo"; } >&5
  2.1548 +  (eval "$ac_link") 2>conftest.err
  2.1549 +  ac_status=$?
  2.1550 +  if test -s conftest.err; then
  2.1551 +    grep -v '^ *+' conftest.err >conftest.er1
  2.1552 +    cat conftest.er1 >&5
  2.1553 +    mv -f conftest.er1 conftest.err
  2.1554 +  fi
  2.1555 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.1556 +  test $ac_status = 0; } && {
  2.1557 +	 test -z "$ac_c_werror_flag" ||
  2.1558 +	 test ! -s conftest.err
  2.1559 +       } && test -s conftest$ac_exeext && {
  2.1560 +	 test "$cross_compiling" = yes ||
  2.1561 +	 $as_test_x conftest$ac_exeext
  2.1562 +       }; then :
  2.1563 +  ac_retval=0
  2.1564 +else
  2.1565 +  $as_echo "$as_me: failed program was:" >&5
  2.1566 +sed 's/^/| /' conftest.$ac_ext >&5
  2.1567 +
  2.1568 +	ac_retval=1
  2.1569 +fi
  2.1570 +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2.1571 +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2.1572 +  # interfere with the next link command; also delete a directory that is
  2.1573 +  # left behind by Apple's compiler.  We do this before executing the actions.
  2.1574 +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2.1575 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2.1576 +  as_fn_set_status $ac_retval
  2.1577 +
  2.1578 +} # ac_fn_c_try_link
  2.1579 +
  2.1580 +# ac_fn_c_try_cpp LINENO
  2.1581 +# ----------------------
  2.1582 +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2.1583 +ac_fn_c_try_cpp ()
  2.1584 +{
  2.1585 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2.1586 +  if { { ac_try="$ac_cpp conftest.$ac_ext"
  2.1587 +case "(($ac_try" in
  2.1588 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.1589 +  *) ac_try_echo=$ac_try;;
  2.1590 +esac
  2.1591 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.1592 +$as_echo "$ac_try_echo"; } >&5
  2.1593 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2.1594 +  ac_status=$?
  2.1595 +  if test -s conftest.err; then
  2.1596 +    grep -v '^ *+' conftest.err >conftest.er1
  2.1597 +    cat conftest.er1 >&5
  2.1598 +    mv -f conftest.er1 conftest.err
  2.1599 +  fi
  2.1600 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.1601 +  test $ac_status = 0; } > conftest.i && {
  2.1602 +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2.1603 +	 test ! -s conftest.err
  2.1604 +       }; then :
  2.1605 +  ac_retval=0
  2.1606 +else
  2.1607 +  $as_echo "$as_me: failed program was:" >&5
  2.1608 +sed 's/^/| /' conftest.$ac_ext >&5
  2.1609 +
  2.1610 +    ac_retval=1
  2.1611 +fi
  2.1612 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2.1613 +  as_fn_set_status $ac_retval
  2.1614 +
  2.1615 +} # ac_fn_c_try_cpp
  2.1616  cat >config.log <<_ACEOF
  2.1617  This file contains any messages produced by compilers while
  2.1618  running configure, to aid debugging if configure makes a mistake.
  2.1619  
  2.1620  It was created by $as_me, which was
  2.1621 -generated by GNU Autoconf 2.61.  Invocation command line was
  2.1622 +generated by GNU Autoconf 2.68.  Invocation command line was
  2.1623  
  2.1624    $ $0 $@
  2.1625  
  2.1626 @@ -1377,8 +1583,8 @@
  2.1627  do
  2.1628    IFS=$as_save_IFS
  2.1629    test -z "$as_dir" && as_dir=.
  2.1630 -  echo "PATH: $as_dir"
  2.1631 -done
  2.1632 +    $as_echo "PATH: $as_dir"
  2.1633 +  done
  2.1634  IFS=$as_save_IFS
  2.1635  
  2.1636  } >&5
  2.1637 @@ -1412,12 +1618,12 @@
  2.1638      | -silent | --silent | --silen | --sile | --sil)
  2.1639        continue ;;
  2.1640      *\'*)
  2.1641 -      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2.1642 +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2.1643      esac
  2.1644      case $ac_pass in
  2.1645 -    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  2.1646 +    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2.1647      2)
  2.1648 -      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  2.1649 +      as_fn_append ac_configure_args1 " '$ac_arg'"
  2.1650        if test $ac_must_keep_next = true; then
  2.1651  	ac_must_keep_next=false # Got value, back to normal.
  2.1652        else
  2.1653 @@ -1433,13 +1639,13 @@
  2.1654  	  -* ) ac_must_keep_next=true ;;
  2.1655  	esac
  2.1656        fi
  2.1657 -      ac_configure_args="$ac_configure_args '$ac_arg'"
  2.1658 +      as_fn_append ac_configure_args " '$ac_arg'"
  2.1659        ;;
  2.1660      esac
  2.1661    done
  2.1662  done
  2.1663 -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  2.1664 -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  2.1665 +{ ac_configure_args0=; unset ac_configure_args0;}
  2.1666 +{ ac_configure_args1=; unset ac_configure_args1;}
  2.1667  
  2.1668  # When interrupted or exit'd, cleanup temporary files, and complete
  2.1669  # config.log.  We remove comments because anyway the quotes in there
  2.1670 @@ -1451,11 +1657,9 @@
  2.1671    {
  2.1672      echo
  2.1673  
  2.1674 -    cat <<\_ASBOX
  2.1675 -## ---------------- ##
  2.1676 +    $as_echo "## ---------------- ##
  2.1677  ## Cache variables. ##
  2.1678 -## ---------------- ##
  2.1679 -_ASBOX
  2.1680 +## ---------------- ##"
  2.1681      echo
  2.1682      # The following way of writing the cache mishandles newlines in values,
  2.1683  (
  2.1684 @@ -1464,12 +1668,13 @@
  2.1685      case $ac_val in #(
  2.1686      *${as_nl}*)
  2.1687        case $ac_var in #(
  2.1688 -      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  2.1689 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  2.1690 +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2.1691 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2.1692        esac
  2.1693        case $ac_var in #(
  2.1694        _ | IFS | as_nl) ;; #(
  2.1695 -      *) $as_unset $ac_var ;;
  2.1696 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2.1697 +      *) { eval $ac_var=; unset $ac_var;} ;;
  2.1698        esac ;;
  2.1699      esac
  2.1700    done
  2.1701 @@ -1488,128 +1693,136 @@
  2.1702  )
  2.1703      echo
  2.1704  
  2.1705 -    cat <<\_ASBOX
  2.1706 -## ----------------- ##
  2.1707 +    $as_echo "## ----------------- ##
  2.1708  ## Output variables. ##
  2.1709 -## ----------------- ##
  2.1710 -_ASBOX
  2.1711 +## ----------------- ##"
  2.1712      echo
  2.1713      for ac_var in $ac_subst_vars
  2.1714      do
  2.1715        eval ac_val=\$$ac_var
  2.1716        case $ac_val in
  2.1717 -      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2.1718 +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2.1719        esac
  2.1720 -      echo "$ac_var='\''$ac_val'\''"
  2.1721 +      $as_echo "$ac_var='\''$ac_val'\''"
  2.1722      done | sort
  2.1723      echo
  2.1724  
  2.1725      if test -n "$ac_subst_files"; then
  2.1726 -      cat <<\_ASBOX
  2.1727 -## ------------------- ##
  2.1728 +      $as_echo "## ------------------- ##
  2.1729  ## File substitutions. ##
  2.1730 -## ------------------- ##
  2.1731 -_ASBOX
  2.1732 +## ------------------- ##"
  2.1733        echo
  2.1734        for ac_var in $ac_subst_files
  2.1735        do
  2.1736  	eval ac_val=\$$ac_var
  2.1737  	case $ac_val in
  2.1738 -	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2.1739 +	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2.1740  	esac
  2.1741 -	echo "$ac_var='\''$ac_val'\''"
  2.1742 +	$as_echo "$ac_var='\''$ac_val'\''"
  2.1743        done | sort
  2.1744        echo
  2.1745      fi
  2.1746  
  2.1747      if test -s confdefs.h; then
  2.1748 -      cat <<\_ASBOX
  2.1749 -## ----------- ##
  2.1750 +      $as_echo "## ----------- ##
  2.1751  ## confdefs.h. ##
  2.1752 -## ----------- ##
  2.1753 -_ASBOX
  2.1754 +## ----------- ##"
  2.1755        echo
  2.1756        cat confdefs.h
  2.1757        echo
  2.1758      fi
  2.1759      test "$ac_signal" != 0 &&
  2.1760 -      echo "$as_me: caught signal $ac_signal"
  2.1761 -    echo "$as_me: exit $exit_status"
  2.1762 +      $as_echo "$as_me: caught signal $ac_signal"
  2.1763 +    $as_echo "$as_me: exit $exit_status"
  2.1764    } >&5
  2.1765    rm -f core *.core core.conftest.* &&
  2.1766      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2.1767      exit $exit_status
  2.1768  ' 0
  2.1769  for ac_signal in 1 2 13 15; do
  2.1770 -  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  2.1771 +  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2.1772  done
  2.1773  ac_signal=0
  2.1774  
  2.1775  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2.1776  rm -f -r conftest* confdefs.h
  2.1777  
  2.1778 +$as_echo "/* confdefs.h */" > confdefs.h
  2.1779 +
  2.1780  # Predefined preprocessor variables.
  2.1781  
  2.1782  cat >>confdefs.h <<_ACEOF
  2.1783  #define PACKAGE_NAME "$PACKAGE_NAME"
  2.1784  _ACEOF
  2.1785  
  2.1786 -
  2.1787  cat >>confdefs.h <<_ACEOF
  2.1788  #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2.1789  _ACEOF
  2.1790  
  2.1791 -
  2.1792  cat >>confdefs.h <<_ACEOF
  2.1793  #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2.1794  _ACEOF
  2.1795  
  2.1796 -
  2.1797  cat >>confdefs.h <<_ACEOF
  2.1798  #define PACKAGE_STRING "$PACKAGE_STRING"
  2.1799  _ACEOF
  2.1800  
  2.1801 -
  2.1802  cat >>confdefs.h <<_ACEOF
  2.1803  #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2.1804  _ACEOF
  2.1805  
  2.1806 +cat >>confdefs.h <<_ACEOF
  2.1807 +#define PACKAGE_URL "$PACKAGE_URL"
  2.1808 +_ACEOF
  2.1809 +
  2.1810  
  2.1811  # Let the site file select an alternate cache file if it wants to.
  2.1812 -# Prefer explicitly selected file to automatically selected ones.
  2.1813 +# Prefer an explicitly selected file to automatically selected ones.
  2.1814 +ac_site_file1=NONE
  2.1815 +ac_site_file2=NONE
  2.1816  if test -n "$CONFIG_SITE"; then
  2.1817 -  set x "$CONFIG_SITE"
  2.1818 +  # We do not want a PATH search for config.site.
  2.1819 +  case $CONFIG_SITE in #((
  2.1820 +    -*)  ac_site_file1=./$CONFIG_SITE;;
  2.1821 +    */*) ac_site_file1=$CONFIG_SITE;;
  2.1822 +    *)   ac_site_file1=./$CONFIG_SITE;;
  2.1823 +  esac
  2.1824  elif test "x$prefix" != xNONE; then
  2.1825 -  set x "$prefix/share/config.site" "$prefix/etc/config.site"
  2.1826 +  ac_site_file1=$prefix/share/config.site
  2.1827 +  ac_site_file2=$prefix/etc/config.site
  2.1828  else
  2.1829 -  set x "$ac_default_prefix/share/config.site" \
  2.1830 -	"$ac_default_prefix/etc/config.site"
  2.1831 +  ac_site_file1=$ac_default_prefix/share/config.site
  2.1832 +  ac_site_file2=$ac_default_prefix/etc/config.site
  2.1833  fi
  2.1834 -shift
  2.1835 -for ac_site_file
  2.1836 +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2.1837  do
  2.1838 -  if test -r "$ac_site_file"; then
  2.1839 -    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2.1840 -echo "$as_me: loading site script $ac_site_file" >&6;}
  2.1841 +  test "x$ac_site_file" = xNONE && continue
  2.1842 +  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2.1843 +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2.1844 +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2.1845      sed 's/^/| /' "$ac_site_file" >&5
  2.1846 -    . "$ac_site_file"
  2.1847 +    . "$ac_site_file" \
  2.1848 +      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.1849 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.1850 +as_fn_error $? "failed to load site script $ac_site_file
  2.1851 +See \`config.log' for more details" "$LINENO" 5; }
  2.1852    fi
  2.1853  done
  2.1854  
  2.1855  if test -r "$cache_file"; then
  2.1856 -  # Some versions of bash will fail to source /dev/null (special
  2.1857 -  # files actually), so we avoid doing that.
  2.1858 -  if test -f "$cache_file"; then
  2.1859 -    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2.1860 -echo "$as_me: loading cache $cache_file" >&6;}
  2.1861 +  # Some versions of bash will fail to source /dev/null (special files
  2.1862 +  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2.1863 +  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2.1864 +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2.1865 +$as_echo "$as_me: loading cache $cache_file" >&6;}
  2.1866      case $cache_file in
  2.1867        [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2.1868        *)                      . "./$cache_file";;
  2.1869      esac
  2.1870    fi
  2.1871  else
  2.1872 -  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2.1873 -echo "$as_me: creating cache $cache_file" >&6;}
  2.1874 +  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2.1875 +$as_echo "$as_me: creating cache $cache_file" >&6;}
  2.1876    >$cache_file
  2.1877  fi
  2.1878  
  2.1879 @@ -1623,60 +1836,56 @@
  2.1880    eval ac_new_val=\$ac_env_${ac_var}_value
  2.1881    case $ac_old_set,$ac_new_set in
  2.1882      set,)
  2.1883 -      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2.1884 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2.1885 +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2.1886 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2.1887        ac_cache_corrupted=: ;;
  2.1888      ,set)
  2.1889 -      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2.1890 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2.1891 +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2.1892 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2.1893        ac_cache_corrupted=: ;;
  2.1894      ,);;
  2.1895      *)
  2.1896        if test "x$ac_old_val" != "x$ac_new_val"; then
  2.1897 -	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2.1898 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2.1899 -	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
  2.1900 -echo "$as_me:   former value:  $ac_old_val" >&2;}
  2.1901 -	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
  2.1902 -echo "$as_me:   current value: $ac_new_val" >&2;}
  2.1903 -	ac_cache_corrupted=:
  2.1904 +	# differences in whitespace do not lead to failure.
  2.1905 +	ac_old_val_w=`echo x $ac_old_val`
  2.1906 +	ac_new_val_w=`echo x $ac_new_val`
  2.1907 +	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2.1908 +	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2.1909 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2.1910 +	  ac_cache_corrupted=:
  2.1911 +	else
  2.1912 +	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2.1913 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2.1914 +	  eval $ac_var=\$ac_old_val
  2.1915 +	fi
  2.1916 +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2.1917 +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2.1918 +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2.1919 +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2.1920        fi;;
  2.1921    esac
  2.1922    # Pass precious variables to config.status.
  2.1923    if test "$ac_new_set" = set; then
  2.1924      case $ac_new_val in
  2.1925 -    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2.1926 +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2.1927      *) ac_arg=$ac_var=$ac_new_val ;;
  2.1928      esac
  2.1929      case " $ac_configure_args " in
  2.1930        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2.1931 -      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2.1932 +      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2.1933      esac
  2.1934    fi
  2.1935  done
  2.1936  if $ac_cache_corrupted; then
  2.1937 -  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2.1938 -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2.1939 -  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2.1940 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2.1941 -   { (exit 1); exit 1; }; }
  2.1942 +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.1943 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.1944 +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2.1945 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2.1946 +  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2.1947  fi
  2.1948 -
  2.1949 -
  2.1950 -
  2.1951 -
  2.1952 -
  2.1953 -
  2.1954 -
  2.1955 -
  2.1956 -
  2.1957 -
  2.1958 -
  2.1959 -
  2.1960 -
  2.1961 -
  2.1962 -
  2.1963 -
  2.1964 +## -------------------- ##
  2.1965 +## Main body of script. ##
  2.1966 +## -------------------- ##
  2.1967  
  2.1968  ac_ext=c
  2.1969  ac_cpp='$CPP $CPPFLAGS'
  2.1970 @@ -1703,9 +1912,7 @@
  2.1971    fi
  2.1972  done
  2.1973  if test -z "$ac_aux_dir"; then
  2.1974 -  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&5
  2.1975 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
  2.1976 -   { (exit 1); exit 1; }; }
  2.1977 +  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
  2.1978  fi
  2.1979  
  2.1980  # These three variables are undocumented and unsupported,
  2.1981 @@ -1719,35 +1926,27 @@
  2.1982  
  2.1983  # Make sure we can run config.sub.
  2.1984  $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2.1985 -  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2.1986 -echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2.1987 -   { (exit 1); exit 1; }; }
  2.1988 -
  2.1989 -{ echo "$as_me:$LINENO: checking build system type" >&5
  2.1990 -echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  2.1991 -if test "${ac_cv_build+set}" = set; then
  2.1992 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.1993 +  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2.1994 +
  2.1995 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2.1996 +$as_echo_n "checking build system type... " >&6; }
  2.1997 +if ${ac_cv_build+:} false; then :
  2.1998 +  $as_echo_n "(cached) " >&6
  2.1999  else
  2.2000    ac_build_alias=$build_alias
  2.2001  test "x$ac_build_alias" = x &&
  2.2002    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2.2003  test "x$ac_build_alias" = x &&
  2.2004 -  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2.2005 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2.2006 -   { (exit 1); exit 1; }; }
  2.2007 +  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2.2008  ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2.2009 -  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2.2010 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2.2011 -   { (exit 1); exit 1; }; }
  2.2012 +  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2.2013  
  2.2014  fi
  2.2015 -{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2.2016 -echo "${ECHO_T}$ac_cv_build" >&6; }
  2.2017 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2.2018 +$as_echo "$ac_cv_build" >&6; }
  2.2019  case $ac_cv_build in
  2.2020  *-*-*) ;;
  2.2021 -*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2.2022 -echo "$as_me: error: invalid value of canonical build" >&2;}
  2.2023 -   { (exit 1); exit 1; }; };;
  2.2024 +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2.2025  esac
  2.2026  build=$ac_cv_build
  2.2027  ac_save_IFS=$IFS; IFS='-'
  2.2028 @@ -1763,28 +1962,24 @@
  2.2029  case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2.2030  
  2.2031  
  2.2032 -{ echo "$as_me:$LINENO: checking host system type" >&5
  2.2033 -echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  2.2034 -if test "${ac_cv_host+set}" = set; then
  2.2035 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2036 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2.2037 +$as_echo_n "checking host system type... " >&6; }
  2.2038 +if ${ac_cv_host+:} false; then :
  2.2039 +  $as_echo_n "(cached) " >&6
  2.2040  else
  2.2041    if test "x$host_alias" = x; then
  2.2042    ac_cv_host=$ac_cv_build
  2.2043  else
  2.2044    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2.2045 -    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2.2046 -echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2.2047 -   { (exit 1); exit 1; }; }
  2.2048 +    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2.2049  fi
  2.2050  
  2.2051  fi
  2.2052 -{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2.2053 -echo "${ECHO_T}$ac_cv_host" >&6; }
  2.2054 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2.2055 +$as_echo "$ac_cv_host" >&6; }
  2.2056  case $ac_cv_host in
  2.2057  *-*-*) ;;
  2.2058 -*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2.2059 -echo "$as_me: error: invalid value of canonical host" >&2;}
  2.2060 -   { (exit 1); exit 1; }; };;
  2.2061 +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2.2062  esac
  2.2063  host=$ac_cv_host
  2.2064  ac_save_IFS=$IFS; IFS='-'
  2.2065 @@ -1810,10 +2005,10 @@
  2.2066  if test -n "$ac_tool_prefix"; then
  2.2067    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2.2068  set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2.2069 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.2070 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.2071 -if test "${ac_cv_prog_CC+set}" = set; then
  2.2072 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2073 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.2074 +$as_echo_n "checking for $ac_word... " >&6; }
  2.2075 +if ${ac_cv_prog_CC+:} false; then :
  2.2076 +  $as_echo_n "(cached) " >&6
  2.2077  else
  2.2078    if test -n "$CC"; then
  2.2079    ac_cv_prog_CC="$CC" # Let the user override the test.
  2.2080 @@ -1823,25 +2018,25 @@
  2.2081  do
  2.2082    IFS=$as_save_IFS
  2.2083    test -z "$as_dir" && as_dir=.
  2.2084 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.2085 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.2086    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.2087      ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2.2088 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2089 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2090      break 2
  2.2091    fi
  2.2092  done
  2.2093 -done
  2.2094 +  done
  2.2095  IFS=$as_save_IFS
  2.2096  
  2.2097  fi
  2.2098  fi
  2.2099  CC=$ac_cv_prog_CC
  2.2100  if test -n "$CC"; then
  2.2101 -  { echo "$as_me:$LINENO: result: $CC" >&5
  2.2102 -echo "${ECHO_T}$CC" >&6; }
  2.2103 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2.2104 +$as_echo "$CC" >&6; }
  2.2105  else
  2.2106 -  { echo "$as_me:$LINENO: result: no" >&5
  2.2107 -echo "${ECHO_T}no" >&6; }
  2.2108 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2109 +$as_echo "no" >&6; }
  2.2110  fi
  2.2111  
  2.2112  
  2.2113 @@ -1850,10 +2045,10 @@
  2.2114    ac_ct_CC=$CC
  2.2115    # Extract the first word of "gcc", so it can be a program name with args.
  2.2116  set dummy gcc; ac_word=$2
  2.2117 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.2118 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.2119 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2.2120 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2121 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.2122 +$as_echo_n "checking for $ac_word... " >&6; }
  2.2123 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2.2124 +  $as_echo_n "(cached) " >&6
  2.2125  else
  2.2126    if test -n "$ac_ct_CC"; then
  2.2127    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2.2128 @@ -1863,25 +2058,25 @@
  2.2129  do
  2.2130    IFS=$as_save_IFS
  2.2131    test -z "$as_dir" && as_dir=.
  2.2132 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.2133 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.2134    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.2135      ac_cv_prog_ac_ct_CC="gcc"
  2.2136 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2137 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2138      break 2
  2.2139    fi
  2.2140  done
  2.2141 -done
  2.2142 +  done
  2.2143  IFS=$as_save_IFS
  2.2144  
  2.2145  fi
  2.2146  fi
  2.2147  ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2.2148  if test -n "$ac_ct_CC"; then
  2.2149 -  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2.2150 -echo "${ECHO_T}$ac_ct_CC" >&6; }
  2.2151 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2.2152 +$as_echo "$ac_ct_CC" >&6; }
  2.2153  else
  2.2154 -  { echo "$as_me:$LINENO: result: no" >&5
  2.2155 -echo "${ECHO_T}no" >&6; }
  2.2156 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2157 +$as_echo "no" >&6; }
  2.2158  fi
  2.2159  
  2.2160    if test "x$ac_ct_CC" = x; then
  2.2161 @@ -1889,12 +2084,8 @@
  2.2162    else
  2.2163      case $cross_compiling:$ac_tool_warned in
  2.2164  yes:)
  2.2165 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2.2166 -whose name does not start with the host triplet.  If you think this
  2.2167 -configuration is useful to you, please write to autoconf@gnu.org." >&5
  2.2168 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2.2169 -whose name does not start with the host triplet.  If you think this
  2.2170 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2.2171 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2.2172 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2.2173  ac_tool_warned=yes ;;
  2.2174  esac
  2.2175      CC=$ac_ct_CC
  2.2176 @@ -1907,10 +2098,10 @@
  2.2177            if test -n "$ac_tool_prefix"; then
  2.2178      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2.2179  set dummy ${ac_tool_prefix}cc; ac_word=$2
  2.2180 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.2181 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.2182 -if test "${ac_cv_prog_CC+set}" = set; then
  2.2183 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2184 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.2185 +$as_echo_n "checking for $ac_word... " >&6; }
  2.2186 +if ${ac_cv_prog_CC+:} false; then :
  2.2187 +  $as_echo_n "(cached) " >&6
  2.2188  else
  2.2189    if test -n "$CC"; then
  2.2190    ac_cv_prog_CC="$CC" # Let the user override the test.
  2.2191 @@ -1920,25 +2111,25 @@
  2.2192  do
  2.2193    IFS=$as_save_IFS
  2.2194    test -z "$as_dir" && as_dir=.
  2.2195 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.2196 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.2197    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.2198      ac_cv_prog_CC="${ac_tool_prefix}cc"
  2.2199 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2200 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2201      break 2
  2.2202    fi
  2.2203  done
  2.2204 -done
  2.2205 +  done
  2.2206  IFS=$as_save_IFS
  2.2207  
  2.2208  fi
  2.2209  fi
  2.2210  CC=$ac_cv_prog_CC
  2.2211  if test -n "$CC"; then
  2.2212 -  { echo "$as_me:$LINENO: result: $CC" >&5
  2.2213 -echo "${ECHO_T}$CC" >&6; }
  2.2214 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2.2215 +$as_echo "$CC" >&6; }
  2.2216  else
  2.2217 -  { echo "$as_me:$LINENO: result: no" >&5
  2.2218 -echo "${ECHO_T}no" >&6; }
  2.2219 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2220 +$as_echo "no" >&6; }
  2.2221  fi
  2.2222  
  2.2223  
  2.2224 @@ -1947,10 +2138,10 @@
  2.2225  if test -z "$CC"; then
  2.2226    # Extract the first word of "cc", so it can be a program name with args.
  2.2227  set dummy cc; ac_word=$2
  2.2228 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.2229 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.2230 -if test "${ac_cv_prog_CC+set}" = set; then
  2.2231 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2232 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.2233 +$as_echo_n "checking for $ac_word... " >&6; }
  2.2234 +if ${ac_cv_prog_CC+:} false; then :
  2.2235 +  $as_echo_n "(cached) " >&6
  2.2236  else
  2.2237    if test -n "$CC"; then
  2.2238    ac_cv_prog_CC="$CC" # Let the user override the test.
  2.2239 @@ -1961,18 +2152,18 @@
  2.2240  do
  2.2241    IFS=$as_save_IFS
  2.2242    test -z "$as_dir" && as_dir=.
  2.2243 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.2244 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.2245    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.2246      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2.2247         ac_prog_rejected=yes
  2.2248         continue
  2.2249       fi
  2.2250      ac_cv_prog_CC="cc"
  2.2251 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2252 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2253      break 2
  2.2254    fi
  2.2255  done
  2.2256 -done
  2.2257 +  done
  2.2258  IFS=$as_save_IFS
  2.2259  
  2.2260  if test $ac_prog_rejected = yes; then
  2.2261 @@ -1991,11 +2182,11 @@
  2.2262  fi
  2.2263  CC=$ac_cv_prog_CC
  2.2264  if test -n "$CC"; then
  2.2265 -  { echo "$as_me:$LINENO: result: $CC" >&5
  2.2266 -echo "${ECHO_T}$CC" >&6; }
  2.2267 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2.2268 +$as_echo "$CC" >&6; }
  2.2269  else
  2.2270 -  { echo "$as_me:$LINENO: result: no" >&5
  2.2271 -echo "${ECHO_T}no" >&6; }
  2.2272 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2273 +$as_echo "no" >&6; }
  2.2274  fi
  2.2275  
  2.2276  
  2.2277 @@ -2006,10 +2197,10 @@
  2.2278    do
  2.2279      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2.2280  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2.2281 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.2282 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.2283 -if test "${ac_cv_prog_CC+set}" = set; then
  2.2284 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2285 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.2286 +$as_echo_n "checking for $ac_word... " >&6; }
  2.2287 +if ${ac_cv_prog_CC+:} false; then :
  2.2288 +  $as_echo_n "(cached) " >&6
  2.2289  else
  2.2290    if test -n "$CC"; then
  2.2291    ac_cv_prog_CC="$CC" # Let the user override the test.
  2.2292 @@ -2019,25 +2210,25 @@
  2.2293  do
  2.2294    IFS=$as_save_IFS
  2.2295    test -z "$as_dir" && as_dir=.
  2.2296 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.2297 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.2298    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.2299      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2.2300 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2301 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2302      break 2
  2.2303    fi
  2.2304  done
  2.2305 -done
  2.2306 +  done
  2.2307  IFS=$as_save_IFS
  2.2308  
  2.2309  fi
  2.2310  fi
  2.2311  CC=$ac_cv_prog_CC
  2.2312  if test -n "$CC"; then
  2.2313 -  { echo "$as_me:$LINENO: result: $CC" >&5
  2.2314 -echo "${ECHO_T}$CC" >&6; }
  2.2315 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2.2316 +$as_echo "$CC" >&6; }
  2.2317  else
  2.2318 -  { echo "$as_me:$LINENO: result: no" >&5
  2.2319 -echo "${ECHO_T}no" >&6; }
  2.2320 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2321 +$as_echo "no" >&6; }
  2.2322  fi
  2.2323  
  2.2324  
  2.2325 @@ -2050,10 +2241,10 @@
  2.2326  do
  2.2327    # Extract the first word of "$ac_prog", so it can be a program name with args.
  2.2328  set dummy $ac_prog; ac_word=$2
  2.2329 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.2330 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.2331 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2.2332 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2333 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.2334 +$as_echo_n "checking for $ac_word... " >&6; }
  2.2335 +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2.2336 +  $as_echo_n "(cached) " >&6
  2.2337  else
  2.2338    if test -n "$ac_ct_CC"; then
  2.2339    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2.2340 @@ -2063,25 +2254,25 @@
  2.2341  do
  2.2342    IFS=$as_save_IFS
  2.2343    test -z "$as_dir" && as_dir=.
  2.2344 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.2345 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.2346    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.2347      ac_cv_prog_ac_ct_CC="$ac_prog"
  2.2348 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2349 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.2350      break 2
  2.2351    fi
  2.2352  done
  2.2353 -done
  2.2354 +  done
  2.2355  IFS=$as_save_IFS
  2.2356  
  2.2357  fi
  2.2358  fi
  2.2359  ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2.2360  if test -n "$ac_ct_CC"; then
  2.2361 -  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2.2362 -echo "${ECHO_T}$ac_ct_CC" >&6; }
  2.2363 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2.2364 +$as_echo "$ac_ct_CC" >&6; }
  2.2365  else
  2.2366 -  { echo "$as_me:$LINENO: result: no" >&5
  2.2367 -echo "${ECHO_T}no" >&6; }
  2.2368 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2369 +$as_echo "no" >&6; }
  2.2370  fi
  2.2371  
  2.2372  
  2.2373 @@ -2093,12 +2284,8 @@
  2.2374    else
  2.2375      case $cross_compiling:$ac_tool_warned in
  2.2376  yes:)
  2.2377 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2.2378 -whose name does not start with the host triplet.  If you think this
  2.2379 -configuration is useful to you, please write to autoconf@gnu.org." >&5
  2.2380 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2.2381 -whose name does not start with the host triplet.  If you think this
  2.2382 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2.2383 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2.2384 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2.2385  ac_tool_warned=yes ;;
  2.2386  esac
  2.2387      CC=$ac_ct_CC
  2.2388 @@ -2108,51 +2295,37 @@
  2.2389  fi
  2.2390  
  2.2391  
  2.2392 -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2.2393 -See \`config.log' for more details." >&5
  2.2394 -echo "$as_me: error: no acceptable C compiler found in \$PATH
  2.2395 -See \`config.log' for more details." >&2;}
  2.2396 -   { (exit 1); exit 1; }; }
  2.2397 +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.2398 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.2399 +as_fn_error $? "no acceptable C compiler found in \$PATH
  2.2400 +See \`config.log' for more details" "$LINENO" 5; }
  2.2401  
  2.2402  # Provide some information about the compiler.
  2.2403 -echo "$as_me:$LINENO: checking for C compiler version" >&5
  2.2404 -ac_compiler=`set X $ac_compile; echo $2`
  2.2405 -{ (ac_try="$ac_compiler --version >&5"
  2.2406 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2.2407 +set X $ac_compile
  2.2408 +ac_compiler=$2
  2.2409 +for ac_option in --version -v -V -qversion; do
  2.2410 +  { { ac_try="$ac_compiler $ac_option >&5"
  2.2411  case "(($ac_try" in
  2.2412    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2413    *) ac_try_echo=$ac_try;;
  2.2414  esac
  2.2415 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2416 -  (eval "$ac_compiler --version >&5") 2>&5
  2.2417 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.2418 +$as_echo "$ac_try_echo"; } >&5
  2.2419 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2.2420    ac_status=$?
  2.2421 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2422 -  (exit $ac_status); }
  2.2423 -{ (ac_try="$ac_compiler -v >&5"
  2.2424 -case "(($ac_try" in
  2.2425 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2426 -  *) ac_try_echo=$ac_try;;
  2.2427 -esac
  2.2428 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2429 -  (eval "$ac_compiler -v >&5") 2>&5
  2.2430 -  ac_status=$?
  2.2431 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2432 -  (exit $ac_status); }
  2.2433 -{ (ac_try="$ac_compiler -V >&5"
  2.2434 -case "(($ac_try" in
  2.2435 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2436 -  *) ac_try_echo=$ac_try;;
  2.2437 -esac
  2.2438 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2439 -  (eval "$ac_compiler -V >&5") 2>&5
  2.2440 -  ac_status=$?
  2.2441 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2442 -  (exit $ac_status); }
  2.2443 -
  2.2444 -cat >conftest.$ac_ext <<_ACEOF
  2.2445 -/* confdefs.h.  */
  2.2446 -_ACEOF
  2.2447 -cat confdefs.h >>conftest.$ac_ext
  2.2448 -cat >>conftest.$ac_ext <<_ACEOF
  2.2449 +  if test -s conftest.err; then
  2.2450 +    sed '10a\
  2.2451 +... rest of stderr output deleted ...
  2.2452 +         10q' conftest.err >conftest.er1
  2.2453 +    cat conftest.er1 >&5
  2.2454 +  fi
  2.2455 +  rm -f conftest.er1 conftest.err
  2.2456 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.2457 +  test $ac_status = 0; }
  2.2458 +done
  2.2459 +
  2.2460 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2461  /* end confdefs.h.  */
  2.2462  
  2.2463  int
  2.2464 @@ -2164,42 +2337,38 @@
  2.2465  }
  2.2466  _ACEOF
  2.2467  ac_clean_files_save=$ac_clean_files
  2.2468 -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2.2469 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2.2470  # Try to create an executable without -o first, disregard a.out.
  2.2471  # It will help us diagnose broken compilers, and finding out an intuition
  2.2472  # of exeext.
  2.2473 -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2.2474 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2.2475 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2.2476 -#
  2.2477 -# List of possible output files, starting from the most likely.
  2.2478 -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2.2479 -# only as a last resort.  b.out is created by i960 compilers.
  2.2480 -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2.2481 -#
  2.2482 -# The IRIX 6 linker writes into existing files which may not be
  2.2483 -# executable, retaining their permissions.  Remove them first so a
  2.2484 -# subsequent execution test works.
  2.2485 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2.2486 +$as_echo_n "checking whether the C compiler works... " >&6; }
  2.2487 +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2.2488 +
  2.2489 +# The possible output files:
  2.2490 +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2.2491 +
  2.2492  ac_rmfiles=
  2.2493  for ac_file in $ac_files
  2.2494  do
  2.2495    case $ac_file in
  2.2496 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2.2497 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2.2498      * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2.2499    esac
  2.2500  done
  2.2501  rm -f $ac_rmfiles
  2.2502  
  2.2503 -if { (ac_try="$ac_link_default"
  2.2504 +if { { ac_try="$ac_link_default"
  2.2505  case "(($ac_try" in
  2.2506    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2507    *) ac_try_echo=$ac_try;;
  2.2508  esac
  2.2509 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2510 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.2511 +$as_echo "$ac_try_echo"; } >&5
  2.2512    (eval "$ac_link_default") 2>&5
  2.2513    ac_status=$?
  2.2514 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2515 -  (exit $ac_status); }; then
  2.2516 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.2517 +  test $ac_status = 0; }; then :
  2.2518    # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2.2519  # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2.2520  # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2.2521 @@ -2209,14 +2378,14 @@
  2.2522  do
  2.2523    test -f "$ac_file" || continue
  2.2524    case $ac_file in
  2.2525 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2.2526 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2.2527  	;;
  2.2528      [ab].out )
  2.2529  	# We found the default executable, but exeext='' is most
  2.2530  	# certainly right.
  2.2531  	break;;
  2.2532      *.* )
  2.2533 -        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2.2534 +	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2.2535  	then :; else
  2.2536  	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2.2537  	fi
  2.2538 @@ -2235,78 +2404,41 @@
  2.2539  else
  2.2540    ac_file=''
  2.2541  fi
  2.2542 -
  2.2543 -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  2.2544 -echo "${ECHO_T}$ac_file" >&6; }
  2.2545 -if test -z "$ac_file"; then
  2.2546 -  echo "$as_me: failed program was:" >&5
  2.2547 +if test -z "$ac_file"; then :
  2.2548 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.2549 +$as_echo "no" >&6; }
  2.2550 +$as_echo "$as_me: failed program was:" >&5
  2.2551  sed 's/^/| /' conftest.$ac_ext >&5
  2.2552  
  2.2553 -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2.2554 -See \`config.log' for more details." >&5
  2.2555 -echo "$as_me: error: C compiler cannot create executables
  2.2556 -See \`config.log' for more details." >&2;}
  2.2557 -   { (exit 77); exit 77; }; }
  2.2558 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.2559 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.2560 +as_fn_error 77 "C compiler cannot create executables
  2.2561 +See \`config.log' for more details" "$LINENO" 5; }
  2.2562 +else
  2.2563 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2.2564 +$as_echo "yes" >&6; }
  2.2565  fi
  2.2566 -
  2.2567 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2.2568 +$as_echo_n "checking for C compiler default output file name... " >&6; }
  2.2569 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2.2570 +$as_echo "$ac_file" >&6; }
  2.2571  ac_exeext=$ac_cv_exeext
  2.2572  
  2.2573 -# Check that the compiler produces executables we can run.  If not, either
  2.2574 -# the compiler is broken, or we cross compile.
  2.2575 -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2.2576 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2.2577 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2.2578 -# If not cross compiling, check that we can run a simple program.
  2.2579 -if test "$cross_compiling" != yes; then
  2.2580 -  if { ac_try='./$ac_file'
  2.2581 -  { (case "(($ac_try" in
  2.2582 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2583 -  *) ac_try_echo=$ac_try;;
  2.2584 -esac
  2.2585 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2586 -  (eval "$ac_try") 2>&5
  2.2587 -  ac_status=$?
  2.2588 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2589 -  (exit $ac_status); }; }; then
  2.2590 -    cross_compiling=no
  2.2591 -  else
  2.2592 -    if test "$cross_compiling" = maybe; then
  2.2593 -	cross_compiling=yes
  2.2594 -    else
  2.2595 -	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2.2596 -If you meant to cross compile, use \`--host'.
  2.2597 -See \`config.log' for more details." >&5
  2.2598 -echo "$as_me: error: cannot run C compiled programs.
  2.2599 -If you meant to cross compile, use \`--host'.
  2.2600 -See \`config.log' for more details." >&2;}
  2.2601 -   { (exit 1); exit 1; }; }
  2.2602 -    fi
  2.2603 -  fi
  2.2604 -fi
  2.2605 -{ echo "$as_me:$LINENO: result: yes" >&5
  2.2606 -echo "${ECHO_T}yes" >&6; }
  2.2607 -
  2.2608 -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2.2609 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2.2610  ac_clean_files=$ac_clean_files_save
  2.2611 -# Check that the compiler produces executables we can run.  If not, either
  2.2612 -# the compiler is broken, or we cross compile.
  2.2613 -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2.2614 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2.2615 -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2.2616 -echo "${ECHO_T}$cross_compiling" >&6; }
  2.2617 -
  2.2618 -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2.2619 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2.2620 -if { (ac_try="$ac_link"
  2.2621 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2.2622 +$as_echo_n "checking for suffix of executables... " >&6; }
  2.2623 +if { { ac_try="$ac_link"
  2.2624  case "(($ac_try" in
  2.2625    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2626    *) ac_try_echo=$ac_try;;
  2.2627  esac
  2.2628 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2629 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.2630 +$as_echo "$ac_try_echo"; } >&5
  2.2631    (eval "$ac_link") 2>&5
  2.2632    ac_status=$?
  2.2633 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2634 -  (exit $ac_status); }; then
  2.2635 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.2636 +  test $ac_status = 0; }; then :
  2.2637    # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2.2638  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2.2639  # work properly (i.e., refer to `conftest.exe'), while it won't with
  2.2640 @@ -2314,37 +2446,90 @@
  2.2641  for ac_file in conftest.exe conftest conftest.*; do
  2.2642    test -f "$ac_file" || continue
  2.2643    case $ac_file in
  2.2644 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2.2645 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2.2646      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2.2647  	  break;;
  2.2648      * ) break;;
  2.2649    esac
  2.2650  done
  2.2651  else
  2.2652 -  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2.2653 -See \`config.log' for more details." >&5
  2.2654 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2.2655 -See \`config.log' for more details." >&2;}
  2.2656 -   { (exit 1); exit 1; }; }
  2.2657 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.2658 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.2659 +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2.2660 +See \`config.log' for more details" "$LINENO" 5; }
  2.2661  fi
  2.2662 -
  2.2663 -rm -f conftest$ac_cv_exeext
  2.2664 -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2.2665 -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2.2666 +rm -f conftest conftest$ac_cv_exeext
  2.2667 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2.2668 +$as_echo "$ac_cv_exeext" >&6; }
  2.2669  
  2.2670  rm -f conftest.$ac_ext
  2.2671  EXEEXT=$ac_cv_exeext
  2.2672  ac_exeext=$EXEEXT
  2.2673 -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2.2674 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2.2675 -if test "${ac_cv_objext+set}" = set; then
  2.2676 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2677 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2678 +/* end confdefs.h.  */
  2.2679 +#include <stdio.h>
  2.2680 +int
  2.2681 +main ()
  2.2682 +{
  2.2683 +FILE *f = fopen ("conftest.out", "w");
  2.2684 + return ferror (f) || fclose (f) != 0;
  2.2685 +
  2.2686 +  ;
  2.2687 +  return 0;
  2.2688 +}
  2.2689 +_ACEOF
  2.2690 +ac_clean_files="$ac_clean_files conftest.out"
  2.2691 +# Check that the compiler produces executables we can run.  If not, either
  2.2692 +# the compiler is broken, or we cross compile.
  2.2693 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2.2694 +$as_echo_n "checking whether we are cross compiling... " >&6; }
  2.2695 +if test "$cross_compiling" != yes; then
  2.2696 +  { { ac_try="$ac_link"
  2.2697 +case "(($ac_try" in
  2.2698 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2699 +  *) ac_try_echo=$ac_try;;
  2.2700 +esac
  2.2701 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.2702 +$as_echo "$ac_try_echo"; } >&5
  2.2703 +  (eval "$ac_link") 2>&5
  2.2704 +  ac_status=$?
  2.2705 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.2706 +  test $ac_status = 0; }
  2.2707 +  if { ac_try='./conftest$ac_cv_exeext'
  2.2708 +  { { case "(($ac_try" in
  2.2709 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2710 +  *) ac_try_echo=$ac_try;;
  2.2711 +esac
  2.2712 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.2713 +$as_echo "$ac_try_echo"; } >&5
  2.2714 +  (eval "$ac_try") 2>&5
  2.2715 +  ac_status=$?
  2.2716 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.2717 +  test $ac_status = 0; }; }; then
  2.2718 +    cross_compiling=no
  2.2719 +  else
  2.2720 +    if test "$cross_compiling" = maybe; then
  2.2721 +	cross_compiling=yes
  2.2722 +    else
  2.2723 +	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.2724 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.2725 +as_fn_error $? "cannot run C compiled programs.
  2.2726 +If you meant to cross compile, use \`--host'.
  2.2727 +See \`config.log' for more details" "$LINENO" 5; }
  2.2728 +    fi
  2.2729 +  fi
  2.2730 +fi
  2.2731 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2.2732 +$as_echo "$cross_compiling" >&6; }
  2.2733 +
  2.2734 +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2.2735 +ac_clean_files=$ac_clean_files_save
  2.2736 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2.2737 +$as_echo_n "checking for suffix of object files... " >&6; }
  2.2738 +if ${ac_cv_objext+:} false; then :
  2.2739 +  $as_echo_n "(cached) " >&6
  2.2740  else
  2.2741 -  cat >conftest.$ac_ext <<_ACEOF
  2.2742 -/* confdefs.h.  */
  2.2743 -_ACEOF
  2.2744 -cat confdefs.h >>conftest.$ac_ext
  2.2745 -cat >>conftest.$ac_ext <<_ACEOF
  2.2746 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2747  /* end confdefs.h.  */
  2.2748  
  2.2749  int
  2.2750 @@ -2356,51 +2541,46 @@
  2.2751  }
  2.2752  _ACEOF
  2.2753  rm -f conftest.o conftest.obj
  2.2754 -if { (ac_try="$ac_compile"
  2.2755 +if { { ac_try="$ac_compile"
  2.2756  case "(($ac_try" in
  2.2757    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2758    *) ac_try_echo=$ac_try;;
  2.2759  esac
  2.2760 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2761 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2.2762 +$as_echo "$ac_try_echo"; } >&5
  2.2763    (eval "$ac_compile") 2>&5
  2.2764    ac_status=$?
  2.2765 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2766 -  (exit $ac_status); }; then
  2.2767 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.2768 +  test $ac_status = 0; }; then :
  2.2769    for ac_file in conftest.o conftest.obj conftest.*; do
  2.2770    test -f "$ac_file" || continue;
  2.2771    case $ac_file in
  2.2772 -    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2.2773 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2.2774      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2.2775         break;;
  2.2776    esac
  2.2777  done
  2.2778  else
  2.2779 -  echo "$as_me: failed program was:" >&5
  2.2780 +  $as_echo "$as_me: failed program was:" >&5
  2.2781  sed 's/^/| /' conftest.$ac_ext >&5
  2.2782  
  2.2783 -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2.2784 -See \`config.log' for more details." >&5
  2.2785 -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2.2786 -See \`config.log' for more details." >&2;}
  2.2787 -   { (exit 1); exit 1; }; }
  2.2788 +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.2789 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.2790 +as_fn_error $? "cannot compute suffix of object files: cannot compile
  2.2791 +See \`config.log' for more details" "$LINENO" 5; }
  2.2792  fi
  2.2793 -
  2.2794  rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2.2795  fi
  2.2796 -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2.2797 -echo "${ECHO_T}$ac_cv_objext" >&6; }
  2.2798 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2.2799 +$as_echo "$ac_cv_objext" >&6; }
  2.2800  OBJEXT=$ac_cv_objext
  2.2801  ac_objext=$OBJEXT
  2.2802 -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2.2803 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2.2804 -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2.2805 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2806 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2.2807 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2.2808 +if ${ac_cv_c_compiler_gnu+:} false; then :
  2.2809 +  $as_echo_n "(cached) " >&6
  2.2810  else
  2.2811 -  cat >conftest.$ac_ext <<_ACEOF
  2.2812 -/* confdefs.h.  */
  2.2813 -_ACEOF
  2.2814 -cat confdefs.h >>conftest.$ac_ext
  2.2815 -cat >>conftest.$ac_ext <<_ACEOF
  2.2816 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2817  /* end confdefs.h.  */
  2.2818  
  2.2819  int
  2.2820 @@ -2414,54 +2594,34 @@
  2.2821    return 0;
  2.2822  }
  2.2823  _ACEOF
  2.2824 -rm -f conftest.$ac_objext
  2.2825 -if { (ac_try="$ac_compile"
  2.2826 -case "(($ac_try" in
  2.2827 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2828 -  *) ac_try_echo=$ac_try;;
  2.2829 -esac
  2.2830 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2831 -  (eval "$ac_compile") 2>conftest.er1
  2.2832 -  ac_status=$?
  2.2833 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.2834 -  rm -f conftest.er1
  2.2835 -  cat conftest.err >&5
  2.2836 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2837 -  (exit $ac_status); } && {
  2.2838 -	 test -z "$ac_c_werror_flag" ||
  2.2839 -	 test ! -s conftest.err
  2.2840 -       } && test -s conftest.$ac_objext; then
  2.2841 +if ac_fn_c_try_compile "$LINENO"; then :
  2.2842    ac_compiler_gnu=yes
  2.2843  else
  2.2844 -  echo "$as_me: failed program was:" >&5
  2.2845 -sed 's/^/| /' conftest.$ac_ext >&5
  2.2846 -
  2.2847 -	ac_compiler_gnu=no
  2.2848 +  ac_compiler_gnu=no
  2.2849  fi
  2.2850 -
  2.2851  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.2852  ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2.2853  
  2.2854  fi
  2.2855 -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2.2856 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2.2857 -GCC=`test $ac_compiler_gnu = yes && echo yes`
  2.2858 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2.2859 +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2.2860 +if test $ac_compiler_gnu = yes; then
  2.2861 +  GCC=yes
  2.2862 +else
  2.2863 +  GCC=
  2.2864 +fi
  2.2865  ac_test_CFLAGS=${CFLAGS+set}
  2.2866  ac_save_CFLAGS=$CFLAGS
  2.2867 -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2.2868 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2.2869 -if test "${ac_cv_prog_cc_g+set}" = set; then
  2.2870 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.2871 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2.2872 +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  2.2873 +if ${ac_cv_prog_cc_g+:} false; then :
  2.2874 +  $as_echo_n "(cached) " >&6
  2.2875  else
  2.2876    ac_save_c_werror_flag=$ac_c_werror_flag
  2.2877     ac_c_werror_flag=yes
  2.2878     ac_cv_prog_cc_g=no
  2.2879     CFLAGS="-g"
  2.2880 -   cat >conftest.$ac_ext <<_ACEOF
  2.2881 -/* confdefs.h.  */
  2.2882 -_ACEOF
  2.2883 -cat confdefs.h >>conftest.$ac_ext
  2.2884 -cat >>conftest.$ac_ext <<_ACEOF
  2.2885 +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2886  /* end confdefs.h.  */
  2.2887  
  2.2888  int
  2.2889 @@ -2472,34 +2632,11 @@
  2.2890    return 0;
  2.2891  }
  2.2892  _ACEOF
  2.2893 -rm -f conftest.$ac_objext
  2.2894 -if { (ac_try="$ac_compile"
  2.2895 -case "(($ac_try" in
  2.2896 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2897 -  *) ac_try_echo=$ac_try;;
  2.2898 -esac
  2.2899 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2900 -  (eval "$ac_compile") 2>conftest.er1
  2.2901 -  ac_status=$?
  2.2902 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.2903 -  rm -f conftest.er1
  2.2904 -  cat conftest.err >&5
  2.2905 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2906 -  (exit $ac_status); } && {
  2.2907 -	 test -z "$ac_c_werror_flag" ||
  2.2908 -	 test ! -s conftest.err
  2.2909 -       } && test -s conftest.$ac_objext; then
  2.2910 +if ac_fn_c_try_compile "$LINENO"; then :
  2.2911    ac_cv_prog_cc_g=yes
  2.2912  else
  2.2913 -  echo "$as_me: failed program was:" >&5
  2.2914 -sed 's/^/| /' conftest.$ac_ext >&5
  2.2915 -
  2.2916 -	CFLAGS=""
  2.2917 -      cat >conftest.$ac_ext <<_ACEOF
  2.2918 -/* confdefs.h.  */
  2.2919 -_ACEOF
  2.2920 -cat confdefs.h >>conftest.$ac_ext
  2.2921 -cat >>conftest.$ac_ext <<_ACEOF
  2.2922 +  CFLAGS=""
  2.2923 +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2924  /* end confdefs.h.  */
  2.2925  
  2.2926  int
  2.2927 @@ -2510,35 +2647,12 @@
  2.2928    return 0;
  2.2929  }
  2.2930  _ACEOF
  2.2931 -rm -f conftest.$ac_objext
  2.2932 -if { (ac_try="$ac_compile"
  2.2933 -case "(($ac_try" in
  2.2934 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2935 -  *) ac_try_echo=$ac_try;;
  2.2936 -esac
  2.2937 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2938 -  (eval "$ac_compile") 2>conftest.er1
  2.2939 -  ac_status=$?
  2.2940 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.2941 -  rm -f conftest.er1
  2.2942 -  cat conftest.err >&5
  2.2943 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2944 -  (exit $ac_status); } && {
  2.2945 -	 test -z "$ac_c_werror_flag" ||
  2.2946 -	 test ! -s conftest.err
  2.2947 -       } && test -s conftest.$ac_objext; then
  2.2948 -  :
  2.2949 +if ac_fn_c_try_compile "$LINENO"; then :
  2.2950 +
  2.2951  else
  2.2952 -  echo "$as_me: failed program was:" >&5
  2.2953 -sed 's/^/| /' conftest.$ac_ext >&5
  2.2954 -
  2.2955 -	ac_c_werror_flag=$ac_save_c_werror_flag
  2.2956 +  ac_c_werror_flag=$ac_save_c_werror_flag
  2.2957  	 CFLAGS="-g"
  2.2958 -	 cat >conftest.$ac_ext <<_ACEOF
  2.2959 -/* confdefs.h.  */
  2.2960 -_ACEOF
  2.2961 -cat confdefs.h >>conftest.$ac_ext
  2.2962 -cat >>conftest.$ac_ext <<_ACEOF
  2.2963 +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.2964  /* end confdefs.h.  */
  2.2965  
  2.2966  int
  2.2967 @@ -2549,42 +2663,18 @@
  2.2968    return 0;
  2.2969  }
  2.2970  _ACEOF
  2.2971 -rm -f conftest.$ac_objext
  2.2972 -if { (ac_try="$ac_compile"
  2.2973 -case "(($ac_try" in
  2.2974 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.2975 -  *) ac_try_echo=$ac_try;;
  2.2976 -esac
  2.2977 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.2978 -  (eval "$ac_compile") 2>conftest.er1
  2.2979 -  ac_status=$?
  2.2980 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.2981 -  rm -f conftest.er1
  2.2982 -  cat conftest.err >&5
  2.2983 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.2984 -  (exit $ac_status); } && {
  2.2985 -	 test -z "$ac_c_werror_flag" ||
  2.2986 -	 test ! -s conftest.err
  2.2987 -       } && test -s conftest.$ac_objext; then
  2.2988 +if ac_fn_c_try_compile "$LINENO"; then :
  2.2989    ac_cv_prog_cc_g=yes
  2.2990 -else
  2.2991 -  echo "$as_me: failed program was:" >&5
  2.2992 -sed 's/^/| /' conftest.$ac_ext >&5
  2.2993 -
  2.2994 -
  2.2995  fi
  2.2996 -
  2.2997  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.2998  fi
  2.2999 -
  2.3000  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.3001  fi
  2.3002 -
  2.3003  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.3004     ac_c_werror_flag=$ac_save_c_werror_flag
  2.3005  fi
  2.3006 -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2.3007 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2.3008 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2.3009 +$as_echo "$ac_cv_prog_cc_g" >&6; }
  2.3010  if test "$ac_test_CFLAGS" = set; then
  2.3011    CFLAGS=$ac_save_CFLAGS
  2.3012  elif test $ac_cv_prog_cc_g = yes; then
  2.3013 @@ -2600,18 +2690,14 @@
  2.3014      CFLAGS=
  2.3015    fi
  2.3016  fi
  2.3017 -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2.3018 -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2.3019 -if test "${ac_cv_prog_cc_c89+set}" = set; then
  2.3020 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3021 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2.3022 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2.3023 +if ${ac_cv_prog_cc_c89+:} false; then :
  2.3024 +  $as_echo_n "(cached) " >&6
  2.3025  else
  2.3026    ac_cv_prog_cc_c89=no
  2.3027  ac_save_CC=$CC
  2.3028 -cat >conftest.$ac_ext <<_ACEOF
  2.3029 -/* confdefs.h.  */
  2.3030 -_ACEOF
  2.3031 -cat confdefs.h >>conftest.$ac_ext
  2.3032 -cat >>conftest.$ac_ext <<_ACEOF
  2.3033 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3034  /* end confdefs.h.  */
  2.3035  #include <stdarg.h>
  2.3036  #include <stdio.h>
  2.3037 @@ -2668,31 +2754,9 @@
  2.3038  	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2.3039  do
  2.3040    CC="$ac_save_CC $ac_arg"
  2.3041 -  rm -f conftest.$ac_objext
  2.3042 -if { (ac_try="$ac_compile"
  2.3043 -case "(($ac_try" in
  2.3044 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3045 -  *) ac_try_echo=$ac_try;;
  2.3046 -esac
  2.3047 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3048 -  (eval "$ac_compile") 2>conftest.er1
  2.3049 -  ac_status=$?
  2.3050 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3051 -  rm -f conftest.er1
  2.3052 -  cat conftest.err >&5
  2.3053 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3054 -  (exit $ac_status); } && {
  2.3055 -	 test -z "$ac_c_werror_flag" ||
  2.3056 -	 test ! -s conftest.err
  2.3057 -       } && test -s conftest.$ac_objext; then
  2.3058 +  if ac_fn_c_try_compile "$LINENO"; then :
  2.3059    ac_cv_prog_cc_c89=$ac_arg
  2.3060 -else
  2.3061 -  echo "$as_me: failed program was:" >&5
  2.3062 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3063 -
  2.3064 -
  2.3065  fi
  2.3066 -
  2.3067  rm -f core conftest.err conftest.$ac_objext
  2.3068    test "x$ac_cv_prog_cc_c89" != "xno" && break
  2.3069  done
  2.3070 @@ -2703,17 +2767,19 @@
  2.3071  # AC_CACHE_VAL
  2.3072  case "x$ac_cv_prog_cc_c89" in
  2.3073    x)
  2.3074 -    { echo "$as_me:$LINENO: result: none needed" >&5
  2.3075 -echo "${ECHO_T}none needed" >&6; } ;;
  2.3076 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2.3077 +$as_echo "none needed" >&6; } ;;
  2.3078    xno)
  2.3079 -    { echo "$as_me:$LINENO: result: unsupported" >&5
  2.3080 -echo "${ECHO_T}unsupported" >&6; } ;;
  2.3081 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2.3082 +$as_echo "unsupported" >&6; } ;;
  2.3083    *)
  2.3084      CC="$CC $ac_cv_prog_cc_c89"
  2.3085 -    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2.3086 -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2.3087 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2.3088 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2.3089  esac
  2.3090 -
  2.3091 +if test "x$ac_cv_prog_cc_c89" != xno; then :
  2.3092 +
  2.3093 +fi
  2.3094  
  2.3095  ac_ext=c
  2.3096  ac_cpp='$CPP $CPPFLAGS'
  2.3097 @@ -2724,16 +2790,12 @@
  2.3098  
  2.3099  
  2.3100  
  2.3101 -{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  2.3102 -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  2.3103 -if test "${ac_cv_c_const+set}" = set; then
  2.3104 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3105 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  2.3106 +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  2.3107 +if ${ac_cv_c_const+:} false; then :
  2.3108 +  $as_echo_n "(cached) " >&6
  2.3109  else
  2.3110 -  cat >conftest.$ac_ext <<_ACEOF
  2.3111 -/* confdefs.h.  */
  2.3112 -_ACEOF
  2.3113 -cat confdefs.h >>conftest.$ac_ext
  2.3114 -cat >>conftest.$ac_ext <<_ACEOF
  2.3115 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3116  /* end confdefs.h.  */
  2.3117  
  2.3118  int
  2.3119 @@ -2793,46 +2855,29 @@
  2.3120    return 0;
  2.3121  }
  2.3122  _ACEOF
  2.3123 -rm -f conftest.$ac_objext
  2.3124 -if { (ac_try="$ac_compile"
  2.3125 -case "(($ac_try" in
  2.3126 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3127 -  *) ac_try_echo=$ac_try;;
  2.3128 -esac
  2.3129 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3130 -  (eval "$ac_compile") 2>conftest.er1
  2.3131 -  ac_status=$?
  2.3132 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3133 -  rm -f conftest.er1
  2.3134 -  cat conftest.err >&5
  2.3135 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3136 -  (exit $ac_status); } && {
  2.3137 -	 test -z "$ac_c_werror_flag" ||
  2.3138 -	 test ! -s conftest.err
  2.3139 -       } && test -s conftest.$ac_objext; then
  2.3140 +if ac_fn_c_try_compile "$LINENO"; then :
  2.3141    ac_cv_c_const=yes
  2.3142  else
  2.3143 -  echo "$as_me: failed program was:" >&5
  2.3144 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3145 -
  2.3146 -	ac_cv_c_const=no
  2.3147 +  ac_cv_c_const=no
  2.3148  fi
  2.3149 -
  2.3150  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.3151  fi
  2.3152 -{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  2.3153 -echo "${ECHO_T}$ac_cv_c_const" >&6; }
  2.3154 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  2.3155 +$as_echo "$ac_cv_c_const" >&6; }
  2.3156  if test $ac_cv_c_const = no; then
  2.3157  
  2.3158 -cat >>confdefs.h <<\_ACEOF
  2.3159 -#define const
  2.3160 -_ACEOF
  2.3161 +$as_echo "#define const /**/" >>confdefs.h
  2.3162  
  2.3163  fi
  2.3164  
  2.3165  
  2.3166 +ISUNIX="false"
  2.3167 +ISWINDOWS="false"
  2.3168 +ISMACOSX="false"
  2.3169 +
  2.3170  case "$host" in
  2.3171      *-*-cygwin* | *-*-mingw32*)
  2.3172 +        ISWINDOWS="true"
  2.3173          EXE=".exe"
  2.3174          MATHLIB=""
  2.3175          SYS_GL_LIBS="-lopengl32"
  2.3176 @@ -2843,11 +2888,13 @@
  2.3177          SYS_GL_LIBS="-lGL"
  2.3178          ;;
  2.3179      *-*-darwin* )
  2.3180 +        ISMACOSX="true"
  2.3181          EXE=""
  2.3182          MATHLIB=""
  2.3183          SYS_GL_LIBS="-Wl,-framework,OpenGL"
  2.3184          ;;
  2.3185      *-*-aix*)
  2.3186 +        ISUNIX="true"
  2.3187          EXE=""
  2.3188          if test x$ac_cv_c_compiler_gnu = xyes; then
  2.3189              CFLAGS="-mthreads"
  2.3190 @@ -2859,10 +2906,10 @@
  2.3191          MATHLIB=""
  2.3192          # Extract the first word of "osmesa-config", so it can be a program name with args.
  2.3193  set dummy osmesa-config; ac_word=$2
  2.3194 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.3195 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.3196 -if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
  2.3197 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3198 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.3199 +$as_echo_n "checking for $ac_word... " >&6; }
  2.3200 +if ${ac_cv_path_OSMESA_CONFIG+:} false; then :
  2.3201 +  $as_echo_n "(cached) " >&6
  2.3202  else
  2.3203    case $OSMESA_CONFIG in
  2.3204    [\\/]* | ?:[\\/]*)
  2.3205 @@ -2874,14 +2921,14 @@
  2.3206  do
  2.3207    IFS=$as_save_IFS
  2.3208    test -z "$as_dir" && as_dir=.
  2.3209 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.3210 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.3211    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.3212      ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2.3213 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3214 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3215      break 2
  2.3216    fi
  2.3217  done
  2.3218 -done
  2.3219 +  done
  2.3220  IFS=$as_save_IFS
  2.3221  
  2.3222    test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
  2.3223 @@ -2890,11 +2937,11 @@
  2.3224  fi
  2.3225  OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
  2.3226  if test -n "$OSMESA_CONFIG"; then
  2.3227 -  { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
  2.3228 -echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
  2.3229 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
  2.3230 +$as_echo "$OSMESA_CONFIG" >&6; }
  2.3231  else
  2.3232 -  { echo "$as_me:$LINENO: result: no" >&5
  2.3233 -echo "${ECHO_T}no" >&6; }
  2.3234 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3235 +$as_echo "no" >&6; }
  2.3236  fi
  2.3237  
  2.3238  
  2.3239 @@ -2913,6 +2960,7 @@
  2.3240          SYS_GL_LIBS="-lGLES_CM"
  2.3241          ;;
  2.3242      *)
  2.3243 +                ISUNIX="true"
  2.3244          EXE=""
  2.3245          MATHLIB="-lm"
  2.3246          SYS_GL_LIBS="-lGL"
  2.3247 @@ -2921,6 +2969,9 @@
  2.3248  
  2.3249  
  2.3250  
  2.3251 +
  2.3252 +
  2.3253 +
  2.3254  SDL_VERSION=2.0.0
  2.3255  
  2.3256  
  2.3257 @@ -2932,10 +2983,10 @@
  2.3258  	if test -n "$ac_tool_prefix"; then
  2.3259    # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  2.3260  set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  2.3261 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.3262 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.3263 -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  2.3264 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3265 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.3266 +$as_echo_n "checking for $ac_word... " >&6; }
  2.3267 +if ${ac_cv_path_PKG_CONFIG+:} false; then :
  2.3268 +  $as_echo_n "(cached) " >&6
  2.3269  else
  2.3270    case $PKG_CONFIG in
  2.3271    [\\/]* | ?:[\\/]*)
  2.3272 @@ -2947,14 +2998,14 @@
  2.3273  do
  2.3274    IFS=$as_save_IFS
  2.3275    test -z "$as_dir" && as_dir=.
  2.3276 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.3277 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.3278    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.3279      ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2.3280 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3281 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3282      break 2
  2.3283    fi
  2.3284  done
  2.3285 -done
  2.3286 +  done
  2.3287  IFS=$as_save_IFS
  2.3288  
  2.3289    ;;
  2.3290 @@ -2962,11 +3013,11 @@
  2.3291  fi
  2.3292  PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  2.3293  if test -n "$PKG_CONFIG"; then
  2.3294 -  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  2.3295 -echo "${ECHO_T}$PKG_CONFIG" >&6; }
  2.3296 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  2.3297 +$as_echo "$PKG_CONFIG" >&6; }
  2.3298  else
  2.3299 -  { echo "$as_me:$LINENO: result: no" >&5
  2.3300 -echo "${ECHO_T}no" >&6; }
  2.3301 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3302 +$as_echo "no" >&6; }
  2.3303  fi
  2.3304  
  2.3305  
  2.3306 @@ -2975,10 +3026,10 @@
  2.3307    ac_pt_PKG_CONFIG=$PKG_CONFIG
  2.3308    # Extract the first word of "pkg-config", so it can be a program name with args.
  2.3309  set dummy pkg-config; ac_word=$2
  2.3310 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.3311 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.3312 -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  2.3313 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3314 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.3315 +$as_echo_n "checking for $ac_word... " >&6; }
  2.3316 +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  2.3317 +  $as_echo_n "(cached) " >&6
  2.3318  else
  2.3319    case $ac_pt_PKG_CONFIG in
  2.3320    [\\/]* | ?:[\\/]*)
  2.3321 @@ -2990,14 +3041,14 @@
  2.3322  do
  2.3323    IFS=$as_save_IFS
  2.3324    test -z "$as_dir" && as_dir=.
  2.3325 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.3326 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.3327    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.3328      ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2.3329 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3330 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3331      break 2
  2.3332    fi
  2.3333  done
  2.3334 -done
  2.3335 +  done
  2.3336  IFS=$as_save_IFS
  2.3337  
  2.3338    ;;
  2.3339 @@ -3005,11 +3056,11 @@
  2.3340  fi
  2.3341  ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  2.3342  if test -n "$ac_pt_PKG_CONFIG"; then
  2.3343 -  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  2.3344 -echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  2.3345 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  2.3346 +$as_echo "$ac_pt_PKG_CONFIG" >&6; }
  2.3347  else
  2.3348 -  { echo "$as_me:$LINENO: result: no" >&5
  2.3349 -echo "${ECHO_T}no" >&6; }
  2.3350 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3351 +$as_echo "no" >&6; }
  2.3352  fi
  2.3353  
  2.3354    if test "x$ac_pt_PKG_CONFIG" = x; then
  2.3355 @@ -3017,12 +3068,8 @@
  2.3356    else
  2.3357      case $cross_compiling:$ac_tool_warned in
  2.3358  yes:)
  2.3359 -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2.3360 -whose name does not start with the host triplet.  If you think this
  2.3361 -configuration is useful to you, please write to autoconf@gnu.org." >&5
  2.3362 -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2.3363 -whose name does not start with the host triplet.  If you think this
  2.3364 -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2.3365 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2.3366 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2.3367  ac_tool_warned=yes ;;
  2.3368  esac
  2.3369      PKG_CONFIG=$ac_pt_PKG_CONFIG
  2.3370 @@ -3034,20 +3081,20 @@
  2.3371  fi
  2.3372  if test -n "$PKG_CONFIG"; then
  2.3373  	_pkg_min_version=0.9.0
  2.3374 -	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  2.3375 -echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  2.3376 +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  2.3377 +$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  2.3378  	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  2.3379 -		{ echo "$as_me:$LINENO: result: yes" >&5
  2.3380 -echo "${ECHO_T}yes" >&6; }
  2.3381 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2.3382 +$as_echo "yes" >&6; }
  2.3383  	else
  2.3384 -		{ echo "$as_me:$LINENO: result: no" >&5
  2.3385 -echo "${ECHO_T}no" >&6; }
  2.3386 +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3387 +$as_echo "no" >&6; }
  2.3388  		PKG_CONFIG=""
  2.3389  	fi
  2.3390  fi
  2.3391  
  2.3392  # Check whether --with-sdl-prefix was given.
  2.3393 -if test "${with_sdl_prefix+set}" = set; then
  2.3394 +if test "${with_sdl_prefix+set}" = set; then :
  2.3395    withval=$with_sdl_prefix; sdl_prefix="$withval"
  2.3396  else
  2.3397    sdl_prefix=""
  2.3398 @@ -3055,14 +3102,14 @@
  2.3399  
  2.3400  
  2.3401  # Check whether --with-sdl-exec-prefix was given.
  2.3402 -if test "${with_sdl_exec_prefix+set}" = set; then
  2.3403 +if test "${with_sdl_exec_prefix+set}" = set; then :
  2.3404    withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  2.3405  else
  2.3406    sdl_exec_prefix=""
  2.3407  fi
  2.3408  
  2.3409  # Check whether --enable-sdltest was given.
  2.3410 -if test "${enable_sdltest+set}" = set; then
  2.3411 +if test "${enable_sdltest+set}" = set; then :
  2.3412    enableval=$enable_sdltest;
  2.3413  else
  2.3414    enable_sdltest=yes
  2.3415 @@ -3074,18 +3121,18 @@
  2.3416    if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  2.3417  
  2.3418  pkg_failed=no
  2.3419 -{ echo "$as_me:$LINENO: checking for SDL" >&5
  2.3420 -echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
  2.3421 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  2.3422 +$as_echo_n "checking for SDL... " >&6; }
  2.3423  
  2.3424  if test -n "$SDL_CFLAGS"; then
  2.3425      pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  2.3426   elif test -n "$PKG_CONFIG"; then
  2.3427      if test -n "$PKG_CONFIG" && \
  2.3428 -    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\"") >&5
  2.3429 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2.3430    ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2.3431    ac_status=$?
  2.3432 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3433 -  (exit $ac_status); }; then
  2.3434 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.3435 +  test $ac_status = 0; }; then
  2.3436    pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
  2.3437  else
  2.3438    pkg_failed=yes
  2.3439 @@ -3097,11 +3144,11 @@
  2.3440      pkg_cv_SDL_LIBS="$SDL_LIBS"
  2.3441   elif test -n "$PKG_CONFIG"; then
  2.3442      if test -n "$PKG_CONFIG" && \
  2.3443 -    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\"") >&5
  2.3444 +    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2.3445    ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2.3446    ac_status=$?
  2.3447 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3448 -  (exit $ac_status); }; then
  2.3449 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2.3450 +  test $ac_status = 0; }; then
  2.3451    pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
  2.3452  else
  2.3453    pkg_failed=yes
  2.3454 @@ -3113,8 +3160,8 @@
  2.3455  
  2.3456  
  2.3457  if test $pkg_failed = yes; then
  2.3458 -   	{ echo "$as_me:$LINENO: result: no" >&5
  2.3459 -echo "${ECHO_T}no" >&6; }
  2.3460 +   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3461 +$as_echo "no" >&6; }
  2.3462  
  2.3463  if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  2.3464          _pkg_short_errors_supported=yes
  2.3465 @@ -3131,14 +3178,14 @@
  2.3466  
  2.3467  	sdl_pc=no
  2.3468  elif test $pkg_failed = untried; then
  2.3469 -     	{ echo "$as_me:$LINENO: result: no" >&5
  2.3470 -echo "${ECHO_T}no" >&6; }
  2.3471 +     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3472 +$as_echo "no" >&6; }
  2.3473  	sdl_pc=no
  2.3474  else
  2.3475  	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  2.3476  	SDL_LIBS=$pkg_cv_SDL_LIBS
  2.3477 -        { echo "$as_me:$LINENO: result: yes" >&5
  2.3478 -echo "${ECHO_T}yes" >&6; }
  2.3479 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2.3480 +$as_echo "yes" >&6; }
  2.3481  	sdl_pc=yes
  2.3482  fi
  2.3483    else
  2.3484 @@ -3167,10 +3214,10 @@
  2.3485      fi
  2.3486      # Extract the first word of "sdl2-config", so it can be a program name with args.
  2.3487  set dummy sdl2-config; ac_word=$2
  2.3488 -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  2.3489 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2.3490 -if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
  2.3491 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3492 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2.3493 +$as_echo_n "checking for $ac_word... " >&6; }
  2.3494 +if ${ac_cv_path_SDL_CONFIG+:} false; then :
  2.3495 +  $as_echo_n "(cached) " >&6
  2.3496  else
  2.3497    case $SDL_CONFIG in
  2.3498    [\\/]* | ?:[\\/]*)
  2.3499 @@ -3182,14 +3229,14 @@
  2.3500  do
  2.3501    IFS=$as_save_IFS
  2.3502    test -z "$as_dir" && as_dir=.
  2.3503 -  for ac_exec_ext in '' $ac_executable_extensions; do
  2.3504 +    for ac_exec_ext in '' $ac_executable_extensions; do
  2.3505    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2.3506      ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2.3507 -    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3508 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2.3509      break 2
  2.3510    fi
  2.3511  done
  2.3512 -done
  2.3513 +  done
  2.3514  IFS=$as_save_IFS
  2.3515  
  2.3516    test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  2.3517 @@ -3198,17 +3245,17 @@
  2.3518  fi
  2.3519  SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  2.3520  if test -n "$SDL_CONFIG"; then
  2.3521 -  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
  2.3522 -echo "${ECHO_T}$SDL_CONFIG" >&6; }
  2.3523 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  2.3524 +$as_echo "$SDL_CONFIG" >&6; }
  2.3525  else
  2.3526 -  { echo "$as_me:$LINENO: result: no" >&5
  2.3527 -echo "${ECHO_T}no" >&6; }
  2.3528 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3529 +$as_echo "no" >&6; }
  2.3530  fi
  2.3531  
  2.3532  
  2.3533      PATH="$as_save_PATH"
  2.3534 -    { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
  2.3535 -echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
  2.3536 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  2.3537 +$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  2.3538      no_sdl=""
  2.3539  
  2.3540      if test "$SDL_CONFIG" = "no" ; then
  2.3541 @@ -3231,14 +3278,10 @@
  2.3542          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  2.3543          LIBS="$LIBS $SDL_LIBS"
  2.3544        rm -f conf.sdltest
  2.3545 -      if test "$cross_compiling" = yes; then
  2.3546 +      if test "$cross_compiling" = yes; then :
  2.3547    echo $ac_n "cross compiling; assumed OK... $ac_c"
  2.3548  else
  2.3549 -  cat >conftest.$ac_ext <<_ACEOF
  2.3550 -/* confdefs.h.  */
  2.3551 -_ACEOF
  2.3552 -cat confdefs.h >>conftest.$ac_ext
  2.3553 -cat >>conftest.$ac_ext <<_ACEOF
  2.3554 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3555  /* end confdefs.h.  */
  2.3556  
  2.3557  #include <stdio.h>
  2.3558 @@ -3299,50 +3342,26 @@
  2.3559  
  2.3560  
  2.3561  _ACEOF
  2.3562 -rm -f conftest$ac_exeext
  2.3563 -if { (ac_try="$ac_link"
  2.3564 -case "(($ac_try" in
  2.3565 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3566 -  *) ac_try_echo=$ac_try;;
  2.3567 -esac
  2.3568 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3569 -  (eval "$ac_link") 2>&5
  2.3570 -  ac_status=$?
  2.3571 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3572 -  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2.3573 -  { (case "(($ac_try" in
  2.3574 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3575 -  *) ac_try_echo=$ac_try;;
  2.3576 -esac
  2.3577 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3578 -  (eval "$ac_try") 2>&5
  2.3579 -  ac_status=$?
  2.3580 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3581 -  (exit $ac_status); }; }; then
  2.3582 -  :
  2.3583 +if ac_fn_c_try_run "$LINENO"; then :
  2.3584 +
  2.3585  else
  2.3586 -  echo "$as_me: program exited with status $ac_status" >&5
  2.3587 -echo "$as_me: failed program was:" >&5
  2.3588 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3589 -
  2.3590 -( exit $ac_status )
  2.3591 -no_sdl=yes
  2.3592 +  no_sdl=yes
  2.3593  fi
  2.3594 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2.3595 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2.3596 +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  2.3597  fi
  2.3598  
  2.3599 -
  2.3600          CFLAGS="$ac_save_CFLAGS"
  2.3601          CXXFLAGS="$ac_save_CXXFLAGS"
  2.3602          LIBS="$ac_save_LIBS"
  2.3603        fi
  2.3604      fi
  2.3605      if test "x$no_sdl" = x ; then
  2.3606 -      { echo "$as_me:$LINENO: result: yes" >&5
  2.3607 -echo "${ECHO_T}yes" >&6; }
  2.3608 +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2.3609 +$as_echo "yes" >&6; }
  2.3610      else
  2.3611 -      { echo "$as_me:$LINENO: result: no" >&5
  2.3612 -echo "${ECHO_T}no" >&6; }
  2.3613 +      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2.3614 +$as_echo "no" >&6; }
  2.3615      fi
  2.3616    fi
  2.3617    if test "x$no_sdl" = x ; then
  2.3618 @@ -3361,11 +3380,7 @@
  2.3619            CFLAGS="$CFLAGS $SDL_CFLAGS"
  2.3620            CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  2.3621            LIBS="$LIBS $SDL_LIBS"
  2.3622 -          cat >conftest.$ac_ext <<_ACEOF
  2.3623 -/* confdefs.h.  */
  2.3624 -_ACEOF
  2.3625 -cat confdefs.h >>conftest.$ac_ext
  2.3626 -cat >>conftest.$ac_ext <<_ACEOF
  2.3627 +          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3628  /* end confdefs.h.  */
  2.3629  
  2.3630  #include <stdio.h>
  2.3631 @@ -3384,24 +3399,7 @@
  2.3632    return 0;
  2.3633  }
  2.3634  _ACEOF
  2.3635 -rm -f conftest.$ac_objext conftest$ac_exeext
  2.3636 -if { (ac_try="$ac_link"
  2.3637 -case "(($ac_try" in
  2.3638 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3639 -  *) ac_try_echo=$ac_try;;
  2.3640 -esac
  2.3641 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3642 -  (eval "$ac_link") 2>conftest.er1
  2.3643 -  ac_status=$?
  2.3644 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3645 -  rm -f conftest.er1
  2.3646 -  cat conftest.err >&5
  2.3647 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3648 -  (exit $ac_status); } && {
  2.3649 -	 test -z "$ac_c_werror_flag" ||
  2.3650 -	 test ! -s conftest.err
  2.3651 -       } && test -s conftest$ac_exeext &&
  2.3652 -       $as_test_x conftest$ac_exeext; then
  2.3653 +if ac_fn_c_try_link "$LINENO"; then :
  2.3654     echo "*** The test program compiled, but did not run. This usually means"
  2.3655            echo "*** that the run-time linker is not finding SDL or finding the wrong"
  2.3656            echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  2.3657 @@ -3412,17 +3410,13 @@
  2.3658            echo "*** If you have an old version installed, it is best to remove it, although"
  2.3659            echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  2.3660  else
  2.3661 -  echo "$as_me: failed program was:" >&5
  2.3662 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3663 -
  2.3664 -	 echo "*** The test program failed to compile or link. See the file config.log for the"
  2.3665 +   echo "*** The test program failed to compile or link. See the file config.log for the"
  2.3666            echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  2.3667            echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  2.3668            echo "*** may want to edit the sdl2-config script: $SDL_CONFIG"
  2.3669  fi
  2.3670 -
  2.3671 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2.3672 -      conftest$ac_exeext conftest.$ac_ext
  2.3673 +rm -f core conftest.err conftest.$ac_objext \
  2.3674 +    conftest$ac_exeext conftest.$ac_ext
  2.3675            CFLAGS="$ac_save_CFLAGS"
  2.3676            CXXFLAGS="$ac_save_CXXFLAGS"
  2.3677            LIBS="$ac_save_LIBS"
  2.3678 @@ -3430,9 +3424,7 @@
  2.3679       fi
  2.3680       SDL_CFLAGS=""
  2.3681       SDL_LIBS=""
  2.3682 -     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
  2.3683 -echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
  2.3684 -   { (exit 1); exit 1; }; }
  2.3685 +     as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  2.3686  
  2.3687    fi
  2.3688  
  2.3689 @@ -3447,15 +3439,15 @@
  2.3690  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2.3691  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2.3692  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2.3693 -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2.3694 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  2.3695 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2.3696 +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  2.3697  # On Suns, sometimes $CPP names a directory.
  2.3698  if test -n "$CPP" && test -d "$CPP"; then
  2.3699    CPP=
  2.3700  fi
  2.3701  if test -z "$CPP"; then
  2.3702 -  if test "${ac_cv_prog_CPP+set}" = set; then
  2.3703 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3704 +  if ${ac_cv_prog_CPP+:} false; then :
  2.3705 +  $as_echo_n "(cached) " >&6
  2.3706  else
  2.3707        # Double quotes because CPP needs to be expanded
  2.3708      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2.3709 @@ -3469,11 +3461,7 @@
  2.3710    # <limits.h> exists even on freestanding compilers.
  2.3711    # On the NeXT, cc -E runs the code through the compiler's parser,
  2.3712    # not just through cpp. "Syntax error" is here to catch this case.
  2.3713 -  cat >conftest.$ac_ext <<_ACEOF
  2.3714 -/* confdefs.h.  */
  2.3715 -_ACEOF
  2.3716 -cat confdefs.h >>conftest.$ac_ext
  2.3717 -cat >>conftest.$ac_ext <<_ACEOF
  2.3718 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3719  /* end confdefs.h.  */
  2.3720  #ifdef __STDC__
  2.3721  # include <limits.h>
  2.3722 @@ -3482,76 +3470,34 @@
  2.3723  #endif
  2.3724  		     Syntax error
  2.3725  _ACEOF
  2.3726 -if { (ac_try="$ac_cpp conftest.$ac_ext"
  2.3727 -case "(($ac_try" in
  2.3728 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3729 -  *) ac_try_echo=$ac_try;;
  2.3730 -esac
  2.3731 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3732 -  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2.3733 -  ac_status=$?
  2.3734 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3735 -  rm -f conftest.er1
  2.3736 -  cat conftest.err >&5
  2.3737 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3738 -  (exit $ac_status); } >/dev/null && {
  2.3739 -	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2.3740 -	 test ! -s conftest.err
  2.3741 -       }; then
  2.3742 -  :
  2.3743 +if ac_fn_c_try_cpp "$LINENO"; then :
  2.3744 +
  2.3745  else
  2.3746 -  echo "$as_me: failed program was:" >&5
  2.3747 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3748 -
  2.3749    # Broken: fails on valid input.
  2.3750  continue
  2.3751  fi
  2.3752 -
  2.3753 -rm -f conftest.err conftest.$ac_ext
  2.3754 +rm -f conftest.err conftest.i conftest.$ac_ext
  2.3755  
  2.3756    # OK, works on sane cases.  Now check whether nonexistent headers
  2.3757    # can be detected and how.
  2.3758 -  cat >conftest.$ac_ext <<_ACEOF
  2.3759 -/* confdefs.h.  */
  2.3760 -_ACEOF
  2.3761 -cat confdefs.h >>conftest.$ac_ext
  2.3762 -cat >>conftest.$ac_ext <<_ACEOF
  2.3763 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3764  /* end confdefs.h.  */
  2.3765  #include <ac_nonexistent.h>
  2.3766  _ACEOF
  2.3767 -if { (ac_try="$ac_cpp conftest.$ac_ext"
  2.3768 -case "(($ac_try" in
  2.3769 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3770 -  *) ac_try_echo=$ac_try;;
  2.3771 -esac
  2.3772 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3773 -  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2.3774 -  ac_status=$?
  2.3775 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3776 -  rm -f conftest.er1
  2.3777 -  cat conftest.err >&5
  2.3778 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3779 -  (exit $ac_status); } >/dev/null && {
  2.3780 -	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2.3781 -	 test ! -s conftest.err
  2.3782 -       }; then
  2.3783 +if ac_fn_c_try_cpp "$LINENO"; then :
  2.3784    # Broken: success on invalid input.
  2.3785  continue
  2.3786  else
  2.3787 -  echo "$as_me: failed program was:" >&5
  2.3788 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3789 -
  2.3790    # Passes both tests.
  2.3791  ac_preproc_ok=:
  2.3792  break
  2.3793  fi
  2.3794 -
  2.3795 -rm -f conftest.err conftest.$ac_ext
  2.3796 +rm -f conftest.err conftest.i conftest.$ac_ext
  2.3797  
  2.3798  done
  2.3799  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2.3800 -rm -f conftest.err conftest.$ac_ext
  2.3801 -if $ac_preproc_ok; then
  2.3802 +rm -f conftest.i conftest.err conftest.$ac_ext
  2.3803 +if $ac_preproc_ok; then :
  2.3804    break
  2.3805  fi
  2.3806  
  2.3807 @@ -3563,8 +3509,8 @@
  2.3808  else
  2.3809    ac_cv_prog_CPP=$CPP
  2.3810  fi
  2.3811 -{ echo "$as_me:$LINENO: result: $CPP" >&5
  2.3812 -echo "${ECHO_T}$CPP" >&6; }
  2.3813 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2.3814 +$as_echo "$CPP" >&6; }
  2.3815  ac_preproc_ok=false
  2.3816  for ac_c_preproc_warn_flag in '' yes
  2.3817  do
  2.3818 @@ -3574,11 +3520,7 @@
  2.3819    # <limits.h> exists even on freestanding compilers.
  2.3820    # On the NeXT, cc -E runs the code through the compiler's parser,
  2.3821    # not just through cpp. "Syntax error" is here to catch this case.
  2.3822 -  cat >conftest.$ac_ext <<_ACEOF
  2.3823 -/* confdefs.h.  */
  2.3824 -_ACEOF
  2.3825 -cat confdefs.h >>conftest.$ac_ext
  2.3826 -cat >>conftest.$ac_ext <<_ACEOF
  2.3827 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3828  /* end confdefs.h.  */
  2.3829  #ifdef __STDC__
  2.3830  # include <limits.h>
  2.3831 @@ -3587,83 +3529,40 @@
  2.3832  #endif
  2.3833  		     Syntax error
  2.3834  _ACEOF
  2.3835 -if { (ac_try="$ac_cpp conftest.$ac_ext"
  2.3836 -case "(($ac_try" in
  2.3837 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3838 -  *) ac_try_echo=$ac_try;;
  2.3839 -esac
  2.3840 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3841 -  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2.3842 -  ac_status=$?
  2.3843 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3844 -  rm -f conftest.er1
  2.3845 -  cat conftest.err >&5
  2.3846 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3847 -  (exit $ac_status); } >/dev/null && {
  2.3848 -	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2.3849 -	 test ! -s conftest.err
  2.3850 -       }; then
  2.3851 -  :
  2.3852 +if ac_fn_c_try_cpp "$LINENO"; then :
  2.3853 +
  2.3854  else
  2.3855 -  echo "$as_me: failed program was:" >&5
  2.3856 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3857 -
  2.3858    # Broken: fails on valid input.
  2.3859  continue
  2.3860  fi
  2.3861 -
  2.3862 -rm -f conftest.err conftest.$ac_ext
  2.3863 +rm -f conftest.err conftest.i conftest.$ac_ext
  2.3864  
  2.3865    # OK, works on sane cases.  Now check whether nonexistent headers
  2.3866    # can be detected and how.
  2.3867 -  cat >conftest.$ac_ext <<_ACEOF
  2.3868 -/* confdefs.h.  */
  2.3869 -_ACEOF
  2.3870 -cat confdefs.h >>conftest.$ac_ext
  2.3871 -cat >>conftest.$ac_ext <<_ACEOF
  2.3872 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.3873  /* end confdefs.h.  */
  2.3874  #include <ac_nonexistent.h>
  2.3875  _ACEOF
  2.3876 -if { (ac_try="$ac_cpp conftest.$ac_ext"
  2.3877 -case "(($ac_try" in
  2.3878 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.3879 -  *) ac_try_echo=$ac_try;;
  2.3880 -esac
  2.3881 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.3882 -  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2.3883 -  ac_status=$?
  2.3884 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.3885 -  rm -f conftest.er1
  2.3886 -  cat conftest.err >&5
  2.3887 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.3888 -  (exit $ac_status); } >/dev/null && {
  2.3889 -	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2.3890 -	 test ! -s conftest.err
  2.3891 -       }; then
  2.3892 +if ac_fn_c_try_cpp "$LINENO"; then :
  2.3893    # Broken: success on invalid input.
  2.3894  continue
  2.3895  else
  2.3896 -  echo "$as_me: failed program was:" >&5
  2.3897 -sed 's/^/| /' conftest.$ac_ext >&5
  2.3898 -
  2.3899    # Passes both tests.
  2.3900  ac_preproc_ok=:
  2.3901  break
  2.3902  fi
  2.3903 -
  2.3904 -rm -f conftest.err conftest.$ac_ext
  2.3905 +rm -f conftest.err conftest.i conftest.$ac_ext
  2.3906  
  2.3907  done
  2.3908  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2.3909 -rm -f conftest.err conftest.$ac_ext
  2.3910 -if $ac_preproc_ok; then
  2.3911 -  :
  2.3912 +rm -f conftest.i conftest.err conftest.$ac_ext
  2.3913 +if $ac_preproc_ok; then :
  2.3914 +
  2.3915  else
  2.3916 -  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2.3917 -See \`config.log' for more details." >&5
  2.3918 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2.3919 -See \`config.log' for more details." >&2;}
  2.3920 -   { (exit 1); exit 1; }; }
  2.3921 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2.3922 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2.3923 +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2.3924 +See \`config.log' for more details" "$LINENO" 5; }
  2.3925  fi
  2.3926  
  2.3927  ac_ext=c
  2.3928 @@ -3673,12 +3572,12 @@
  2.3929  ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2.3930  
  2.3931  
  2.3932 -{ echo "$as_me:$LINENO: checking for X" >&5
  2.3933 -echo $ECHO_N "checking for X... $ECHO_C" >&6; }
  2.3934 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  2.3935 +$as_echo_n "checking for X... " >&6; }
  2.3936  
  2.3937  
  2.3938  # Check whether --with-x was given.
  2.3939 -if test "${with_x+set}" = set; then
  2.3940 +if test "${with_x+set}" = set; then :
  2.3941    withval=$with_x;
  2.3942  fi
  2.3943  
  2.3944 @@ -3688,11 +3587,9 @@
  2.3945    have_x=disabled
  2.3946  else
  2.3947    case $x_includes,$x_libraries in #(
  2.3948 -    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
  2.3949 -echo "$as_me: error: Cannot use X directory names containing '" >&2;}
  2.3950 -   { (exit 1); exit 1; }; };; #(
  2.3951 -    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  2.3952 -  echo $ECHO_N "(cached) $ECHO_C" >&6
  2.3953 +    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  2.3954 +    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  2.3955 +  $as_echo_n "(cached) " >&6
  2.3956  else
  2.3957    # One or both of the vars are not set, and there is no cached value.
  2.3958  ac_x_includes=no ac_x_libraries=no
  2.3959 @@ -3708,7 +3605,7 @@
  2.3960  	@echo libdir='${LIBDIR}'
  2.3961  _ACEOF
  2.3962    if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  2.3963 -    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2.3964 +    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2.3965      for ac_var in incroot usrlibdir libdir; do
  2.3966        eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  2.3967      done
  2.3968 @@ -3727,7 +3624,7 @@
  2.3969  	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  2.3970      esac
  2.3971      case $ac_im_usrlibdir in
  2.3972 -	/usr/lib | /lib) ;;
  2.3973 +	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
  2.3974  	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  2.3975      esac
  2.3976    fi
  2.3977 @@ -3739,21 +3636,25 @@
  2.3978  # Check X11 before X11Rn because it is often a symlink to the current release.
  2.3979  ac_x_header_dirs='
  2.3980  /usr/X11/include
  2.3981 +/usr/X11R7/include
  2.3982  /usr/X11R6/include
  2.3983  /usr/X11R5/include
  2.3984  /usr/X11R4/include
  2.3985  
  2.3986  /usr/include/X11
  2.3987 +/usr/include/X11R7
  2.3988  /usr/include/X11R6
  2.3989  /usr/include/X11R5
  2.3990  /usr/include/X11R4
  2.3991  
  2.3992  /usr/local/X11/include
  2.3993 +/usr/local/X11R7/include
  2.3994  /usr/local/X11R6/include
  2.3995  /usr/local/X11R5/include
  2.3996  /usr/local/X11R4/include
  2.3997  
  2.3998  /usr/local/include/X11
  2.3999 +/usr/local/include/X11R7
  2.4000  /usr/local/include/X11R6
  2.4001  /usr/local/include/X11R5
  2.4002  /usr/local/include/X11R4
  2.4003 @@ -3775,36 +3676,14 @@
  2.4004  if test "$ac_x_includes" = no; then
  2.4005    # Guess where to find include files, by looking for Xlib.h.
  2.4006    # First, try using that file with no special directory specified.
  2.4007 -  cat >conftest.$ac_ext <<_ACEOF
  2.4008 -/* confdefs.h.  */
  2.4009 -_ACEOF
  2.4010 -cat confdefs.h >>conftest.$ac_ext
  2.4011 -cat >>conftest.$ac_ext <<_ACEOF
  2.4012 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.4013  /* end confdefs.h.  */
  2.4014  #include <X11/Xlib.h>
  2.4015  _ACEOF
  2.4016 -if { (ac_try="$ac_cpp conftest.$ac_ext"
  2.4017 -case "(($ac_try" in
  2.4018 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.4019 -  *) ac_try_echo=$ac_try;;
  2.4020 -esac
  2.4021 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.4022 -  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2.4023 -  ac_status=$?
  2.4024 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.4025 -  rm -f conftest.er1
  2.4026 -  cat conftest.err >&5
  2.4027 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.4028 -  (exit $ac_status); } >/dev/null && {
  2.4029 -	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2.4030 -	 test ! -s conftest.err
  2.4031 -       }; then
  2.4032 +if ac_fn_c_try_cpp "$LINENO"; then :
  2.4033    # We can compile using X headers with no special include directory.
  2.4034  ac_x_includes=
  2.4035  else
  2.4036 -  echo "$as_me: failed program was:" >&5
  2.4037 -sed 's/^/| /' conftest.$ac_ext >&5
  2.4038 -
  2.4039    for ac_dir in $ac_x_header_dirs; do
  2.4040    if test -r "$ac_dir/X11/Xlib.h"; then
  2.4041      ac_x_includes=$ac_dir
  2.4042 @@ -3812,8 +3691,7 @@
  2.4043    fi
  2.4044  done
  2.4045  fi
  2.4046 -
  2.4047 -rm -f conftest.err conftest.$ac_ext
  2.4048 +rm -f conftest.err conftest.i conftest.$ac_ext
  2.4049  fi # $ac_x_includes = no
  2.4050  
  2.4051  if test "$ac_x_libraries" = no; then
  2.4052 @@ -3822,11 +3700,7 @@
  2.4053    # Don't add to $LIBS permanently.
  2.4054    ac_save_LIBS=$LIBS
  2.4055    LIBS="-lX11 $LIBS"
  2.4056 -  cat >conftest.$ac_ext <<_ACEOF
  2.4057 -/* confdefs.h.  */
  2.4058 -_ACEOF
  2.4059 -cat confdefs.h >>conftest.$ac_ext
  2.4060 -cat >>conftest.$ac_ext <<_ACEOF
  2.4061 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.4062  /* end confdefs.h.  */
  2.4063  #include <X11/Xlib.h>
  2.4064  int
  2.4065 @@ -3837,33 +3711,13 @@
  2.4066    return 0;
  2.4067  }
  2.4068  _ACEOF
  2.4069 -rm -f conftest.$ac_objext conftest$ac_exeext
  2.4070 -if { (ac_try="$ac_link"
  2.4071 -case "(($ac_try" in
  2.4072 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.4073 -  *) ac_try_echo=$ac_try;;
  2.4074 -esac
  2.4075 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.4076 -  (eval "$ac_link") 2>conftest.er1
  2.4077 -  ac_status=$?
  2.4078 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.4079 -  rm -f conftest.er1
  2.4080 -  cat conftest.err >&5
  2.4081 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.4082 -  (exit $ac_status); } && {
  2.4083 -	 test -z "$ac_c_werror_flag" ||
  2.4084 -	 test ! -s conftest.err
  2.4085 -       } && test -s conftest$ac_exeext &&
  2.4086 -       $as_test_x conftest$ac_exeext; then
  2.4087 +if ac_fn_c_try_link "$LINENO"; then :
  2.4088    LIBS=$ac_save_LIBS
  2.4089  # We can link X programs with no special library path.
  2.4090  ac_x_libraries=
  2.4091  else
  2.4092 -  echo "$as_me: failed program was:" >&5
  2.4093 -sed 's/^/| /' conftest.$ac_ext >&5
  2.4094 -
  2.4095 -	LIBS=$ac_save_LIBS
  2.4096 -for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  2.4097 +  LIBS=$ac_save_LIBS
  2.4098 +for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  2.4099  do
  2.4100    # Don't even attempt the hair of trying to link an X program!
  2.4101    for ac_extension in a so sl dylib la dll; do
  2.4102 @@ -3874,9 +3728,8 @@
  2.4103    done
  2.4104  done
  2.4105  fi
  2.4106 -
  2.4107 -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2.4108 -      conftest$ac_exeext conftest.$ac_ext
  2.4109 +rm -f core conftest.err conftest.$ac_objext \
  2.4110 +    conftest$ac_exeext conftest.$ac_ext
  2.4111  fi # $ac_x_libraries = no
  2.4112  
  2.4113  case $ac_x_includes,$ac_x_libraries in #(
  2.4114 @@ -3897,8 +3750,8 @@
  2.4115  fi # $with_x != no
  2.4116  
  2.4117  if test "$have_x" != yes; then
  2.4118 -  { echo "$as_me:$LINENO: result: $have_x" >&5
  2.4119 -echo "${ECHO_T}$have_x" >&6; }
  2.4120 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  2.4121 +$as_echo "$have_x" >&6; }
  2.4122    no_x=yes
  2.4123  else
  2.4124    # If each of the values was on the command line, it overrides each guess.
  2.4125 @@ -3908,8 +3761,8 @@
  2.4126    ac_cv_have_x="have_x=yes\
  2.4127  	ac_x_includes='$x_includes'\
  2.4128  	ac_x_libraries='$x_libraries'"
  2.4129 -  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  2.4130 -echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
  2.4131 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  2.4132 +$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  2.4133  fi
  2.4134  
  2.4135  if test x$have_x = xyes; then
  2.4136 @@ -3925,14 +3778,10 @@
  2.4137      fi
  2.4138  fi
  2.4139  
  2.4140 -{ echo "$as_me:$LINENO: checking for OpenGL support" >&5
  2.4141 -echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
  2.4142 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
  2.4143 +$as_echo_n "checking for OpenGL support... " >&6; }
  2.4144  have_opengl=no
  2.4145 -cat >conftest.$ac_ext <<_ACEOF
  2.4146 -/* confdefs.h.  */
  2.4147 -_ACEOF
  2.4148 -cat confdefs.h >>conftest.$ac_ext
  2.4149 -cat >>conftest.$ac_ext <<_ACEOF
  2.4150 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.4151  /* end confdefs.h.  */
  2.4152  
  2.4153   #include "SDL_opengl.h"
  2.4154 @@ -3946,45 +3795,19 @@
  2.4155    return 0;
  2.4156  }
  2.4157  _ACEOF
  2.4158 -rm -f conftest.$ac_objext
  2.4159 -if { (ac_try="$ac_compile"
  2.4160 -case "(($ac_try" in
  2.4161 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.4162 -  *) ac_try_echo=$ac_try;;
  2.4163 -esac
  2.4164 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.4165 -  (eval "$ac_compile") 2>conftest.er1
  2.4166 -  ac_status=$?
  2.4167 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.4168 -  rm -f conftest.er1
  2.4169 -  cat conftest.err >&5
  2.4170 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.4171 -  (exit $ac_status); } && {
  2.4172 -	 test -z "$ac_c_werror_flag" ||
  2.4173 -	 test ! -s conftest.err
  2.4174 -       } && test -s conftest.$ac_objext; then
  2.4175 +if ac_fn_c_try_compile "$LINENO"; then :
  2.4176  
  2.4177  have_opengl=yes
  2.4178  
  2.4179 -else
  2.4180 -  echo "$as_me: failed program was:" >&5
  2.4181 -sed 's/^/| /' conftest.$ac_ext >&5
  2.4182 -
  2.4183 -
  2.4184  fi
  2.4185 -
  2.4186  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.4187 -{ echo "$as_me:$LINENO: result: $have_opengl" >&5
  2.4188 -echo "${ECHO_T}$have_opengl" >&6; }
  2.4189 -
  2.4190 -{ echo "$as_me:$LINENO: checking for OpenGL ES support" >&5
  2.4191 -echo $ECHO_N "checking for OpenGL ES support... $ECHO_C" >&6; }
  2.4192 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
  2.4193 +$as_echo "$have_opengl" >&6; }
  2.4194 +
  2.4195 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
  2.4196 +$as_echo_n "checking for OpenGL ES support... " >&6; }
  2.4197  have_opengles=no
  2.4198 -cat >conftest.$ac_ext <<_ACEOF
  2.4199 -/* confdefs.h.  */
  2.4200 -_ACEOF
  2.4201 -cat confdefs.h >>conftest.$ac_ext
  2.4202 -cat >>conftest.$ac_ext <<_ACEOF
  2.4203 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.4204  /* end confdefs.h.  */
  2.4205  
  2.4206   #if defined (__IPHONEOS__)
  2.4207 @@ -4002,36 +3825,14 @@
  2.4208    return 0;
  2.4209  }
  2.4210  _ACEOF
  2.4211 -rm -f conftest.$ac_objext
  2.4212 -if { (ac_try="$ac_compile"
  2.4213 -case "(($ac_try" in
  2.4214 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.4215 -  *) ac_try_echo=$ac_try;;
  2.4216 -esac
  2.4217 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.4218 -  (eval "$ac_compile") 2>conftest.er1
  2.4219 -  ac_status=$?
  2.4220 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.4221 -  rm -f conftest.er1
  2.4222 -  cat conftest.err >&5
  2.4223 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.4224 -  (exit $ac_status); } && {
  2.4225 -	 test -z "$ac_c_werror_flag" ||
  2.4226 -	 test ! -s conftest.err
  2.4227 -       } && test -s conftest.$ac_objext; then
  2.4228 +if ac_fn_c_try_compile "$LINENO"; then :
  2.4229  
  2.4230  have_opengles=yes
  2.4231  
  2.4232 -else
  2.4233 -  echo "$as_me: failed program was:" >&5
  2.4234 -sed 's/^/| /' conftest.$ac_ext >&5
  2.4235 -
  2.4236 -
  2.4237  fi
  2.4238 -
  2.4239  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.4240 -{ echo "$as_me:$LINENO: result: $have_opengles" >&5
  2.4241 -echo "${ECHO_T}$have_opengles" >&6; }
  2.4242 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
  2.4243 +$as_echo "$have_opengles" >&6; }
  2.4244  
  2.4245  GLLIB=""
  2.4246  if test x$have_opengles = xyes; then
  2.4247 @@ -4046,14 +3847,10 @@
  2.4248  
  2.4249  
  2.4250  
  2.4251 -{ echo "$as_me:$LINENO: checking for SDL_ttf" >&5
  2.4252 -echo $ECHO_N "checking for SDL_ttf... $ECHO_C" >&6; }
  2.4253 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_ttf" >&5
  2.4254 +$as_echo_n "checking for SDL_ttf... " >&6; }
  2.4255  have_SDL_ttf=no
  2.4256 -cat >conftest.$ac_ext <<_ACEOF
  2.4257 -/* confdefs.h.  */
  2.4258 -_ACEOF
  2.4259 -cat confdefs.h >>conftest.$ac_ext
  2.4260 -cat >>conftest.$ac_ext <<_ACEOF
  2.4261 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2.4262  /* end confdefs.h.  */
  2.4263  
  2.4264   #include "SDL_ttf.h"
  2.4265 @@ -4067,36 +3864,14 @@
  2.4266    return 0;
  2.4267  }
  2.4268  _ACEOF
  2.4269 -rm -f conftest.$ac_objext
  2.4270 -if { (ac_try="$ac_compile"
  2.4271 -case "(($ac_try" in
  2.4272 -  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2.4273 -  *) ac_try_echo=$ac_try;;
  2.4274 -esac
  2.4275 -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2.4276 -  (eval "$ac_compile") 2>conftest.er1
  2.4277 -  ac_status=$?
  2.4278 -  grep -v '^ *+' conftest.er1 >conftest.err
  2.4279 -  rm -f conftest.er1
  2.4280 -  cat conftest.err >&5
  2.4281 -  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2.4282 -  (exit $ac_status); } && {
  2.4283 -	 test -z "$ac_c_werror_flag" ||
  2.4284 -	 test ! -s conftest.err
  2.4285 -       } && test -s conftest.$ac_objext; then
  2.4286 +if ac_fn_c_try_compile "$LINENO"; then :
  2.4287  
  2.4288  have_SDL_ttf=yes
  2.4289  
  2.4290 -else
  2.4291 -  echo "$as_me: failed program was:" >&5
  2.4292 -sed 's/^/| /' conftest.$ac_ext >&5
  2.4293 -
  2.4294 -
  2.4295  fi
  2.4296 -
  2.4297  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2.4298 -{ echo "$as_me:$LINENO: result: $have_SDL_ttf" >&5
  2.4299 -echo "${ECHO_T}$have_SDL_ttf" >&6; }
  2.4300 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_SDL_ttf" >&5
  2.4301 +$as_echo "$have_SDL_ttf" >&6; }
  2.4302  
  2.4303  if test x$have_SDL_ttf = xyes; then
  2.4304      CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
  2.4305 @@ -4134,12 +3909,13 @@
  2.4306      case $ac_val in #(
  2.4307      *${as_nl}*)
  2.4308        case $ac_var in #(
  2.4309 -      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  2.4310 -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  2.4311 +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2.4312 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2.4313        esac
  2.4314        case $ac_var in #(
  2.4315        _ | IFS | as_nl) ;; #(
  2.4316 -      *) $as_unset $ac_var ;;
  2.4317 +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2.4318 +      *) { eval $ac_var=; unset $ac_var;} ;;
  2.4319        esac ;;
  2.4320      esac
  2.4321    done
  2.4322 @@ -4147,8 +3923,8 @@
  2.4323    (set) 2>&1 |
  2.4324      case $as_nl`(ac_space=' '; set) 2>&1` in #(
  2.4325      *${as_nl}ac_space=\ *)
  2.4326 -      # `set' does not quote correctly, so add quotes (double-quote
  2.4327 -      # substitution turns \\\\ into \\, and sed turns \\ into \).
  2.4328 +      # `set' does not quote correctly, so add quotes: double-quote
  2.4329 +      # substitution turns \\\\ into \\, and sed turns \\ into \.
  2.4330        sed -n \
  2.4331  	"s/'/'\\\\''/g;
  2.4332  	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2.4333 @@ -4170,13 +3946,24 @@
  2.4334       :end' >>confcache
  2.4335  if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2.4336    if test -w "$cache_file"; then
  2.4337 -    test "x$cache_file" != "x/dev/null" &&
  2.4338 -      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  2.4339 -echo "$as_me: updating cache $cache_file" >&6;}
  2.4340 -    cat confcache >$cache_file
  2.4341 +    if test "x$cache_file" != "x/dev/null"; then
  2.4342 +      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  2.4343 +$as_echo "$as_me: updating cache $cache_file" >&6;}
  2.4344 +      if test ! -f "$cache_file" || test -h "$cache_file"; then
  2.4345 +	cat confcache >"$cache_file"
  2.4346 +      else
  2.4347 +        case $cache_file in #(
  2.4348 +        */* | ?:*)
  2.4349 +	  mv -f confcache "$cache_file"$$ &&
  2.4350 +	  mv -f "$cache_file"$$ "$cache_file" ;; #(
  2.4351 +        *)
  2.4352 +	  mv -f confcache "$cache_file" ;;
  2.4353 +	esac
  2.4354 +      fi
  2.4355 +    fi
  2.4356    else
  2.4357 -    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  2.4358 -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2.4359 +    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  2.4360 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2.4361    fi
  2.4362  fi
  2.4363  rm -f confcache
  2.4364 @@ -4193,6 +3980,12 @@
  2.4365  # take arguments), then branch to the quote section.  Otherwise,
  2.4366  # look for a macro that doesn't take arguments.
  2.4367  ac_script='
  2.4368 +:mline
  2.4369 +/\\$/{
  2.4370 + N
  2.4371 + s,\\\n,,
  2.4372 + b mline
  2.4373 +}
  2.4374  t clear
  2.4375  :clear
  2.4376  s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
  2.4377 @@ -4219,14 +4012,15 @@
  2.4378  
  2.4379  ac_libobjs=
  2.4380  ac_ltlibobjs=
  2.4381 +U=
  2.4382  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2.4383    # 1. Remove the extension, and $U if already installed.
  2.4384    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  2.4385 -  ac_i=`echo "$ac_i" | sed "$ac_script"`
  2.4386 +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  2.4387    # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  2.4388    #    will be set to the directory where LIBOBJS objects are built.
  2.4389 -  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  2.4390 -  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  2.4391 +  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  2.4392 +  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  2.4393  done
  2.4394  LIBOBJS=$ac_libobjs
  2.4395  
  2.4396 @@ -4234,12 +4028,14 @@
  2.4397  
  2.4398  
  2.4399  
  2.4400 -: ${CONFIG_STATUS=./config.status}
  2.4401 +: "${CONFIG_STATUS=./config.status}"
  2.4402 +ac_write_fail=0
  2.4403  ac_clean_files_save=$ac_clean_files
  2.4404  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2.4405 -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  2.4406 -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2.4407 -cat >$CONFIG_STATUS <<_ACEOF
  2.4408 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  2.4409 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2.4410 +as_write_fail=0
  2.4411 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  2.4412  #! $SHELL
  2.4413  # Generated by $as_me.
  2.4414  # Run this file to recreate the current configuration.
  2.4415 @@ -4249,59 +4045,79 @@
  2.4416  debug=false
  2.4417  ac_cs_recheck=false
  2.4418  ac_cs_silent=false
  2.4419 +
  2.4420  SHELL=\${CONFIG_SHELL-$SHELL}
  2.4421 -_ACEOF
  2.4422 -
  2.4423 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.4424 -## --------------------- ##
  2.4425 -## M4sh Initialization.  ##
  2.4426 -## --------------------- ##
  2.4427 +export SHELL
  2.4428 +_ASEOF
  2.4429 +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  2.4430 +## -------------------- ##
  2.4431 +## M4sh Initialization. ##
  2.4432 +## -------------------- ##
  2.4433  
  2.4434  # Be more Bourne compatible
  2.4435  DUALCASE=1; export DUALCASE # for MKS sh
  2.4436 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  2.4437 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  2.4438    emulate sh
  2.4439    NULLCMD=:
  2.4440 -  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  2.4441 +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  2.4442    # is contrary to our usage.  Disable this feature.
  2.4443    alias -g '${1+"$@"}'='"$@"'
  2.4444    setopt NO_GLOB_SUBST
  2.4445  else
  2.4446 -  case `(set -o) 2>/dev/null` in
  2.4447 -  *posix*) set -o posix ;;
  2.4448 +  case `(set -o) 2>/dev/null` in #(
  2.4449 +  *posix*) :
  2.4450 +    set -o posix ;; #(
  2.4451 +  *) :
  2.4452 +     ;;
  2.4453  esac
  2.4454 -
  2.4455  fi
  2.4456  
  2.4457  
  2.4458 -
  2.4459 -
  2.4460 -# PATH needs CR
  2.4461 -# Avoid depending upon Character Ranges.
  2.4462 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  2.4463 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  2.4464 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  2.4465 -as_cr_digits='0123456789'
  2.4466 -as_cr_alnum=$as_cr_Letters$as_cr_digits
  2.4467 +as_nl='
  2.4468 +'
  2.4469 +export as_nl
  2.4470 +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  2.4471 +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2.4472 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  2.4473 +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  2.4474 +# Prefer a ksh shell builtin over an external printf program on Solaris,
  2.4475 +# but without wasting forks for bash or zsh.
  2.4476 +if test -z "$BASH_VERSION$ZSH_VERSION" \
  2.4477 +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  2.4478 +  as_echo='print -r --'
  2.4479 +  as_echo_n='print -rn --'
  2.4480 +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  2.4481 +  as_echo='printf %s\n'
  2.4482 +  as_echo_n='printf %s'
  2.4483 +else
  2.4484 +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  2.4485 +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  2.4486 +    as_echo_n='/usr/ucb/echo -n'
  2.4487 +  else
  2.4488 +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  2.4489 +    as_echo_n_body='eval
  2.4490 +      arg=$1;
  2.4491 +      case $arg in #(
  2.4492 +      *"$as_nl"*)
  2.4493 +	expr "X$arg" : "X\\(.*\\)$as_nl";
  2.4494 +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  2.4495 +      esac;
  2.4496 +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  2.4497 +    '
  2.4498 +    export as_echo_n_body
  2.4499 +    as_echo_n='sh -c $as_echo_n_body as_echo'
  2.4500 +  fi
  2.4501 +  export as_echo_body
  2.4502 +  as_echo='sh -c $as_echo_body as_echo'
  2.4503 +fi
  2.4504  
  2.4505  # The user is always right.
  2.4506  if test "${PATH_SEPARATOR+set}" != set; then
  2.4507 -  echo "#! /bin/sh" >conf$$.sh
  2.4508 -  echo  "exit 0"   >>conf$$.sh
  2.4509 -  chmod +x conf$$.sh
  2.4510 -  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  2.4511 -    PATH_SEPARATOR=';'
  2.4512 -  else
  2.4513 -    PATH_SEPARATOR=:
  2.4514 -  fi
  2.4515 -  rm -f conf$$.sh
  2.4516 -fi
  2.4517 -
  2.4518 -# Support unset when possible.
  2.4519 -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  2.4520 -  as_unset=unset
  2.4521 -else
  2.4522 -  as_unset=false
  2.4523 +  PATH_SEPARATOR=:
  2.4524 +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  2.4525 +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  2.4526 +      PATH_SEPARATOR=';'
  2.4527 +  }
  2.4528  fi
  2.4529  
  2.4530  
  2.4531 @@ -4310,20 +4126,19 @@
  2.4532  # there to prevent editors from complaining about space-tab.
  2.4533  # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  2.4534  # splitting by setting IFS to empty value.)
  2.4535 -as_nl='
  2.4536 -'
  2.4537  IFS=" ""	$as_nl"
  2.4538  
  2.4539  # Find who we are.  Look in the path if we contain no directory separator.
  2.4540 -case $0 in
  2.4541 +as_myself=
  2.4542 +case $0 in #((
  2.4543    *[\\/]* ) as_myself=$0 ;;
  2.4544    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2.4545  for as_dir in $PATH
  2.4546  do
  2.4547    IFS=$as_save_IFS
  2.4548    test -z "$as_dir" && as_dir=.
  2.4549 -  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2.4550 -done
  2.4551 +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2.4552 +  done
  2.4553  IFS=$as_save_IFS
  2.4554  
  2.4555       ;;
  2.4556 @@ -4334,32 +4149,111 @@
  2.4557    as_myself=$0
  2.4558  fi
  2.4559  if test ! -f "$as_myself"; then
  2.4560 -  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  2.4561 -  { (exit 1); exit 1; }
  2.4562 +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  2.4563 +  exit 1
  2.4564  fi
  2.4565  
  2.4566 -# Work around bugs in pre-3.0 UWIN ksh.
  2.4567 -for as_var in ENV MAIL MAILPATH
  2.4568 -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  2.4569 +# Unset variables that we do not need and which cause bugs (e.g. in
  2.4570 +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  2.4571 +# suppresses any "Segmentation fault" message there.  '((' could
  2.4572 +# trigger a bug in pdksh 5.2.14.
  2.4573 +for as_var in BASH_ENV ENV MAIL MAILPATH
  2.4574 +do eval test x\${$as_var+set} = xset \
  2.4575 +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  2.4576  done
  2.4577  PS1='$ '
  2.4578  PS2='> '
  2.4579  PS4='+ '
  2.4580  
  2.4581  # NLS nuisances.
  2.4582 -for as_var in \
  2.4583 -  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  2.4584 -  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  2.4585 -  LC_TELEPHONE LC_TIME
  2.4586 -do
  2.4587 -  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  2.4588 -    eval $as_var=C; export $as_var
  2.4589 -  else
  2.4590 -    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  2.4591 +LC_ALL=C
  2.4592 +export LC_ALL
  2.4593 +LANGUAGE=C
  2.4594 +export LANGUAGE
  2.4595 +
  2.4596 +# CDPATH.
  2.4597 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2.4598 +
  2.4599 +
  2.4600 +# as_fn_error STATUS ERROR [LINENO LOG_FD]
  2.4601 +# ----------------------------------------
  2.4602 +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  2.4603 +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  2.4604 +# script with STATUS, using 1 if that was 0.
  2.4605 +as_fn_error ()
  2.4606 +{
  2.4607 +  as_status=$1; test $as_status -eq 0 && as_status=1
  2.4608 +  if test "$4"; then
  2.4609 +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2.4610 +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  2.4611    fi
  2.4612 -done
  2.4613 -
  2.4614 -# Required to use basename.
  2.4615 +  $as_echo "$as_me: error: $2" >&2
  2.4616 +  as_fn_exit $as_status
  2.4617 +} # as_fn_error
  2.4618 +
  2.4619 +
  2.4620 +# as_fn_set_status STATUS
  2.4621 +# -----------------------
  2.4622 +# Set $? to STATUS, without forking.
  2.4623 +as_fn_set_status ()
  2.4624 +{
  2.4625 +  return $1
  2.4626 +} # as_fn_set_status
  2.4627 +
  2.4628 +# as_fn_exit STATUS
  2.4629 +# -----------------
  2.4630 +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  2.4631 +as_fn_exit ()
  2.4632 +{
  2.4633 +  set +e
  2.4634 +  as_fn_set_status $1
  2.4635 +  exit $1
  2.4636 +} # as_fn_exit
  2.4637 +
  2.4638 +# as_fn_unset VAR
  2.4639 +# ---------------
  2.4640 +# Portably unset VAR.
  2.4641 +as_fn_unset ()
  2.4642 +{
  2.4643 +  { eval $1=; unset $1;}
  2.4644 +}
  2.4645 +as_unset=as_fn_unset
  2.4646 +# as_fn_append VAR VALUE
  2.4647 +# ----------------------
  2.4648 +# Append the text in VALUE to the end of the definition contained in VAR. Take
  2.4649 +# advantage of any shell optimizations that allow amortized linear growth over
  2.4650 +# repeated appends, instead of the typical quadratic growth present in naive
  2.4651 +# implementations.
  2.4652 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  2.4653 +  eval 'as_fn_append ()
  2.4654 +  {
  2.4655 +    eval $1+=\$2
  2.4656 +  }'
  2.4657 +else
  2.4658 +  as_fn_append ()
  2.4659 +  {
  2.4660 +    eval $1=\$$1\$2
  2.4661 +  }
  2.4662 +fi # as_fn_append
  2.4663 +
  2.4664 +# as_fn_arith ARG...
  2.4665 +# ------------------
  2.4666 +# Perform arithmetic evaluation on the ARGs, and store the result in the
  2.4667 +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  2.4668 +# must be portable across $(()) and expr.
  2.4669 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  2.4670 +  eval 'as_fn_arith ()
  2.4671 +  {
  2.4672 +    as_val=$(( $* ))
  2.4673 +  }'
  2.4674 +else
  2.4675 +  as_fn_arith ()
  2.4676 +  {
  2.4677 +    as_val=`expr "$@" || test $? -eq 1`
  2.4678 +  }
  2.4679 +fi # as_fn_arith
  2.4680 +
  2.4681 +
  2.4682  if expr a : '\(a\)' >/dev/null 2>&1 &&
  2.4683     test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2.4684    as_expr=expr
  2.4685 @@ -4373,13 +4267,17 @@
  2.4686    as_basename=false
  2.4687  fi
  2.4688  
  2.4689 -
  2.4690 -# Name of the executable.
  2.4691 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  2.4692 +  as_dirname=dirname
  2.4693 +else
  2.4694 +  as_dirname=false
  2.4695 +fi
  2.4696 +
  2.4697  as_me=`$as_basename -- "$0" ||
  2.4698  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  2.4699  	 X"$0" : 'X\(//\)$' \| \
  2.4700  	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  2.4701 -echo X/"$0" |
  2.4702 +$as_echo X/"$0" |
  2.4703      sed '/^.*\/\([^/][^/]*\)\/*$/{
  2.4704  	    s//\1/
  2.4705  	    q
  2.4706 @@ -4394,566 +4292,68 @@
  2.4707  	  }
  2.4708  	  s/.*/./; q'`
  2.4709  
  2.4710 -# CDPATH.
  2.4711 -$as_unset CDPATH
  2.4712 -
  2.4713 -
  2.4714 -
  2.4715 -  as_lineno_1=$LINENO
  2.4716 -  as_lineno_2=$LINENO
  2.4717 -  test "x$as_lineno_1" != "x$as_lineno_2" &&
  2.4718 -  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  2.4719 -
  2.4720 -  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  2.4721 -  # uniformly replaced by the line number.  The first 'sed' inserts a
  2.4722 -  # line-number line after each line using $LINENO; the second 'sed'
  2.4723 -  # does the real work.  The second script uses 'N' to pair each
  2.4724 -  # line-number line with the line containing $LINENO, and appends
  2.4725 -  # trailing '-' during substitution so that $LINENO is not a special
  2.4726 -  # case at line end.
  2.4727 -  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  2.4728 -  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  2.4729 -  # E. McMahon (1931-1989) for sed's syntax.  :-)
  2.4730 -  sed -n '
  2.4731 -    p
  2.4732 -    /[$]LINENO/=
  2.4733 -  ' <$as_myself |
  2.4734 -    sed '
  2.4735 -      s/[$]LINENO.*/&-/
  2.4736 -      t lineno
  2.4737 -      b
  2.4738 -      :lineno
  2.4739 -      N
  2.4740 -      :loop
  2.4741 -      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  2.4742 -      t loop
  2.4743 -      s/-\n.*//
  2.4744 -    ' >$as_me.lineno &&
  2.4745 -  chmod +x "$as_me.lineno" ||
  2.4746 -    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  2.4747 -   { (exit 1); exit 1; }; }
  2.4748 -
  2.4749 -  # Don't try to exec as it changes $[0], causing all sort of problems
  2.4750 -  # (the dirname of $[0] is not the place where we might find the
  2.4751 -  # original and so on.  Autoconf is especially sensitive to this).
  2.4752 -  . "./$as_me.lineno"
  2.4753 -  # Exit status is that of the last command.
  2.4754 -  exit
  2.4755 -}
  2.4756 -
  2.4757 -
  2.4758 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  2.4759 -  as_dirname=dirname
  2.4760 -else
  2.4761 -  as_dirname=false
  2.4762 -fi
  2.4763 +# Avoid depending upon Character Ranges.
  2.4764 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  2.4765 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  2.4766 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  2.4767 +as_cr_digits='0123456789'
  2.4768 +as_cr_alnum=$as_cr_Letters$as_cr_digits
  2.4769  
  2.4770  ECHO_C= ECHO_N= ECHO_T=
  2.4771 -case `echo -n x` in
  2.4772 +case `echo -n x` in #(((((
  2.4773  -n*)
  2.4774 -  case `echo 'x\c'` in
  2.4775 +  case `echo 'xy\c'` in
  2.4776    *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  2.4777 -  *)   ECHO_C='\c';;
  2.4778 +  xy)  ECHO_C='\c';;
  2.4779 +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  2.4780 +       ECHO_T='	';;
  2.4781    esac;;
  2.4782  *)
  2.4783    ECHO_N='-n';;
  2.4784  esac
  2.4785  
  2.4786 -if expr a : '\(a\)' >/dev/null 2>&1 &&
  2.4787 -   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2.4788 -  as_expr=expr
  2.4789 -else
  2.4790 -  as_expr=false
  2.4791 -fi
  2.4792 -
  2.4793  rm -f conf$$ conf$$.exe conf$$.file
  2.4794  if test -d conf$$.dir; then
  2.4795    rm -f conf$$.dir/conf$$.file
  2.4796  else
  2.4797    rm -f conf$$.dir
  2.4798 -  mkdir conf$$.dir
  2.4799 +  mkdir conf$$.dir 2>/dev/null
  2.4800  fi
  2.4801 -echo >conf$$.file
  2.4802 -if ln -s conf$$.file conf$$ 2>/dev/null; then
  2.4803 -  as_ln_s='ln -s'
  2.4804 -  # ... but there are two gotchas:
  2.4805 -  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2.4806 -  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2.4807 -  # In both cases, we have to default to `cp -p'.
  2.4808 -  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2.4809 +if (echo >conf$$.file) 2>/dev/null; then
  2.4810 +  if ln -s conf$$.file conf$$ 2>/dev/null; then
  2.4811 +    as_ln_s='ln -s'
  2.4812 +    # ... but there are two gotchas:
  2.4813 +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2.4814 +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2.4815 +    # In both cases, we have to default to `cp -p'.
  2.4816 +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2.4817 +      as_ln_s='cp -p'
  2.4818 +  elif ln conf$$.file conf$$ 2>/dev/null; then
  2.4819 +    as_ln_s=ln
  2.4820 +  else
  2.4821      as_ln_s='cp -p'
  2.4822 -elif ln conf$$.file conf$$ 2>/dev/null; then
  2.4823 -  as_ln_s=ln
  2.4824 +  fi
  2.4825  else
  2.4826    as_ln_s='cp -p'
  2.4827  fi
  2.4828  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  2.4829  rmdir conf$$.dir 2>/dev/null
  2.4830  
  2.4831 -if mkdir -p . 2>/dev/null; then
  2.4832 -  as_mkdir_p=:
  2.4833 -else
  2.4834 -  test -d ./-p && rmdir ./-p
  2.4835 -  as_mkdir_p=false
  2.4836 -fi
  2.4837 -
  2.4838 -if test -x / >/dev/null 2>&1; then
  2.4839 -  as_test_x='test -x'
  2.4840 -else
  2.4841 -  if ls -dL / >/dev/null 2>&1; then
  2.4842 -    as_ls_L_option=L
  2.4843 -  else
  2.4844 -    as_ls_L_option=
  2.4845 -  fi
  2.4846 -  as_test_x='
  2.4847 -    eval sh -c '\''
  2.4848 -      if test -d "$1"; then
  2.4849 -        test -d "$1/.";
  2.4850 -      else
  2.4851 -	case $1 in
  2.4852 -        -*)set "./$1";;
  2.4853 -	esac;
  2.4854 -	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  2.4855 -	???[sx]*):;;*)false;;esac;fi
  2.4856 -    '\'' sh
  2.4857 -  '
  2.4858 -fi
  2.4859 -as_executable_p=$as_test_x
  2.4860 -
  2.4861 -# Sed expression to map a string onto a valid CPP name.
  2.4862 -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2.4863 -
  2.4864 -# Sed expression to map a string onto a valid variable name.
  2.4865 -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2.4866 -
  2.4867 -
  2.4868 -exec 6>&1
  2.4869 -
  2.4870 -# Save the log message, to keep $[0] and so on meaningful, and to
  2.4871 -# report actual input values of CONFIG_FILES etc. instead of their
  2.4872 -# values after options handling.
  2.4873 -ac_log="
  2.4874 -This file was extended by $as_me, which was
  2.4875 -generated by GNU Autoconf 2.61.  Invocation command line was
  2.4876 -
  2.4877 -  CONFIG_FILES    = $CONFIG_FILES
  2.4878 -  CONFIG_HEADERS  = $CONFIG_HEADERS
  2.4879 -  CONFIG_LINKS    = $CONFIG_LINKS
  2.4880 -  CONFIG_COMMANDS = $CONFIG_COMMANDS
  2.4881 -  $ $0 $@
  2.4882 -
  2.4883 -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2.4884 -"
  2.4885 -
  2.4886 -_ACEOF
  2.4887 -
  2.4888 -cat >>$CONFIG_STATUS <<_ACEOF
  2.4889 -# Files that config.status was made for.
  2.4890 -config_files="$ac_config_files"
  2.4891 -
  2.4892 -_ACEOF
  2.4893 -
  2.4894 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.4895 -ac_cs_usage="\
  2.4896 -\`$as_me' instantiates files from templates according to the
  2.4897 -current configuration.
  2.4898 -
  2.4899 -Usage: $0 [OPTIONS] [FILE]...
  2.4900 -
  2.4901 -  -h, --help       print this help, then exit
  2.4902 -  -V, --version    print version number and configuration settings, then exit
  2.4903 -  -q, --quiet      do not print progress messages
  2.4904 -  -d, --debug      don't remove temporary files
  2.4905 -      --recheck    update $as_me by reconfiguring in the same conditions
  2.4906 -  --file=FILE[:TEMPLATE]
  2.4907 -		   instantiate the configuration file FILE
  2.4908 -
  2.4909 -Configuration files:
  2.4910 -$config_files
  2.4911 -
  2.4912 -Report bugs to <bug-autoconf@gnu.org>."
  2.4913 -
  2.4914 -_ACEOF
  2.4915 -cat >>$CONFIG_STATUS <<_ACEOF
  2.4916 -ac_cs_version="\\
  2.4917 -config.status
  2.4918 -configured by $0, generated by GNU Autoconf 2.61,
  2.4919 -  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  2.4920 -
  2.4921 -Copyright (C) 2006 Free Software Foundation, Inc.
  2.4922 -This config.status script is free software; the Free Software Foundation
  2.4923 -gives unlimited permission to copy, distribute and modify it."
  2.4924 -
  2.4925 -ac_pwd='$ac_pwd'
  2.4926 -srcdir='$srcdir'
  2.4927 -_ACEOF
  2.4928 -
  2.4929 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.4930 -# If no file are specified by the user, then we need to provide default
  2.4931 -# value.  By we need to know if files were specified by the user.
  2.4932 -ac_need_defaults=:
  2.4933 -while test $# != 0
  2.4934 -do
  2.4935 -  case $1 in
  2.4936 -  --*=*)
  2.4937 -    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2.4938 -    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2.4939 -    ac_shift=:
  2.4940 -    ;;
  2.4941 -  *)
  2.4942 -    ac_option=$1
  2.4943 -    ac_optarg=$2
  2.4944 -    ac_shift=shift
  2.4945 -    ;;
  2.4946 -  esac
  2.4947 -
  2.4948 -  case $ac_option in
  2.4949 -  # Handling of the options.
  2.4950 -  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2.4951 -    ac_cs_recheck=: ;;
  2.4952 -  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  2.4953 -    echo "$ac_cs_version"; exit ;;
  2.4954 -  --debug | --debu | --deb | --de | --d | -d )
  2.4955 -    debug=: ;;
  2.4956 -  --file | --fil | --fi | --f )
  2.4957 -    $ac_shift
  2.4958 -    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  2.4959 -    ac_need_defaults=false;;
  2.4960 -  --he | --h |  --help | --hel | -h )
  2.4961 -    echo "$ac_cs_usage"; exit ;;
  2.4962 -  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2.4963 -  | -silent | --silent | --silen | --sile | --sil | --si | --s)
  2.4964 -    ac_cs_silent=: ;;
  2.4965 -
  2.4966 -  # This is an error.
  2.4967 -  -*) { echo "$as_me: error: unrecognized option: $1
  2.4968 -Try \`$0 --help' for more information." >&2
  2.4969 -   { (exit 1); exit 1; }; } ;;
  2.4970 -
  2.4971 -  *) ac_config_targets="$ac_config_targets $1"
  2.4972 -     ac_need_defaults=false ;;
  2.4973 -
  2.4974 -  esac
  2.4975 -  shift
  2.4976 -done
  2.4977 -
  2.4978 -ac_configure_extra_args=
  2.4979 -
  2.4980 -if $ac_cs_silent; then
  2.4981 -  exec 6>/dev/null
  2.4982 -  ac_configure_extra_args="$ac_configure_extra_args --silent"
  2.4983 -fi
  2.4984 -
  2.4985 -_ACEOF
  2.4986 -cat >>$CONFIG_STATUS <<_ACEOF
  2.4987 -if \$ac_cs_recheck; then
  2.4988 -  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  2.4989 -  CONFIG_SHELL=$SHELL
  2.4990 -  export CONFIG_SHELL
  2.4991 -  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2.4992 -fi
  2.4993 -
  2.4994 -_ACEOF
  2.4995 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.4996 -exec 5>>config.log
  2.4997 +
  2.4998 +# as_fn_mkdir_p
  2.4999 +# -------------
  2.5000 +# Create "$as_dir" as a directory, including parents if necessary.
  2.5001 +as_fn_mkdir_p ()
  2.5002  {
  2.5003 -  echo
  2.5004 -  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  2.5005 -## Running $as_me. ##
  2.5006 -_ASBOX
  2.5007 -  echo "$ac_log"
  2.5008 -} >&5
  2.5009 -
  2.5010 -_ACEOF
  2.5011 -cat >>$CONFIG_STATUS <<_ACEOF
  2.5012 -_ACEOF
  2.5013 -
  2.5014 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.5015 -
  2.5016 -# Handling of arguments.
  2.5017 -for ac_config_target in $ac_config_targets
  2.5018 -do
  2.5019 -  case $ac_config_target in
  2.5020 -    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  2.5021 -
  2.5022 -  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  2.5023 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  2.5024 -   { (exit 1); exit 1; }; };;
  2.5025 -  esac
  2.5026 -done
  2.5027 -
  2.5028 -
  2.5029 -# If the user did not use the arguments to specify the items to instantiate,
  2.5030 -# then the envvar interface is used.  Set only those that are not.
  2.5031 -# We use the long form for the default assignment because of an extremely
  2.5032 -# bizarre bug on SunOS 4.1.3.
  2.5033 -if $ac_need_defaults; then
  2.5034 -  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2.5035 -fi
  2.5036 -
  2.5037 -# Have a temporary directory for convenience.  Make it in the build tree
  2.5038 -# simply because there is no reason against having it here, and in addition,
  2.5039 -# creating and moving files from /tmp can sometimes cause problems.
  2.5040 -# Hook for its removal unless debugging.
  2.5041 -# Note that there is a small window in which the directory will not be cleaned:
  2.5042 -# after its creation but before its name has been assigned to `$tmp'.
  2.5043 -$debug ||
  2.5044 -{
  2.5045 -  tmp=
  2.5046 -  trap 'exit_status=$?
  2.5047 -  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  2.5048 -' 0
  2.5049 -  trap '{ (exit 1); exit 1; }' 1 2 13 15
  2.5050 -}
  2.5051 -# Create a (secure) tmp directory for tmp files.
  2.5052 -
  2.5053 -{
  2.5054 -  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2.5055 -  test -n "$tmp" && test -d "$tmp"
  2.5056 -}  ||
  2.5057 -{
  2.5058 -  tmp=./conf$$-$RANDOM
  2.5059 -  (umask 077 && mkdir "$tmp")
  2.5060 -} ||
  2.5061 -{
  2.5062 -   echo "$me: cannot create a temporary directory in ." >&2
  2.5063 -   { (exit 1); exit 1; }
  2.5064 -}
  2.5065 -
  2.5066 -#
  2.5067 -# Set up the sed scripts for CONFIG_FILES section.
  2.5068 -#
  2.5069 -
  2.5070 -# No need to generate the scripts if there are no CONFIG_FILES.
  2.5071 -# This happens for instance when ./config.status config.h
  2.5072 -if test -n "$CONFIG_FILES"; then
  2.5073 -
  2.5074 -_ACEOF
  2.5075 -
  2.5076 -
  2.5077 -
  2.5078 -ac_delim='%!_!# '
  2.5079 -for ac_last_try in false false false false false :; do
  2.5080 -  cat >conf$$subs.sed <<_ACEOF
  2.5081 -SHELL!$SHELL$ac_delim
  2.5082 -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  2.5083 -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  2.5084 -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  2.5085 -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  2.5086 -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  2.5087 -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  2.5088 -exec_prefix!$exec_prefix$ac_delim
  2.5089 -prefix!$prefix$ac_delim
  2.5090 -program_transform_name!$program_transform_name$ac_delim
  2.5091 -bindir!$bindir$ac_delim
  2.5092 -sbindir!$sbindir$ac_delim
  2.5093 -libexecdir!$libexecdir$ac_delim
  2.5094 -datarootdir!$datarootdir$ac_delim
  2.5095 -datadir!$datadir$ac_delim
  2.5096 -sysconfdir!$sysconfdir$ac_delim
  2.5097 -sharedstatedir!$sharedstatedir$ac_delim
  2.5098 -localstatedir!$localstatedir$ac_delim
  2.5099 -includedir!$includedir$ac_delim
  2.5100 -oldincludedir!$oldincludedir$ac_delim
  2.5101 -docdir!$docdir$ac_delim
  2.5102 -infodir!$infodir$ac_delim
  2.5103 -htmldir!$htmldir$ac_delim
  2.5104 -dvidir!$dvidir$ac_delim
  2.5105 -pdfdir!$pdfdir$ac_delim
  2.5106 -psdir!$psdir$ac_delim
  2.5107 -libdir!$libdir$ac_delim
  2.5108 -localedir!$localedir$ac_delim
  2.5109 -mandir!$mandir$ac_delim
  2.5110 -DEFS!$DEFS$ac_delim
  2.5111 -ECHO_C!$ECHO_C$ac_delim
  2.5112 -ECHO_N!$ECHO_N$ac_delim
  2.5113 -ECHO_T!$ECHO_T$ac_delim
  2.5114 -LIBS!$LIBS$ac_delim
  2.5115 -build_alias!$build_alias$ac_delim
  2.5116 -host_alias!$host_alias$ac_delim
  2.5117 -target_alias!$target_alias$ac_delim
  2.5118 -build!$build$ac_delim
  2.5119 -build_cpu!$build_cpu$ac_delim
  2.5120 -build_vendor!$build_vendor$ac_delim
  2.5121 -build_os!$build_os$ac_delim
  2.5122 -host!$host$ac_delim
  2.5123 -host_cpu!$host_cpu$ac_delim
  2.5124 -host_vendor!$host_vendor$ac_delim
  2.5125 -host_os!$host_os$ac_delim
  2.5126 -CC!$CC$ac_delim
  2.5127 -CFLAGS!$CFLAGS$ac_delim
  2.5128 -LDFLAGS!$LDFLAGS$ac_delim
  2.5129 -CPPFLAGS!$CPPFLAGS$ac_delim
  2.5130 -ac_ct_CC!$ac_ct_CC$ac_delim
  2.5131 -EXEEXT!$EXEEXT$ac_delim
  2.5132 -OBJEXT!$OBJEXT$ac_delim
  2.5133 -OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
  2.5134 -EXE!$EXE$ac_delim
  2.5135 -MATHLIB!$MATHLIB$ac_delim
  2.5136 -PKG_CONFIG!$PKG_CONFIG$ac_delim
  2.5137 -PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
  2.5138 -PKG_CONFIG_LIBDIR!$PKG_CONFIG_LIBDIR$ac_delim
  2.5139 -SDL_CFLAGS!$SDL_CFLAGS$ac_delim
  2.5140 -SDL_LIBS!$SDL_LIBS$ac_delim
  2.5141 -SDL_CONFIG!$SDL_CONFIG$ac_delim
  2.5142 -XMKMF!$XMKMF$ac_delim
  2.5143 -CPP!$CPP$ac_delim
  2.5144 -GLLIB!$GLLIB$ac_delim
  2.5145 -SDL_TTF_LIB!$SDL_TTF_LIB$ac_delim
  2.5146 -LIBOBJS!$LIBOBJS$ac_delim
  2.5147 -LTLIBOBJS!$LTLIBOBJS$ac_delim
  2.5148 -_ACEOF
  2.5149 -
  2.5150 -  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
  2.5151 -    break
  2.5152 -  elif $ac_last_try; then
  2.5153 -    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  2.5154 -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  2.5155 -   { (exit 1); exit 1; }; }
  2.5156 -  else
  2.5157 -    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2.5158 -  fi
  2.5159 -done
  2.5160 -
  2.5161 -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  2.5162 -if test -n "$ac_eof"; then
  2.5163 -  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  2.5164 -  ac_eof=`expr $ac_eof + 1`
  2.5165 -fi
  2.5166 -
  2.5167 -cat >>$CONFIG_STATUS <<_ACEOF
  2.5168 -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  2.5169 -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  2.5170 -_ACEOF
  2.5171 -sed '
  2.5172 -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  2.5173 -s/^/s,@/; s/!/@,|#_!!_#|/
  2.5174 -:n
  2.5175 -t n
  2.5176 -s/'"$ac_delim"'$/,g/; t
  2.5177 -s/$/\\/; p
  2.5178 -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  2.5179 -' >>$CONFIG_STATUS <conf$$subs.sed
  2.5180 -rm -f conf$$subs.sed
  2.5181 -cat >>$CONFIG_STATUS <<_ACEOF
  2.5182 -:end
  2.5183 -s/|#_!!_#|//g
  2.5184 -CEOF$ac_eof
  2.5185 -_ACEOF
  2.5186 -
  2.5187 -
  2.5188 -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  2.5189 -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  2.5190 -# trailing colons and then remove the whole line if VPATH becomes empty
  2.5191 -# (actually we leave an empty line to preserve line numbers).
  2.5192 -if test "x$srcdir" = x.; then
  2.5193 -  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
  2.5194 -s/:*\$(srcdir):*/:/
  2.5195 -s/:*\${srcdir}:*/:/
  2.5196 -s/:*@srcdir@:*/:/
  2.5197 -s/^\([^=]*=[	 ]*\):*/\1/
  2.5198 -s/:*$//
  2.5199 -s/^[^=]*=[	 ]*$//
  2.5200 -}'
  2.5201 -fi
  2.5202 -
  2.5203 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.5204 -fi # test -n "$CONFIG_FILES"
  2.5205 -
  2.5206 -
  2.5207 -for ac_tag in  :F $CONFIG_FILES
  2.5208 -do
  2.5209 -  case $ac_tag in
  2.5210 -  :[FHLC]) ac_mode=$ac_tag; continue;;
  2.5211 -  esac
  2.5212 -  case $ac_mode$ac_tag in
  2.5213 -  :[FHL]*:*);;
  2.5214 -  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  2.5215 -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  2.5216 -   { (exit 1); exit 1; }; };;
  2.5217 -  :[FH]-) ac_tag=-:-;;
  2.5218 -  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  2.5219 -  esac
  2.5220 -  ac_save_IFS=$IFS
  2.5221 -  IFS=:
  2.5222 -  set x $ac_tag
  2.5223 -  IFS=$ac_save_IFS
  2.5224 -  shift
  2.5225 -  ac_file=$1
  2.5226 -  shift
  2.5227 -
  2.5228 -  case $ac_mode in
  2.5229 -  :L) ac_source=$1;;
  2.5230 -  :[FH])
  2.5231 -    ac_file_inputs=
  2.5232 -    for ac_f
  2.5233 -    do
  2.5234 -      case $ac_f in
  2.5235 -      -) ac_f="$tmp/stdin";;
  2.5236 -      *) # Look for the file first in the build tree, then in the source tree
  2.5237 -	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  2.5238 -	 # because $ac_f cannot contain `:'.
  2.5239 -	 test -f "$ac_f" ||
  2.5240 -	   case $ac_f in
  2.5241 -	   [\\/$]*) false;;
  2.5242 -	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  2.5243 -	   esac ||
  2.5244 -	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  2.5245 -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  2.5246 -   { (exit 1); exit 1; }; };;
  2.5247 -      esac
  2.5248 -      ac_file_inputs="$ac_file_inputs $ac_f"
  2.5249 -    done
  2.5250 -
  2.5251 -    # Let's still pretend it is `configure' which instantiates (i.e., don't
  2.5252 -    # use $as_me), people would be surprised to read:
  2.5253 -    #    /* config.h.  Generated by config.status.  */
  2.5254 -    configure_input="Generated from "`IFS=:
  2.5255 -	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  2.5256 -    if test x"$ac_file" != x-; then
  2.5257 -      configure_input="$ac_file.  $configure_input"
  2.5258 -      { echo "$as_me:$LINENO: creating $ac_file" >&5
  2.5259 -echo "$as_me: creating $ac_file" >&6;}
  2.5260 -    fi
  2.5261 -
  2.5262 -    case $ac_tag in
  2.5263 -    *:-:* | *:-) cat >"$tmp/stdin";;
  2.5264 -    esac
  2.5265 -    ;;
  2.5266 -  esac
  2.5267 -
  2.5268 -  ac_dir=`$as_dirname -- "$ac_file" ||
  2.5269 -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2.5270 -	 X"$ac_file" : 'X\(//\)[^/]' \| \
  2.5271 -	 X"$ac_file" : 'X\(//\)$' \| \
  2.5272 -	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  2.5273 -echo X"$ac_file" |
  2.5274 -    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2.5275 -	    s//\1/
  2.5276 -	    q
  2.5277 -	  }
  2.5278 -	  /^X\(\/\/\)[^/].*/{
  2.5279 -	    s//\1/
  2.5280 -	    q
  2.5281 -	  }
  2.5282 -	  /^X\(\/\/\)$/{
  2.5283 -	    s//\1/
  2.5284 -	    q
  2.5285 -	  }
  2.5286 -	  /^X\(\/\).*/{
  2.5287 -	    s//\1/
  2.5288 -	    q
  2.5289 -	  }
  2.5290 -	  s/.*/./; q'`
  2.5291 -  { as_dir="$ac_dir"
  2.5292 +
  2.5293    case $as_dir in #(
  2.5294    -*) as_dir=./$as_dir;;
  2.5295    esac
  2.5296 -  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  2.5297 +  test -d "$as_dir" || eval $as_mkdir_p || {
  2.5298      as_dirs=
  2.5299      while :; do
  2.5300        case $as_dir in #(
  2.5301 -      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  2.5302 +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  2.5303        *) as_qdir=$as_dir;;
  2.5304        esac
  2.5305        as_dirs="'$as_qdir' $as_dirs"
  2.5306 @@ -4962,7 +4362,7 @@
  2.5307  	 X"$as_dir" : 'X\(//\)[^/]' \| \
  2.5308  	 X"$as_dir" : 'X\(//\)$' \| \
  2.5309  	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  2.5310 -echo X"$as_dir" |
  2.5311 +$as_echo X"$as_dir" |
  2.5312      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2.5313  	    s//\1/
  2.5314  	    q
  2.5315 @@ -4983,17 +4383,524 @@
  2.5316        test -d "$as_dir" && break
  2.5317      done
  2.5318      test -z "$as_dirs" || eval "mkdir $as_dirs"
  2.5319 -  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  2.5320 -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  2.5321 -   { (exit 1); exit 1; }; }; }
  2.5322 +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  2.5323 +
  2.5324 +
  2.5325 +} # as_fn_mkdir_p
  2.5326 +if mkdir -p . 2>/dev/null; then
  2.5327 +  as_mkdir_p='mkdir -p "$as_dir"'
  2.5328 +else
  2.5329 +  test -d ./-p && rmdir ./-p
  2.5330 +  as_mkdir_p=false
  2.5331 +fi
  2.5332 +
  2.5333 +if test -x / >/dev/null 2>&1; then
  2.5334 +  as_test_x='test -x'
  2.5335 +else
  2.5336 +  if ls -dL / >/dev/null 2>&1; then
  2.5337 +    as_ls_L_option=L
  2.5338 +  else
  2.5339 +    as_ls_L_option=
  2.5340 +  fi
  2.5341 +  as_test_x='
  2.5342 +    eval sh -c '\''
  2.5343 +      if test -d "$1"; then
  2.5344 +	test -d "$1/.";
  2.5345 +      else
  2.5346 +	case $1 in #(
  2.5347 +	-*)set "./$1";;
  2.5348 +	esac;
  2.5349 +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  2.5350 +	???[sx]*):;;*)false;;esac;fi
  2.5351 +    '\'' sh
  2.5352 +  '
  2.5353 +fi
  2.5354 +as_executable_p=$as_test_x
  2.5355 +
  2.5356 +# Sed expression to map a string onto a valid CPP name.
  2.5357 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2.5358 +
  2.5359 +# Sed expression to map a string onto a valid variable name.
  2.5360 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2.5361 +
  2.5362 +
  2.5363 +exec 6>&1
  2.5364 +## ----------------------------------- ##
  2.5365 +## Main body of $CONFIG_STATUS script. ##
  2.5366 +## ----------------------------------- ##
  2.5367 +_ASEOF
  2.5368 +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  2.5369 +
  2.5370 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5371 +# Save the log message, to keep $0 and so on meaningful, and to
  2.5372 +# report actual input values of CONFIG_FILES etc. instead of their
  2.5373 +# values after options handling.
  2.5374 +ac_log="
  2.5375 +This file was extended by $as_me, which was
  2.5376 +generated by GNU Autoconf 2.68.  Invocation command line was
  2.5377 +
  2.5378 +  CONFIG_FILES    = $CONFIG_FILES
  2.5379 +  CONFIG_HEADERS  = $CONFIG_HEADERS
  2.5380 +  CONFIG_LINKS    = $CONFIG_LINKS
  2.5381 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
  2.5382 +  $ $0 $@
  2.5383 +
  2.5384 +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2.5385 +"
  2.5386 +
  2.5387 +_ACEOF
  2.5388 +
  2.5389 +case $ac_config_files in *"
  2.5390 +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  2.5391 +esac
  2.5392 +
  2.5393 +
  2.5394 +
  2.5395 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5396 +# Files that config.status was made for.
  2.5397 +config_files="$ac_config_files"
  2.5398 +
  2.5399 +_ACEOF
  2.5400 +
  2.5401 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5402 +ac_cs_usage="\
  2.5403 +\`$as_me' instantiates files and other configuration actions
  2.5404 +from templates according to the current configuration.  Unless the files
  2.5405 +and actions are specified as TAGs, all are instantiated by default.
  2.5406 +
  2.5407 +Usage: $0 [OPTION]... [TAG]...
  2.5408 +
  2.5409 +  -h, --help       print this help, then exit
  2.5410 +  -V, --version    print version number and configuration settings, then exit
  2.5411 +      --config     print configuration, then exit
  2.5412 +  -q, --quiet, --silent
  2.5413 +                   do not print progress messages
  2.5414 +  -d, --debug      don't remove temporary files
  2.5415 +      --recheck    update $as_me by reconfiguring in the same conditions
  2.5416 +      --file=FILE[:TEMPLATE]
  2.5417 +                   instantiate the configuration file FILE
  2.5418 +
  2.5419 +Configuration files:
  2.5420 +$config_files
  2.5421 +
  2.5422 +Report bugs to the package provider."
  2.5423 +
  2.5424 +_ACEOF
  2.5425 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5426 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  2.5427 +ac_cs_version="\\
  2.5428 +config.status
  2.5429 +configured by $0, generated by GNU Autoconf 2.68,
  2.5430 +  with options \\"\$ac_cs_config\\"
  2.5431 +
  2.5432 +Copyright (C) 2010 Free Software Foundation, Inc.
  2.5433 +This config.status script is free software; the Free Software Foundation
  2.5434 +gives unlimited permission to copy, distribute and modify it."
  2.5435 +
  2.5436 +ac_pwd='$ac_pwd'
  2.5437 +srcdir='$srcdir'
  2.5438 +test -n "\$AWK" || AWK=awk
  2.5439 +_ACEOF
  2.5440 +
  2.5441 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5442 +# The default lists apply if the user does not specify any file.
  2.5443 +ac_need_defaults=:
  2.5444 +while test $# != 0
  2.5445 +do
  2.5446 +  case $1 in
  2.5447 +  --*=?*)
  2.5448 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2.5449 +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2.5450 +    ac_shift=:
  2.5451 +    ;;
  2.5452 +  --*=)
  2.5453 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2.5454 +    ac_optarg=
  2.5455 +    ac_shift=:
  2.5456 +    ;;
  2.5457 +  *)
  2.5458 +    ac_option=$1
  2.5459 +    ac_optarg=$2
  2.5460 +    ac_shift=shift
  2.5461 +    ;;
  2.5462 +  esac
  2.5463 +
  2.5464 +  case $ac_option in
  2.5465 +  # Handling of the options.
  2.5466 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2.5467 +    ac_cs_recheck=: ;;
  2.5468 +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  2.5469 +    $as_echo "$ac_cs_version"; exit ;;
  2.5470 +  --config | --confi | --conf | --con | --co | --c )
  2.5471 +    $as_echo "$ac_cs_config"; exit ;;
  2.5472 +  --debug | --debu | --deb | --de | --d | -d )
  2.5473 +    debug=: ;;
  2.5474 +  --file | --fil | --fi | --f )
  2.5475 +    $ac_shift
  2.5476 +    case $ac_optarg in
  2.5477 +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2.5478 +    '') as_fn_error $? "missing file argument" ;;
  2.5479 +    esac
  2.5480 +    as_fn_append CONFIG_FILES " '$ac_optarg'"
  2.5481 +    ac_need_defaults=false;;
  2.5482 +  --he | --h |  --help | --hel | -h )
  2.5483 +    $as_echo "$ac_cs_usage"; exit ;;
  2.5484 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2.5485 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
  2.5486 +    ac_cs_silent=: ;;
  2.5487 +
  2.5488 +  # This is an error.
  2.5489 +  -*) as_fn_error $? "unrecognized option: \`$1'
  2.5490 +Try \`$0 --help' for more information." ;;
  2.5491 +
  2.5492 +  *) as_fn_append ac_config_targets " $1"
  2.5493 +     ac_need_defaults=false ;;
  2.5494 +
  2.5495 +  esac
  2.5496 +  shift
  2.5497 +done
  2.5498 +
  2.5499 +ac_configure_extra_args=
  2.5500 +
  2.5501 +if $ac_cs_silent; then
  2.5502 +  exec 6>/dev/null
  2.5503 +  ac_configure_extra_args="$ac_configure_extra_args --silent"
  2.5504 +fi
  2.5505 +
  2.5506 +_ACEOF
  2.5507 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5508 +if \$ac_cs_recheck; then
  2.5509 +  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2.5510 +  shift
  2.5511 +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  2.5512 +  CONFIG_SHELL='$SHELL'
  2.5513 +  export CONFIG_SHELL
  2.5514 +  exec "\$@"
  2.5515 +fi
  2.5516 +
  2.5517 +_ACEOF
  2.5518 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5519 +exec 5>>config.log
  2.5520 +{
  2.5521 +  echo
  2.5522 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  2.5523 +## Running $as_me. ##
  2.5524 +_ASBOX
  2.5525 +  $as_echo "$ac_log"
  2.5526 +} >&5
  2.5527 +
  2.5528 +_ACEOF
  2.5529 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5530 +_ACEOF
  2.5531 +
  2.5532 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5533 +
  2.5534 +# Handling of arguments.
  2.5535 +for ac_config_target in $ac_config_targets
  2.5536 +do
  2.5537 +  case $ac_config_target in
  2.5538 +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  2.5539 +
  2.5540 +  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2.5541 +  esac
  2.5542 +done
  2.5543 +
  2.5544 +
  2.5545 +# If the user did not use the arguments to specify the items to instantiate,
  2.5546 +# then the envvar interface is used.  Set only those that are not.
  2.5547 +# We use the long form for the default assignment because of an extremely
  2.5548 +# bizarre bug on SunOS 4.1.3.
  2.5549 +if $ac_need_defaults; then
  2.5550 +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2.5551 +fi
  2.5552 +
  2.5553 +# Have a temporary directory for convenience.  Make it in the build tree
  2.5554 +# simply because there is no reason against having it here, and in addition,
  2.5555 +# creating and moving files from /tmp can sometimes cause problems.
  2.5556 +# Hook for its removal unless debugging.
  2.5557 +# Note that there is a small window in which the directory will not be cleaned:
  2.5558 +# after its creation but before its name has been assigned to `$tmp'.
  2.5559 +$debug ||
  2.5560 +{
  2.5561 +  tmp= ac_tmp=
  2.5562 +  trap 'exit_status=$?
  2.5563 +  : "${ac_tmp:=$tmp}"
  2.5564 +  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  2.5565 +' 0
  2.5566 +  trap 'as_fn_exit 1' 1 2 13 15
  2.5567 +}
  2.5568 +# Create a (secure) tmp directory for tmp files.
  2.5569 +
  2.5570 +{
  2.5571 +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2.5572 +  test -d "$tmp"
  2.5573 +}  ||
  2.5574 +{
  2.5575 +  tmp=./conf$$-$RANDOM
  2.5576 +  (umask 077 && mkdir "$tmp")
  2.5577 +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  2.5578 +ac_tmp=$tmp
  2.5579 +
  2.5580 +# Set up the scripts for CONFIG_FILES section.
  2.5581 +# No need to generate them if there are no CONFIG_FILES.
  2.5582 +# This happens for instance with `./config.status config.h'.
  2.5583 +if test -n "$CONFIG_FILES"; then
  2.5584 +
  2.5585 +
  2.5586 +ac_cr=`echo X | tr X '\015'`
  2.5587 +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  2.5588 +# But we know of no other shell where ac_cr would be empty at this
  2.5589 +# point, so we can use a bashism as a fallback.
  2.5590 +if test "x$ac_cr" = x; then
  2.5591 +  eval ac_cr=\$\'\\r\'
  2.5592 +fi
  2.5593 +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  2.5594 +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  2.5595 +  ac_cs_awk_cr='\\r'
  2.5596 +else
  2.5597 +  ac_cs_awk_cr=$ac_cr
  2.5598 +fi
  2.5599 +
  2.5600 +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  2.5601 +_ACEOF
  2.5602 +
  2.5603 +
  2.5604 +{
  2.5605 +  echo "cat >conf$$subs.awk <<_ACEOF" &&
  2.5606 +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  2.5607 +  echo "_ACEOF"
  2.5608 +} >conf$$subs.sh ||
  2.5609 +  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2.5610 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  2.5611 +ac_delim='%!_!# '
  2.5612 +for ac_last_try in false false false false false :; do
  2.5613 +  . ./conf$$subs.sh ||
  2.5614 +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2.5615 +
  2.5616 +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  2.5617 +  if test $ac_delim_n = $ac_delim_num; then
  2.5618 +    break
  2.5619 +  elif $ac_last_try; then
  2.5620 +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2.5621 +  else
  2.5622 +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2.5623 +  fi
  2.5624 +done
  2.5625 +rm -f conf$$subs.sh
  2.5626 +
  2.5627 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5628 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  2.5629 +_ACEOF
  2.5630 +sed -n '
  2.5631 +h
  2.5632 +s/^/S["/; s/!.*/"]=/
  2.5633 +p
  2.5634 +g
  2.5635 +s/^[^!]*!//
  2.5636 +:repl
  2.5637 +t repl
  2.5638 +s/'"$ac_delim"'$//
  2.5639 +t delim
  2.5640 +:nl
  2.5641 +h
  2.5642 +s/\(.\{148\}\)..*/\1/
  2.5643 +t more1
  2.5644 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  2.5645 +p
  2.5646 +n
  2.5647 +b repl
  2.5648 +:more1
  2.5649 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  2.5650 +p
  2.5651 +g
  2.5652 +s/.\{148\}//
  2.5653 +t nl
  2.5654 +:delim
  2.5655 +h
  2.5656 +s/\(.\{148\}\)..*/\1/
  2.5657 +t more2
  2.5658 +s/["\\]/\\&/g; s/^/"/; s/$/"/
  2.5659 +p
  2.5660 +b
  2.5661 +:more2
  2.5662 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  2.5663 +p
  2.5664 +g
  2.5665 +s/.\{148\}//
  2.5666 +t delim
  2.5667 +' <conf$$subs.awk | sed '
  2.5668 +/^[^""]/{
  2.5669 +  N
  2.5670 +  s/\n//
  2.5671 +}
  2.5672 +' >>$CONFIG_STATUS || ac_write_fail=1
  2.5673 +rm -f conf$$subs.awk
  2.5674 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5675 +_ACAWK
  2.5676 +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  2.5677 +  for (key in S) S_is_set[key] = 1
  2.5678 +  FS = ""
  2.5679 +
  2.5680 +}
  2.5681 +{
  2.5682 +  line = $ 0
  2.5683 +  nfields = split(line, field, "@")
  2.5684 +  substed = 0
  2.5685 +  len = length(field[1])
  2.5686 +  for (i = 2; i < nfields; i++) {
  2.5687 +    key = field[i]
  2.5688 +    keylen = length(key)
  2.5689 +    if (S_is_set[key]) {
  2.5690 +      value = S[key]
  2.5691 +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  2.5692 +      len += length(value) + length(field[++i])
  2.5693 +      substed = 1
  2.5694 +    } else
  2.5695 +      len += 1 + keylen
  2.5696 +  }
  2.5697 +
  2.5698 +  print line
  2.5699 +}
  2.5700 +
  2.5701 +_ACAWK
  2.5702 +_ACEOF
  2.5703 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5704 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  2.5705 +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  2.5706 +else
  2.5707 +  cat
  2.5708 +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  2.5709 +  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  2.5710 +_ACEOF
  2.5711 +
  2.5712 +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  2.5713 +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  2.5714 +# trailing colons and then remove the whole line if VPATH becomes empty
  2.5715 +# (actually we leave an empty line to preserve line numbers).
  2.5716 +if test "x$srcdir" = x.; then
  2.5717 +  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
  2.5718 +h
  2.5719 +s///
  2.5720 +s/^/:/
  2.5721 +s/[	 ]*$/:/
  2.5722 +s/:\$(srcdir):/:/g
  2.5723 +s/:\${srcdir}:/:/g
  2.5724 +s/:@srcdir@:/:/g
  2.5725 +s/^:*//
  2.5726 +s/:*$//
  2.5727 +x
  2.5728 +s/\(=[	 ]*\).*/\1/
  2.5729 +G
  2.5730 +s/\n//
  2.5731 +s/^[^=]*=[	 ]*$//
  2.5732 +}'
  2.5733 +fi
  2.5734 +
  2.5735 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5736 +fi # test -n "$CONFIG_FILES"
  2.5737 +
  2.5738 +
  2.5739 +eval set X "  :F $CONFIG_FILES      "
  2.5740 +shift
  2.5741 +for ac_tag
  2.5742 +do
  2.5743 +  case $ac_tag in
  2.5744 +  :[FHLC]) ac_mode=$ac_tag; continue;;
  2.5745 +  esac
  2.5746 +  case $ac_mode$ac_tag in
  2.5747 +  :[FHL]*:*);;
  2.5748 +  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2.5749 +  :[FH]-) ac_tag=-:-;;
  2.5750 +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  2.5751 +  esac
  2.5752 +  ac_save_IFS=$IFS
  2.5753 +  IFS=:
  2.5754 +  set x $ac_tag
  2.5755 +  IFS=$ac_save_IFS
  2.5756 +  shift
  2.5757 +  ac_file=$1
  2.5758 +  shift
  2.5759 +
  2.5760 +  case $ac_mode in
  2.5761 +  :L) ac_source=$1;;
  2.5762 +  :[FH])
  2.5763 +    ac_file_inputs=
  2.5764 +    for ac_f
  2.5765 +    do
  2.5766 +      case $ac_f in
  2.5767 +      -) ac_f="$ac_tmp/stdin";;
  2.5768 +      *) # Look for the file first in the build tree, then in the source tree
  2.5769 +	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  2.5770 +	 # because $ac_f cannot contain `:'.
  2.5771 +	 test -f "$ac_f" ||
  2.5772 +	   case $ac_f in
  2.5773 +	   [\\/$]*) false;;
  2.5774 +	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  2.5775 +	   esac ||
  2.5776 +	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2.5777 +      esac
  2.5778 +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  2.5779 +      as_fn_append ac_file_inputs " '$ac_f'"
  2.5780 +    done
  2.5781 +
  2.5782 +    # Let's still pretend it is `configure' which instantiates (i.e., don't
  2.5783 +    # use $as_me), people would be surprised to read:
  2.5784 +    #    /* config.h.  Generated by config.status.  */
  2.5785 +    configure_input='Generated from '`
  2.5786 +	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  2.5787 +	`' by configure.'
  2.5788 +    if test x"$ac_file" != x-; then
  2.5789 +      configure_input="$ac_file.  $configure_input"
  2.5790 +      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  2.5791 +$as_echo "$as_me: creating $ac_file" >&6;}
  2.5792 +    fi
  2.5793 +    # Neutralize special characters interpreted by sed in replacement strings.
  2.5794 +    case $configure_input in #(
  2.5795 +    *\&* | *\|* | *\\* )
  2.5796 +       ac_sed_conf_input=`$as_echo "$configure_input" |
  2.5797 +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
  2.5798 +    *) ac_sed_conf_input=$configure_input;;
  2.5799 +    esac
  2.5800 +
  2.5801 +    case $ac_tag in
  2.5802 +    *:-:* | *:-) cat >"$ac_tmp/stdin" \
  2.5803 +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  2.5804 +    esac
  2.5805 +    ;;
  2.5806 +  esac
  2.5807 +
  2.5808 +  ac_dir=`$as_dirname -- "$ac_file" ||
  2.5809 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2.5810 +	 X"$ac_file" : 'X\(//\)[^/]' \| \
  2.5811 +	 X"$ac_file" : 'X\(//\)$' \| \
  2.5812 +	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  2.5813 +$as_echo X"$ac_file" |
  2.5814 +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2.5815 +	    s//\1/
  2.5816 +	    q
  2.5817 +	  }
  2.5818 +	  /^X\(\/\/\)[^/].*/{
  2.5819 +	    s//\1/
  2.5820 +	    q
  2.5821 +	  }
  2.5822 +	  /^X\(\/\/\)$/{
  2.5823 +	    s//\1/
  2.5824 +	    q
  2.5825 +	  }
  2.5826 +	  /^X\(\/\).*/{
  2.5827 +	    s//\1/
  2.5828 +	    q
  2.5829 +	  }
  2.5830 +	  s/.*/./; q'`
  2.5831 +  as_dir="$ac_dir"; as_fn_mkdir_p
  2.5832    ac_builddir=.
  2.5833  
  2.5834  case "$ac_dir" in
  2.5835  .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2.5836  *)
  2.5837 -  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  2.5838 +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2.5839    # A ".." for each directory in $ac_dir_suffix.
  2.5840 -  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  2.5841 +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2.5842    case $ac_top_builddir_sub in
  2.5843    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2.5844    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2.5845 @@ -5029,12 +4936,12 @@
  2.5846  
  2.5847  _ACEOF
  2.5848  
  2.5849 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.5850 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5851  # If the template does not know about datarootdir, expand it.
  2.5852  # FIXME: This hack should be removed a few years after 2.60.
  2.5853  ac_datarootdir_hack=; ac_datarootdir_seen=
  2.5854 -
  2.5855 -case `sed -n '/datarootdir/ {
  2.5856 +ac_sed_dataroot='
  2.5857 +/datarootdir/ {
  2.5858    p
  2.5859    q
  2.5860  }
  2.5861 @@ -5042,36 +4949,37 @@
  2.5862  /@docdir@/p
  2.5863  /@infodir@/p
  2.5864  /@localedir@/p
  2.5865 -/@mandir@/p
  2.5866 -' $ac_file_inputs` in
  2.5867 +/@mandir@/p'
  2.5868 +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  2.5869  *datarootdir*) ac_datarootdir_seen=yes;;
  2.5870  *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  2.5871 -  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  2.5872 -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  2.5873 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  2.5874 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  2.5875  _ACEOF
  2.5876 -cat >>$CONFIG_STATUS <<_ACEOF
  2.5877 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5878    ac_datarootdir_hack='
  2.5879    s&@datadir@&$datadir&g
  2.5880    s&@docdir@&$docdir&g
  2.5881    s&@infodir@&$infodir&g
  2.5882    s&@localedir@&$localedir&g
  2.5883    s&@mandir@&$mandir&g
  2.5884 -    s&\\\${datarootdir}&$datarootdir&g' ;;
  2.5885 +  s&\\\${datarootdir}&$datarootdir&g' ;;
  2.5886  esac
  2.5887  _ACEOF
  2.5888  
  2.5889  # Neutralize VPATH when `$srcdir' = `.'.
  2.5890  # Shell code in configure.ac might set extrasub.
  2.5891  # FIXME: do we really want to maintain this feature?
  2.5892 -cat >>$CONFIG_STATUS <<_ACEOF
  2.5893 -  sed "$ac_vpsub
  2.5894 +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2.5895 +ac_sed_extra="$ac_vpsub
  2.5896  $extrasub
  2.5897  _ACEOF
  2.5898 -cat >>$CONFIG_STATUS <<\_ACEOF
  2.5899 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2.5900  :t
  2.5901  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  2.5902 -s&@configure_input@&$configure_input&;t t
  2.5903 +s|@configure_input@|$ac_sed_conf_input|;t t
  2.5904  s&@top_builddir@&$ac_top_builddir_sub&;t t
  2.5905 +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  2.5906  s&@srcdir@&$ac_srcdir&;t t
  2.5907  s&@abs_srcdir@&$ac_abs_srcdir&;t t
  2.5908  s&@top_srcdir@&$ac_top_srcdir&;t t
  2.5909 @@ -5080,35 +4988,41 @@
  2.5910  s&@abs_builddir@&$ac_abs_builddir&;t t
  2.5911  s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  2.5912  $ac_datarootdir_hack
  2.5913 -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  2.5914 +"
  2.5915 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  2.5916 +  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2.5917  
  2.5918  test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  2.5919 -  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  2.5920 -  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  2.5921 -  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2.5922 -which seems to be undefined.  Please make sure it is defined." >&5
  2.5923 -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2.5924 -which seems to be undefined.  Please make sure it is defined." >&2;}
  2.5925 -
  2.5926 -  rm -f "$tmp/stdin"
  2.5927 +  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  2.5928 +  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
  2.5929 +      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  2.5930 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2.5931 +which seems to be undefined.  Please make sure it is defined" >&5
  2.5932 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2.5933 +which seems to be undefined.  Please make sure it is defined" >&2;}
  2.5934 +
  2.5935 +  rm -f "$ac_tmp/stdin"
  2.5936    case $ac_file in
  2.5937 -  -) cat "$tmp/out"; rm -f "$tmp/out";;
  2.5938 -  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  2.5939 +  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  2.5940 +  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  2.5941 +  esac \
  2.5942 +  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2.5943 + ;;
  2.5944 +
  2.5945 +
  2.5946 +
  2.5947    esac
  2.5948 - ;;
  2.5949 -
  2.5950 -
  2.5951 -
  2.5952 -  esac
  2.5953  
  2.5954  done # for ac_tag
  2.5955  
  2.5956  
  2.5957 -{ (exit 0); exit 0; }
  2.5958 +as_fn_exit 0
  2.5959  _ACEOF
  2.5960 -chmod +x $CONFIG_STATUS
  2.5961  ac_clean_files=$ac_clean_files_save
  2.5962  
  2.5963 +test $ac_write_fail = 0 ||
  2.5964 +  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2.5965 +
  2.5966  
  2.5967  # configure is writing to config.log, and then calls config.status.
  2.5968  # config.status does its own redirection, appending to config.log.
  2.5969 @@ -5128,6 +5042,10 @@
  2.5970    exec 5>>config.log
  2.5971    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  2.5972    # would make configure fail if this is the last instruction.
  2.5973 -  $ac_cs_success || { (exit 1); exit 1; }
  2.5974 +  $ac_cs_success || as_fn_exit 1
  2.5975  fi
  2.5976 -
  2.5977 +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  2.5978 +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  2.5979 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  2.5980 +fi
  2.5981 +
     3.1 --- a/test/configure.in	Thu Aug 09 14:14:41 2012 -0400
     3.2 +++ b/test/configure.in	Thu Aug 09 14:28:45 2012 -0400
     3.3 @@ -13,9 +13,17 @@
     3.4  
     3.5  AC_C_CONST
     3.6  
     3.7 +dnl We only care about this for building testnative at the moment, so these
     3.8 +dnl  values shouldn't be considered absolute truth.
     3.9 +dnl  (BeOS, for example, sets none of these.)
    3.10 +ISUNIX="false"
    3.11 +ISWINDOWS="false"
    3.12 +ISMACOSX="false"
    3.13 +
    3.14  dnl Figure out which math library to use
    3.15  case "$host" in
    3.16      *-*-cygwin* | *-*-mingw32*)
    3.17 +        ISWINDOWS="true"
    3.18          EXE=".exe"
    3.19          MATHLIB=""
    3.20          SYS_GL_LIBS="-lopengl32"
    3.21 @@ -26,11 +34,13 @@
    3.22          SYS_GL_LIBS="-lGL"
    3.23          ;;
    3.24      *-*-darwin* )
    3.25 +        ISMACOSX="true"
    3.26          EXE=""
    3.27          MATHLIB=""
    3.28          SYS_GL_LIBS="-Wl,-framework,OpenGL"
    3.29          ;;
    3.30      *-*-aix*)
    3.31 +        ISUNIX="true"
    3.32          EXE=""
    3.33          if test x$ac_cv_prog_gcc = xyes; then
    3.34              CFLAGS="-mthreads"
    3.35 @@ -56,6 +66,8 @@
    3.36          SYS_GL_LIBS="-lGLES_CM"
    3.37          ;;
    3.38      *)
    3.39 +        dnl Oh well, call it Unix...
    3.40 +        ISUNIX="true"
    3.41          EXE=""
    3.42          MATHLIB="-lm"
    3.43          SYS_GL_LIBS="-lGL"
    3.44 @@ -63,6 +75,9 @@
    3.45  esac
    3.46  AC_SUBST(EXE)
    3.47  AC_SUBST(MATHLIB)
    3.48 +AC_SUBST(ISMACOSX)
    3.49 +AC_SUBST(ISWINDOWS)
    3.50 +AC_SUBST(ISUNIX)
    3.51  
    3.52  dnl Check for SDL
    3.53  SDL_VERSION=2.0.0