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