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