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