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