test/configure
author Sam Lantinga <slouken@libsdl.org>
Sun, 21 Jul 2013 12:47:47 -0700
changeset 7495 c4ba5e5c2765
parent 6785 c094c438c0a6
child 7703 982abfefd19d
permissions -rwxr-xr-x
Fixed bug 1973 - test/Makefile.in fails on Mac OS X with X11 enabled...

Ryan C. Gordon

If you have the X11 SDK installed on Mac OS X, you'll build with X11 support, but the Makefile doesn't build anything but the Cocoa testnative code for Mac OS X, which is fine, but then testnative fails to link because testnative.h enables the X11 support based on the SDL config header.

Building the testnativex11.c code on Mac OS X doesn't work because you need to explicitly link with "-L/usr/X11/lib -lX11" if this code is enabled, but you can't link with that by default because the X11 SDK might be missing.

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