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