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