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