test/configure
author Ryan C. Gordon <icculus@icculus.org>
Fri, 09 Sep 2011 00:34:48 -0400
changeset 5876 982dd84fcd83
parent 5670 bdaa6299e107
child 6017 c66fa1438beb
permissions -rwxr-xr-x
Removed legacy Mac OS X dlcompat code.

It was only needed for Mac OS X 10.0 through 10.2, so it seems silly to keep
it around for SDL 1.3.

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